/* =====================================================================
   ImmoClean — feuille de style (Mission 002, proposition B corrigée)
   Mobile d'abord. Deux couleurs de marque issues du logo original
   (img/asset-01.jpg) : bleu #1D58A4 (mesuré) et vert #76C945 (vert mesuré
   #7ABA56, même teinte, rendu un peu plus vif à la demande d'ImmoClean).
   ===================================================================== */

/* ── POLICES (hébergées sur le site, licence SIL OFL) ── */
@font-face{font-family:'Manrope';font-style:normal;font-weight:200 800;font-display:swap;src:url('../fonts/manrope-latin.woff2') format('woff2')}
@font-face{font-family:'Urbanist';font-style:normal;font-weight:100 900;font-display:swap;src:url('../fonts/urbanist-latin.woff2') format('woff2')}

/* ── COULEURS ET RÉGLAGES ──
   Toutes les couleurs du site sont définies ici. Aucune autre teinte de
   bleu ou de vert ne doit être utilisée dans le reste de la feuille. */
:root{
  /* Couleurs de marque, issues du logo original (médiane des lettres) */
  --brand-blue:#1D58A4;        /* bleu ImmoClean, mesuré sur « Immo » : titres, navigation, liens, boutons secondaires */
  --brand-green:#76C945;       /* vert ImmoClean : vert mesuré sur « Clean » (#7ABA56), même teinte, saturation 42 % → 55 % */
  /* Variantes accessibles : même teinte et même saturation que le logo, plus foncées */
  --brand-blue-dark:#174682;   /* survol des éléments bleus (contraste 9,4 avec le blanc) */
  --brand-green-dark:#3D6F20;  /* petits textes verts sur fond clair (6,0 sur blanc) */
  --brand-green-hover:#69BE37; /* survol des boutons verts (6,8 avec le texte anthracite) */
  --brand-green-tint:#F0F9EB;  /* fond vert très clair (garantie) */
  /* Neutres */
  --white:#FFFFFF;
  --off-white:#F8F8F6;         /* blanc cassé : sections alternées */
  --gray-light:#EEF0F2;        /* gris clair : pastilles, icônes, encadrés */
  --line:#E2E5E8;              /* filets et bordures */
  --field:#8A8E93;             /* bordure des champs (3,3 sur blanc : champs bien visibles) */
  --text:#1F2328;              /* anthracite : texte courant et texte des boutons verts (7,7 sur le vert) */
  --muted:#5B5F64;             /* texte secondaire (6,4 sur blanc) */
  --placeholder:#6D7175;       /* exemples dans les champs (4,9 sur blanc) */
  --error:#B42318;
  /* Couleurs fonctionnelles (messages, étoiles d'avis, notes des pages légales) */
  --warn-bg:#FFF4E5;
  --warn-line:#F3D19E;
  --warn-text:#7A3E00;
  --star:#E8A317;              /* étoiles des avis Google (affichées seulement avec de vrais avis) */
  --note-bg:#FFF8E1;
  --note-line:#E0A800;
  --mark:#FFF1B8;
  /* Typographie et formes */
  --head:'Urbanist',system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;
  --sans:'Manrope',system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;
  --r:12px;
  --r-lg:18px;
  --shadow:0 18px 40px -28px rgba(31,35,40,.3);
  --wrap:1200px;
  --hd:64px;
}

