/* ===============================
   Thème "neo" façon maquette
   S'applique seulement dans .cff-theme--neo
   =============================== */

.cff-theme--neo, :root {
  --neo-red: #ffa500;       /* jaune titre et CTA */
  --neo-secondary: #244a84;       /* rouge titre et CTA */
  --neo-red-dark: #d28d0e;
  --neo-yellow: #ffa500;     /* pill actif */
  --neo-text:#4c4c4c;       /* texte principal */
  --neo-muted:#8a8f9b;      /* petits libellés gris */
  --neo-border:#dfe3ea;     /* bord champs */
  --neo-bg:#ffffff;
  --neo-card:#ffffff;
  --neo-focus:#3b82f6;      /* focus bleu doux */
  --neo-radio-hover: #ffa500;
  --neo-shadow: 0 10px 24px rgba(0,0,0,.08);
  --neo-radius: 7px;
  --neo-radius-sm: 10px;
  --neo-radius-pill: 14px;
  --neo-field-h: 60px;
  --neo-gap: 15px;
  --neo-pad: 20px;
  --neo-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
}

#cff_form{
    max-width: 1100px;
}
.cff-theme--neo .cff-form {
  font-family: var(--neo-font);
  color: var(--neo-text);
  min-width: 720px;
}
@media screen and (max-width: 768px){
  .cff-theme--neo .cff-form {
    min-width: 100%;
  }
}
.cff-theme--neo .cff-step {
  border: none;
}
.cff-theme--neo .cff-step legend {
  width: 100%;
  text-align: center;
  border: none;
  padding: 8px 0 6px;
  margin: 0 0 14px;
  font-weight: 800;
  font-size: 28px;
  color: var(--neo-red);
}
.cff-theme--neo .cff-desc {
  text-align: left;
  color: var(--neo-muted);
  margin: 0 0 18px;
  font-size: 15px;
}

/* Progress fin, simple barre en haut (optionnel) */
.cff-theme--neo .cff-progress {
  height: 6px;
  background: #f2f4f7;
  border-radius: 999px;
  overflow: hidden;
  margin: 0 auto 18px;
  max-width: 720px;
}
.cff-theme--neo .cff-progress > span {
  display:block;height:100%;background:var(--neo-red);width:0%;
  transition: width .3s ease;
}
/* ==== Grille/cols en FLEX ==== */
.cff-theme--neo .cff-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--neo-gap);
  margin-bottom: 0px;
}
.cff-theme--neo .cff-col {
  flex: 1 1 100%;
  min-width: 0; /* évite les débordements avec labels longs */
}

/* Par défaut (mobile) : toujours 100% */
.cff-theme--neo [class*="col-"] {
  flex: 0 1 100%;
}

/* Layouts responsives ≥760px */
@media (min-width: 760px) {
  .cff-theme--neo .col-12 { flex: 0 1 100%; }
  .cff-theme--neo .col-11 { flex: 0 1 calc((100% - 11 * var(--neo-gap)/12)); }
  .cff-theme--neo .col-10 { flex: 0 1 calc((100% - 10 * var(--neo-gap)/12)); }
  .cff-theme--neo .col-9  { flex: 0 1 calc(75% - var(--neo-gap)); }
  .cff-theme--neo .col-8  { flex: 0 1 calc(66.666% - var(--neo-gap)); }
  .cff-theme--neo .col-7  { flex: 0 1 calc(58.333% - var(--neo-gap)); }
  .cff-theme--neo .col-6  { flex: 0 1 calc(50% - var(--neo-gap)); }
  .cff-theme--neo .col-5  { flex: 0 1 calc(41.666% - var(--neo-gap)); }
  .cff-theme--neo .col-4  { flex: 0 1 calc(33.333% - var(--neo-gap)); }
  .cff-theme--neo .col-3  { flex: 0 1 calc(25% - var(--neo-gap)); }
  .cff-theme--neo .col-2  { flex: 0 1 calc(16.666% - var(--neo-gap)); }
  .cff-theme--neo .col-1  { flex: 0 1 calc(8.333% - var(--neo-gap)); }
}

