/* Mutuelle Communale — landing devis santé (version tricolore) */
@font-face{font-family:'Figtree';font-style:normal;font-weight:300;font-display:swap;src:url(../fonts/figtree-latin-300-normal.woff2) format('woff2')}
@font-face{font-family:'Figtree';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/figtree-latin-400-normal.woff2) format('woff2')}
@font-face{font-family:'Figtree';font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/figtree-latin-500-normal.woff2) format('woff2')}
@font-face{font-family:'Figtree';font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/figtree-latin-600-normal.woff2) format('woff2')}

:root{
  --bleu:#0b2f8a; --bleu-tint:#eef2fb; --bleu-line:#c7d2ea;
  --rouge:#d7262e; --rouge-2:#b81f26;
  --ink:#14213d; --text:#3d4760; --muted:#5a6478;
  --line:#dde3ee; --line-soft:#e6eaf2; --ground:#f7f9fc;
  --ok:#1a8a5a; --err:#d7262e;
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--ground);color:var(--ink);font-family:Figtree,system-ui,sans-serif;font-size:16px;line-height:1.5;font-weight:400}
img{max-width:100%;display:block}
a{color:var(--bleu)}a:hover{color:var(--rouge)}
input,select,button{font-family:inherit;font-size:16px}
:focus-visible{outline:3px solid var(--bleu);outline-offset:2px}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.wrap{max-width:1280px;margin:0 auto;padding-left:24px;padding-right:24px}
.ico{width:18px;height:18px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

.tricolore{display:flex;height:5px}
.tricolore span{flex:1}
.tricolore span:nth-child(1){background:var(--bleu)}
.tricolore span:nth-child(2){background:#fff}
.tricolore span:nth-child(3){background:var(--rouge)}

/* Header */
.site-header{background:#fff;border-bottom:1px solid var(--line-soft)}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:88px}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none}
.brand svg{width:48px;height:48px;flex-shrink:0}
.brand__txt{display:flex;flex-direction:column;line-height:1.05;color:var(--bleu)}
.brand__name{font-size:23px}.brand__name b{font-weight:600}.brand__name span{font-weight:300}
.brand__txt small{font-size:13px;color:var(--muted);margin-top:3px}
.trust{display:flex;gap:28px;margin:0;padding:0;list-style:none;font-size:15px}
.trust li{display:flex;align-items:center;gap:8px}.trust .ico{color:var(--bleu)}

/* Hero */
.hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,600px);grid-template-areas:"intro form" "extra form";gap:28px 72px;align-items:start;padding-top:56px;padding-bottom:72px}
.intro{grid-area:intro;display:flex;flex-direction:column;gap:24px;padding-top:16px}
.extra{grid-area:extra;display:flex;flex-direction:column;gap:24px}
.form-card{grid-area:form}
.badge{align-self:flex-start;display:inline-flex;align-items:center;gap:10px;padding:7px 14px;border-radius:999px;background:#fff;border:1px solid var(--line);font-size:14px;font-weight:500;color:var(--bleu)}
.badge .flag{display:flex;width:18px;height:12px;border-radius:2px;overflow:hidden;box-shadow:0 0 0 1px var(--line)}
.badge .flag span{flex:1}.badge .flag span:nth-child(1){background:var(--bleu)}.badge .flag span:nth-child(2){background:#fff}.badge .flag span:nth-child(3){background:var(--rouge)}
.intro h1{margin:0;font-weight:300;font-size:clamp(31px,4.2vw,56px);line-height:1.1;letter-spacing:-.02em}
.intro h1 strong{font-weight:600;color:var(--bleu)}
.lead{margin:0;font-size:20px;font-weight:300;color:var(--text);max-width:560px}
.checks{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:14px;font-size:17px}
.checks li{display:flex;gap:12px;align-items:center}
.checks .dot{width:26px;height:26px;border-radius:50%;background:var(--bleu-tint);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.checks .dot .ico{width:15px;height:15px;color:var(--bleu);stroke-width:2.6}

.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));background:#fff;border:1px solid var(--line-soft);border-radius:18px;overflow:hidden}
.stats div{padding:22px 24px;display:flex;flex-direction:column;gap:2px}
.stats div + div{border-left:1px solid var(--line-soft)}
.stats span{font-size:14px;color:var(--muted)}
.stats strong{font-size:38px;font-weight:300;line-height:1.1;color:var(--bleu)}
.stats strong small{display:block;font-size:15px;margin-top:4px;color:var(--ink)}
.stats .rouge{color:var(--rouge)}.stats .rouge small{color:var(--ink)}
.stats sup{font-size:10px}
.family{display:flex;align-items:flex-end;gap:24px;background:#fff;border:1px solid var(--line-soft);border-radius:18px;padding:24px 24px 0;overflow:hidden}
.family div{flex:1;padding-bottom:24px}
.family h2{margin:0 0 8px;font-size:20px;font-weight:500;color:var(--bleu)}
.family p{margin:0;font-size:16px;font-weight:300;color:var(--text)}
.family img{width:230px;height:auto;aspect-ratio:277/213;object-fit:cover;flex-shrink:1;min-width:0}

/* Formulaire */
.form-card{background:#fff;border:1px solid var(--line-soft);border-radius:24px;box-shadow:0 24px 60px rgba(11,47,138,.10);overflow:hidden;scroll-margin-top:16px}
.form-card__body{padding:32px 40px}
.form-head{display:flex;flex-direction:column;gap:14px;margin-bottom:24px}
.form-head__row{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.form-head h2{margin:0;font-size:26px;font-weight:500}
.form-head .count{font-size:14px;font-weight:500;color:var(--muted)}
.progress{height:6px;border-radius:6px;background:var(--bleu-tint);overflow:hidden}
.progress span{display:block;height:100%;width:50%;background:var(--bleu);border-radius:6px;transition:width .3s}

.step{display:flex;flex-direction:column;gap:24px}
.step[hidden]{display:none}
.q{font-size:16px;font-weight:500;margin:0 0 12px}
.qrow{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
fieldset{border:0;margin:0;padding:0;min-width:0}
legend{padding:0}

/* Choix (radios natifs stylés) */
.opt input{position:absolute;opacity:0;width:1px;height:1px;margin:0}
.who{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.who label{height:96px;border-radius:14px;border:1.5px solid var(--line);background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;font-size:14px;font-weight:500;cursor:pointer;text-align:center;transition:border-color .15s,background .15s}
.who label svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.pills{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.pills--2{grid-template-columns:repeat(2,minmax(0,1fr));max-width:300px}
.pills label{height:46px;border-radius:999px;border:1.5px solid var(--line);background:#fff;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:500;cursor:pointer;text-align:center;padding:0 6px;line-height:1.1}
.levels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.levels label{min-height:72px;border-radius:14px;border:1.5px solid var(--line);background:#fff;display:flex;align-items:center;gap:12px;padding:12px 16px;cursor:pointer}
.levels .radio{width:20px;height:20px;border-radius:50%;border:2px solid var(--line);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.levels .radio::after{content:"";width:10px;height:10px;border-radius:50%;background:transparent}
.levels .t{display:flex;flex-direction:column;gap:2px}
.levels b{font-size:16px;font-weight:600}
.levels small{font-size:13px;color:var(--muted)}
.opt label:hover{border-color:var(--bleu-line)}
.opt input:checked + label{border-color:var(--bleu);background:var(--bleu-tint);color:var(--bleu)}
.opt input:checked + label .radio{border-color:var(--bleu)}
.opt input:checked + label .radio::after{background:var(--bleu)}
.opt input:checked + label small{color:var(--muted)}
.opt input:focus-visible + label{outline:3px solid var(--bleu);outline-offset:2px}

.linkbtn{border:0;background:transparent;padding:6px 0;font-size:14px;font-weight:500;color:var(--bleu);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.postes{display:none;flex-direction:column;gap:10px;margin-top:12px;padding:16px;border-radius:14px;background:var(--ground);border:1px solid var(--line-soft)}
.postes.is-open{display:flex}
.poste{display:flex;align-items:center;gap:12px}
.poste > span{width:120px;flex-shrink:0;font-size:14px;font-weight:500}
.poste .mini{flex:1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
.poste .mini label{height:44px;border-radius:10px;border:1.5px solid var(--line);background:#fff;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:500;cursor:pointer}

.stepper{height:52px;width:180px;border:1.5px solid var(--line);border-radius:12px;display:flex;align-items:center;justify-content:space-between;padding:0 4px;background:#fff}
.stepper button{width:44px;height:44px;border:0;border-radius:10px;background:var(--bleu-tint);color:var(--bleu);font-size:22px;cursor:pointer}
.stepper output{font-size:18px;font-weight:500}

/* Champs (structure .inputrow > .columns requise par les fonctions verif_*) */
.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 18px}
.grid-cp{display:grid;grid-template-columns:160px minmax(0,1fr);gap:16px 18px}
.grid-adr{display:grid;grid-template-columns:minmax(0,1fr) 200px;gap:16px 18px}
.inputrow{display:flex;flex-direction:column;gap:8px;min-width:0}
.inputrow label{font-size:15px;font-weight:500}
.inputrow label em{font-style:normal;font-weight:300;color:var(--muted)}
.inputrow input[type=text],.inputrow input[type=tel],.inputrow input[type=email],.inputrow select{
  width:100%;height:52px;border:1.5px solid var(--line);border-radius:12px;padding:0 16px;background:#fff;color:var(--ink);
  appearance:none;-webkit-appearance:none;transition:border-color .15s,box-shadow .15s}
.inputrow select{padding-right:40px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230b2f8a' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center}
.inputrow input::placeholder{color:#8b93a7}
.inputrow input:focus,.inputrow select:focus{outline:none;border-color:var(--bleu);box-shadow:0 0 0 3px #d6e0f5}
.inputrow.valid input,.inputrow.valid select{border-color:var(--ok)}
.inputrow.invalid input,.inputrow.invalid select{border-color:var(--err);background:#fff6f6}
.field-error{display:block;margin-top:6px;font-size:13px;font-weight:500;color:var(--err)}
.js-conj{display:none}

.intro-2{margin:0;font-size:16px;font-weight:300;color:var(--text)}
.optin{display:flex;gap:12px;align-items:flex-start}
.optin input{width:20px;height:20px;margin:2px 0 0;accent-color:var(--bleu);flex-shrink:0}
.optin label{font-size:14px;font-weight:300;color:var(--text)}

.btn{height:60px;border:0;border-radius:14px;font-size:18px;font-weight:600;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:10px;width:100%;transition:background .15s,transform .05s}
.btn:active{transform:translateY(1px)}
.btn .ico{width:22px;height:22px;stroke-width:2.4}
.btn--cta{background:var(--rouge);color:#fff;box-shadow:0 10px 24px rgba(215,38,46,.25)}
.btn--cta:hover{background:var(--rouge-2)}
.reassure{display:flex;justify-content:center;gap:8px;align-items:center;font-size:14px;color:var(--muted);margin-top:-12px}
.reassure .ico{width:15px;height:15px}
.foot2{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:-8px}
.foot2 .linkbtn{display:flex;align-items:center;gap:6px;text-decoration:none;font-size:15px;padding:10px 0}
.foot2 span{font-size:13px;font-weight:300;color:var(--muted)}
.rgpd{margin:0;font-size:12px;font-weight:300;color:var(--muted)}

/* Étapes */
.how{background:#fff;border-top:1px solid var(--line-soft);padding:64px 0}
.how h2{margin:0 0 40px;text-align:center;font-size:38px;font-weight:300;letter-spacing:-.01em}
.how h2 strong{font-weight:600;color:var(--bleu)}
.how ol{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px}
.how li{display:flex;flex-direction:column;gap:10px;padding-top:20px;border-top:3px solid var(--bleu)}
.how li:nth-child(2){border-top-color:var(--bleu-line)}
.how li:nth-child(3){border-top-color:var(--rouge)}
.how .n{font-size:15px;font-weight:600;color:var(--bleu)}
.how li:nth-child(3) .n{color:var(--rouge)}
.how h3{margin:0;font-size:21px;font-weight:500}
.how p{margin:0;font-size:16px;font-weight:300;color:var(--text)}

/* Footer */
.site-footer{background:var(--bleu);color:#dfe6f7;padding:32px 0;font-size:14px;font-weight:300}
.site-footer .wrap{display:flex;flex-direction:column;gap:12px}
.site-footer .row{display:flex;justify-content:space-between;align-items:center;gap:12px 24px;flex-wrap:wrap}
.site-footer .partner{font-size:16px;color:#fff}
.site-footer a{color:#dfe6f7}.site-footer .partner a{color:#fff;font-weight:500}
.site-footer nav{display:flex;gap:24px;flex-wrap:wrap}
.site-footer .note{margin:0;font-size:13px;color:#b8c5e8}

/* Page merci */
.thanks{padding-top:56px;padding-bottom:72px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,400px);gap:48px;align-items:start}
.thanks-card{background:#fff;border:1px solid var(--line-soft);border-radius:24px;box-shadow:0 24px 60px rgba(11,47,138,.10);overflow:hidden}
.thanks-card .inner{padding:44px;display:flex;flex-direction:column;gap:22px}
.thanks-badge{width:68px;height:68px;border-radius:50%;background:var(--bleu-tint);display:flex;align-items:center;justify-content:center}
.thanks-badge .ico{width:32px;height:32px;color:var(--bleu);stroke-width:2.6}
.thanks-card h1{margin:0;font-weight:300;font-size:clamp(28px,3.4vw,42px);line-height:1.15;letter-spacing:-.01em}
.thanks-card h1 strong{font-weight:600;color:var(--bleu)}
.loader{display:flex;align-items:center;gap:12px;font-size:15px;font-weight:500;color:var(--bleu)}
.loader span{width:22px;height:22px;border-radius:50%;border:3px solid var(--bleu-tint);border-top-color:var(--bleu);animation:spin 1s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.loader span{animation:none}.progress span{transition:none}}
.next{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.next li{display:flex;gap:16px;align-items:flex-start;padding:16px 18px;border-radius:16px;background:var(--ground)}
.next .n{width:38px;height:38px;flex-shrink:0;border-radius:10px;display:flex;align-items:center;justify-content:center;font-weight:600;color:#fff;background:var(--bleu)}
.next li:nth-child(2) .n{background:var(--bleu-tint);color:var(--bleu)}
.next li:nth-child(3) .n{background:var(--rouge)}
.next h2{margin:0 0 2px;font-size:16px;font-weight:600}
.next p{margin:0;font-size:15px;font-weight:300;color:var(--text)}
.btn--ghost{width:auto;align-self:flex-start;height:50px;padding:0 20px;font-size:16px;font-weight:500;background:#fff;color:var(--bleu);border:1.5px solid var(--line);text-decoration:none}
.btn--ghost:hover{border-color:var(--bleu);color:var(--bleu)}
.btn--ghost .ico{width:18px;height:18px}

/* Responsive */
@media (max-width:1080px){
  .trust{display:none}
  .hero{grid-template-columns:minmax(0,1fr);grid-template-areas:"intro" "form" "extra";gap:24px;padding-top:28px}
  .form-card,.extra{max-width:640px;width:100%;justify-self:center}
  .thanks{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:640px){
  .wrap{padding-left:16px;padding-right:16px}
  .site-header .wrap{min-height:68px}
  .brand svg{width:38px;height:38px}
  .brand__name{font-size:19px}
  .intro{gap:14px;padding-top:0}
  .lead{font-size:16px}
  .checks{flex-direction:row;flex-wrap:wrap;gap:6px 14px;font-size:13px;font-weight:500;color:var(--bleu)}
  .checks li{gap:5px}.checks .dot{width:auto;height:auto;background:none}
  .form-card{margin:0 -6px;width:auto;border-radius:20px}
  .form-card__body{padding:20px 16px 22px}
  .form-head h2{font-size:21px}
  .who{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .who label{height:60px;flex-direction:row;gap:8px}
  .who label svg{width:22px;height:22px}
  .pills{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pills--2{max-width:none}
  .levels{grid-template-columns:minmax(0,1fr);gap:8px}
  .levels label{min-height:58px}
  .poste{flex-direction:column;align-items:stretch;gap:6px}
  .poste > span{width:auto}
  .grid2{grid-template-columns:minmax(0,1fr)}
  .grid-cp{grid-template-columns:120px minmax(0,1fr);gap:10px}
  .grid-adr{grid-template-columns:minmax(0,1fr)}
  .stats div{padding:14px 10px;align-items:center;text-align:center}
  .stats span{font-size:12px}
  .stats strong{font-size:24px}.stats strong small{display:block;font-size:12px}
  .family{flex-direction:column;align-items:stretch;padding:20px 20px 0}
  .family div{padding-bottom:0}
  .family img{align-self:center}
  .foot2{flex-direction:column}
  .how{padding:40px 0}
  .how h2{font-size:26px;text-align:left;margin-bottom:20px}
  .how ol{grid-template-columns:minmax(0,1fr);gap:16px}
  .thanks{padding-top:24px;padding-bottom:48px}
  .thanks-card .inner{padding:26px 18px}
}

/* Page merci : colonne latérale */
.thanks .extra{grid-area:auto}
.thanks .stats strong{font-size:28px}
.thanks .family{flex-direction:column;align-items:stretch}
.thanks .family div{padding-bottom:0}
.thanks .family img{align-self:center}

/* Champs obligatoires & groupes */
.req{color:var(--rouge);font-weight:600}
.group{display:flex;flex-direction:column;gap:14px}
.group__title{margin:0;padding-bottom:8px;border-bottom:1px solid var(--line-soft);font-size:13px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--bleu)}
.group.js-conj{display:none}
.mention{margin:-12px 0 0;text-align:center;font-size:13px;color:var(--muted)}
