/* =============================================================================
   Sanifrance — feuille de style du site public
   Traduction fidèle de maquettes/Sanifrance.dc.html (charte, rayons, ombres,
   animations). Polices hébergées sur le site (pas d'appel à Google).
   ========================================================================== */

@font-face {
    font-family: 'Bricolage Grotesque';
    src: url('../fonts/bricolage-grotesque-latin.woff2') format('woff2');
    font-weight: 500 800;
    font-display: swap;
}

@font-face {
    font-family: 'Figtree';
    src: url('../fonts/figtree-latin.woff2') format('woff2');
    font-weight: 400 700;
    font-display: swap;
}

:root {
    --bleu: #1668B0;
    --bleu-fonce: #0F5A9C;
    --bleu-texte: #0B4C86;
    --marine: #0B2540;
    --jaune: #FFC23D;
    --fond: #F3F8FD;
    --clair: #E3F0FC;
    --texte2: #3E5670;
    --texte3: #4B6178;
    --bord: #D6E4F2;
    --filet: #DDE8F3;
    --eau: #38B6F0;
    --erreur: #B42318;
    --titre: 'Bricolage Grotesque', system-ui, sans-serif;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--fond);
    color: var(--marine);
    font-family: 'Figtree', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--bleu); }
a:hover { color: var(--marine); }
input, select, textarea, button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--bleu); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lien-evitement { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--marine); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.lien-evitement:focus { top: 12px; color: #fff; }

.conteneur { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* ----------------------------------------------------------- Animations */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes flow { to { stroke-dashoffset: -40; } }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes heat { 0% { opacity: 0; transform: translateY(10px); } 40% { opacity: .95; } 100% { opacity: 0; transform: translateY(-26px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes swap { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(255, 194, 61, .7); } 100% { box-shadow: 0 0 0 18px rgba(255, 194, 61, 0); } }
@keyframes drip { 0% { transform: translateY(-6px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(22px); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { 0% { transform: scale(.5); opacity: 0; } 60% { transform: scale(1.1); } 100% { transform: scale(1); opacity: 1; } }
@keyframes blob { 0%, 100% { border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%; } 50% { border-radius: 55% 45% 40% 60% / 55% 58% 42% 45%; } }

.rise { animation: rise .8s var(--ease) both; }
.float { animation: float 5s ease-in-out infinite; }
.panel { animation: swap .45s var(--ease) both; }

/* Apparition au défilement : animation-timeline si disponible, sinon
   IntersectionObserver (site.js ajoute .js-reveal puis .is-visible). */
@supports (animation-timeline: view()) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
}
@supports not (animation-timeline: view()) {
    .js-reveal .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
    .js-reveal .reveal.is-visible { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------ Boutons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 14px 22px; border-radius: 14px; border: 0;
    text-decoration: none; font-weight: 700; font-size: 16px; cursor: pointer;
    transition: transform .25s var(--ease), box-shadow .25s, background-color .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(22, 104, 176, .28); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-bleu { background: var(--bleu); color: #fff; }
.btn-bleu:hover { background: var(--bleu-fonce); color: #fff; }
.btn-blanc { background: #fff; color: var(--marine); border: 1.5px solid var(--bord); }
.btn-blanc:hover { color: var(--marine); }
.btn-jaune { background: var(--jaune); color: var(--marine); font-weight: 800; }
.btn-jaune:hover { color: var(--marine); }
.btn-lien { background: transparent; color: var(--bleu); padding-left: 12px; padding-right: 12px; }
.btn-lien:hover { box-shadow: none; transform: none; text-decoration: underline; }
.btn-grand { padding: 17px 26px; font-size: 17px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.call { width: 10px; height: 10px; border-radius: 50%; background: var(--jaune); flex: none; animation: ring 1.8s ease-out infinite; }

/* ----------------------------------------------------- Bandeau d'absence */
.bandeau { background: var(--jaune); color: var(--marine); font-weight: 700; text-align: center; padding: 10px 16px; font-size: 15px; }

/* ------------------------------------------------------------- En-tête */
.entete { position: sticky; top: 0; z-index: 20; background: rgba(243, 248, 253, .85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--filet); }
.entete-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 14px; padding-bottom: 14px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--marine); }
.logo:hover { color: var(--marine); }
.logo svg { flex: none; }
.logo-image { display: block; }
.logo-nom { display: flex; flex-direction: column; line-height: 1.1; }
.logo-nom b { font-family: var(--titre); font-weight: 800; font-size: 22px; letter-spacing: -.01em; }
.logo-nom small { font-size: 12.5px; color: var(--texte3); font-weight: 500; }
.nav { display: flex; flex-wrap: wrap; gap: 8px 30px; font-weight: 600; font-size: 15.5px; }
.navlink { position: relative; color: var(--marine); text-decoration: none; }
.navlink::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--bleu); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.navlink:hover::after, .navlink:focus-visible::after { transform: scaleX(1); }
.entete-actions { display: flex; align-items: center; gap: 10px; }
.entete-actions .btn { padding: 11px 16px; min-height: 44px; }

/* --------------------------------------------------------------- Hero */
.hero { position: relative; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 40px; }
.hero-texte { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.pastille { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--bord); border-radius: 999px; padding: 7px 14px 7px 8px; font-weight: 600; font-size: 14px; color: var(--bleu-texte); }
.pastille span { background: var(--clair); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.hero h1 { margin: 0; font-family: var(--titre); font-weight: 800; font-size: clamp(42px, 6vw, 72px); line-height: 1; letter-spacing: -.035em; }
.hero h1 > span { display: block; }
.souligne { position: relative; color: var(--bleu); white-space: nowrap; }
.souligne svg { position: absolute; left: 0; bottom: -8px; width: 100%; height: 16px; overflow: visible; }
.souligne path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1s .9s cubic-bezier(.6, 0, .2, 1) forwards; }
.hero-lead { margin: 0; font-size: 19px; line-height: 1.6; color: var(--texte2); max-width: 540px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.atouts { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 15px; color: var(--texte2); font-weight: 500; margin: 0; padding: 0; list-style: none; }
.atouts li { display: inline-flex; align-items: center; gap: 7px; }
.hero-visuel { flex: 1 1 440px; min-width: 0; position: relative; }
.hero-visuel .blob { position: absolute; inset: 6% 4% 4% 6%; background: #DCEBFA; animation: blob 12s ease-in-out infinite; }
.hero-visuel > svg { position: relative; width: 100%; height: auto; display: block; }
.helice { transform-box: fill-box; transform-origin: center; animation: spin 1.4s linear infinite; }
.flux { animation: flow 1.1s linear infinite; }
.chaleur path { animation: heat 2.4s ease-in-out infinite; }
.goutte-eau { animation: drip 2s ease-in infinite; }
.badge { position: absolute; display: flex; align-items: center; gap: 10px; border-radius: 16px; padding: 12px 16px; box-shadow: 0 16px 36px rgba(11, 37, 64, .14); }
.badge-icone { width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.badge b { display: block; font-size: 14.5px; line-height: 1.2; }
.badge small { display: block; font-size: 12.5px; line-height: 1.2; }
.badge-rge { top: 4%; right: 2%; background: #fff; }
.badge-rge img { height: 40px; width: auto; border-radius: 4px; }
.badge-rge small { color: var(--texte3); }
.badge-mitsu { bottom: 6%; left: 0; background: var(--marine); color: #fff; animation-delay: -2.5s; box-shadow: 0 16px 36px rgba(11, 37, 64, .24); }
.badge-mitsu .badge-icone { background: var(--jaune); }
.badge-mitsu small { color: #C5D6E8; }

/* ----------------------------------------------------- Bandeau défilant */
.defilant { border-top: 1px solid var(--filet); border-bottom: 1px solid var(--filet); background: #fff; overflow: hidden; padding: 18px 0; }
.defilant-piste { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.defilant-piste > div { display: flex; gap: 56px; padding-right: 56px; font-family: var(--titre); font-weight: 700; font-size: 20px; white-space: nowrap; }
.defilant-piste span:nth-child(even) { color: var(--bleu); }

/* ---------------------------------------------------------- Sections */
.section { padding-top: 96px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 32px; }
.surtitre { font-weight: 700; color: var(--bleu); font-size: 15px; }
.titre-section { margin: 0; font-family: var(--titre); font-weight: 800; font-size: clamp(34px, 4.4vw, 52px); line-height: 1.04; letter-spacing: -.03em; }
.intro-section { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.intro-section p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--texte2); }

/* Onglets « De quoi avez-vous besoin ? » */
.onglets { display: flex; flex-wrap: wrap; gap: 10px; }
.tab { background: #fff; color: var(--marine); border: 1.5px solid var(--bord); padding: 12px 20px; border-radius: 999px; font-weight: 700; font-size: 16px; cursor: pointer; min-height: 46px; transition: all .25s; }
.tab:hover { border-color: var(--bleu); }
.tab[aria-selected="true"] { background: var(--marine); color: #fff; border-color: var(--marine); }
.panneaux { background: #fff; border-radius: 28px; box-shadow: 0 24px 60px rgba(11, 37, 64, .08); overflow: hidden; }
.besoin { display: flex; flex-wrap: wrap; }
.js .besoin:not(.on) { display: none; }
.no-js .besoin + .besoin { border-top: 1px solid var(--filet); }
.besoin-texte { flex: 999 1 460px; min-width: 0; padding: 48px; display: flex; flex-direction: column; gap: 18px; }
.etiquette { align-self: flex-start; background: var(--clair); color: var(--bleu-texte); font-weight: 700; font-size: 14px; padding: 6px 12px; border-radius: 999px; }
.etiquette-urgence { background: #FFF3D6; color: #7A5300; }
.besoin h3 { margin: 0; font-family: var(--titre); font-weight: 800; font-size: clamp(28px, 3vw, 38px); letter-spacing: -.02em; line-height: 1.08; }
.besoin p { margin: 0; font-size: 17.5px; line-height: 1.65; color: var(--texte2); }
.besoin ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 20px; font-weight: 600; }
.besoin li::before { content: "• "; color: var(--bleu); }
.besoin .btn { align-self: flex-start; margin-top: 6px; }
.besoin-visuel { flex: 1 1 360px; min-width: 0; min-height: 320px; background: #EAF3FC; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.besoin-visuel img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.besoin-visuel svg { width: 46%; max-width: 220px; height: auto; }

/* Cartes services */
.groupe { display: flex; flex-direction: column; gap: 16px; }
.groupe h3 { margin: 0; display: flex; align-items: center; gap: 12px; font-family: var(--titre); font-weight: 800; font-size: 26px; }
.pictogramme { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card { background: #fff; border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 10px; transition: transform .35s var(--ease), box-shadow .35s; }
.card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(11, 37, 64, .12); }
.card-titre { font-weight: 800; font-size: 19px; }
.card-texte { color: var(--texte2); line-height: 1.6; }

/* Focus pompe à chaleur */
.pac { padding: 72px 24px; }
.pac-in { max-width: 1240px; margin: 0 auto; background: var(--marine); color: #fff; border-radius: 32px; padding: 64px 48px; display: flex; flex-wrap: wrap; gap: 48px; position: relative; overflow: hidden; }
.pac-blob { position: absolute; width: 420px; height: 420px; right: -120px; top: -140px; background: var(--bleu); opacity: .45; animation: blob 14s ease-in-out infinite; }
.pac-texte { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; position: relative; }
.pac-texte .surtitre { color: var(--jaune); }
.pac-texte p { margin: 0; font-size: 18px; line-height: 1.65; color: #C5D6E8; }
.pac-texte .btn { align-self: flex-start; }
.pac-cartes { flex: 1 1 460px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; position: relative; }
.pac-carte { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.pac-carte b { font-size: 18px; }
.pac-carte span { color: #C5D6E8; font-size: 15px; line-height: 1.5; }

/* Méthode */
.etapes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.etape { padding: 28px; gap: 12px; }
.etape-num { width: 52px; height: 52px; border-radius: 16px; background: var(--clair); color: var(--bleu); display: inline-flex; align-items: center; justify-content: center; font-family: var(--titre); font-weight: 800; font-size: 24px; }
.etape b { font-size: 20px; }
.etape-jaune { background: var(--jaune); }
.etape-jaune .etape-num { background: var(--marine); color: var(--jaune); }
.etape-jaune .card-texte { color: #3B2A00; }

/* Avis */
.avis { background: #fff; border-top: 1px solid var(--filet); border-bottom: 1px solid var(--filet); }
.avis-in { padding-top: 80px; padding-bottom: 80px; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.avis-titre { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.avis-titre h2 { font-size: clamp(32px, 3.6vw, 44px); }
.avis-note { font-size: 18px; color: var(--texte2); }
.avis-grille { flex: 2 1 560px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.avis-carte { background: var(--fond); gap: 12px; }
.avis-carte p { margin: 0; line-height: 1.6; }
.etoiles { color: #C98A00; font-size: 18px; letter-spacing: 2px; }
.avis-auteur { font-weight: 700; font-size: 14.5px; }

/* --------------------------------------------------------- Devis */
.devis { display: flex; flex-wrap: wrap; gap: 48px; padding-top: 96px; padding-bottom: 96px; }
.devis-texte { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.devis-texte p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--texte2); }
.coordonnees { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.coordonnees li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; }
.coordonnees svg { flex: none; margin-top: 1px; }
.coordonnees a { font-weight: 700; }
.coordonnees .tels { display: flex; flex-direction: column; gap: 2px; }

.formulaire { flex: 1 1 560px; min-width: 0; background: #fff; border-radius: 28px; box-shadow: 0 24px 60px rgba(11, 37, 64, .1); padding: 36px; display: flex; flex-direction: column; gap: 26px; }
.progression { display: flex; flex-direction: column; gap: 10px; }
.progression-texte { display: flex; justify-content: space-between; font-weight: 700; font-size: 14px; color: var(--texte3); }
.progression-barre { height: 8px; border-radius: 999px; background: var(--clair); overflow: hidden; }
.progression-barre div { height: 100%; width: 33%; background: var(--bleu); border-radius: 999px; transition: width .5s var(--ease); }
.no-js .progression { display: none; }

.etape-form { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.js .etape-form:not(.on) { display: none; }
.no-js .etape-form + .etape-form { box-shadow: 0 -1px 0 var(--filet); padding-top: 26px; }
.etape-form legend { padding: 0; margin: 0 0 18px; font-family: var(--titre); font-weight: 800; font-size: 28px; line-height: 1.15; }
.question { margin: 0; font-weight: 700; font-size: 15px; }
.choix { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.choix-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choix-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chip { position: relative; display: flex; align-items: center; min-height: 54px; padding: 14px 16px; border-radius: 14px; background: #fff; color: var(--marine); border: 1.5px solid var(--bord); font-weight: 700; font-size: 15.5px; cursor: pointer; transition: all .2s; }
.chip:hover { border-color: var(--bleu); transform: translateY(-1px); }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:has(input:checked) { background: var(--clair); border-color: var(--bleu); color: var(--bleu-texte); box-shadow: inset 0 0 0 1px var(--bleu); }
.chip:has(input:focus-visible) { outline: 3px solid var(--bleu); outline-offset: 2px; }
.chip small { display: block; font-weight: 500; font-size: 13px; color: var(--texte3); }
.chip-centre { justify-content: center; text-align: center; }
.champs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.champ { display: flex; flex-direction: column; gap: 8px; font-weight: 600; font-size: 14.5px; min-width: 0; }
.champ-large { grid-column: 1 / -1; }
.champ small { font-weight: 500; color: var(--texte3); }
.field { width: 100%; padding: 14px; border: 1.5px solid var(--bord); border-radius: 12px; min-height: 50px; background: #fff; font-weight: 500; transition: border-color .2s, box-shadow .2s; }
.field:focus { outline: none; border-color: var(--bleu); box-shadow: 0 0 0 4px rgba(22, 104, 176, .15); }
textarea.field { min-height: 96px; resize: vertical; }
.field[aria-invalid="true"] { border-color: var(--erreur); }
.erreur { color: var(--erreur); font-weight: 600; font-size: 14px; margin: 0; }
.erreur-globale { background: #FDECEC; color: #8A1C12; border-radius: 12px; padding: 12px 14px; font-weight: 600; margin: 0; }

.plans { border: 1.5px dashed var(--bleu); background: #F7FBFF; border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.plans-titre { margin: 0; font-weight: 800; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.plans p { margin: 0; color: var(--texte2); font-size: 14.5px; line-height: 1.5; }
.deposer { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 20px; border-radius: 12px; background: #fff; border: 1.5px solid var(--bord); cursor: pointer; transition: border-color .2s, background-color .2s; }
.deposer:hover, .deposer.survol { border-color: var(--bleu); background: var(--clair); }
.deposer input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.deposer:has(input:focus-visible) { outline: 3px solid var(--bleu); outline-offset: 2px; }
.deposer b { color: var(--bleu); }
.deposer span { font-size: 13.5px; color: var(--texte3); }
.liste-fichiers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; }
.liste-fichiers li { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; border: 1px solid var(--bord); border-radius: 10px; padding: 8px 12px; }
.liste-fichiers li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.liste-fichiers small { color: var(--texte3); flex: none; }
.case { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.5; cursor: pointer; }
.case input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--bleu); }
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.navigation-form { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.navigation-form .btn:last-child { margin-left: auto; }
.no-js .navigation-form .btn-etape { display: none; }

.merci { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; padding: 28px 0; }
.merci-icone { width: 88px; height: 88px; border-radius: 50%; background: var(--clair); display: inline-flex; align-items: center; justify-content: center; animation: pop .6s var(--ease) both; }
.merci-icone path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .5s .35s ease-out forwards; }
.merci h3, .merci h1 { margin: 0; font-family: var(--titre); font-weight: 800; font-size: 30px; }
.merci p { margin: 0; color: var(--texte2); line-height: 1.6; max-width: 420px; }

/* --------------------------------------------------------- Pied de page */
.pied { background: var(--marine); color: #C5D6E8; padding: 56px 0 96px; }
.pied-in { display: flex; flex-direction: column; gap: 32px; }
.pied-colonnes { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.pied-col { display: flex; flex-direction: column; gap: 8px; }
.pied-col:first-child { max-width: 340px; gap: 10px; }
.pied-marque { font-family: var(--titre); font-weight: 800; font-size: 26px; color: #fff; }
.pied-titre { color: #fff; font-weight: 700; }
.pied a { color: #C5D6E8; text-decoration: none; }
.pied a:hover { color: #fff; text-decoration: underline; }
.pied-bas { border-top: 1px solid #23415F; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13.5px; color: #9FB4CA; }
.pied-bas a { color: #C5D6E8; text-decoration: underline; }

/* Barre d'appel mobile */
.barre-mobile { display: none; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30; gap: 10px; }
.barre-mobile a { flex: 1; display: inline-flex; align-items: center; justify-content: center; padding: 15px; border-radius: 14px; font-weight: 800; text-decoration: none; box-shadow: 0 10px 24px rgba(11, 37, 64, .25); }
.barre-mobile a:first-child { background: var(--jaune); color: var(--marine); }
.barre-mobile a:last-child { background: var(--bleu); color: #fff; font-weight: 700; }

/* ------------------------------------------------------ Pages simples */
.page { padding-top: 56px; padding-bottom: 96px; }
.page-carte { background: #fff; border-radius: 28px; padding: 48px; box-shadow: 0 24px 60px rgba(11, 37, 64, .06); max-width: 860px; }
.page-carte h1 { margin: 0 0 24px; font-family: var(--titre); font-weight: 800; font-size: clamp(32px, 4vw, 46px); letter-spacing: -.03em; line-height: 1.05; }
.page-carte h2 { margin: 32px 0 10px; font-family: var(--titre); font-weight: 800; font-size: 22px; }
.page-carte p, .page-carte li { color: var(--texte2); line-height: 1.7; }

/* ------------------------------------------------------------ Mobile */
@media (max-width: 760px) {
    .conteneur { padding-left: 16px; padding-right: 16px; }
    .cache-mobile { display: none !important; }
    .barre-mobile { display: flex; }
    .hero { padding-top: 32px; }
    .hero-lead { font-size: 17px; }
    .section { padding-top: 64px; }
    .besoin-texte { padding: 28px 22px; }
    .besoin-visuel { min-height: 200px; }
    .pac { padding: 48px 16px; }
    .pac-in { padding: 40px 22px; }
    .pac-cartes { grid-template-columns: 1fr; }
    .formulaire { padding: 24px 18px; }
    .champs { grid-template-columns: 1fr; }
    .choix-3 { grid-template-columns: 1fr; }
    .page-carte { padding: 28px 20px; }
    .badge { padding: 9px 12px; gap: 8px; }
    .badge-rge img { height: 32px; }
    .badge b { font-size: 13px; }
    .badge small { font-size: 11.5px; }
    .devis { padding-top: 64px; padding-bottom: 64px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .souligne path, .merci-icone path { stroke-dashoffset: 0; }
    .js-reveal .reveal { opacity: 1; transform: none; }
}

/* Formulaire : bloc des plans visible seulement pour une construction neuve
   (sans JavaScript, il reste affiché avec une mention explicative). */
.js .plans:not(.ouvert) { display: none; }
.js .no-js-seul { display: none; }
.choix[aria-invalid="true"] .chip { border-color: var(--erreur); }
.formulaire form { display: flex; flex-direction: column; gap: 22px; }
.envoi-en-cours [data-envoyer] { opacity: .6; pointer-events: none; }
.formulaire .erreur { color: var(--erreur); }
section[id] { scroll-margin-top: 84px; }
.besoin-legende { position: absolute; left: 14px; bottom: 14px; right: 14px; background: rgba(11, 37, 64, .78); color: #fff; font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: 10px; backdrop-filter: blur(4px); }
.pied-marque { display: flex; align-items: center; gap: 12px; }
.pied-logo { background: #fff; border-radius: 12px; padding: 4px; display: inline-flex; }

/* ------------------------------------------------------- Réalisations */
.realisations { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.realisation { margin: 0; padding: 0; overflow: hidden; gap: 0; }
.realisation img { display: block; width: 100%; height: 100%; object-fit: cover; }
.realisation-photo, .avant-apres { aspect-ratio: 4 / 3; background: var(--clair); }
.realisation figcaption { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 4px; }
.realisation figcaption b { font-size: 17px; }
.realisation figcaption span { color: var(--texte3); font-size: 14.5px; }
.realisation .realisation-desc { color: var(--texte2); line-height: 1.55; margin-top: 4px; }
/* Avant / après : la photo « avant » recouvre la moitié gauche, le curseur déplace la limite. */
.avant-apres { position: relative; overflow: hidden; touch-action: pan-y; }
.aa-apres, .aa-avant { position: absolute; inset: 0; }
.aa-avant { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.aa-poignee { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 0 1px rgba(11, 37, 64, .25); pointer-events: none; }
.aa-poignee::after { content: "⟷"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--marine); display: flex; align-items: center; justify-content: center; font-weight: 800; box-shadow: 0 6px 16px rgba(11, 37, 64, .3); }
.aa-etiquette { position: absolute; top: 12px; background: rgba(11, 37, 64, .78); color: #fff; font-weight: 700; font-size: 13px; padding: 4px 10px; border-radius: 999px; pointer-events: none; }
.aa-gauche { left: 12px; }
.aa-droite { right: 12px; }
.aa-curseur { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.aa-curseur:focus-visible + * , .avant-apres:has(.aa-curseur:focus-visible) { outline: 3px solid var(--bleu); outline-offset: 2px; }

/* ===================================================== Pages de services */
.fil { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 22px; font-size: 14px; color: var(--texte3); }
.fil a { color: var(--texte3); text-decoration: none; }
.fil a:hover { color: var(--bleu); text-decoration: underline; }
.fil [aria-current] { color: var(--marine); font-weight: 600; }
.page-hero { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding-top: 28px; padding-bottom: 24px; }
.page-hero-texte { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.page-hero-texte .etiquette { align-self: flex-start; }
.page-hero h1 { margin: 0; font-family: var(--titre); font-weight: 800; font-size: clamp(34px, 4.6vw, 56px); line-height: 1.04; letter-spacing: -.03em; }
.page-accroche { margin: 0; font-size: 19px; line-height: 1.6; color: var(--texte2); max-width: 560px; }
.page-hero-image { flex: 1 1 420px; min-width: 0; margin: 0; border-radius: 28px; overflow: hidden; box-shadow: 0 24px 60px rgba(11, 37, 64, .14); aspect-ratio: 4 / 3; background: var(--clair); }
.page-hero-image picture, .page-hero-image img, .bloc-image-photo picture, .bloc-image-photo img, .service-carte picture, .service-carte img { display: block; width: 100%; height: 100%; object-fit: cover; }
.page-intro { padding-top: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px 40px; }
.page-intro p { margin: 0; font-size: 18px; line-height: 1.7; color: var(--texte2); }
.bloc-image { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 24px; }
.bloc-image-photo { flex: 1 1 420px; min-width: 0; margin: 0; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--clair); box-shadow: 0 24px 60px rgba(11, 37, 64, .1); }
.bloc-image-texte { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.bloc-image-texte p { margin: 0; font-size: 17.5px; line-height: 1.7; color: var(--texte2); }
.atouts-colonne { flex-direction: column; gap: 10px; font-weight: 600; color: var(--marine); }
.faq-liste { display: flex; flex-direction: column; gap: 12px; max-width: 900px; }
.faq-item { background: #fff; border-radius: 18px; padding: 0 22px; transition: box-shadow .25s; }
.faq-item[open] { box-shadow: 0 14px 30px rgba(11, 37, 64, .08); }
.faq-item summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--clair); color: var(--bleu); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 0 0 20px; line-height: 1.7; color: var(--texte2); }
.cta-bande { background: var(--marine); color: #fff; border-radius: 28px; padding: 40px 44px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; position: relative; overflow: hidden; }
.cta-bande::before { content: ""; position: absolute; width: 320px; height: 320px; right: -90px; top: -120px; background: var(--bleu); opacity: .45; border-radius: 50%; }
.cta-bande > * { position: relative; }
.cta-bande h2 { margin: 0 0 6px; font-family: var(--titre); font-weight: 800; font-size: clamp(26px, 3vw, 36px); }
.cta-bande p { margin: 0; color: #C5D6E8; font-size: 17px; }
.btn-contour { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .45); }
.btn-contour:hover { color: #fff; border-color: #fff; }
.services-cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.service-carte { padding: 0; overflow: hidden; gap: 0; text-decoration: none; color: var(--marine); }
.service-carte:hover { color: var(--marine); }
.service-carte picture { aspect-ratio: 16 / 9; overflow: hidden; }
.service-carte img { transition: transform .5s var(--ease); }
.service-carte:hover img { transform: scale(1.04); }
.service-carte-texte { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 6px; }
.service-carte-texte b { font-family: var(--titre); font-weight: 800; font-size: 21px; }
.service-carte-texte span { color: var(--texte2); line-height: 1.55; }
.service-carte-texte .service-carte-lien { color: var(--bleu); font-weight: 700; margin-top: 4px; }
.communes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.communes li { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 14px 16px; font-weight: 600; }
.navlink[aria-current="page"]::after { transform: scaleX(1); }

/* Menu mobile (sans JavaScript) */
.menu-mobile { display: none; position: relative; }
.menu-mobile summary { list-style: none; cursor: pointer; width: 48px; height: 48px; border-radius: 12px; border: 1.5px solid var(--bord); background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-mobile summary::-webkit-details-marker { display: none; }
.menu-mobile summary span { width: 20px; height: 2px; background: var(--marine); border-radius: 2px; transition: transform .25s, opacity .25s; }
.menu-mobile[open] summary span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-mobile[open] summary span:nth-child(2) { opacity: 0; }
.menu-mobile[open] summary span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu-mobile nav { position: absolute; right: 0; top: 56px; width: min(280px, calc(100vw - 32px)); background: #fff; border-radius: 18px; box-shadow: 0 20px 50px rgba(11, 37, 64, .2); padding: 10px; display: flex; flex-direction: column; z-index: 40; }
.menu-mobile nav a { padding: 12px 14px; border-radius: 10px; color: var(--marine); text-decoration: none; font-weight: 600; }
.menu-mobile nav a:hover { background: var(--fond); }

@media (max-width: 1100px) {
    .nav { gap: 8px 20px; font-size: 14.5px; }
    .entete-actions .btn-blanc { display: none; }
}
@media (max-width: 960px) {
    .nav { display: none; }
    .menu-mobile { display: block; }
}
@media (max-width: 760px) {
    .page-hero { padding-top: 16px; gap: 24px; }
    .page-accroche { font-size: 17px; }
    .page-hero-image, .bloc-image-photo { border-radius: 20px; }
    .bloc-image { padding-top: 48px; gap: 24px; }
    .cta-bande { padding: 28px 22px; }
    .page-intro p { font-size: 17px; }
}

/* En-tête : une seule ligne, logo à gauche, actions à droite. */
.entete-in { flex-wrap: nowrap; }
.entete-actions { margin-left: auto; flex: none; }
.nav { flex-wrap: nowrap; white-space: nowrap; gap: 8px 26px; }
/* Téléphone de l'en-tête réduit à son icône (le numéro est dans la page). */
.entete-actions .btn-blanc { font-size: 0; gap: 0; padding: 11px 13px; }
.logo-nom small { white-space: nowrap; }
.entete-in > .logo { flex: none; }
/* Six liens toujours sur une ligne : l'en-tête se resserre par paliers, le
   menu « burger » ne prend le relais que sur tablette et téléphone. */
@media (max-width: 1280px) { .nav { gap: 8px 20px; font-size: 15px; } }
@media (max-width: 1180px) {
    .entete-in { gap: 12px 18px; }
    .nav { gap: 8px 16px; font-size: 14.5px; }
    .logo-nom small { display: none; }
    .logo .logo-image { width: 44px; height: auto; }
}
@media (max-width: 1060px) {
    .nav { gap: 8px 13px; font-size: 14px; }
    .entete-actions .btn-blanc { display: none; }
    .entete-actions .btn { padding: 10px 14px; font-size: 15px; }
    .logo-nom b { font-size: 20px; }
}
@media (max-width: 960px) {
    .nav { display: none; }
    .menu-mobile { display: block; }
}
@media (max-width: 760px) {
    .entete-actions .btn-bleu { display: none; } /* la barre du bas propose déjà « Devis gratuit » */
    .logo-nom small { font-size: 11.5px; }
}

/* =============================================================================
   Motion design : couches d'animation supplémentaires. Chaque effet a pour
   état de repos l'état final, donc « prefers-reduced-motion » (règle plus
   haut, animation: none) affiche tout immédiatement.
   ========================================================================== */
@keyframes devoile { from { clip-path: inset(0 0 100% 0 round 28px); } to { clip-path: inset(0 0 0 0 round 28px); } }
@keyframes dezoom { from { transform: scale(1.14); } to { transform: scale(1); } }
@keyframes parallaxe { from { transform: translateY(0) scale(1.06); } to { transform: translateY(8%) scale(1.06); } }
@keyframes progression { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes trait { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes reflet { from { transform: translateX(-120%) skewX(-20deg); } to { transform: translateX(220%) skewX(-20deg); } }
@keyframes bulle { 0% { transform: translateY(0) scale(.6); opacity: 0; } 15% { opacity: .55; } 100% { transform: translateY(-260px) scale(1); opacity: 0; } }
@keyframes ouvre { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Barre de lecture en haut de page (navigateurs avec scroll-timeline). */
.progression-lecture { display: none; }
@supports (animation-timeline: scroll()) {
    .progression-lecture { display: block; position: fixed; z-index: 30; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--bleu), var(--jaune)); transform-origin: left; animation: progression linear both; animation-timeline: scroll(root); pointer-events: none; }
}

/* En-tête : ombre et resserrement une fois la page défilée (site.js). */
.entete { transition: box-shadow .35s var(--ease), background-color .35s; }
.entete-in { transition: padding .35s var(--ease); }
.entete.defile { box-shadow: 0 10px 30px rgba(11, 37, 64, .08); background: rgba(243, 248, 253, .94); }
.entete.defile .entete-in { padding-top: 8px; padding-bottom: 8px; }
.logo .logo-image { transition: transform .5s var(--ease); }
.logo:hover .logo-image { transform: rotate(-8deg) scale(1.06); }

/* Apparitions en cascade : site.js numérote les éléments voisins (--i). */
@supports (animation-timeline: view()) {
    .reveal { animation-range: entry calc(var(--i, 0) * 4%) cover calc(28% + var(--i, 0) * 4%); }
}
@supports not (animation-timeline: view()) {
    .js-reveal .reveal { transition-delay: calc(var(--i, 0) * 90ms); }
}

/* Surtitres : petit trait qui se dessine. */
.surtitre { display: inline-flex; align-items: center; gap: 10px; }
.surtitre::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--jaune); transform-origin: left; animation: trait .8s var(--ease) .3s both; }
@supports (animation-timeline: view()) {
    .surtitre::before { animation: trait linear both; animation-timeline: view(); animation-range: entry 10% cover 30%; }
}

/* Photos des pages : rideau qui s'ouvre, léger dézoom, puis parallaxe. */
.page-hero-image { animation: devoile 1.1s var(--ease) .15s both; }
.page-hero-image img { animation: dezoom 1.8s var(--ease) .15s both; }
@supports (animation-timeline: view()) {
    .page-hero-image picture { overflow: hidden; }
    .page-hero-image picture img { animation: parallaxe linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
    .bloc-image-photo { animation: devoile linear both; animation-timeline: view(); animation-range: entry 0% cover 35%; }
    .bloc-image-photo img { animation: dezoom linear both; animation-timeline: view(); animation-range: entry 0% cover 60%; }
}

/* Halo bleu et bulles qui montent derrière l'en-tête des pages. */
.page-hero { position: relative; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; z-index: -1; width: min(520px, 80vw); aspect-ratio: 1; top: -120px; right: 0; background: radial-gradient(closest-side, rgba(22, 104, 176, .15), rgba(22, 104, 176, 0)); animation: blob 12s ease-in-out infinite, float 9s ease-in-out infinite; pointer-events: none; }
.page-hero::after { content: ""; position: absolute; z-index: -1; left: 6%; bottom: 0; width: 14px; height: 14px; border-radius: 50%; background: rgba(22, 104, 176, .35); box-shadow: 60px -20px 0 -3px rgba(255, 194, 61, .55), 140px 10px 0 -5px rgba(22, 104, 176, .3), 230px -40px 0 -2px rgba(22, 104, 176, .22); animation: bulle 7s ease-in infinite; pointer-events: none; }

/* Boutons principaux : reflet au survol. */
.btn-bleu, .btn-jaune { position: relative; overflow: hidden; isolation: isolate; }
.btn-bleu::after, .btn-jaune::after { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 0; width: 40%; background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .35), rgba(255, 255, 255, 0)); transform: translateX(-120%) skewX(-20deg); pointer-events: none; }
.btn-bleu:hover::after, .btn-jaune:hover::after { animation: reflet .8s var(--ease); }
.btn-jaune { z-index: 0; }

/* Cartes : élévation plus franche, photo qui zoome, flèche qui avance. */
.service-carte { transition: transform .4s var(--ease), box-shadow .4s; }
.service-carte:hover { transform: translateY(-8px); box-shadow: 0 26px 50px rgba(11, 37, 64, .16); }
.service-carte:hover img { transform: scale(1.08); }
.service-carte-lien { transition: transform .3s var(--ease); }
.service-carte:hover .service-carte-lien { transform: translateX(6px); }
.card-titre { transition: color .25s; }
.card:hover .card-titre { color: var(--bleu); }

/* FAQ : la réponse glisse à l'ouverture, le + tourne. */
.faq-item summary::after { transition: transform .3s var(--ease); }
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item[open] > p { animation: ouvre .4s var(--ease) both; }

@media (prefers-reduced-motion: reduce) {
    .progression-lecture, .page-hero::after { display: none; }
}
