iframe { display: none !important; } /* only for dev */
/* conteneur de page */
.page-inner {
  margin: 0 auto;
  padding: 16px 24px 32px;      /* marges latérales + bas */
}

/* header des étapes (onglets) */
.wizard-header {
  display: flex;
  align-items: center;
  gap: 18px;                    /* espace entre onglets */
  padding: 8px 12px 0;
  border-radius: 8px;
  margin: 8px 0 20px;           /* espace au-dessus/en-dessous */
}

.step-card {
  border: 1px solid #e6e8eb !important;
  border-radius: 10px !important;
  box-shadow: 0 1px 2px rgba(16,24,40,.04);
  background: #fff;
  margin-bottom: 20px;
  padding: 18px !important;
}

.text-right {
  margin-left: auto;
  text-align: right;
}

/* chaque onglet */
.step-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-weight: 600;
  color: #111827;
  opacity: .75;
  cursor: pointer;
  position: relative;
}

.step-tab:hover { opacity: 1; }

.step-tab[disabled] {
  opacity: .45;
  cursor: not-allowed;
}

/* style actif proche de ta maquette (pastille + liseré vert) */
.step-tab.is-active {
  background: #e8f7ef;          /* vert très clair */
  color: #0e9f6e;
  opacity: 1;
}
.step-tab.is-active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 4px;
  height: 2px;
  background: currentColor;     /* petit soulignement */
  border-radius: 2px;
}

/* pastille numérotée */
.step-index {
  display: inline-flex;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  font-size: 12px;
  line-height: 0;
}

.card-header {
  padding: 14px 18px !important;
}
.card-body {
  padding: 18px !important;
}

/* zone boutons de navigation en bas */
.form-actions {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
}

/* champs : respiration verticale régulière */
.form-control,
.react-date-picker__wrapper {
  min-height: 42px;
}
.row > [class*="col-"] { margin-bottom: 14px; }

.form-control, .react-date-picker__wrapper {
    min-height: 20px;
}
.react-date-picker__wrapper {
    border: none !important;
}

.compact-card .card-body {
  padding: .5rem .75rem;
  font-size: .9rem;
}
.section-title {
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: .25rem;
}
.row.g-2 { --bs-gutter-x: .5rem; --bs-gutter-y: .5rem; }
.table-sm th, .table-sm td { padding: .25rem .5rem; }

