/* =====================================================================
   Brunel Plomberie · Chauffage — démo formule Pro (5 pages)
   Feuille de style commune à toutes les pages
   ===================================================================== */
@font-face { font-family: "Barlow Condensed"; src: url("fonts/barlowc-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/barlowc-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --marine: #0F2A44; --nuit: #0A1D30; --acier: #53657A; --orange: #FF8A3D; --orange-f: #E86F1F;
  --glace: #F3F6F9; --eau: #4FB3E8; --blanc: #FFFFFF; --encre: #14202C; --trait: #D7DFE7;
  --titre: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --texte: "Barlow", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --largeur: 76rem; --marge: clamp(1.25rem, 5vw, 3rem);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--blanc); color: var(--encre); font-family: var(--texte); font-size: 1.1rem; line-height: 1.6; padding-bottom: 5rem; }
@media (min-width: 48rem) { body { padding-bottom: 0; } }
h1, h2, h3 { font-family: var(--titre); font-weight: 800; line-height: .98; text-transform: uppercase; letter-spacing: .005em; margin: 0 0 1rem; color: var(--marine); }
h2 { font-size: clamp(2.4rem, 6.5vw, 4rem); }
h3 { font-size: 1.7rem; font-weight: 700; }
h1 .accent, h2 .accent { color: var(--orange); }
p { margin: 0 0 1rem; max-width: 62ch; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.conteneur { max-width: var(--largeur); margin: 0 auto; padding: 0 var(--marge); }
.section { padding: clamp(4.5rem, 10vw, 7rem) 0; }
.section--glace { background: var(--glace); }
.section--nuit { background: var(--nuit); color: #DCE5EE; }
.section--nuit h2, .section--nuit h3 { color: var(--blanc); }
.sur-titre { font-family: var(--titre); font-weight: 700; font-size: 1.05rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-f); margin-bottom: .6rem; display: flex; align-items: center; gap: .6rem; }
.sur-titre::before { content: ""; width: 1.6rem; height: 3px; background: var(--orange); }
.section--nuit .sur-titre { color: var(--orange); }
.reveal { opacity: 0; transform: translateY(1.4rem); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.visible { opacity: 1; transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Bandeaux ---------- */
.demo { background: #050F1A; color: #BFD0E0; font-size: .85rem; padding: .45rem var(--marge); text-align: center; }
.demo a { color: var(--orange); font-weight: 600; }
.urgence { background: var(--orange); color: var(--nuit); font-weight: 600; font-size: .95rem; text-align: center; padding: .45rem var(--marge); }
.urgence a { font-weight: 700; }
.urgence .point { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; background: var(--nuit); margin-right: .45rem; animation: clignote 1.4s infinite; vertical-align: middle; }
@keyframes clignote { 50% { opacity: .2; } }

/* ---------- Boutons ---------- */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 3.3rem; padding: .8rem 1.6rem; border-radius: .5rem; border: 2px solid transparent; font: 600 1.05rem/1.2 var(--texte); text-decoration: none; cursor: pointer; transition: transform .2s, background-color .2s, color .2s, box-shadow .2s; }
.bouton:hover { transform: translateY(-2px); box-shadow: 0 .8rem 1.4rem -.8rem rgba(10, 29, 48, .5); }
.bouton svg { width: 1.15em; height: 1.15em; flex: none; }
.bouton--orange { background: var(--orange); color: var(--nuit); }
.bouton--orange:hover { background: #FF9F5E; }
.bouton--marine { background: var(--marine); color: var(--blanc); }
.bouton--marine:hover { background: var(--nuit); }
.bouton--contour { border-color: currentColor; background: transparent; }
.court { display: inline; } .long { display: none; }
@media (min-width: 48rem) { .court { display: none; } .long { display: inline; } }

/* ---------- En-tête et navigation ---------- */
.entete { position: sticky; top: 0; z-index: 50; background: var(--blanc); border-bottom: 1px solid var(--trait); transition: box-shadow .3s; }
.entete.defile { box-shadow: 0 .6rem 1.4rem -1rem rgba(10, 29, 48, .35); }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; min-height: 4.5rem; gap: 1rem; }
.logo { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--marine); }
.logo svg { width: 2.4rem; height: 2.4rem; flex: none; }
.logo strong { display: block; font-family: var(--titre); font-weight: 800; font-size: 1.6rem; line-height: .9; letter-spacing: .04em; }
.logo small { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--acier); }
.nav { display: none; gap: 1.8rem; align-items: center; }
.nav a { text-decoration: none; font-weight: 600; color: var(--acier); padding: .4rem 0; border-bottom: 3px solid transparent; }
.nav a:hover { color: var(--marine); }
.nav a[aria-current="page"] { color: var(--marine); border-bottom-color: var(--orange); }
.actions { display: flex; align-items: center; gap: .5rem; }
.actions .bouton { min-height: 2.9rem; padding: .5rem 1.1rem; font-size: .98rem; }
.bouton-menu { display: inline-flex; align-items: center; justify-content: center; width: 2.9rem; height: 2.9rem; border: 2px solid var(--trait); border-radius: .5rem; background: none; color: var(--marine); cursor: pointer; }
.bouton-menu svg { width: 1.4rem; height: 1.4rem; }
.menu-mobile { border-top: 1px solid var(--trait); padding: .5rem var(--marge) 1rem; }
.menu-mobile[hidden] { display: none; }
.menu-mobile a { display: block; padding: .9rem 0; font-weight: 600; font-size: 1.15rem; text-decoration: none; border-bottom: 1px solid var(--trait); }
.menu-mobile a[aria-current="page"] { color: var(--orange-f); }
.lien-devis { display: none; }
@media (min-width: 64rem) { .nav { display: flex; } .bouton-menu, .menu-mobile { display: none !important; } .lien-devis { display: inline-flex; } }

/* ---------- Accroche (accueil) ---------- */
.accroche { position: relative; background: var(--marine); color: #DCE5EE; overflow: hidden; }
.accroche::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 3rem 3rem; }
.accroche .conteneur { position: relative; display: grid; gap: 2.5rem; align-items: center; padding-top: clamp(3rem, 8vw, 5.5rem); padding-bottom: clamp(3.5rem, 8vw, 6rem); }
@media (min-width: 62rem) { .accroche .conteneur { grid-template-columns: 1.15fr .85fr; } }
.accroche h1 { color: var(--blanc); font-size: clamp(3.2rem, 11vw, 6.6rem); }
.accroche .lead { font-size: 1.25rem; max-width: 36ch; margin-bottom: 1.8rem; }
.garanties { list-style: none; padding: 0; margin: 1.8rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.garanties li { border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: .35rem .9rem; font-size: .95rem; font-weight: 600; }
.garanties li::before { content: "✓ "; color: var(--orange); }
.boutons { display: flex; flex-wrap: wrap; gap: .8rem; }
.boutons .bouton { flex: 1 1 14rem; }
@media (min-width: 40rem) { .boutons .bouton { flex: 0 0 auto; } }
.accroche .bouton--contour { color: var(--blanc); }

.tuyaux { width: 100%; max-width: 28rem; margin: 0 auto; }
.tuyaux svg { width: 100%; height: auto; overflow: visible; }
.goutte { animation: chute 2.4s cubic-bezier(.5, 0, 1, .6) infinite; }
.goutte:nth-of-type(2) { animation-delay: .8s; } .goutte:nth-of-type(3) { animation-delay: 1.6s; }
@keyframes chute { 0% { transform: translateY(0) scale(.6); opacity: 0; } 15% { opacity: 1; transform: translateY(0) scale(1); } 85% { opacity: 1; } 100% { transform: translateY(130px); opacity: 0; } }
.flux { stroke-dasharray: 12 14; animation: coule 1.2s linear infinite; }
@keyframes coule { to { stroke-dashoffset: -26; } }
.vapeur { animation: monte 3.2s ease-in-out infinite; }
.vapeur:nth-of-type(2) { animation-delay: 1.1s; }
@keyframes monte { 0% { transform: translateY(8px); opacity: 0; } 40% { opacity: .8; } 100% { transform: translateY(-26px); opacity: 0; } }

/* ---------- Cartes services ---------- */
.services { display: grid; gap: 1.2rem; margin-top: 2.5rem; }
@media (min-width: 56rem) { .services { grid-template-columns: repeat(3, 1fr); } }
.service { position: relative; display: flex; flex-direction: column; background: var(--blanc); border: 1px solid var(--trait); border-radius: 1rem; padding: 2rem 1.6rem 1.6rem; text-decoration: none; transition: transform .3s, box-shadow .3s, border-color .3s; overflow: hidden; }
.service::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .4s; }
.service:hover { transform: translateY(-6px); box-shadow: 0 1.5rem 2.5rem -1.8rem rgba(10, 29, 48, .5); border-color: transparent; }
.service:hover::after { transform: scaleX(1); }
.service__icone { width: 3.6rem; height: 3.6rem; border-radius: .8rem; background: var(--glace); display: grid; place-items: center; margin-bottom: 1.2rem; }
.service__icone svg { width: 2rem; height: 2rem; }
.service p { color: var(--acier); font-size: 1.02rem; }
.service__lien { margin-top: auto; font-weight: 600; color: var(--marine); }
.service__lien::after { content: " ›"; color: var(--orange-f); font-size: 1.3em; }

/* ---------- Avant / après ---------- */
.comparateur { position: relative; border-radius: 1rem; overflow: hidden; box-shadow: 0 2rem 3rem -2.5rem rgba(10, 29, 48, .6); margin-top: 2.5rem; user-select: none; }
.comparateur svg { display: block; width: 100%; height: auto; }
.comparateur__apres { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos, 50%)); }
.comparateur__ligne { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 4px; margin-left: -2px; background: var(--blanc); pointer-events: none; }
.comparateur__ligne::after { content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 3.2rem; height: 3.2rem; border-radius: 50%; background: var(--orange); color: var(--nuit); font-weight: 700; display: grid; place-items: center; box-shadow: 0 .5rem 1rem rgba(0,0,0,.3); }
.comparateur input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.comparateur input:focus-visible + .comparateur__ligne::after { outline: 3px solid var(--blanc); outline-offset: 3px; }
.etiquette { position: absolute; top: 1rem; font-family: var(--titre); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; background: rgba(10, 29, 48, .8); color: var(--blanc); padding: .3rem .8rem; border-radius: .4rem; pointer-events: none; }
.etiquette--avant { left: 1rem; } .etiquette--apres { right: 1rem; background: var(--orange); color: var(--nuit); }
.note-demo { font-size: .9rem; color: var(--acier); margin-top: 1rem; }
.section--nuit .note-demo { color: #9FB1C3; }

/* ---------- Étapes ---------- */
.etapes { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 1.2rem; counter-reset: e; }
@media (min-width: 56rem) { .etapes { grid-template-columns: repeat(4, 1fr); } }
.etape { counter-increment: e; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 1rem; padding: 1.6rem 1.4rem; }
.etape::before { content: counter(e, decimal-leading-zero); display: block; font-family: var(--titre); font-weight: 800; font-size: 3rem; line-height: 1; color: var(--orange); margin-bottom: .6rem; }
.etape p { font-size: 1rem; margin: 0; }

/* ---------- Zone d'intervention ---------- */
.zone { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 60rem) { .zone { grid-template-columns: 1fr 1fr; } }
.radar { position: relative; aspect-ratio: 1; max-width: 26rem; margin: 0 auto; width: 100%; }
.radar svg { width: 100%; height: 100%; }
.onde { transform-origin: 200px 200px; animation: onde 3s ease-out infinite; }
.onde:nth-of-type(2) { animation-delay: 1s; } .onde:nth-of-type(3) { animation-delay: 2s; }
@keyframes onde { 0% { transform: scale(.2); opacity: .9; } 100% { transform: scale(1); opacity: 0; } }
.communes { list-style: none; padding: 0; margin: 1.5rem 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.communes li { background: var(--glace); border-radius: 999px; padding: .35rem .9rem; font-weight: 600; font-size: .98rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 52rem; margin-top: 2rem; }
.faq details { border-bottom: 1px solid var(--trait); }
.faq summary { list-style: none; cursor: pointer; padding: 1.3rem 3rem 1.3rem 0; position: relative; font-weight: 600; font-size: 1.15rem; color: var(--marine); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 2.2rem; height: 2.2rem; border-radius: .4rem; background: var(--glace); display: grid; place-items: center; font-weight: 700; color: var(--orange-f); transition: transform .3s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding-bottom: 1.3rem; color: var(--acier); }

/* ---------- Appel à l'action ---------- */
.cta { background: var(--orange); color: var(--nuit); }
.cta .conteneur { display: grid; gap: 1.5rem; align-items: center; padding-top: 3.5rem; padding-bottom: 3.5rem; }
@media (min-width: 56rem) { .cta .conteneur { grid-template-columns: 1fr auto; } }
.cta h2 { color: var(--nuit); font-size: clamp(2.2rem, 5vw, 3.2rem); margin: 0; }
.cta p { margin: .5rem 0 0; font-weight: 600; }

/* ---------- Pages de service ---------- */
.entete-page { background: var(--marine); color: #DCE5EE; position: relative; overflow: hidden; }
.entete-page::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 3rem 3rem; }
.entete-page .conteneur { position: relative; padding-top: clamp(2.5rem, 7vw, 4.5rem); padding-bottom: clamp(3rem, 7vw, 4.5rem); display: grid; gap: 2rem; align-items: center; }
@media (min-width: 60rem) { .entete-page .conteneur { grid-template-columns: 1.4fr .6fr; } .grande-icone { display: grid; } }
.entete-page h1 { color: var(--blanc); font-size: clamp(2.8rem, 9vw, 5.2rem); }
.fil { font-size: .9rem; margin-bottom: 1.2rem; color: #9FB1C3; }
.fil a { color: #DCE5EE; }
.grande-icone { display: none; width: 11rem; height: 11rem; border-radius: 2rem; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); display: grid; place-items: center; margin: 0 auto; }
.grande-icone svg { width: 6rem; height: 6rem; }
.prestations { display: grid; gap: 1rem; margin-top: 2rem; list-style: none; padding: 0; }
@media (min-width: 50rem) { .prestations { grid-template-columns: 1fr 1fr; } }
.prestations li { display: flex; gap: 1rem; align-items: flex-start; background: var(--glace); border-radius: .8rem; padding: 1.2rem 1.2rem; }
.prestations li::before { content: ""; flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12l5 5 9-10' stroke='%230A1D30' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat; margin-top: .15rem; }
.prestations strong { display: block; color: var(--marine); }
.prestations span { color: var(--acier); font-size: 1rem; }
.encart { background: var(--nuit); color: #DCE5EE; border-radius: 1rem; padding: 2rem; border-left: 6px solid var(--orange); margin-top: 2.5rem; }
.encart h3 { color: var(--blanc); }
.encart p:last-child { margin-bottom: 0; }

/* ---------- Devis : formulaire en étapes ---------- */
.devis-grille { display: grid; gap: 3rem; }
@media (min-width: 62rem) { .devis-grille { grid-template-columns: 1.4fr .6fr; } }
.carte-form { background: var(--blanc); border: 1px solid var(--trait); border-radius: 1.2rem; padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: 0 2rem 3rem -2.5rem rgba(10, 29, 48, .45); }
.progression { display: flex; gap: .5rem; margin-bottom: 2rem; }
.progression span { flex: 1; height: .45rem; border-radius: 999px; background: var(--trait); transition: background-color .4s; }
.progression span.fait { background: var(--orange); }
.etape-form[hidden] { display: none; }
.etape-form legend { font-family: var(--titre); font-weight: 800; font-size: 2rem; text-transform: uppercase; color: var(--marine); margin-bottom: 1.2rem; padding: 0; }
.etape-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.choix { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); }
.choix label { position: relative; display: flex; align-items: center; gap: .8rem; border: 2px solid var(--trait); border-radius: .8rem; padding: 1rem; cursor: pointer; font-weight: 600; transition: border-color .2s, background-color .2s; }
.choix input { position: absolute; opacity: 0; }
.choix svg { width: 2rem; height: 2rem; flex: none; }
.choix label:has(input:checked) { border-color: var(--orange); background: #FFF4EC; }
.choix label:has(input:focus-visible) { outline: 3px solid var(--orange); outline-offset: 2px; }
.champ { margin-bottom: 1.1rem; }
.champ label { display: block; font-weight: 600; margin-bottom: .35rem; }
.champ input, .champ select, .champ textarea { width: 100%; font: inherit; font-size: 1.05rem; border: 2px solid #C5D0DB; border-radius: .6rem; padding: .75rem .9rem; min-height: 3.2rem; background: var(--blanc); color: var(--encre); }
.champ textarea { min-height: 7rem; }
.champ input:focus, .champ select:focus, .champ textarea:focus { border-color: var(--marine); outline: 3px solid #FFD3B5; outline-offset: 0; }
.ligne { display: grid; gap: 1rem; }
@media (min-width: 36rem) { .ligne { grid-template-columns: 1fr 1fr; } }
.nav-form { display: flex; justify-content: space-between; gap: .8rem; margin-top: 1.5rem; }
.aside-devis { display: grid; gap: 1rem; align-content: start; }
.aside-devis .bloc { background: var(--glace); border-radius: 1rem; padding: 1.5rem; }
.aside-devis .bloc strong { font-family: var(--titre); font-size: 1.5rem; text-transform: uppercase; color: var(--marine); display: block; margin-bottom: .3rem; }

/* ---------- Pied ---------- */
.pied { background: var(--nuit); color: #9FB1C3; padding: 3.5rem 0 2.5rem; font-size: .95rem; }
.pied .grille-pied { display: grid; gap: 2rem; }
@media (min-width: 56rem) { .pied .grille-pied { grid-template-columns: 1.4fr 1fr 1fr; } }
.pied .logo { color: var(--blanc); margin-bottom: 1rem; }
.pied .logo small { color: #9FB1C3; }
.pied h3 { color: var(--blanc); font-size: 1.3rem; }
.pied ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.pied a { color: #DCE5EE; }
.pied__demo { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2rem; padding-top: 1.2rem; }
.pied__demo a { color: var(--orange); }

/* ---------- Barre fixe téléphone ---------- */
.barre { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: flex; gap: .6rem; padding: .7rem var(--marge) calc(.7rem + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--trait); }
.barre .bouton { flex: 1; min-height: 3.1rem; }
@media (min-width: 48rem) { .barre { display: none; } }

/* ---------- Bulle démonstration ---------- */
.bulle { position: fixed; left: 50%; bottom: 6rem; transform: translate(-50%, 1rem); width: min(92vw, 27rem); background: var(--nuit); color: #E6EEF5; padding: 1rem 1.2rem; border-radius: .8rem; border-left: 5px solid var(--orange); font-size: .98rem; line-height: 1.5; box-shadow: 0 1rem 2rem -1rem rgba(0,0,0,.6); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 70; }
.bulle.visible { opacity: 1; transform: translate(-50%, 0); }
.bulle strong { color: var(--orange); display: block; margin-bottom: .2rem; }
@media (min-width: 48rem) { .bulle { bottom: 2rem; } }