/* ── BASE ── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;overflow-x:hidden}
body{font-family:var(--sans);font-size:16px;line-height:1.6;color:var(--text);background:var(--white);overflow-x:hidden}
img,picture{max-width:100%;display:block}
img{height:auto}
a{color:inherit}
ul{list-style:none}
fieldset{border:0;min-width:0}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
h1,h2,h3,h4{font-family:var(--head);color:var(--brand-blue);font-weight:800;letter-spacing:-.02em;line-height:1.12}
[hidden]{display:none !important}
:focus-visible{outline:3px solid var(--brand-blue);outline-offset:3px;border-radius:6px}
.sr-only{position:absolute !important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip-link{position:absolute;left:-9999px;top:0;z-index:100000;background:#fff;color:var(--brand-blue);padding:10px 16px;border-radius:0 0 8px 0;font-weight:700}
.skip-link:focus{left:0}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 18px}
.i{width:22px;height:22px;flex:none;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
section[id],article[id],details[id],#devis{scroll-margin-top:calc(var(--hd) + 12px)}
.hide-sm{display:none}
@media (min-width:420px){.hide-sm{display:inline}.only-sm{display:none}}

/* ── BOUTONS ── */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:52px;padding:0 22px;border-radius:var(--r);border:2px solid transparent;font:800 16px/1.1 var(--head);text-decoration:none;text-align:center;white-space:nowrap;transition:background .15s,border-color .15s,color .15s}
/* Bouton principal de devis : vert ImmoClean, texte anthracite (contraste 7,7) */
.btn-primary{background:var(--brand-green);color:var(--text)}
.btn-primary:hover{background:var(--brand-green-hover)}
/* Bouton secondaire : contour bleu */
.btn-outline{background:#fff;color:var(--brand-blue);border-color:var(--brand-blue)}
.btn-outline:hover{background:var(--brand-blue);color:#fff}
.btn-sm{min-height:44px;padding:0 16px;font-size:15px}
.btn-block{width:100%}
.btn .i{width:20px;height:20px}
.micro{font-size:13px;color:var(--muted);text-align:center;margin-top:8px}
.link{display:inline-flex;align-items:center;gap:6px;font-weight:800;font-family:var(--head);color:var(--brand-blue);text-decoration:none;min-height:44px}
.link:hover{text-decoration:underline}

/* ── EN-TÊTE ── */
.hd{position:sticky;top:0;z-index:999;background:rgba(255,255,255,.97);border-bottom:1px solid var(--line)}
.hd-in{display:flex;align-items:center;gap:8px;height:var(--hd)}
.brand{display:flex;align-items:center;gap:7px;text-decoration:none;margin-right:auto;min-height:44px}
.brand .ic{height:34px;width:auto}
.brand .wm{height:16px;width:auto}
.nav-bot{display:none}
.tel-pill{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:44px;height:44px;border-radius:999px;background:#fff;border:1.5px solid var(--line);color:var(--brand-blue);text-decoration:none;font:800 15px var(--head);flex:none}
.tel-pill span{display:none}
.hd-cta{flex:none}
.hamburger{display:inline-flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;width:44px;height:44px;border:1px solid var(--line);border-radius:10px;background:#fff;flex:none}
.hamburger span{display:block;width:20px;height:2px;background:var(--brand-blue);border-radius:2px;transition:transform .2s,opacity .2s}
#main-nav.open .hamburger span:nth-child(1){transform:translateY(7px) rotate(45deg)}
#main-nav.open .hamburger span:nth-child(2){opacity:0}
#main-nav.open .hamburger span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
/* Menu mobile plein écran, sous l'en-tête */
#main-nav.open .nav-bot{display:flex;flex-direction:column;position:fixed;left:0;right:0;top:var(--hd);bottom:0;background:#fff;padding:8px 18px 28px;overflow-y:auto;z-index:998;border-top:1px solid var(--line)}
.nl{display:flex;flex-direction:column}
.nl a{display:flex;align-items:center;justify-content:space-between;min-height:54px;border-bottom:1px solid var(--line);font:800 17px var(--head);color:var(--brand-blue);text-decoration:none}
.nl a::after{content:'→';color:var(--brand-green-dark);font-weight:700}
.nav-cta{margin-top:18px}
/* Très petits écrans (< 390 px) : logo un peu réduit pour qu'il reste entier */
@media (max-width:389px){
  .hd-in{gap:6px}
  .brand{gap:5px}
  .brand .ic{height:30px}
  .brand .wm{height:14px}
  .hd-cta{padding:0 14px}
}
@media (max-width:349px){
  .wrap{padding:0 14px}
  .brand .ic{height:28px}
  .brand .wm{height:12px}
  .hd-cta{padding:0 12px}
}
body.nav-open{overflow:hidden}

/* ── PREMIÈRE SECTION ── */
.hero{background:var(--off-white);border-bottom:1px solid var(--line);padding:26px 0 40px}
.hero-grid{display:grid;gap:22px}
.badge{display:inline-flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--line);border-radius:999px;padding:6px 12px;font:700 13px var(--sans);color:var(--text)}
.badge::before{content:'';width:8px;height:8px;border-radius:50%;background:var(--brand-green)}
.hero h1{font-size:clamp(34px,8.6vw,58px);margin:14px 0 12px}
.hero h1 em{font-style:normal;color:var(--brand-blue);text-decoration:underline;text-decoration-color:var(--brand-green);text-decoration-thickness:.12em;text-underline-offset:.14em;text-decoration-skip-ink:none}
.lead{font-size:17px;color:var(--muted);max-width:36em}
.ticks{display:grid;gap:10px;margin:18px 0}
.ticks li{display:flex;gap:10px;align-items:flex-start;font-weight:700;color:var(--text)}
.ticks small{display:block;font-weight:500;color:var(--muted);font-size:13px;line-height:1.45}
.tick{flex:none;width:22px;height:22px;border-radius:50%;background:var(--brand-green);color:#fff;display:grid;place-items:center;margin-top:1px}
.tick .i{width:14px;height:14px;stroke-width:3}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.hero-rating{display:inline-flex;align-items:center;gap:6px;margin:0 0 16px;padding:7px 14px;min-height:44px;border:1px solid var(--line);border-radius:999px;background:#fff;font:700 14px var(--sans);color:var(--text);text-decoration:none}
.hero-rating__stars{color:var(--star);font-size:16px}
.hero-rating:hover{border-color:var(--brand-blue)}
.chip{display:inline-flex;align-items:center;gap:6px;background:#fff;border:1px solid var(--line);border-radius:999px;padding:6px 12px;font-size:13.5px;font-weight:700;color:var(--text)}
.chip .i{width:16px;height:16px;color:var(--brand-blue)}
.hero-ba{margin-top:4px}
/* Mobile : première section resserrée pour que le formulaire apparaisse plus tôt */
@media (max-width:699px){
  .hero{padding-top:18px}
  .hero h1{margin:10px 0 8px}
  .lead{font-size:16px}
  .ticks{margin:14px 0;gap:8px}
  .ticks small{display:none}
  .chips{display:none}
}
.hero-ba .ba-caption{margin-top:8px}

/* ── FORMULAIRE DE DEVIS (classes utilisées par js/main.js) ── */
.mform{background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);padding:20px 16px;box-shadow:var(--shadow);text-align:left}
.mform:focus{outline:none}
.mf-title{font-size:22px;margin-bottom:12px}
.mf-steps{display:flex;gap:4px;margin-bottom:10px}
.mf-step-dot{flex:1;height:6px;border-radius:6px;background:var(--line);transition:background .3s}
.mf-step-dot.done{background:var(--brand-green)}
.mf-step-dot.active{background:var(--brand-blue)}
.step-lbl{font:800 15px var(--head);color:var(--text);margin-bottom:12px}
.mf-step{border:none;min-width:0}
.mf-step:focus{outline:none}
.js .mf-step{display:none}
.js .mf-step.active{display:block}
html:not(.js) [data-mf-next],html:not(.js) [data-mf-prev]{display:none}
.mf-choices{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:12px}
.mf-choices--3{grid-template-columns:repeat(3,1fr)}
.mf-choice{position:relative;display:flex;flex-direction:column;gap:4px;min-height:52px;padding:12px;border:2px solid var(--line);border-radius:var(--r);background:#fff;cursor:pointer;transition:border-color .15s,background .15s}
.mf-choice:hover{border-color:var(--field)}
.mf-choice--sm{padding:10px;justify-content:center}
.mf-choice--wide{grid-column:1 / -1}
.mf-choices--3 .mf-choice--wide2{grid-column:span 2}
.mf-choice.selected,.mf-choice:has(input:checked){border-color:var(--brand-blue);background:var(--off-white)}
.mf-choice.selected::after,.mf-choice:has(input:checked)::after{content:'';position:absolute;top:8px;right:8px;width:18px;height:18px;border-radius:50%;background:var(--brand-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center/12px no-repeat}
.mf-choice:has(input:focus-visible){outline:3px solid var(--brand-blue);outline-offset:2px}
.mf-choice-icon{display:block;color:var(--brand-blue)}
.mf-choice-icon .i{width:24px;height:24px}
.mf-choice-label{display:block;font:800 15px/1.2 var(--head);color:var(--text);padding-right:18px}
.mf-choice-sub{display:block;font-size:12.5px;line-height:1.35;color:var(--muted)}
.mf-field{margin-bottom:12px}
.mf-label{display:block;font:700 14px/1.3 var(--sans);color:var(--text);margin-bottom:6px}
.mf-input{display:block;width:100%;min-height:50px;border:1.5px solid var(--field);border-radius:10px;background:#fff;padding:12px 14px;font:500 16px var(--sans);color:var(--text)}
.mf-input::placeholder,.fi::placeholder{color:var(--placeholder)}
.mf-input:focus{outline:none;border-color:var(--brand-blue);box-shadow:0 0 0 4px rgba(29,88,164,.16)}
.mf-input[aria-invalid="true"],.fi[aria-invalid="true"]{border-color:var(--error);box-shadow:0 0 0 3px rgba(180,35,24,.1)}
.mf-textarea{resize:vertical;min-height:72px}
.mf-row{display:grid;grid-template-columns:1fr;gap:0 12px}
.mf-row .mf-field{min-width:0}
.mf-checks{margin:0 0 12px}
.mf-checks label{display:flex;align-items:flex-start;gap:10px;font-size:14.5px;margin-bottom:8px;cursor:pointer;min-height:24px}
.mf-checks input{margin-top:3px;width:18px;height:18px;accent-color:var(--brand-blue)}
.mf-error{color:var(--error);font-size:13px;font-weight:700;margin-top:6px}
.mf-step > .mf-error{margin:-4px 0 10px}
.mf-status{background:var(--warn-bg);color:var(--warn-text);border:1px solid var(--warn-line);border-radius:10px;padding:12px 14px;font-size:14px;line-height:1.5;margin:8px 0}
.mf-status a{color:var(--warn-text);font-weight:800;text-decoration:underline;white-space:nowrap}
.mf-privacy{font-size:12.5px;color:var(--muted);margin:4px 0 8px;line-height:1.5}
.mf-privacy a{color:var(--brand-blue);text-decoration:underline}
.hp-field{position:absolute !important;left:-10000px;width:1px;height:1px;overflow:hidden}
.mf-nav{display:flex;gap:10px;margin-top:14px}
.mf-btn-next{flex:1;min-height:52px;border:0;border-radius:var(--r);background:var(--brand-green);color:var(--text);font:800 16px var(--head)}
.mf-btn-next:hover{background:var(--brand-green-hover)}
.mf-btn-next:disabled{opacity:.7;cursor:wait}
.mf-btn-prev{min-height:52px;padding:0 16px;border:2px solid var(--line);border-radius:var(--r);background:#fff;color:var(--text);font:700 15px var(--head)}
.mf-est{background:var(--off-white);border:1px solid var(--line);border-radius:var(--r);padding:12px 14px;text-align:center;margin-bottom:12px}
.mf-est-lbl{font-size:12.5px;font-weight:700;color:var(--muted)}
.mf-est-price{font:800 28px/1.15 var(--head);color:var(--brand-blue);margin:2px 0}
.mf-est-note{font-size:12.5px;color:var(--muted)}
.fnote{font-size:13px;color:var(--muted);text-align:center;margin-top:12px}

/* Confirmation d'envoi (formulaires) */
.success-card{text-align:center;padding:24px 8px}
.success-card__icon{font-size:44px;margin-bottom:8px}
.success-card__title{font-size:24px;color:var(--brand-blue);margin-bottom:6px}
.success-card__title:focus{outline:none}
.success-card__text{font-size:15px;color:var(--muted);line-height:1.6;margin-bottom:8px}
.success-card__recap{display:inline-block;font-size:13.5px;font-weight:700;background:var(--gray-light);color:var(--text);border-radius:999px;padding:6px 14px;margin:4px 0 12px}
.success-card a{color:var(--brand-blue);font-weight:800;white-space:nowrap}
/* Bouton WhatsApp facultatif après l'envoi : texte sur plusieurs lignes si nécessaire */
.success-card .btn-whatsapp{white-space:normal;line-height:1.3;padding:10px 18px;margin:4px 0 14px;max-width:100%}
.legal .success-card .btn{text-decoration:none}
.success-card__urgent{font-weight:700}
.mf-hint{display:flex;gap:8px;align-items:flex-start;font-size:13px;line-height:1.45;color:var(--muted);margin:2px 0 8px}
.mf-hint .i{width:18px;height:18px;flex:none;color:var(--brand-blue)}

/* ── BANDE DE CONFIANCE ── */
.trust{background:#fff;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.trust ul{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:20px 0}
.trust li{display:flex;gap:10px;align-items:center;font-size:14px;font-weight:700;line-height:1.3;color:var(--text)}
.trust .i{width:26px;height:26px;color:var(--brand-green-dark)}

/* ── SECTIONS ── */
.sec{padding:60px 0}
.sec-gray{background:var(--off-white)}
.head{max-width:700px;margin-bottom:28px}
.kicker{display:inline-block;font:800 13px var(--head);letter-spacing:.08em;text-transform:uppercase;color:var(--brand-green-dark)}
.head h2{font-size:clamp(28px,6.4vw,42px);margin:8px 0 10px}
.head p{color:var(--muted);font-size:17px}
.note{font-size:13px;color:var(--muted);margin-top:10px}

/* Prestations */
.cards{display:grid;gap:16px}
.card{position:relative;display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);padding:22px}
.card .ico{width:48px;height:48px;border-radius:12px;background:var(--gray-light);display:grid;place-items:center;color:var(--brand-blue);margin-bottom:14px}
.card h3{font-size:22px;margin-bottom:8px}
.card p{color:var(--muted);font-size:15px;flex:1}
.card .tag{align-self:flex-start;margin:14px 0 16px;font:800 13px var(--head);color:var(--text);background:var(--gray-light);border-radius:8px;padding:6px 10px}
.card-star{border:2px solid var(--brand-blue);box-shadow:var(--shadow)}
.card-star .ribbon{position:absolute;top:-12px;left:20px;background:var(--brand-green);color:var(--text);font:800 12px var(--head);letter-spacing:.03em;padding:5px 12px;border-radius:999px}
.card-star .tag{background:var(--gray-light);color:var(--brand-blue)}
.others{margin-top:22px;display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;font-size:15px;color:var(--muted)}
.others strong{color:var(--text)}

/* Déroulé, contenu, tarifs */
.steps{display:grid;gap:12px}
.step{display:grid;grid-template-columns:44px 1fr;gap:14px;align-items:start;align-content:start;background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px}
.step b{width:44px;height:44px;border-radius:50%;background:var(--gray-light);color:var(--brand-blue);display:grid;place-items:center;font:800 19px var(--head)}
.step h3{font-size:18px;margin-bottom:4px}
.step p{color:var(--muted);font-size:15px}
.incl{display:grid;gap:18px;margin-top:28px}
.box{background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);padding:22px}
.box h3{font-size:20px;margin-bottom:12px}
.checks li{display:flex;gap:10px;padding:9px 0;border-bottom:1px solid var(--line);font-size:15px}
.checks li:last-child{border-bottom:0}
.checks .tick{margin-top:1px}

/* Calculateur (identifiants utilisés par js/main.js) */
.calc-row{display:grid;gap:12px;margin-bottom:14px}
.calc-lbl{display:block;font:700 14px var(--sans);color:var(--text);margin-bottom:6px}
.calc-sel{width:100%;min-height:50px;border:1.5px solid var(--field);border-radius:10px;padding:0 12px;background:#fff;font:600 16px var(--sans);color:var(--text)}
.calc-sel:focus{outline:none;border-color:var(--brand-blue);box-shadow:0 0 0 4px rgba(29,88,164,.16)}
.calc-result{background:var(--off-white);border:1px solid var(--line);border-radius:var(--r);padding:16px;text-align:center;margin-bottom:12px}
.calc-from{font-size:13px;font-weight:700;color:var(--muted)}
.calc-price{font:800 32px/1.15 var(--head);color:var(--brand-blue);margin:2px 0}
.calc-note{font-size:12.5px;color:var(--muted)}
.calc-cta{display:flex;width:100%}
.ptable li{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid var(--line);font-size:15px}
.ptable li:last-child{border-bottom:0}
.ptable strong{font:800 15.5px var(--head);color:var(--text);white-space:nowrap}

/* Garantie : panneau sobre, sans aplat sombre */
.guar{display:grid;gap:18px;background:#fff;border:1px solid var(--line);border-left:6px solid var(--brand-green);border-radius:var(--r-lg);padding:26px 20px}
.guar .shield{width:56px;height:56px;border-radius:14px;background:var(--brand-green-tint);display:grid;place-items:center;color:var(--brand-green-dark)}
.guar .shield .i{width:30px;height:30px}
.guar h2{font-size:clamp(26px,6vw,38px)}
.guar p{color:var(--text);font-size:16.5px;margin-top:10px}
.guar .cond{font-size:13.5px;color:var(--muted)}

/* ── AVANT / APRÈS (curseur de comparaison) ── */
.ba{--pos:50%;position:relative}
.ba-frame{position:relative;overflow:hidden;border-radius:var(--r-lg);background:var(--gray-light);aspect-ratio:var(--ba-ratio,700/376);touch-action:pan-y;user-select:none;-webkit-user-select:none;cursor:ew-resize}
.ba-pic,.ba-pic img{position:absolute;inset:0;width:100%;height:100%}
.ba-pic img{object-fit:cover;pointer-events:none;-webkit-user-drag:none}
.ba-pic--avant{clip-path:inset(0 calc(100% - var(--pos)) 0 0)}
.ba-tag{position:absolute;top:12px;z-index:3;font:800 12px var(--head);letter-spacing:.04em;text-transform:uppercase;padding:5px 10px;border-radius:999px;background:rgba(255,255,255,.94);color:var(--text);pointer-events:none}
.ba-tag--avant{left:12px}
.ba-tag--apres{right:12px;background:var(--brand-green);color:var(--text)}
.ba-range{position:absolute;inset:0;width:100%;height:100%;opacity:0;pointer-events:none;margin:0}
.ba-line{position:absolute;top:0;bottom:0;left:var(--pos);width:3px;margin-left:-1.5px;background:#fff;z-index:4;pointer-events:none;box-shadow:0 0 0 1px rgba(31,35,40,.15)}
.ba-knob{position:absolute;top:50%;left:50%;width:46px;height:46px;margin:-23px 0 0 -23px;border-radius:50%;background:#fff;color:var(--brand-blue);display:grid;place-items:center;box-shadow:0 6px 18px rgba(31,35,40,.28)}
.ba-knob .i{width:24px;height:24px;stroke-width:2.4}
.ba-range:focus-visible ~ .ba-line .ba-knob{outline:3px solid var(--brand-blue);outline-offset:3px}
.ba.is-dragging .ba-knob{transform:scale(1.06)}
.ba-caption{display:flex;justify-content:space-between;gap:10px;margin-top:10px;font-size:14px;color:var(--muted)}
.ba-caption strong{color:var(--text)}
.ba-switch{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
.ba-switch button{min-height:44px;padding:0 16px;border-radius:999px;border:1.5px solid var(--line);background:#fff;font:800 14.5px var(--head);color:var(--brand-blue)}
.ba-switch button[aria-pressed="true"]{border-color:var(--brand-blue);background:var(--brand-blue);color:#fff}
.ba-list{display:grid;gap:22px;max-width:700px}
.ba-layout{display:grid;gap:22px}
.ba-main{min-width:0}
.ba-aside{background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);padding:22px 20px;box-shadow:var(--shadow)}
.ba-aside h3{font:800 1.2rem/1.25 var(--head);color:var(--brand-blue);margin:0 0 8px}
.ba-aside p{color:var(--muted);margin:0 0 16px}
.ba-aside small{display:block;margin-top:10px;text-align:center;font-size:13.5px;color:var(--muted)}
/* Sans JavaScript : les deux photos côte à côte */
html:not(.js) .ba-frame{display:grid;grid-template-columns:1fr 1fr;gap:2px;aspect-ratio:auto;cursor:auto}
html:not(.js) .ba-pic,html:not(.js) .ba-pic img{position:static;height:auto;aspect-ratio:var(--ba-ratio,700/376)}
html:not(.js) .ba-pic--avant{clip-path:none;order:-1}
html:not(.js) .ba-line,html:not(.js) .ba-range,html:not(.js) .ba-switch{display:none}

/* ── AVIS GOOGLE (affichés seulement s'il y a de vrais avis) ── */
.reviews-sec[hidden]:has(.review){display:block !important}
/* Avant / après : sans JavaScript, la section s'affiche aussi dès qu'elle contient une comparaison */
.ba-sec[hidden]:has(.ba-item){display:block !important}
.rating{display:inline-flex;align-items:center;gap:8px;font-weight:800;color:var(--text);margin-top:6px}
.review-list{display:grid;gap:14px}
.review{background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);padding:20px;display:flex;flex-direction:column;gap:10px}
.review-stars{color:var(--star);letter-spacing:2px;font-size:16px}
.review-text{font-size:15.5px;color:var(--text);quotes:'« ' ' »'}
.review-text p::before{content:open-quote}.review-text p::after{content:close-quote}
.review-meta{font-size:13.5px;color:var(--muted)}
.review-meta strong{color:var(--text)}
.reviews-more{margin-top:18px}

/* Professionnels */
.pros{display:grid;gap:16px}
.pro{background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);padding:22px;display:flex;flex-direction:column}
.pro .top{display:flex;align-items:center;gap:12px;margin-bottom:8px}
.pro .top .i{width:30px;height:30px;color:var(--brand-blue)}
.pro h3{font-size:21px}
.pro > p{color:var(--muted);font-size:15px}
.pro ul{margin:10px 0 18px;flex:1}
.pro li{display:flex;gap:8px;padding:6px 0;font-size:15px}
.pro .tick{width:20px;height:20px}
.ref{margin-top:18px;font-size:14px;color:var(--muted)}

/* Zones */
.zgrid{display:grid;gap:12px}
.zc{background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px}
.zc h3{display:flex;align-items:center;gap:8px;font-size:19px;margin-bottom:4px}
.zc h3 .i{color:var(--brand-blue);width:20px;height:20px}
.zc p{color:var(--muted);font-size:15px}

/* FAQ */
.faq-list{max-width:860px}
.faq-item{background:#fff;border:1px solid var(--line);border-radius:14px;padding:4px 18px;margin-bottom:10px}
.faq-item summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:14px;min-height:56px;font:800 17px/1.3 var(--head);color:var(--brand-blue)}
.faq-item summary::-webkit-details-marker{display:none}
.faq-ico{flex:none;width:28px;height:28px;border-radius:50%;background:var(--gray-light);color:var(--brand-blue);display:grid;place-items:center;font:700 20px/1 var(--sans)}
.faq-ico::after{content:'+'}
.faq-item[open] .faq-ico::after{content:'–'}
.faq-ans{padding:0 0 16px;color:var(--muted);font-size:15.5px;line-height:1.65}
.faq-ans a{color:var(--brand-blue);font-weight:700}
.faq-prix-list{margin:4px 0 8px}
.faq-prix-list li{display:flex;justify-content:space-between;gap:12px;padding:7px 0;border-bottom:1px solid var(--line);font-size:15px}
.faq-prix-list li:last-child{border-bottom:0}
.faq-prix-list strong{color:var(--text);font-family:var(--head);white-space:nowrap}
.faq-prix-note{font-size:13px;margin-top:4px}

/* À propos */
.about{display:grid;gap:22px}
.about p{color:var(--muted);font-size:16px;margin-bottom:10px}
.about-facts{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.about-facts li{background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px}
.about-facts strong{display:block;font:800 24px var(--head);color:var(--brand-blue)}
.about-facts span{font-size:13.5px;color:var(--muted)}

/* Contact (formulaire de rappel, identifiants utilisés par js/main.js) */
.contact-grid{display:grid;gap:24px}
.contact-side .head{margin-bottom:16px}
.contact-line{display:flex;gap:12px;align-items:center;min-height:52px;border-top:1px solid var(--line);font-weight:800;font-family:var(--head);color:var(--brand-blue);text-decoration:none}
.contact-line .i{color:var(--brand-blue)}
.contact-hours{font-family:var(--sans);font-weight:600;font-size:.86rem;color:var(--muted)}
.contact-hours::before{content:"·";margin:0 8px 0 2px}
.fear-form{background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);padding:20px 16px;box-shadow:var(--shadow)}
.ff{display:grid;gap:0 12px}
.cf-field{margin-bottom:12px}
.fl{display:block;font:700 14px/1.3 var(--sans);color:var(--text);margin-bottom:6px}
.fi{display:block;width:100%;min-height:50px;border:1.5px solid var(--field);border-radius:10px;background:#fff;padding:12px 14px;font:500 16px var(--sans);color:var(--text)}
.fi:focus{outline:none;border-color:var(--brand-blue);box-shadow:0 0 0 4px rgba(29,88,164,.16)}
textarea.fi{resize:vertical;min-height:84px}
.fbadges{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 10px}
.fbadge{font-size:12.5px;font-weight:700;color:var(--text);background:var(--gray-light);border-radius:999px;padding:5px 12px}
.fear-submit{width:100%;min-height:52px;border:0;border-radius:var(--r);background:var(--brand-green);color:var(--text);font:800 16px var(--head)}
.fear-submit:hover{background:var(--brand-green-hover)}
.fear-submit:disabled{opacity:.7;cursor:wait}

/* Appel final */
.final{background:var(--off-white);border:1px solid var(--line);border-radius:22px;padding:30px 20px;text-align:center}
.final h2{font-size:clamp(26px,6vw,36px);margin-bottom:8px}
.final p{color:var(--muted);margin-bottom:18px}
.final .row{display:flex;flex-direction:column;gap:10px;align-items:stretch}

/* ── PIED DE PAGE ── */
.footer{background:var(--off-white);border-top:1px solid var(--line);padding:44px 0 108px;font-size:14.5px}
.fg{display:grid;gap:24px}
.f-logo img{height:64px;width:auto;margin-bottom:10px}
.f-tag{color:var(--muted)}
.fc-h{font:800 14px var(--head);color:var(--brand-blue);margin-bottom:8px}
.fc a,.f-addr{display:block;color:var(--muted);text-decoration:none;padding:5px 0;font-style:normal}
.fc a:hover{color:var(--brand-blue);text-decoration:underline}
.f-bot{max-width:var(--wrap);margin:26px auto 0;padding:16px 18px 0;border-top:1px solid var(--line);display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--muted)}
.f-bot a{color:var(--muted);text-decoration:underline}

/* ── BARRE D'ACTION MOBILE ── */
.mobile-cta{display:flex;gap:8px;position:fixed;left:0;right:0;bottom:0;z-index:997;padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--line);box-shadow:0 -10px 24px -18px rgba(31,35,40,.4);transition:transform .25s}
.mobile-cta a{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:50px;border-radius:var(--r);font:800 16px var(--head);text-decoration:none}
.mobile-cta__tel{flex:0 0 auto;padding:0 18px;border:2px solid var(--brand-blue);color:var(--brand-blue);background:#fff}
.mobile-cta__devis{flex:1;background:var(--brand-green);color:var(--text)}
.mobile-cta.is-away,body.nav-open .mobile-cta{transform:translateY(110%)}

/* ── PAGES LÉGALES ── */
.legal-head{background:#fff;border-bottom:1px solid var(--line);padding:12px 1rem;display:flex;justify-content:center}
.legal-head img{height:64px;width:auto}
.legal{max-width:760px;margin:0 auto;padding:40px 1.25rem 56px;color:var(--text);line-height:1.7}
.legal h1{font-size:clamp(26px,4vw,36px);margin:.75rem 0 1rem}
.legal h2{font-size:19px;margin:1.75rem 0 .5rem}
.legal p,.legal li{font-size:15px}
.legal ul{padding-left:1.25rem;margin:.5rem 0;list-style:disc}
.legal a{color:var(--brand-blue);text-decoration:underline}
.legal mark{background:var(--mark);padding:0 3px;border-radius:3px}
.legal .todo{background:var(--note-bg);border-left:4px solid var(--note-line);padding:.75rem 1rem;border-radius:8px;font-size:14px}
.legal-date{margin-top:2rem;font-size:13px}
.legal-foot{padding:24px 1rem}

/* ── TABLETTE (≥ 700 px) ── */
@media (min-width:700px){
  .wrap{padding:0 28px}
  .mform,.fear-form{padding:26px}
  .mf-row{grid-template-columns:1fr 1fr}
  .trust ul{grid-template-columns:repeat(4,1fr)}
  .cards{grid-template-columns:1fr 1fr}
  .steps{grid-template-columns:repeat(3,1fr)}
  .step{grid-template-columns:1fr}
  .guar{grid-template-columns:auto 1fr;align-items:start;padding:32px}
  .guar .cta{grid-column:2}
  .review-list{grid-template-columns:repeat(2,1fr)}
  .pros{grid-template-columns:repeat(3,1fr)}
  .zgrid{grid-template-columns:repeat(3,1fr)}
  .about{grid-template-columns:1.2fr 1fr;align-items:start}
  .ff{grid-template-columns:1fr 1fr}
  .final{padding:40px}
  .final .row{flex-direction:row;justify-content:center}
  .fg{grid-template-columns:2fr 1fr 1fr 1fr}
  .f-bot{flex-direction:row;justify-content:space-between;padding:16px 28px 0}
  .tel-pill{width:auto;padding:0 14px}
  .tel-pill span{display:inline}
}

/* ── ORDINATEUR (≥ 1024 px) ── */
@media (min-width:1024px){
  :root{--hd:74px}
  .hd-in{gap:20px}
  .brand .ic{height:40px}
  .brand .wm{height:19px}
  .hamburger,.mobile-cta{display:none}
  .nav-bot{display:flex;align-items:center;gap:20px;position:static}
  .nl{flex-direction:row;gap:4px}
  .nl a{min-height:44px;padding:0 9px;border:0;font-size:15px;white-space:nowrap}
  .nl a::after{content:none}
  .nl a:hover{color:var(--brand-blue-dark);text-decoration:underline;text-decoration-color:var(--brand-green);text-decoration-thickness:2px;text-underline-offset:8px}
  .nav-cta{display:none}
  .hero{padding:52px 0 64px}
  .hero-grid{grid-template-columns:1.08fr .92fr;grid-template-areas:"texte form" "visuel form";column-gap:56px;row-gap:26px;align-items:start}
  .hero-text{grid-area:texte}
  .hero-grid > .mform{grid-area:form;padding:28px}
  /* Formulaire étroit à côté du titre : listes déroulantes sur toute la largeur pour que leur texte reste entier */
  .hero-grid > .mform .mf-row:has(select){grid-template-columns:1fr}
  .hero-ba{grid-area:visuel;margin:0}
  .mf-choices--3{grid-template-columns:repeat(3,1fr)}
  .incl{grid-template-columns:1fr 1fr}
  .sec{padding:88px 0}
  .cards{grid-template-columns:1.2fr 1fr 1fr 1fr}
  .review-list{grid-template-columns:repeat(3,1fr)}
  .ba-list{grid-template-columns:1fr}
  .ba-layout{grid-template-columns:minmax(0,700px) minmax(280px,1fr);gap:48px;align-items:center}
  .ba-aside{padding:30px 28px}
  .contact-grid{grid-template-columns:.85fr 1.15fr;gap:56px;align-items:start}
  .footer{padding-bottom:44px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{transition:none !important;animation:none !important}
}

/* Calculateur : les deux listes côte à côte seulement si leur texte tient en entier */
@media (min-width:700px) and (max-width:1023px),(min-width:1200px){
  .calc-row{grid-template-columns:1fr 1fr}
}

/* Téléphone tenu en largeur (écran bas) : première section plus compacte */
@media (max-height:500px) and (max-width:1023px){
  .hero{padding-top:14px}
  .hero h1{font-size:34px;margin:8px 0 6px}
  .lead{font-size:15.5px}
  .ticks small{display:none}
}

/* ── Ordinateur compact (1024–1199 px) : menu sur une seule ligne ── */
@media (min-width:1024px) and (max-width:1199px){
  .hd-in{gap:14px}
  .nav-bot{gap:14px}
  .nl{gap:0}
  .nl a{font-size:14px;padding:0 7px}
  .tel-pill{padding:0 12px;font-size:14px}
}