.repeater-container, .repeater-row, .repeater-col {
  position: relative;
}
.repeater-rm {
  position: absolute;
  top: 25px;
  right: 0;
  width: 24px;
  height: 35px;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.repeater-with-btn {
  position: relative;
  padding-right: 30px;
} 

.quill-editor-custom, .ql-editor {
  min-height: 300px;
  resize: vertical;
  position: relative;
}
.quill-editor-fullscreen {
  position: fixed !important;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999;
  background: #fff;
  min-height: 100vh;
  width: 100vw;
  padding: 40px 20px 20px 65px;
}
.quill-editor-header{
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  align-items: center;
}

.label, .upload-label {
  display: block;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.recap-label {
  background-color: #d4edda50;
  color: #155724;
  padding: 2px 8px;
  border-radius: 5px;
  font-weight: 600;
  margin-right: 8px;
  display: inline-block;
  min-width: 190px;
}

.recap-title {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 10px;
  background-color: #d4edda50;
  color: #155724;
  padding: 6px 10px;
  border-radius: 5px;
}

.recap {
  position: relative;
  border-radius: 5px;
  background: #fff;
  border-color: #e9ecef;
  overflow: hidden;
}

/* Effet hover/focus tape-à-l’œil */
.recap:hover,
.recap:focus-within {
  transform: translateY(-3px) scale(1.01);
}

.recap:hover::before,
.recap:focus-within::before {
  opacity: 0.9;
  transform: translateX(3px);
}

/* Éclat diagonal (“shine”) qui balaie le bloc au survol */
.recap::after {
  content: "";
  position: absolute;
  inset: -40%;
  transform: translateX(-60%) rotate(12deg);
  transition: transform 500ms ease, opacity 220ms ease;
  opacity: 0;
  pointer-events: none;
}

.recap:hover::after,
.recap:focus-within::after {
  transform: translateX(40%) rotate(12deg);
  opacity: 1;
}

/* Accessibilité : réduire l’animation si l’utilisateur préfère moins d’animations */
@media (prefers-reduced-motion: reduce) {
  .recap,
  .recap::before,
  .recap::after {
    transition: none;
  }
  .recap:hover,
  .recap:focus-within {
    transform: none;
  }
}

.upload-block { margin-bottom: 20px; }

.upload-dropzone{
  border:2px dashed #c7c7c7; border-radius:8px; min-height:140px;
  background:#fafafa; position:relative; cursor:pointer; transition:all .15s ease;
  padding:20px; display:flex; align-items:center; justify-content:center;
}
.upload-dropzone.is-over{ border-color:#3b82f6; background:#f0f6ff; }
.upload-dropzone.is-uploading{ opacity:.85; pointer-events:none; }

.upload-empty{ display:flex; align-items:center; gap:14px; text-align:center; }
.upload-icon{ color:#9aa0a6; }
.upload-text{ display:flex; flex-direction:column; color:#4a4a4a; }
.upload-text strong{ font-weight:600; }
.upload-text span{ font-size:.92rem; color:#6b7280; }
.upload-hint-inline{ color:#6b7280; margin-top:6px; }

.upload-grid{
  width:100%; display:grid; gap:12px;
}
/* Grille identique */
.upload-grid.single{ grid-template-columns: repeat(1, 110px); justify-content:center; }
.upload-grid.multi{ grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }

/* Tuile agrandie pour 2 lignes */
.pdf-tile.two-lines{
  height: 118px; width: 110px;
  border:1px solid #e5e7eb; border-radius:10px; background:#fff;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:6px; position:relative; padding:8px 6px;
}
.pdf-icon{ color:#ef4444; line-height:1; }

.pdf-caption{
  width:100%;
  font-size: 12px; line-height: 1.25; text-align: center; color:#374151;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; word-break: break-word;
}

.tile-remove{
  position:absolute; top:4px; right:4px; width:22px; height:22px;
  border:none; border-radius:50%; background:#ef4444; color:#fff; cursor:pointer;
  line-height:20px; font-size:16px; padding:0;
}

.pdf-tile.add-more{
  border:2px dashed #d1d5db; background:#f9fafb;
}
.pdf-tile.add-more:hover{ background:#eef2f7; }

.pdf-tile{
  height:96px; width:96px; border:1px solid #e5e7eb; border-radius:10px;
  background:#fff; display:flex; align-items:center; justify-content:center;
  position:relative; user-select:none; flex-direction: column;
}

.upload-progress{
  position:absolute; left:14px; right:14px; bottom:12px; height:8px;
  background:#e5e7eb; border-radius:999px;
}
.upload-progress span{
  position:absolute; right:0; bottom:12px; font-size:12px; color:#6b7280;
}
.upload-bar{ height:100%; border-radius:999px; background:#3b82f6; }

.upload-error{ margin-top:8px; color:#b91c1c; }

@media (min-width: 768px) {
  .actions-bar {
    position: absolute;
    right: 10px;
  }
}

/* alignement propre du menu vers la droite du cell */
.table .dropdown { display: inline-block; }

/* état disabled des <a> dans le menu */
.dropdown-item.disabled {
  pointer-events: none !important;
  opacity: .5;
}

/* bloque toute interaction mais garde la toolbar affichée */
.quill-readonly .ql-toolbar,
.quill-readonly .ql-editor {
  pointer-events: none;
}

/* retire l'effet "grisé" de quill en readonly */
.quill-readonly .ql-toolbar .ql-formats button,
.quill-readonly .ql-toolbar .ql-picker {
  opacity: 1 !important;
}

/* optionnel: fond léger pour signaler la lecture seule */
.quill-readonly .ql-editor { background: #f8f9fa; }

.rs__control { font-size: 14px; }
.rs__menu { font-size: 14px; }
.rs__placeholder { opacity: .8; }

.card-body ul.list-unstyled > li {
  position: relative;
}
.card-body ul.list-unstyled > li::before {
  content: '';
  position: absolute;
  left: 4px; top: 18px; bottom: -18px;
  width: 2px; background: #e9ecef;
}
.card-body ul.list-unstyled > li:last-child::before { display: none; }

.p-0 { padding: 0 !important; }
