/* Couleurs de l'OM : bleu ciel, blanc et bleu marine. Hero marine → ciel, bandeau d'appel bleu ciel. */
:root {
  --bg: #f4f9fc;
  --surface: #ffffff;
  --ink: #10263a;
  --muted: #536878;
  --line: #d6e7f1;
  --night: #0a3d62;
  --night-2: #1d8fc4;
  --on-night: #ffffff;
  --on-night-muted: #d6ecf8;
  --accent-strong: #8fdcfa;
  --pine: #0a3d62;
  --mint: #e2f4fc;
  --accent: #2faee0;
  --accent-ink: #06192b;
  --sea: #0a6aa6;
  --todo-bg: #fff1bf;
  --todo-fg: #6b4f00;
  --font-display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --r-lg: 18px;
  --r-md: 12px;
  --shadow: 0 1px 2px rgb(23 49 59 / .06), 0 10px 28px -12px rgb(23 49 59 / .16);
  --wrap: 76rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #07131e; --surface: #0f2232; --ink: #e8f2f8; --muted: #a3b8c7; --line: #1c3a52;
    --night: #051a2b; --night-2: #0d5d8f; --on-night: #ffffff; --on-night-muted: #cfe6f3; --accent-strong: #8fdcfa; --sea: #6cc9ef; --mint: #12324a; --todo-bg: #3b2f08; --todo-fg: #f7d97c;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 12px 32px -12px rgb(0 0 0 / .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #07131e; --surface: #0f2232; --ink: #e8f2f8; --muted: #a3b8c7; --line: #1c3a52;
  --night: #051a2b; --night-2: #0d5d8f; --on-night: #ffffff; --on-night-muted: #cfe6f3; --accent-strong: #8fdcfa; --sea: #6cc9ef; --mint: #12324a; --todo-bg: #3b2f08; --todo-fg: #f7d97c;
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 12px 32px -12px rgb(0 0 0 / .6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6; }
img, svg { max-width: 100%; }
a { color: var(--sea); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.02; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.3rem, 1.3rem + 3.8vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); font-weight: 800; }
h3 { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; max-width: 62ch; }
.lead { font-size: 1.25rem; line-height: 1.5; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sea); }
.eyebrow::before { content: ""; width: 18px; height: 3px; border-radius: 2px; background: var(--accent); }
.todo { display: inline-block; background: var(--todo-bg); color: var(--todo-fg); font-family: var(--font-mono); font-size: .82em; padding: 0 .45em; border-radius: 4px; white-space: normal; }

