/* Zouzou Nett' — feuille de style commune à toutes les pages.
   Layout: bande "mer" bleu marine en tête, puis sections claires qui alternent; le simulateur de prix est le moment fort. */
@font-face { font-family: "Lexend"; src: url("fonts/lexend-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree-latin.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }

:root {
  --marine: #08427F;
  --azur: #1AADE0;
  --soleil: #F6C700;
  --bg: #FFFFFF;
  --sable: #F3F7FB;
  --fg: #0E2238;
  --muted: #4B5D72;
  --line: #DCE6F0;
  --card: #FFFFFF;
  --hero-bg: #08427F;
  --hero-fg: #FFFFFF;
  --hero-muted: #C9DBEE;
  --btn-bg: #F6C700;
  --btn-fg: #0E2238;
  --link: #08427F;
  --danger: #B42318;
  --todo-bg: #FFF3BF;
  --todo-fg: #5C4300;
  --display: "Lexend", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1726; --sable: #0F1E31; --fg: #E8F0F8; --muted: #A3B5C9; --line: #1F3550;
    --card: #12243A; --hero-bg: #06305C; --hero-fg: #FFFFFF; --hero-muted: #B7CDE4;
    --btn-bg: #F6C700; --btn-fg: #0E2238; --link: #6FCBF0; --danger: #FF8A80;
    --todo-bg: #4A3B00; --todo-fg: #FFE58A; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B1726; --sable: #0F1E31; --fg: #E8F0F8; --muted: #A3B5C9; --line: #1F3550;
  --card: #12243A; --hero-bg: #06305C; --hero-fg: #FFFFFF; --hero-muted: #B7CDE4;
  --btn-bg: #F6C700; --btn-fg: #0E2238; --link: #6FCBF0; --danger: #FF8A80;
  --todo-bg: #4A3B00; --todo-fg: #FFE58A; color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 17px; line-height: 1.6; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--hero-bg); }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 600; color: var(--fg); }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0; }
a { color: var(--link); }
:focus-visible { outline: 3px solid var(--azur); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.eyebrow { font-family: var(--display); font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--azur); }
.lead { color: var(--muted); max-width: 60ch; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 1rem; padding: 14px 22px; border-radius: 999px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn[aria-busy="true"] { opacity: .7; cursor: progress; transform: none; }
.btn-sun { background: var(--btn-bg); color: var(--btn-fg); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* En-tête */
header.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--hero-bg); color: var(--hero-fg); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--hero-fg); text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 1.25rem; white-space: nowrap; }
.brand svg { width: 46px; height: 30px; }
nav.menu { display: flex; align-items: center; gap: 22px; }
nav.menu a { color: var(--hero-muted); text-decoration: none; font-weight: 500; }
nav.menu a:hover { color: var(--hero-fg); }
nav.menu .btn { padding: 10px 18px; color: var(--btn-fg); }
@media (max-width: 760px) { nav.menu a:not(.btn) { display: none; } }

/* Hero */
.hero { background: var(--hero-bg); color: var(--hero-fg); position: relative; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: 48px; align-items: center; padding-block: 56px 96px; }
.hero h1 { font-size: clamp(2.2rem, 5.6vw, 3.9rem); font-weight: 700; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; color: var(--soleil); }
.hero .lead { color: var(--hero-muted); margin-top: 20px; font-size: 1.15rem; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; padding: 0; list-style: none; }
.chips li { font-size: .92rem; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.1); color: var(--hero-fg); }
.mark { width: 100%; max-width: 420px; justify-self: center; }
.mark .ray { animation: rise 1.2s ease-out both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.wave-sep { display: block; width: 100%; height: 60px; position: absolute; bottom: -1px; left: 0; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); padding-block: 36px 84px; gap: 24px; }
  .mark { max-width: 220px; order: -1; justify-self: start; }
}

section { padding-block: 80px; }
section.alt { background: var(--sable); }
.head { display: grid; gap: 14px; margin-bottom: 40px; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .services { grid-template-columns: minmax(0, 1fr); } }
.svc { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: grid; gap: 14px; align-content: start; }
.svc .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--sable); display: grid; place-items: center; color: var(--azur); }
.svc .ic svg { width: 26px; height: 26px; }
.svc .price { font-family: var(--display); font-weight: 600; color: var(--fg); }
.svc .price small { font-family: var(--body); font-weight: 400; color: var(--muted); font-size: .9rem; }
.svc ul { margin: 0; padding-left: 20px; color: var(--muted); display: grid; gap: 4px; }

