
@import "../fonts/gothampro.css";

.drag-handle, .delete-icon  { display: none }
body {
  background-color: #666;
  font-family: 'GothamPro';
  font-weight: 400;
  padding: 0;
  max-width:900px;
  margin: 50px auto;
}
#tinymce {
  background-color: #fff;
  font-size: 12px;
  line-height: 22px;
  font-size: 120%;
}
#document {
  background-color: #fff;
  font-size: 12px;
  line-height: 22px;
  border-top: solid 15px #00aeef;
  padding-bottom: 20px;
}
#document>img,
#document>h1,
#document>table {
  padding: 0 30px;
}

#document>p {
  padding: 2px 30px;
  line-height: 15px;
}

section {
  margin: 0 0;
}

.content {
  margin: 0 30px;
  padding: 10px 0;
}

#entete {
  width: 100%;
  border: 5px solid #00aeef;
  padding: 10px;
  border-bottom-right-radius: 30px;  
}

hr {
  height: 3px;
  border: 0;
  background-color: #00aeef;
  padding:0;
  margin: 20px 0;
}
span {
  margin: 0;
}
p {
  margin: 0 0 8px 0;
  line-height: 15px;
}
input {
  background-color: #DDE4FF;
  border: 0;
  border-bottom: solid 1px #000;
  padding: 2px;
}
a {
  color: #00aeef;
  font-style: none;
}
h1 {
  font-weight: normal;
  color: #00aeef;
  font-size: 25px;
}
h2 {
  font-weight: bold;
  color: #000;
  font-size: 20px;
  margin: 20px 0 20px 0;
}
h3 {
  font-weight: normal;
  color: #00aeef;
  margin: 20px;
  padding: 0 0 5px 20px;
  border-bottom: solid 3px #00aeef; 
  border-left: solid 3px #00aeef;
  border-bottom-left-radius: 50px;
}
h4 {
  margin: 5px 0;
  padding: 0;
  font-weight: normal;
  font-size: 15px;
  line-height: 20px;
}
div.optionnel {
  background-color: #ffa;
}
div.optionnel div.optionnel {
  background-color: #ffc;
}
div.optionnel>label {
  display: inline-block;
  width: 100%;
  background-color: orange;
  height: 30px;
  line-height: 32px;
  border-bottom: solid 1px #111;
}

div.optionnel>label::after {
  font-size: 18px;
  font-family: Arial, sans-serif;
  font-weight: bold;
  float: right;
  margin-left: 10px;
  width: 20px;
}

/* Flèche pour l'état "ouvert" */
div.optionnel.opened>label::after {
  content: "∧";
}

/* Flèche pour l'état "fermé" */
div.optionnel.closed>label::after {
  content: "∨";
}

.cmsms_edit {
  position: absolute;
}
.cmsms_edit a {
  background-color: black;
  color: #fff;
  margin-left: -75px;
  display: inline-block;
  padding: 4px 15px;
}

textarea {
  width: 100%;
}

div.saut-de-page label, .content div.saut-de-page label {
  display: block;
  padding: 0 5px;
  background-color: transparent;
  height: 30px;
  line-height: 32px;
}
div.saut-de-page {
  margin-left: -50px;
  margin-right: -50px;  
  background-color: #eee;
  color: #000;
}
.content div.saut-de-page {
  margin-left: -81px;
  margin-right: -81px;
}
div.saut-de-page-checked {
  background-color: #555;
  color: #fff;
  border: solid 10px #666;
}
div.saut-de-page label, .content div.saut-de-page label {
  display: block;
  background-color: transparent;
}
.content table, 
#tinymce table {
  table-layout: auto !important;
  background-color: #fff;
  border: solid 1px #000;
  border-collapse: collapse;
}
.content th, .content td,
.mce-item-table th, #tinymce td {
  border-bottom: 1px solid #000;
  border-right: 1px solid #000;
  padding: 0 5px;
}
.content thead td,
.mce-item-table thead td {
  background-color: #00aeef;
  color: #fff;
  font-weight: bold;
}

#signatures {
  margin-top: 20px;
}
#signatures table, 
#signatures table th,
#signatures table td {
  border: 0;
  margin: 0;
}
#signatures table {
  border: 0;
  margin: 0;
}
#signatures table table {
  border: solid 3px #00aeef;
  border-collapse:separate;
  border-bottom-left-radius:15px;
  border-bottom-right-radius:15px;
}
#signatures table table th,
#signatures table table td {
  padding: 10px;
}

.content .numerotation {
  color: #00aeef;
}

.big {
  font-size: 16px !important;
  line-height: 30px;
  border: 5px solid #00aeef !important;
  border-top-left-radius: 30px;
  border-bottom-right-radius: 30px;
  margin-bottom: 30px;
  padding: 30px 0;
}

.donnees-saisies {
  color: #339;
  font-weight: 400;
}  
.big .donnees-saisies { 
  font-size: 16px;
  line-height: 30px; 
} 

.big hr {
  background-color: transparent;
  height: 30px;
  border: 0;
  border-radius: 0;
  margin: 20px 0;
  width: 100%;
  border-right: solid 5px #00aeef;
  border-bottom: solid 5px #00aeef;
  border-bottom-right-radius: 30px;
}

.big p {
  margin: 0px 30px;
  line-height: 30px;
  margin-bottom: 10px;
}
.big h2 {
  margin: 30px;
}

#entete {
  width: 100%;
  border: 5px solid #eee !important;
  background-color: #eee;
  padding: 10px;
  border-bottom-right-radius: 30px;
  margin-bottom: 30px;
}

.required-error-overlay {
    position: absolute; /* Se positionne par rapport au parent positionné */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 0, 0, 0.2); /* Rouge transparent */
    border: 2px solid red;
    border-radius: 5px;
    z-index: 10; /* Pour passer au-dessus du contenu */
    pointer-events: none; /* Pour pouvoir cliquer "à travers" */
    box-sizing: border-box;
}

/* Le conteneur d'un champ doit être positionné pour que l'overlay fonctionne */
.mce-form-element-wrapper {
    position: relative; /* Contexte de positionnement pour l'overlay */
    display: inline-block; /* Assure que le wrapper a des dimensions */
}

.mce-form-element-required {
  margin-left: 0px;
}
.mce-form-element-required::before {
  content: "*";
  color: red;
  font-weight: bold;
  font-size: 20px;
  line-height: 15px;
  padding: 6px 3px 0px 3px;
  background: yellow;
  border-radius: 16px;
  display: inline-block;
  height: 16px;
  width: 16px;
  text-align: center;
  vertical-align: middle;
}
p>.mce-form-element-required::before {
  top: 0px;
}
.mce-form-element-required input {
  margin-left: 2px;
}

/* Style pour les boutons d'action dans les tableaux dynamiques */
.btn-action {
    display: inline-block;
    padding: 4px 8px;
    margin: 0 2px;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    text-decoration: none;
    line-height: 1;
    text-align: center;
}

.btn-add-row {
    background-color: #28a745; /* Vert */
    color: white;
    border-color: #28a745;
}

.btn-delete-row {
    background-color: #dc3545; /* Rouge */
    color: white;
    border-color: #dc3545;
}

.btn-action:hover {
    opacity: 0.8;
}