/* Bandeau provisoire */
.draft { background: var(--pine); color: #fff; font-size: .8rem; font-weight: 600; text-align: center; padding: 6px 16px; }

/* En-tête */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand svg { width: 46px; height: 46px; flex: none; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.02rem; line-height: 1.05; letter-spacing: -0.01em; }
.brand-name small { display: block; font-family: var(--font-body); font-weight: 600; font-size: .7rem; letter-spacing: .12em; color: var(--muted); margin-top: 4px; }
.brand-name.brand-solo { font-size: 1.7rem; line-height: 1; letter-spacing: -0.03em; color: var(--ink); }
.brand-name.brand-solo .vox { color: #2faee0; }
.brand-name.brand-solo small { font-size: .62rem; letter-spacing: .1em; margin-top: 5px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { white-space: nowrap; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; padding: 8px 10px; border-radius: 999px; }
.nav a:hover { background: var(--bg); }
.nav a[aria-current="page"] { background: #1580b2; color: #fff; }
.menu-toggle { display: none; }
@media (max-width: 1240px) {
  .site-header .wrap { flex-wrap: nowrap; position: relative; }
  .brand { flex: 0 1 auto; min-width: 0; }
  .brand-name.brand-solo small { white-space: normal; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 12px; background: transparent; color: var(--ink); cursor: pointer; flex: none; }
  .menu-toggle:hover { background: var(--bg); }
  .bars { position: relative; display: block; width: 26px; height: 18px; }
  .bars span { position: absolute; left: 0; width: 100%; height: 3px; border-radius: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease, top .2s ease; }
  .bars span:nth-child(1) { top: 0; } .bars span:nth-child(2) { top: 7.5px; } .bars span:nth-child(3) { top: 15px; }
  .menu-toggle[aria-expanded="true"] .bars span:nth-child(1) { top: 7.5px; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] .bars span:nth-child(3) { top: 7.5px; transform: rotate(-45deg); }
  .nav a { padding: 12px 14px; font-size: 1rem; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 8px 16px 16px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px -18px rgb(0 0 0 / .35); max-height: calc(100vh - 140px); overflow-y: auto; }
  .nav.open { display: flex; }
}

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 22px; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 0; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: #1580b2; color: #fff; box-shadow: 0 8px 20px -8px rgb(21 128 178 / .55); }
.btn-primary:hover { background: #126f9c; }
.btn-ghost { background: transparent; color: inherit; border: 1.5px solid currentColor; }
.phone { font-family: var(--font-mono); font-weight: 600; }

/* Hero */
.hero { background: linear-gradient(110deg, var(--night) 0%, #11568a 55%, var(--night-2) 100%); color: var(--on-night); padding-block: clamp(40px, 7vw, 96px); overflow: hidden; }
.hero .wrap { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 30rem), 1fr)); align-items: center; }
.hero-text { display: grid; gap: 22px; min-width: 0; }
.hero .eyebrow { color: var(--accent); }
.hero .lead { color: var(--on-night-muted); }
.hero h1 em { font-style: normal; color: var(--accent-strong); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.trust { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.trust li { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .2); }
.trust li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero-art { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 5 / 4; max-width: 100%; box-shadow: 0 30px 60px -30px rgb(0 0 0 / .7); }
.hero-art svg { display: block; width: 100%; height: 100%; }
.badge-provisoire { position: absolute; left: 12px; bottom: 12px; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: rgb(10 61 98 / .8); color: #fff; padding: 4px 10px; border-radius: 999px; }
.hero.compact { padding-block: clamp(36px, 5vw, 64px); }
.breadcrumb { font-size: .85rem; color: var(--on-night-muted); }
.breadcrumb a { color: var(--on-night-muted); }

/* Sections */
section.block { padding-block: clamp(48px, 7vw, 96px); }
.section-head { display: grid; gap: 12px; margin-bottom: 32px; }
.section-head h2 { color: var(--sea); }
.section-head p { color: var(--muted); }
.split { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); align-items: start; }
.prose { display: grid; gap: 14px; min-width: 0; }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }

/* Cartes services (bento) */
.bento { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; display: grid; grid-template-rows: auto 1fr; text-decoration: none; color: inherit; transition: transform .2s ease; }
a.card:hover { transform: translateY(-3px); }
.card .art { aspect-ratio: 16 / 10; max-width: 100%; position: relative; }
.card .art svg { display: block; width: 100%; height: 100%; }
.card .body { padding: 20px 22px 24px; display: grid; gap: 8px; align-content: start; }
.card .kicker { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.card .go { font-weight: 700; color: var(--sea); margin-top: 4px; }

/* Étapes */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); counter-reset: s; }
.steps li { counter-increment: s; background: var(--surface); border-radius: var(--r-md); padding: 22px; display: grid; gap: 8px; align-content: start; border: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--font-display); font-weight: 800; font-size: 1rem; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--night); color: var(--accent-strong); }
.steps strong { font-family: var(--font-display); font-size: 1.2rem; }
.steps p { color: var(--muted); font-size: 1rem; }

/* Zones */
.zones { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.zone { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--pine); color: #fff; text-decoration: none; display: grid; min-height: 15rem; }
.zone svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.zone .body { position: relative; align-self: end; padding: 22px; display: grid; gap: 4px; background: linear-gradient(transparent, rgb(5 26 43 / .85)); }
.zone .cp { font-family: var(--font-mono); font-size: .8rem; color: var(--accent); }
.zone h3 { font-size: 1.8rem; }

.codes { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); list-style: none; margin: 0; padding: 0; }
.codes li { background: var(--surface); border-radius: var(--r-md); padding: 12px 14px; display: grid; border: 1px solid var(--line); }
.codes .cp { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.towns { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.towns li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: .95rem; }

/* Chantiers */
.chantiers { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.chantier { background: var(--surface); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); display: grid; }
.chantier .art { aspect-ratio: 4 / 3; max-width: 100%; position: relative; }
.chantier .art svg { display: block; width: 100%; height: 100%; }
.chantier .body { padding: 18px 20px 22px; display: grid; gap: 6px; }
.chantier .meta { font-size: .8rem; font-weight: 700; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.chantier dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 6px 0 0; font-size: .95rem; }
.chantier dt { color: var(--muted); font-weight: 600; }
.chantier dd { margin: 0; }
.note { color: var(--muted); font-size: .95rem; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 52rem; }
.faq details { background: var(--surface); border-radius: var(--r-md); border: 1px solid var(--line); padding: 16px 20px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 1.4rem; line-height: 1; color: var(--sea); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--muted); }

/* Bandeau d'appel */
.cta { padding-block: 0 clamp(48px, 7vw, 96px); }
.cta .box { background: #1580b2; color: #fff; border-radius: var(--r-lg); padding: clamp(28px, 5vw, 56px); display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.cta .box p { max-width: 44ch; }
.cta .btn-dark { background: var(--pine); color: #fff; }

/* Formulaire */
form { display: grid; gap: 16px; max-width: 40rem; background: var(--surface); padding: clamp(20px, 4vw, 36px); border-radius: var(--r-lg); box-shadow: var(--shadow); }
label { font-weight: 600; display: grid; gap: 6px; }
input, textarea, select { font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); width: 100%; }
.form-note { font-size: .9rem; color: var(--muted); }
.form-status { font-weight: 700; color: var(--sea); }

/* Pied de page */
.site-footer { background: var(--night); color: var(--on-night-muted); padding-block: 48px 32px; font-size: .95rem; }
.site-footer .wrap { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.site-footer h3 { color: var(--on-night); font-size: 1rem; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--on-night-muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .card { transition: none; } }

.steps.plain li::before { content: none; }

/* Carnet de tournée */
.entries { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); }
.entry { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.entry .art { aspect-ratio: 16 / 9; max-width: 100%; position: relative; }
.entry .art svg { display: block; width: 100%; height: 100%; }
.ex-badge { position: absolute; left: 12px; top: 12px; font-size: .7rem; font-weight: 700; letter-spacing: .04em; background: #1580b2; color: #fff; padding: 4px 10px; border-radius: 999px; }
.entry .body { padding: 20px 22px 24px; display: grid; gap: 10px; align-content: start; }
.entry-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .82rem; font-weight: 700; color: var(--muted); }
.entry-meta span:first-child { color: var(--sea); text-transform: uppercase; letter-spacing: .08em; }
.entry h3 { font-size: 1.3rem; }
.entry dl { margin: 0; display: grid; gap: 2px; font-size: .97rem; }
.entry dt { font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.entry dd { margin: 0; }
.entry .tip { background: var(--mint); border-radius: var(--r-md); padding: 12px 14px; font-size: .97rem; }
.entry-sans { outline: 2px dashed var(--sea); outline-offset: -2px; }
.more-link { margin-top: 24px; }
.more-link .btn-ghost { color: var(--ink); }

/* Note de saison */
.season { padding-block: clamp(32px, 5vw, 56px) 0; }
.season-box { background: var(--surface); border-radius: var(--r-lg); padding: clamp(22px, 4vw, 40px); display: grid; gap: 16px; border: 1px solid var(--line); }
.season-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.season-grid p { color: var(--muted); }
.season-grid strong { color: var(--ink); }

/* Photo réelle dans le hero */
.hero-photo { aspect-ratio: 4 / 5; max-height: 34rem; justify-self: center; width: 100%; max-width: 27rem; }
.hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

/* Photos réelles dans les cartes */
.card .art img, .entry .art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.credits { font-size: .75rem; opacity: .75; margin-top: 24px; max-width: none; }
.zone > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-art img, .chantier .art img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Maillage interne */
.hero .lead a { color: inherit; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.entry-meta a { color: inherit; }
.entry-link { font-weight: 700; font-size: .95rem; }
.entry-link a { color: var(--sea); }
section.linkhub-wrap { padding-block: 0 clamp(40px, 6vw, 72px); }
.linkhub { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.linkhub a { display: inline-block; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; font-weight: 700; color: var(--sea); text-decoration: none; }
.linkhub a:hover { border-color: var(--accent); background: var(--mint); }

.updated { font-size: .88rem; color: var(--on-night-muted); }
.updated a { color: inherit; }

/* Galerie photos équipe */
.gallery { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
.gallery-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .gallery { grid-template-columns: 1fr; } }
.gallery figure { margin: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.gallery img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; height: auto; }
.gallery figcaption { padding: 10px 14px 12px; font-size: .88rem; font-weight: 600; color: var(--muted); }

/* Barre d'appel fixe (mobile) */
.sticky-cta { display: none; }
@media (max-width: 900px) {
  .sticky-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 8px 16px max(8px, calc(env(safe-area-inset-bottom, 0px) - 16px)); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgb(0 0 0 / .25); }
  .sticky-cta a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; white-space: nowrap; font-size: .95rem; border-radius: 999px; font-weight: 700; text-decoration: none; }
  .sticky-cta svg { width: 18px; height: 18px; }
  .sc-call { background: var(--pine); color: #fff; }
  .sc-quote { background: #1580b2; color: #fff; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
}

/* Tableaux récapitulatifs */
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); }
table.data { width: 100%; border-collapse: collapse; font-size: .97rem; }
table.data th, table.data td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); }
table.data thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
table.data tbody tr:last-child > * { border-bottom: 0; }
table.data tbody th { color: var(--ink); font-weight: 700; }
.legal-links { font-size: .85rem; margin-top: 24px; }
.legal-links a { color: var(--on-night-muted); }
@media (max-width: 520px) { table.data th, table.data td { padding: 10px 10px; font-size: .92rem; } }

/* Espacements resserrés sur ordinateur */
@media (min-width: 901px) {
  section.block { padding-block: 36px; }
  .hero { padding-block: 56px; }
  .hero.compact { padding-block: 44px; }
  .season { padding-block: 40px 0; }
  .cta { padding-block: 8px 56px; }
  section.linkhub-wrap { padding-block: 0 44px; }
  .section-head { margin-bottom: 24px; }
  .more-link { margin-top: 24px; }
}

/* Bandeau de consentement cookies (consent.js) */
.consent { position: fixed; z-index: 40; left: 16px; right: 16px; bottom: 16px; max-width: 34rem; margin-left: auto; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 18px 20px; font-family: var(--font-body); }
.consent p { margin: 0 0 14px; font-size: .97rem; line-height: 1.5; }
.consent a { color: var(--sea); }
.consent-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.consent .btn { padding: 10px 20px; font-size: .95rem; }
@media (max-width: 900px) { .consent { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); } .consent-actions .btn { flex: 1; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