/* Option : forcer une colonne pleine largeur dans une rangée .two/.three */
.cff-theme--neo .col-full { flex: 0 1 100%; }

/* Champs */
.cff-theme--neo input[type="text"], .cff-theme--neo input[type="email"], .cff-theme--neo input[type="tel"], .cff-theme--neo input[type="number"], .cff-theme--neo input[type="date"], .cff-theme--neo select, .cff-theme--neo textarea {
    width: 100%;
    background: var(--neo-bg);
    border: 1px solid var(--neo-border);
    border-radius: var(--neo-radius-sm);
    height: var(--neo-field-h);
    padding: 20px 15px 0px 15px;
    outline: none;
    font-size: 15px;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.cff-theme--neo textarea {
  height: auto; padding: 12px 14px; min-height: 110px;padding-top:30px;
}
.cff-theme--neo input::placeholder,
.cff-theme--neo textarea::placeholder {
  color: var(--neo-muted);
}
.cff-theme--neo input:focus,
.cff-theme--neo select:focus,
.cff-theme--neo textarea:focus {
  border-color: var(--neo-focus);
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}

/* Select flèche */
.cff-theme--neo select {
    appearance: none;
    background-image: 
      linear-gradient(45deg, transparent 50%, #777 50%), 
      linear-gradient(135deg, #777 50%, transparent 50%), 
      linear-gradient(to right, transparent, transparent);
    background-position: 
    calc(100% - 15px) calc(50% - 0px), 
    calc(100% - 10px) calc(50% - 0px), 
    calc(100% - 50px) 0;
    background-size: 5px 5px, 5px 5px, 1px 100%;
    background-repeat: no-repeat;
    padding-right: 30px;
  }


/* ============================
   Radios en "pill" (theme neo)
   ============================ */

.cff-theme--neo .cff-radio-group{

}

/* On cache l'input natif mais on garde l'accessibilité */
.cff-theme--neo .cff-radio input[type="radio"]{
  position:absolute;
  opacity:0;
  inset:0;
  pointer-events:none;
}

/* Le label sert de container cliquable */

.cff-theme--neo .cff-radio{
    position: relative;
    display: inline-block;
    width: auto;
}
[data-slot="col_left" ] .cff-radio{
    width: calc(50% - 10px);
}


/* La "pill" (le visuel) */
.cff-theme--neo .cff-radio .pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 16px;
  border:1px solid var(--neo-border);
  border-radius: var(--neo-radius-pill);
  background: transparent;
  line-height:1;
  cursor:pointer;
  user-select:none;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .04s ease;
  min-height:40px;
  font-size: 14px;
  line-height: 17px;
  font-weight: 500 ;
}

/* Icônes dans les options */
.cff-theme--neo .cff-radio .with-icon .opt-icn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.cff-theme--neo .cff-radio .with-icon .opt-icn img,
.cff-theme--neo .cff-radio .with-icon .opt-icn svg{
  max-width:18px;
  max-height:18px;
  display:block;
}
.cff-theme--neo .cff-radio .opt-txt {
    display: inline-block;
    width: auto;
}

[data-slot="col_left" ] .cff-radio .opt-txt{
    width: calc(100% - 30px);
}

/* Hover & active */
.cff-theme--neo .cff-radio:hover .pill{ border-color:#cfd6df; }
.cff-theme--neo .cff-radio:active .pill{ transform: translateY(1px); }

/* Focus (clavier) */
.cff-theme--neo .cff-radio input[type="radio"]:focus-visible + .pill{
  border-color: var(--neo-focus);
  box-shadow: 0 0 0 3px rgba(59,130,246,.18);
}

/* Sélectionné — via :checked ou via la classe .selected que tu ajoutes côté PHP */
.cff-theme--neo .cff-radio input[type="radio"]:checked + .pill,
.cff-theme--neo .cff-radio .pill.selected, .cff-theme--neo .cff-radio .pill:hover{
  background: var(--neo-radio-hover);
  border-color: var(--neo-radio-hover);
  color: #fff;
}
.cff-radio-group{
  margin-top: 10px;
}
/* Désactivé */
.cff-theme--neo .cff-radio input[type="radio"]:disabled + .pill{
  opacity:.6;
  cursor:not-allowed;
}

/* Réduction des animations si demandé par l’utilisateur */
@media (prefers-reduced-motion: reduce){
  .cff-theme--neo .cff-radio .pill{
    transition: none;
  }
}


/* Checkbox custom simple */
.cff-theme--neo .cff-check input[type="checkbox"] {
  width: 20px !important; 
  height: 20px; 
  margin-top:3px;
  border-radius: 4px; 
  border:1px solid var(--neo-border);
  accent-color: var(--neo-yellow);
  max-width: 20px !important;
}
.cff-theme--neo .cff-check input[type="checkbox"]:checked{
  background-color: var(--neo-yellow);
}

.cff-theme--neo .cff-check input[type=checkbox]:checked:before {
  left: 4px !important;
  top: 8px !important;
}

/* Tooltip (ton système .cff-pop) */
.cff-theme--neo .cff-tip {     
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #e9edf4;
  color: #444;
  font-weight: 700;
  font-size: 10px;
  border: none;
  cursor: pointer;
}
.cff-theme--neo .cff-pop {
  position: absolute;
  z-index: 10;
  background:#fff; border:1px solid var(--neo-border);
  border-radius: 10px; padding: 12px 14px; max-width: 320px;
  box-shadow: var(--neo-shadow); color:#3b3f47;
}

/* Erreurs */
/*.cff-theme--neo .cff-field:has(:invalid) input,
.cff-theme--neo .cff-field:has(:invalid) select,
.cff-theme--neo .cff-field:has(:invalid) textarea {
  border-color:#e86a6a;
  box-shadow: 0 0 0 3px rgba(232,106,106,.15);
}
.cff-theme--neo .cff-error { color:#d84b4b; font-size:13px; margin-top:6px; }
*/
/* Navigation */
.cff-theme--neo .cff-nav {
  display:flex; justify-content:space-between; gap: 12px; margin-top: 20px;
}
.cff-theme--neo .cff-prev,
.cff-theme--neo .cff-next,
.cff-theme--neo .cff-submit,
.cff-bouton,
.cff-back{
  appearance:none; border:none; cursor:pointer; font-weight:800;
  padding: 14px 22px; border-radius: 12px; font-size:16px;
  transition: transform .05s ease, background .2s ease;
}
.cff-theme--neo .cff-prev { background:#eceff3; color:#2d3340; }
.cff-theme--neo .cff-prev:hover { background:#e4e8ee; }
.cff-theme--neo .cff-next, .cff-theme--neo .cff-submit, .cff-bouton, .cff-back { background: var(--neo-red); color:#fff; }
.cff-theme--neo .cff-next:hover, .cff-theme--neo .cff-submit:hover, .cff-back:hover { background: var(--neo-red-dark); }
.cff-theme--neo .cff-next:active, .cff-theme--neo .cff-prev:active, .cff-theme--neo .cff-submit:active, .cff-back:active { transform: translateY(1px); }

/* Titre intermédiaire (type:title) */
.cff-theme--neo .titre_form {
  display:block; text-align:left; font-weight:800;
  font-size: 22px; margin: 8px 0 4px; color: var(--neo-text);
}

/* Cacher quand .cff-hidden est posé par ton JS */
.cff-theme--neo .cff-hidden { display:none !important; }


/* Wrapper floating */
.cff-float-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Input + Textarea + Select */
.cff-float-wrap input,
.cff-float-wrap textarea,
.cff-float-wrap select {
  width: 100%;
  padding: 1.4rem 1rem 0.6rem 1rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.cff-float-wrap input:focus,
.cff-float-wrap textarea:focus,
.cff-float-wrap select:focus {
  border-color: #4a90e2;
  box-shadow: 0 0 0 2px rgba(74,144,226,0.2);
  outline: none;
}
/* ===========================
   Floating label — mode STATIQUE
   (label toujours visible en haut, placeholder visible)
   =========================== */

.cff-theme--neo .cff-float-wrap {
  position: relative;
  display: block;
}

.cff-theme--neo .cff-float-wrap input,
.cff-theme--neo .cff-float-wrap select,
.cff-theme--neo .cff-float-wrap textarea {
  width: 100%;
  background: var(--neo-bg);
  border: 1px solid var(--neo-border);
  border-radius: var(--neo-radius-sm);
  height: var(--neo-field-h);
  padding: 20px 10px 5px;
  font-size: 15px;
  line-height: 1.35;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.cff-theme--neo .cff-float-wrap textarea {
  height: auto;
  min-height: 110px;
  padding-top: 25px;                 /* un peu plus haut pour le multi-ligne */
}

/* Label interne */
.cff-theme--neo .cff-float-label {
    position: absolute;
    left: 15px;
    top: 7px;
    font-size: 13px;
    font-weight: 600;
    color: var(--neo-text);
    pointer-events: none;
    transform: none;
    transition: color .2s ease;
    display: flex;
    align-items: center;
    gap: 7px;
        width: 100%;
}
/* Focus */
.cff-theme--neo .cff-float-wrap input:focus + .cff-float-label,
.cff-theme--neo .cff-float-wrap select:focus + .cff-float-label,
.cff-theme--neo .cff-float-wrap textarea:focus + .cff-float-label {
  color: var(--neo-focus);
}

.cff-theme--neo .cff-float-wrap input::placeholder,
.cff-theme--neo .cff-float-wrap textarea::placeholder {
  color: var(--neo-muted);
  opacity: 1;
}

.cff-theme--neo .cff-float--static .cff-float-label { top: 5px; font-size: .85rem; }
.cff-theme--neo .cff-float--static input:focus + .cff-float-label,
.cff-theme--neo .cff-float--static input:not(:placeholder-shown) + .cff-float-label,
.cff-theme--neo .cff-float--static textarea:focus + .cff-float-label,
.cff-theme--neo .cff-float--static textarea:not(:placeholder-shown) + .cff-float-label,
.cff-theme--neo .cff-float--static select:focus + .cff-float-label,
.cff-theme--neo .cff-float--static select:not([value=""]) + .cff-float-label {
  top: 5px;                          /* ne bouge jamais */
  font-size: .85rem;                 /* ne rétrécit pas */
}

/*.cff-theme--neo .cff-field:has(:invalid) .cff-float-wrap input,
.cff-theme--neo .cff-field:has(:invalid) .cff-float-wrap select,
.cff-theme--neo .cff-field:has(:invalid) .cff-float-wrap textarea {
  border-color:#e86a6a;
  box-shadow: 0 0 0 3px rgba(232,106,106,.15);
}
.cff-theme--neo .cff-field:has(:invalid) .cff-float-label {
  color:#d84b4b;
}*/


/* Shell qui héberge input + (éventuelle) icône + (éventuel) label flottant */
.cff-input-shell{
  position: relative;
  display: block;
}

/* Icône commune (Font Awesome <i>, svg, ou img) */
.cff-icon{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  line-height: 0;
  color: var(--neo-muted);
  opacity: .9;
  pointer-events: none;
}
.cff-icon i{ font-size: 1rem; }
.cff-icon img, .cff-icon svg{ width: 18px; height: 18px; display:inline-block; }

/* Positions */
.cff-input-shell.has-left  .cff-icon--left  { left: 12px; }
.cff-input-shell.has-right .cff-icon--right { right: 12px; }

/* On ajoute du padding côté icône */
.cff-input-shell.has-left  input,
.cff-input-shell.has-left  textarea,
.cff-input-shell.has-left  select { padding-left: 34px;}
.cff-input-shell.has-right input,
.cff-input-shell.has-right textarea,
.cff-input-shell.has-right select { padding-right: 34px;}

/* Compat avec label flottant : il reste lisible au dessus de l’icône */
.cff-input-shell.has-left  .cff-float-label { left: 34px; }
.cff-input-shell.has-right .cff-float-label { right: 34px; }

/* Petits ajustements visuels */
.cff-icon i.fa-solid,
.cff-icon i.fa-regular,
.cff-icon i.fa-light { color: var(--neo-muted); }


/* Bouton tip lorsqu'il est à l'intérieur du shell (floating) */
.cff-theme--neo .cff-input-shell {
  position: relative; /* déjà présent, mais on le confirme */
}

.cff-theme--neo .cff-tip--inside {
  position: absolute;
  top: 50%;
  right: 10px;            /* tu peux passer à left: 10px si icône à droite */
  transform: translateY(-50%);
  z-index: 5;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: #e9edf4;
  color: #444;
  font-weight: 700;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

/* S'assure que la bulle passe au dessus de tout */
.cff-theme--neo .cff-pop {
  position: absolute;
  z-index: 9999;          /* plus haut qu'avant */
  top: calc(100% + 8px);  /* sous le bouton par défaut */
  left: 0;                /* ajustable selon ton besoin */
  background: #fff;
  border: 1px solid var(--neo-border);
  border-radius: 10px;
  padding: 12px 14px;
  max-width: 320px;
  box-shadow: var(--neo-shadow);
  color: #3b3f47;
}

/* Petite variante si le bouton est aligné à droite */
.cff-theme--neo .cff-tip--inside + .cff-pop {
  right: 0;
  left: auto;
}

/* Quand il y a aussi une icône à droite, on évite la superposition */
.cff-theme--neo .cff-input-shell.has-right .cff-tip--inside {
  right: 40px; /* laisse la place à l'icône */
}

/* Si icône à gauche et tu veux mettre le ? à gauche :
.cff-theme--neo .cff-input-shell.has-left .cff-tip--inside { left: 40px; right: auto; }
.cff-theme--neo .cff-input-shell.has-left .cff-pop { left: 0; right: auto; }
*/

.cff-float-label .cff-tip {
  pointer-events: auto; /* Rendre interactif */
  position: relative;
  z-index: 2; /* Passer devant */
}

/* Ligne de label au-dessus (non-floating) */
.cff-label-line label{
  display:inline-flex; align-items:center; gap:7px;
}

/* Wrapper du label flottant (le label contient aussi le bouton ?) */
.cff-label-wrap {
    position: absolute;
    top: 5px;
    left: 15px;
    width: 100%;
}
.cff-input-shell.has-left .cff-icon--left {
    left: 15px;
    top: 40px;
}
.cff-label-wrap label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
}
.cff-label-wrap .cff-tip{ /* cliquable */
  pointer-events:auto; z-index:2;
}


/* Groupe de boutons radio (pills) */
.cff-theme--neo .cff-radio-group{
  display:flex; gap:12px; flex-wrap:wrap;
}

/* Masquer l’input natif */
.cff-theme--neo .cff-radio input[type="radio"]{ display:none; }

/* Pilule */
.cff-theme--neo .cff-radio .pill{
  display:flex; align-items:center; justify-content:center;
  gap:8px;
  min-height:44px;
  padding:10px 16px;
  border:1px solid var(--neo-border);
  border-radius: var(--neo-radius-pill);
  transition: all .18s ease;
  height: 100%;
}

/* Variante avec icône */
.cff-theme--neo .cff-radio .pill.with-icon .opt-icn{
  display:inline-flex; align-items:center; justify-content:center;
  width:18px; height:18px;
}
.cff-theme--neo .cff-radio .pill.with-icon .opt-icn img,
.cff-theme--neo .cff-radio .pill.with-icon .opt-icn svg{
  width:18px; height:18px; display:block;
}

/* Hover/focus visuel */
.cff-theme--neo .cff-radio .pill:hover{
  border-color:#cfd6df;
}

/* ÉTAT SÉLECTIONNÉ */

/* Accessibilité : focus */
.cff-theme--neo .cff-radio input[type="radio"]:focus + .pill{
  outline: none;
  box-shadow: 0 0 0 3px rgba(59,130,246,.25);
}

/* Option recommandée (ex. badge visuel) */
.cff-theme--neo .cff-radio.is-recommended .pill{
  border-style: dashed;
}

.cff-check{
    display: flex;
    align-items: center;
    margin-bottom: 0px;
    gap: 7px;
}

.cff-error {
    font-size: 15px;
    color: red;
    margin-left: 10px;
}

.cff-subtitle h4 {
    display: block;
    font-weight: 600;
    font-size: 17px;
    margin: 20px 0 0px;
    color: var(--neo-text);
    border-bottom: 1px solid var(--neo-border);
    padding-bottom: 5px;
}
.mt-25{
  margin-top: 25px !important;
}
.mb-n10{
    margin-bottom: -10px !important;
}

.field-locked {
    background-color: #f5f5f5 !important;
    color: #666 !important;
    pointer-events: none;
}




/* SIMULATEUR */

.cff-step[data-step="simulateur"] .slots {
  display: flex;
  gap: 20px;
}


.cff-step[data-step="simulateur"]{
    min-inline-size: auto !important;
}


/* Grille 3 colonnes fixes pour simulateur */
.cff-step[data-step="simulateur"] .slots {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
    align-items: flex-start;
}

.cff-step[data-step="simulateur"] .slots .cff-slot {
    flex: 1 1 33.333%;
    min-width: 300px;
    display: flex;
    gap: var(--neo-gap);
    max-width: calc(33% - 10px);
    box-shadow: 4px 4px 20px 0 rgba(0, 0, 0, .04);
}



/* Largeur max container (évite que ça s'étale trop sur grands écrans) */
@media (max-width: 1024px){
  .cff-step[data-step="simulateur"] {
    max-width: 1000px;  /* tu adaptes si besoin */
    margin: 0 auto;
  }

  .cff-step[data-step="simulateur"] .slots .cff-slot {
      max-width: 100%;
  }
}

/* Largeur max container (évite que ça s'étale trop sur grands écrans) */
@media (min-width: 1024px) and (max-width: 1115px) {
  .cff-step[data-step="simulateur"] {
    max-width: 1100px;  /* tu adaptes si besoin */
    margin: 0 auto;
  }

  .cff-step[data-step="simulateur"] .slots .cff-slot {
      max-width: calc(33% - 20px);
  }
}


/* Largeur max container (évite que ça s'étale trop sur grands écrans) */
@media (min-width: 1115px) and (max-width: 1500px) {
  .cff-step[data-step="simulateur"] {
    max-width: 1440px;  /* tu adaptes si besoin */
    margin: 0 auto;
  }
}

/* Largeur max container (évite que ça s'étale trop sur grands écrans) */
@media (min-width: 1500px) and (max-width: 1800px) {
  .cff-step[data-step="simulateur"] {
    max-width: 1620px;  /* tu adaptes si besoin */
    margin: 0 auto;
  }
}


.cff-step[data-step="simulateur"] h2, .cff-step[data-step="simulateur"] .cff-desc{
    text-align: center;
    margin-bottom: 5px;
}


.cff-step[data-step="simulateur"] .cff-slot.cff-row {
    padding: 25px;
    border-radius: 8px;
}

.range-display{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.range-display input{
    padding: 0px !important;
    text-align: center;
    min-height: auto !important;
    height: auto !important;
    width: auto !important;
    border: 0px !important;
    font-weight: 600 !important;
}
.range-slider_div{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.range-slider{
    flex: 1;
}

[data-step="simulateur"] .cff-nav {
  display: none;
}

[data-slot="col_hidden"]{
    display: none !important;
}

#resume_bloc p {
    margin-top: 0px;
    margin-bottom: 10px;
}

.cff-subtitle h4 {
    margin-top: 30px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}
.number_step{
    display: flex;
    width: 30px;
    height: 30px;
    text-align: center;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    background: var(--neo-radio-hover);
    border: 1px solid var(--neo-radio-hover);
    border-radius: 8px;
    color: #fff;
}

#resume_bloc p {
    margin-top: 0px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.resume-mensu-box{
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.resume-mensu-box {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 80px;
    border-radius: 5px;
    margin-bottom: 20px;
    background: rgba(255,255,255,0.1);
    color: #fff;
}


#resume_bloc button{
    width: 100%;
}



/* Loader spécifique au simulateur */
.cff-form-loader {
  position: absolute;
  inset: 0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.cff-form-loader::after {
  content: "";
  width: 40px;
  height: 40px;
  border: 4px solid #ddd;
  border-top: 4px solid #f44336;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.cff-form {
  transition: opacity 0.3s ease;
  background: var(--neo-card);
  border-radius: var(--neo-radius);
  padding: 28px;
  border: 1px solid #eee;
  margin: 24px auto;
}



.cff-form.is-loading .cff-step{
  transition: opacity 0.3s ease;
  overflow: hidden;
  max-height: 450px;   /* réserve la place */
}

.cff-form.ready .cff-step{
  opacity: 1 !important;
  visibility: visible !important;
  max-height: none;    /* libère la contrainte */
  overflow: visible;
  min-width: 100%;
}

/* état une fois chargé */
.cff-form.ready {
  opacity: 1 !important;
  visibility: visible !important;
  max-height: none;    /* libère la contrainte */
  overflow: visible;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}



fieldset{
  min-inline-size: auto;  /* override du défaut navigateur */
  border: none;           /* supprime le cadre par défaut */
  padding: 0;             /* supprime le padding natif */
  box-sizing: border-box;
}

.radio_mensualite{
  width: calc(50% - 6px) !important;
}
.radio_mensualite .opt-txt {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}
.radio_mensualite .opt-txt .saut {
  font-weight: 400;
}

.col_recapitulatif{
    display: flex;
    justify-content: space-around;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 7px;
    margin-top: 20px;
}
.col_recapitulatif .col_recap {
    line-height: 40px;
    font-size: 15px;
    width: 20%;
    text-align: center;
    border-right: 1px solid #eee;
}

.col_recapitulatif .col_recap span:last-child {
    font-weight: 600;
}



.cff-steps-header ul {
    display: flex;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 30px 0 30px 0;
    justify-content: space-around;
    align-items: center;
    position: relative;
}
.cff-steps-header ul::before {
    content: '';
    position: absolute;
    height: 50px;
    width: 100%;
    background: #fff;
    z-index: -1;
    border: 1px solid #eee;
}
.cff-steps-header li {
  display: flex;
  align-items: center;
  transition: all .2s ease;
  font-weight: 500;
  font-size: 15px;

}
.cff-steps-header .num {
  display: inline-block;
  background: #eee;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  line-height: 22px;
  text-align: center;
  margin-right: 8px;
  font-weight: bold;
  font-size: 14px;
}
.cff-steps-header li.active .num {
  background: var(--neo-red);
  color: #fff;
}
.cff-steps-header li.active .label {
  color: var(--neo-red);
}

.form_simulateur{
  background: transparent !important;
  border: none;
  padding: 0;
}
.form_simulateur .cff-slot.cff-row {
  background: #fff;
  min-height: 420px;
  align-content: flex-start;
}
.form_simulateur .cff-subtitle h4{
    margin-top: 0px;
    font-size: 15px !important;
    padding-bottom: 10px;
}

[data-slot="credit_0"] {
  display: none !important;
}

.sous_titre_credit h4 {
  border: none;
}
.sous_titre_credit{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    padding-top: 10px;
    margin-right: 15px;
}

.sous_titre_credit .credit_suppr_btn{
    background: var(--neo-red);
    border: none;
    border-radius: 7px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 15px;
    cursor: pointer;
    font-size: 14px;
}

.ajout_cred .cff-field{
    text-align: center;
    margin-top: 20px;
}

.ajout_cred .ajout_cred{
    background: var(--neo-secondary);
    border: none;
    border-radius: 7px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 14px;
    max-width: max-content;
    margin: auto;
}


.cff-confirmation{
    background: #fff;
    padding: 40px;
    border-radius: 7px;
}

.autocomplete-results.active{
    border: 1px solid #e3e3e3;
    border-radius: 5px;
    padding: 10px 15px;
    max-height: 130px;
    overflow: scroll;
    box-shadow: 0px 1px 5px 1px rgba(0, 0, 0, 0.05);
}
.autocomplete-results.active .autocomplete-item{
    border-bottom: 1px solid #e3e3e3;
    height: 34px;
    line-height: 34px;
}

.cff-files-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.cff-file-item {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #f9f9f9;
}
.cff-file-item img {
  border-radius: 4px;
}
.cff-file-del {
  background: none;
  border: none;
  cursor: pointer;
  color: red;
  font-size: 14px;
}




.cff-file-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 10px;
}

.file-preview-item {
  max-width: 150px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px;
  background: #f9f9f9;
  position: relative;
}

.file-preview-item img {
  max-width: 100%;
  max-height: 100px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 8px;
}

.file-preview-item span {
  display: block;
  font-size: 13px;
  word-break: break-word;
  margin-bottom: 6px;
}

.file-preview-item .file-remove {
  position: absolute;
  top: 5px;
  right: 5px;
  background: #e74c3c;
  color: white;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 12px;
  line-height: 18px;
  cursor: pointer;
}

.cff-file-upload .cff-label-line {
    margin-bottom: 10px;
}

@media screen and (max-width: 768px){

.col_recapitulatif {
    flex-wrap: wrap;
    padding: 10px 15px;
}
.col_recapitulatif .col_recap {
    line-height: 24px;
    width: 100%;
    text-align: left;
}
.cff-step-title .label {
  display: none;
}

.cff-form.ready{
    padding: 15px;
}
}



[data-slot="col_bottom"].cff-slot.cff-row {
    min-width: 100% !important;
    min-height: auto !important;
}


.cff-row[data-slot="col_right"]{
    background: #224463 !important;
}
.cff-row[data-slot="col_right"] *{
    color: #fff !important;
}

.cff-notice.cff-error{
  display: none
}

.box_documents .colonne_right p{
  font-size: 15px
}
.box_documents .colonne_right strong {
  color: #244A84;
  font-size: 18px;
}
.box_documents .colonne_right .texte_rouge {
  color: #e3173e
}
@media screen and (min-width: 768px){
.box_documents{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
.box_documents .colonne_left, .box_documents .colonne_right{
    width: 50%;
}

}


/* Icône info discrète */
.montant-info {
    display: inline-block;
    cursor: pointer;
    font-weight: bold;
    background: #ffa503;
    font-size: 12px;
    position: relative;
    color: #fff;
    border-radius: 50%;
    height: 17px;
    width: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Bulle d'info */
.montant-info::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 120%; /* au-dessus de l’icône */
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 0.8em;
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform-origin: bottom center;
}

/* Petite flèche en dessous de la bulle */
.montant-info::before {
  content: "";
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.85) transparent transparent transparent;
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* Affichage au survol */
.montant-info:hover::after,
.montant-info:hover::before {
  opacity: 1;
}




/* Cacher le 0 dans le champs montant du crédit */
[data-name^="credit_montant_"], [data-name^="credit_montant_"] .cff-input-shell{
  position: relative
}
[data-name^="credit_montant_"] input{
  padding-left: 7px !important
}
[data-name^="credit_montant_"] .cff-input-shell:before {
  content: '';
  position: absolute;
  width: 10px;
  height: 30px;
  left: 7px;
  bottom: 5px;
  z-index:9999;
  background: #fff
}



.montant-range{
    font-size: 12px;
    color: initial;
}

@media screen and (max-width: 768px){
.montant-range{
    font-size: 10px;
    color: initial;
}

}



/* === Overlay de chargement global === */
.form-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.8); /* blanc semi-transparent */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Affiché activement */
.form-loader-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Loader simple (animation rotation) */
.form-loader-overlay::after {
    content: "";
    width: 60px;
    height: 60px;
    border: 5px solid #ccc;
    border-top-color: #0073aa; /* couleur WordPress / QRBNB */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