/* Simulateur */
.sim { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: var(--card); }
@media (max-width: 860px) { .sim { grid-template-columns: minmax(0, 1fr); } }
.sim-in { padding: 32px; display: grid; gap: 26px; align-content: start; }
.sim-out { background: var(--hero-bg); color: var(--hero-fg); padding: 32px; display: grid; gap: 18px; align-content: center; }
.field { display: grid; gap: 10px; }
.field > span, .field legend { font-family: var(--display); font-weight: 600; font-size: .95rem; padding: 0; }
fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 500; }
.seg input:checked + span { background: var(--marine); border-color: var(--marine); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--azur); outline-offset: 2px; }
.range-row { display: flex; align-items: center; gap: 16px; }
.range-row input { flex: 1; accent-color: var(--azur); min-width: 0; }
.range-row output { font-family: var(--display); font-weight: 600; min-width: 3.5ch; font-variant-numeric: tabular-nums; }
.big { font-family: var(--display); font-size: clamp(2.6rem, 7vw, 3.6rem); font-weight: 700; line-height: 1; color: var(--soleil); font-variant-numeric: tabular-nums; }
.sim-out .row { display: flex; justify-content: space-between; gap: 12px; color: var(--hero-muted); border-top: 1px solid rgba(255,255,255,.15); padding-top: 12px; font-variant-numeric: tabular-nums; }
.sim-out .row b { color: var(--hero-fg); font-weight: 600; }
.note { font-size: .88rem; color: var(--hero-muted); }

/* Pourquoi */
.why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 900px) { .why { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .why { grid-template-columns: minmax(0, 1fr); } }
.why div { display: grid; gap: 8px; align-content: start; }
.why svg { width: 34px; height: 34px; color: var(--azur); }
.why p { color: var(--muted); }

/* Étapes */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.steps li { display: grid; gap: 8px; padding-top: 20px; border-top: 3px solid var(--azur); }
.steps li::before { counter-increment: step; content: "Étape " counter(step); font-family: var(--display); font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--azur); }
.steps p { color: var(--muted); }

/* Zone */
.zone { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
@media (max-width: 860px) { .zone { grid-template-columns: minmax(0, 1fr); } }
.towns { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.towns li { padding: 8px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 500; }
.towns li.main { background: var(--marine); border-color: var(--marine); color: #fff; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; }
.faq summary { font-family: var(--display); font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--azur); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin-top: 12px; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; }
@media (max-width: 860px) { .contact { grid-template-columns: minmax(0, 1fr); } }
.direct { display: grid; gap: 16px; align-content: start; }
.direct .line { display: grid; gap: 2px; }
.direct .line span { font-size: .85rem; color: var(--muted); }
.direct .line a, .direct .line b { font-family: var(--display); font-size: 1.3rem; font-weight: 600; color: var(--fg); text-decoration: none; overflow-wrap: anywhere; }
.direct .line a:hover { color: var(--link); text-decoration: underline; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 28px; display: grid; gap: 16px; align-content: start; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 520px) { .two { grid-template-columns: minmax(0, 1fr); } }
form.devis label { display: grid; gap: 6px; font-weight: 500; font-size: .95rem; }
form.devis input, form.devis select, form.devis textarea { font: inherit; color: var(--fg); background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%; }
form.devis textarea { min-height: 110px; resize: vertical; }
form.devis [aria-invalid="true"] { border-color: var(--danger); }
.field-err { color: var(--danger); font-size: .88rem; font-weight: 500; min-height: 0; }
.field-err:empty { display: none; }
form.devis .btn { justify-self: start; }
.optin { font-size: .85rem; color: var(--muted); }
.done { text-align: left; }
.done .tick { width: 52px; height: 52px; border-radius: 50%; background: var(--sable); color: var(--azur); display: grid; place-items: center; }
.done .tick svg { width: 28px; height: 28px; }
.done p { color: var(--muted); }
.done .btn-ghost { justify-self: start; color: var(--fg); }

/* Pied de page */
footer { background: var(--hero-bg); color: var(--hero-muted); font-size: .9rem; }
footer .wrap { display: grid; gap: 14px; padding-block: 32px; }
footer .cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer b { color: var(--hero-fg); font-family: var(--display); }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--hero-muted); }
footer a:hover { color: var(--hero-fg); }

/* Barre d'action fixe sur mobile */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--hero-bg); padding: 10px var(--gutter-r) calc(10px + env(safe-area-inset-bottom, 0px)) var(--gutter-l); box-shadow: 0 -4px 16px rgba(4, 20, 40, .25); }
  .mobile-bar .btn { padding: 12px 14px; }
  .mobile-bar .btn-ghost { color: var(--hero-fg); }
  body.has-bar { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}

/* Pages de texte (mentions légales, CGV, confidentialité, 404) */
.doc { padding-block: 56px 80px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 700; color: var(--fg); }
.doc .updated { color: var(--muted); margin-top: 10px; }
.doc h2 { font-size: 1.35rem; margin-top: 40px; }
.doc p, .doc li { color: var(--muted); }
.doc p + p, .doc h2 + p, .doc h2 + ul, .doc p + ul, .doc ul + p { margin-top: 12px; }
.doc ul { padding-left: 22px; display: grid; gap: 6px; margin: 0; }
.doc strong { color: var(--fg); font-weight: 600; }
.todo { background: var(--todo-bg); color: var(--todo-fg); padding: 1px 6px; border-radius: 6px; font-weight: 600; }
.notfound { text-align: left; padding-block: 72px 96px; }
.notfound .mark { max-width: 260px; justify-self: start; margin-bottom: 24px; }
.notfound p { color: var(--muted); margin-top: 14px; max-width: 50ch; }
.notfound .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.notfound .btn-ghost { color: var(--fg); }
