/* Les Clés d’Hermine — feuille de style unique
   Palette : marine profond #15243A (ex-noir #111), marine clair #1D3050, or patiné #A57D40, champagne #E8DFD0, ivoire #F8F6F1, pierre #77736D.
   L’or est réservé aux filets, icônes, séparateurs et détails interactifs.
   Pour les petits textes sur fond clair, --gold-ink (or plus profond) garantit un contraste AA. */

/* Polices : par défaut, polices du système (aucune requête externe). Pour des polices de marque auto-hébergées,
   déposer les .woff2 dans assets/fonts/ puis décommenter ce bloc (voir README) :
@font-face { font-family: "Cormorant Garamond"; font-weight: 300 600; font-display: swap; src: url("../fonts/cormorant-garamond.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300 600; font-display: swap; src: url("../fonts/cormorant-garamond-italic.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 300 700; font-display: swap; src: url("../fonts/manrope.woff2") format("woff2"); }
*/

:root {
  --black: #15243a; /* bleu marine profond des flyers (nom historique « black ») */
  --graphite: #1d3050;
  --gold: #a57d40;
  --gold-ink: #7a5a28;
  --champagne: #e8dfd0;
  --ivory: #f8f6f1;
  --stone: #77736d;
  --stone-ink: #5e5a54;

  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 5rem);
  --max: 1400px;
  --section: clamp(5rem, 10vw, 9rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 4.75rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
body {
  margin: 0; background: var(--ivory); color: var(--black);
  font-family: var(--sans); font-size: 1rem; line-height: 1.75; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1.25em; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.04; margin: 0; letter-spacing: -.005em; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--gold); color: var(--ivory); }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 200; background: var(--ivory); color: var(--black); padding: .75rem 1.25rem; transition: top .2s; }
.skip:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@view-transition { navigation: auto; }

/* ---------- Mise en page ---------- */
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.on-dark { background: var(--black); color: var(--ivory); }
.on-graphite { background: var(--graphite); color: var(--ivory); }
.on-champagne { background: var(--champagne); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 1rem; margin: 0 0 1.75rem;
  font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; font-weight: 600; color: var(--gold-ink);
}
.eyebrow::before { content: ""; width: 2.75rem; height: 1px; background: currentColor; }
.on-dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow, .on-graphite .eyebrow { color: var(--gold); }

.display { font-size: clamp(3rem, 8.2vw, 8.4rem); font-weight: 300; line-height: .94; letter-spacing: -.022em; }
.h2 { font-size: clamp(2.5rem, 5.6vw, 5.4rem); font-weight: 300; line-height: .98; letter-spacing: -.018em; }
.h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.display em, .h2 em, .h3 em { font-style: italic; font-weight: 300; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.7; color: var(--stone-ink); max-width: 38em; }
.on-dark .lead, .hero .lead, .page-hero .lead, .territory .lead, .cta .lead { color: rgba(248, 246, 241, .78); }
.muted { color: var(--stone-ink); }
.on-dark .muted { color: rgba(248, 246, 241, .66); }

.rule { display: block; height: 1px; background: var(--gold); width: 100%; transform-origin: left; }
.rule--short { width: 5rem; }

/* ---------- Boutons ---------- */
.btn {
  --b-bg: var(--black); --b-fg: var(--ivory); --b-bd: rgba(165, 125, 64, .7); --b-bg-h: var(--gold); --b-fg-h: var(--black);
  position: relative; display: inline-flex; align-items: center; gap: 1rem; min-height: 3.4rem; padding: 1rem 1.9rem;
  background: var(--b-bg); color: var(--b-fg); border: 1px solid var(--b-bd); border-radius: 0; cursor: pointer;
  font-family: var(--sans); font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; line-height: 1.2;
  transition: background-color .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease);
}
.btn .arr { display: inline-block; width: 1.6rem; height: 1px; background: currentColor; position: relative; transition: transform .45s var(--ease), width .45s var(--ease); }
.btn .arr::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.btn:hover, .btn:focus-visible { background: var(--b-bg-h); color: var(--b-fg-h); border-color: var(--b-bg-h); }
.btn:hover .arr, .btn:focus-visible .arr { transform: translateX(.4rem); width: 2rem; }
.btn--light { --b-bg: var(--ivory); --b-fg: var(--black); --b-bd: rgba(21, 36, 58, .28); --b-bg-h: var(--black); --b-fg-h: var(--ivory); }
.on-dark .btn--light, .hero .btn--light, .page-hero .btn--light, .cta .btn--light { --b-bd: rgba(248, 246, 241, .5); --b-bg-h: var(--gold); --b-fg-h: var(--black); }
.btn--ghost { --b-bg: transparent; --b-fg: currentColor; --b-bd: currentColor; --b-bg-h: var(--black); --b-fg-h: var(--ivory); }
.btn--block { width: 100%; justify-content: space-between; }
.btn[disabled] { opacity: .55; cursor: wait; }

.link {
  display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  padding-bottom: .35rem; background: linear-gradient(var(--gold), var(--gold)) left bottom / 100% 1px no-repeat; transition: background-size .5s var(--ease);
}
.link .arr { display: inline-block; width: 1.4rem; height: 1px; background: currentColor; position: relative; transition: transform .45s var(--ease); }
.link .arr::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.link:hover .arr, .link:focus-visible .arr { transform: translateX(.45rem); }
.link:hover { background-size: 40% 1px; }

.actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- En-tête ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h); color: var(--ivory);
  transition: background-color .5s var(--ease), box-shadow .5s var(--ease), transform .5s var(--ease), height .4s var(--ease);
}
.site-header::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(21, 36, 58,.55), rgba(21, 36, 58,0)); opacity: 1; transition: opacity .5s; pointer-events: none; }
.site-header.is-scrolled { background: var(--black); --header-h: 4.25rem; height: 4.25rem; }
.site-header::after { content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: rgba(165, 125, 64, .28); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease); }
.site-header.is-scrolled::after { transform: scaleX(1); }
.site-header.is-scrolled::before { opacity: 0; }
.site-header.is-hidden { transform: translateY(-100%); }
.header-in { position: relative; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: block; line-height: 0; flex: none; position: relative; z-index: 3; }
.brand img { height: clamp(2.6rem, 4vw, 3.3rem); width: auto; transition: height .4s var(--ease); }
.is-scrolled .brand img { height: 2.6rem; }

.nav { display: flex; align-items: center; gap: clamp(1.25rem, 2.2vw, 2.4rem); }
.nav-list { display: flex; gap: clamp(1rem, 2vw, 2.1rem); align-items: center; }
.nav a:not(.btn) {
  position: relative; text-decoration: none; font-size: .74rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; padding-block: .5rem; white-space: nowrap;
}
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: .1rem; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav .btn { min-height: 2.75rem; padding: .7rem 1.25rem; font-size: .68rem; --b-bg: transparent; --b-bd: var(--gold); --b-fg: var(--ivory); }
.nav .btn:hover { color: var(--black); }

.burger { display: none; width: 3rem; height: 3rem; background: none; border: 0; cursor: pointer; position: relative; z-index: 3; color: var(--ivory); }
.burger span { position: absolute; left: .75rem; right: .75rem; height: 1px; background: currentColor; transition: transform .5s var(--ease), opacity .3s; }
.burger span:nth-child(1) { top: 1.1rem; } .burger span:nth-child(2) { top: 1.5rem; } .burger span:nth-child(3) { top: 1.9rem; }
.menu-open .burger span:nth-child(1) { transform: translateY(.4rem) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-.4rem) rotate(-45deg); }

@media (max-width: 1239px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: 2; background: var(--black); flex-direction: column; justify-content: center; align-items: flex-start;
    padding: 6rem var(--gutter) 3rem; gap: 2.5rem; overflow-y: auto;
    visibility: hidden; opacity: 0; clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease), opacity .4s, visibility 0s .7s;
  }
  .menu-open .nav { visibility: visible; opacity: 1; clip-path: inset(0); transition: clip-path .7s var(--ease), opacity .3s, visibility 0s; }
  .nav-list { flex-direction: column; align-items: flex-start; gap: .25rem; }
  .nav a:not(.btn) { font-family: var(--serif); font-size: clamp(2rem, 8vw, 3rem); text-transform: none; letter-spacing: 0; font-weight: 300; padding-block: .3rem; }
  .nav-list li { opacity: 0; transform: translateY(1rem); transition: opacity .5s var(--ease), transform .6s var(--ease); }
  .menu-open .nav-list li { opacity: 1; transform: none; }
  .menu-open .nav-list li:nth-child(1) { transition-delay: .2s; } .menu-open .nav-list li:nth-child(2) { transition-delay: .26s; }
  .menu-open .nav-list li:nth-child(3) { transition-delay: .32s; } .menu-open .nav-list li:nth-child(4) { transition-delay: .38s; }
  .menu-open .nav-list li:nth-child(5) { transition-delay: .44s; } .menu-open .nav-list li:nth-child(6) { transition-delay: .5s; }
  .nav .btn { min-height: 3.4rem; padding: 1rem 1.6rem; font-size: .72rem; }
  .menu-open { overflow: hidden; }
  .menu-open .site-header { background: transparent; box-shadow: none; backdrop-filter: none; }
}

/* ---------- Médias ---------- */
.ph { position: relative; overflow: hidden; background: var(--graphite); }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.ph--hover:hover img { transform: scale(1.045); }
.ph::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.04); pointer-events: none; }
.ph-slot { display: grid; place-items: center; text-align: center; padding: 2rem; color: rgba(248,246,241,.7); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: var(--ivory); background: var(--black); overflow: hidden; isolation: isolate; }
.hero-media, .page-hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img, .page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::before, .page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(21, 36, 58,.5) 0%, rgba(21, 36, 58,.2) 38%, rgba(21, 36, 58,.78) 100%), linear-gradient(90deg, rgba(21, 36, 58,.55), rgba(21, 36, 58,0) 70%);
}
.hero-in { padding-block: calc(var(--header-h) + 3rem) clamp(5.5rem, 10vw, 8rem); width: 100%; }
.hero h1 { max-width: 13ch; margin-bottom: 1.75rem; text-wrap: balance; }
.hero .sub { font-size: .8rem; letter-spacing: .26em; text-transform: uppercase; font-weight: 600; margin: 0 0 1.25rem; color: var(--champagne); }
.hero .lead { margin-bottom: 2.5rem; max-width: 34em; }
.scroll-cue { position: absolute; left: 50%; bottom: 1.5rem; width: 1px; height: 3.75rem; background: rgba(248,246,241,.25); overflow: hidden; transform: translateX(-50%); }
.scroll-cue::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 40%; background: var(--gold); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 70%, 100% { transform: translateY(260%); } }
@media (max-width: 700px) { .scroll-cue { left: var(--gutter); transform: none; } }

.page-hero { position: relative; isolation: isolate; color: var(--ivory); background: var(--black); min-height: clamp(26rem, 62svh, 40rem); display: flex; align-items: flex-end; overflow: hidden; }
.page-hero .wrap { padding-block: calc(var(--header-h) + 3rem) clamp(3rem, 6vw, 5rem); }
.page-hero h1 { font-size: clamp(2.6rem, 6.2vw, 5.8rem); font-weight: 300; max-width: 16ch; text-wrap: balance; }
.page-hero .lead { margin: 1.5rem 0 0; }
.crumbs { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1.5rem; color: rgba(248,246,241,.7); }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--gold); }
.crumbs span[aria-hidden] { margin-inline: .6rem; color: var(--gold); }

/* ---------- Manifeste ---------- */
.manifest { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 clamp(1rem, 3vw, 3rem); align-items: start; }
.manifest-text { grid-column: 1 / span 5; padding-top: clamp(0rem, 4vw, 3rem); }
.manifest-text .h2 { margin-bottom: 2.5rem; }
.manifest-text .rule { margin-bottom: 2.5rem; max-width: 8rem; }
.manifest-text p { max-width: 34em; }
.manifest-text .approach { padding-left: 1.5rem; border-left: 1px solid var(--gold); color: var(--black); }
.manifest-media { grid-column: 6 / span 7; position: relative; padding-bottom: 9rem; }
.manifest-media .big { aspect-ratio: 4 / 3; margin-left: 12%; }
.manifest-media .small { position: absolute; width: 38%; aspect-ratio: 1 / 1.2; left: 0; bottom: 0; border: .6rem solid var(--ivory); }
@media (max-width: 900px) {
  .manifest-text, .manifest-media { grid-column: 1 / -1; }
  .manifest-media { margin-top: 3rem; padding-bottom: 5rem; }
  .manifest-media .big { margin-left: 8%; }
  .manifest-media .small { left: 0; width: 42%; }
}

/* ---------- Expertises ---------- */
.head-split { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; margin-bottom: clamp(3rem, 6vw, 5.5rem); }
.head-split .h2 { max-width: 14ch; }
.head-split .lead { max-width: 26em; margin: 0; }

/* ---------- Secteur ---------- */
.territory { position: relative; isolation: isolate; color: var(--ivory); overflow: hidden; background: var(--black); }
.territory-media { position: absolute; inset: 0; z-index: -2; }
.territory-media img { width: 100%; height: 100%; object-fit: cover; }
.territory::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(21, 36, 58,.9), rgba(21, 36, 58,.55) 55%, rgba(21, 36, 58,.3)), linear-gradient(0deg, rgba(21, 36, 58,.6), rgba(21, 36, 58,0) 40%); }
.territory .section { padding-block: clamp(6rem, 14vw, 12rem); }
.territory .h2 { max-width: 14ch; margin-bottom: 2rem; }
.territory .lead { margin-bottom: 2.5rem; }
.sectors { display: flex; flex-wrap: wrap; gap: .5rem 0; margin-bottom: 3rem; font-family: var(--serif); font-size: clamp(1.15rem, 1.8vw, 1.5rem); }
.sectors li { display: inline-flex; align-items: center; }
.sectors li + li::before { content: ""; width: 1px; height: 1.1em; background: var(--gold); margin-inline: 1.25rem; }

/* ---------- Méthode ---------- */
.method-head { max-width: 18ch; margin-bottom: clamp(3.5rem, 8vw, 7rem); }
.steps { list-style: none; margin: 0; padding: 0; --p: 0; position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem; counter-reset: s; }
.steps::before, .steps::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: rgba(248,246,241,.16); }
.steps::after { background: var(--gold); transform-origin: left; transform: scaleX(var(--p)); }
.step { position: relative; padding-top: 2.25rem; opacity: .35; transition: opacity .8s var(--ease); }
.step.on { opacity: 1; }
.step::before { content: ""; position: absolute; top: -4px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--black); border: 1px solid rgba(248,246,241,.4); transition: background .6s, border-color .6s; }
.step.on::before { background: var(--gold); border-color: var(--gold); }
.step .n { display: block; font-family: var(--serif); font-size: clamp(3.5rem, 6vw, 5.5rem); font-weight: 300; line-height: 1; color: var(--gold); margin-bottom: 1.25rem; }
.step h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.2; }
.step p { margin: .85rem 0 0; color: rgba(248,246,241,.66); font-size: .95rem; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 3rem; padding-left: 2.25rem; }
  .steps::before, .steps::after { right: auto; bottom: 0; width: 1px; height: auto; top: 0; left: 0; }
  .steps::after { transform-origin: top; transform: scaleY(var(--p)); }
  .step { padding-top: 0; }
  .step::before { top: .6rem; left: calc(-2.25rem - 4px); }
}

/* ---------- Appel à l’action ---------- */
.cta { position: relative; isolation: isolate; color: var(--ivory); text-align: center; overflow: hidden; background: var(--black); }
.cta-media { position: absolute; inset: 0; z-index: -2; }
.cta-media img { width: 100%; height: 100%; object-fit: cover; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(21, 36, 58,.62); }
.cta .section { padding-block: clamp(6rem, 14vw, 11rem); }
.cta h2 { max-width: 16ch; margin: 0 auto 1.75rem; }
.cta .lead { margin: 0 auto 2.75rem; }
.cta .rule { margin: 0 auto 2.5rem; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--black); color: rgba(248,246,241,.78); padding-top: clamp(4rem, 8vw, 7rem); font-size: .93rem; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.1fr; gap: 3rem clamp(1.5rem, 4vw, 4rem); padding-bottom: 4rem; }
.foot-grid h2 { font-family: var(--sans); font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; font-weight: 600; color: var(--gold); margin-bottom: 1.4rem; }
.foot-grid img { height: 3.4rem; width: auto; margin-bottom: 1.5rem; }
.foot-grid li { margin-bottom: .55rem; }
.foot-grid a { text-decoration: none; background: linear-gradient(var(--gold), var(--gold)) left bottom / 0 1px no-repeat; transition: background-size .45s var(--ease), color .3s; padding-bottom: 2px; }
.foot-grid a:hover { color: var(--ivory); background-size: 100% 1px; }
.pending { color: rgba(248,246,241,.5); font-style: italic; }
.foot-bar { border-top: 1px solid rgba(165,125,64,.35); padding-block: 1.75rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; font-size: .8rem; }
.foot-bar ul { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; }
.foot-sign { font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--champagne); }
.linklike { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(165,125,64,.7); color: inherit; font: inherit; }
@media (max-width: 960px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- Pages intérieures ---------- */
.split { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3rem clamp(1rem, 3vw, 3rem); align-items: center; }
.service { padding-block: clamp(4rem, 9vw, 8rem); border-top: 1px solid rgba(21, 36, 58,.12); }
.service:first-of-type { border-top: 0; }
.service .ph { grid-column: 1 / span 6; aspect-ratio: 5 / 6; }
.service .txt { grid-column: 8 / span 5; }
.service:nth-of-type(even) .ph { grid-column: 7 / span 6; grid-row: 1; }
.service:nth-of-type(even) .txt { grid-column: 1 / span 5; grid-row: 1; }
.service .no { display: block; font-family: var(--serif); color: var(--gold-ink); font-size: 1.25rem; margin-bottom: 1rem; }
.service h2 { font-size: clamp(2rem, 3.8vw, 3.4rem); font-weight: 300; margin-bottom: 1.5rem; }
.service h3 { font-family: var(--sans); font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; font-weight: 600; color: var(--gold-ink); margin: 2rem 0 1rem; }
.ticks li { position: relative; padding: .55rem 0 .55rem 1.75rem; border-bottom: 1px solid rgba(21, 36, 58,.09); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1.3rem; width: .85rem; height: 1px; background: var(--gold); }
.on-dark .ticks li { border-color: rgba(248,246,241,.12); }
.benefit { margin: 2rem 0; padding: 1.25rem 0 1.25rem 1.5rem; border-left: 1px solid var(--gold); }
.benefit p { margin: 0; }
.note { font-size: .88rem; color: var(--stone-ink); margin-top: 1.5rem; }
.on-dark .note { color: rgba(248,246,241,.6); }
@media (max-width: 900px) {
  .service .ph, .service:nth-of-type(even) .ph, .service .txt, .service:nth-of-type(even) .txt { grid-column: 1 / -1; grid-row: auto; }
}

.pain { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid rgba(248,246,241,.16); }
.pain li { padding: 2rem 2rem 2.25rem 0; border-bottom: 1px solid rgba(248,246,241,.16); }
.pain li:not(:nth-child(3n+1)) { padding-left: 2rem; border-left: 1px solid rgba(248,246,241,.16); }
.pain .n { font-family: var(--serif); color: var(--gold); font-size: 1.1rem; display: block; margin-bottom: .75rem; }
.pain h3 { font-size: 1.5rem; margin-bottom: .5rem; }
.pain p { margin: 0; color: rgba(248,246,241,.66); font-size: .95rem; }
@media (max-width: 860px) { .pain { grid-template-columns: 1fr; } .pain li, .pain li:not(:nth-child(3n+1)) { padding: 1.75rem 0; border-left: 0; } }

.placeholder-box { border: 1px dashed rgba(21, 36, 58,.3); padding: 2rem; text-align: left; color: var(--stone-ink); font-size: .92rem; }
.placeholder-box strong { display: block; font-family: var(--serif); font-size: 1.4rem; font-weight: 400; color: var(--black); margin-bottom: .5rem; }

/* ---------- Formulaires ---------- */
.form-shell { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3rem clamp(1rem, 3vw, 3rem); }
.form-intro { grid-column: 1 / span 4; }
.form-box { grid-column: 6 / span 7; }
@media (max-width: 960px) { .form-intro, .form-box { grid-column: 1 / -1; } }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem 1.75rem; }
.field { display: flex; flex-direction: column; gap: .5rem; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--stone-ink); }
.field .req { color: var(--gold-ink); }
.field input, .field select, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(21, 36, 58,.35); border-radius: 0; padding: .65rem 0; min-height: 3rem; font-size: 1rem;
  transition: border-color .3s, box-shadow .3s; appearance: none; -webkit-appearance: none;
}
.field select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23A57D40'/%3E%3C/svg%3E") right .25rem center no-repeat; padding-right: 1.75rem; }
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--gold); box-shadow: 0 1px 0 var(--gold); }
.field [aria-invalid="true"] { border-bottom-color: #9b2c2c; box-shadow: 0 1px 0 #9b2c2c; }
.err { min-height: 1.1em; font-size: .82rem; color: #9b2c2c; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 1.5rem; margin-top: .5rem; }
.check { display: flex; gap: .75rem; align-items: flex-start; font-size: .95rem; line-height: 1.45; cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 1.15rem; height: 1.15rem; min-height: 0; margin-top: .15rem; padding: 0; border: 1px solid var(--stone); display: grid; place-content: center; cursor: pointer; }
.check input::after { content: ""; width: .55rem; height: .3rem; border-left: 1.5px solid var(--black); border-bottom: 1.5px solid var(--black); transform: rotate(-45deg) scale(0); transition: transform .25s var(--ease); margin-top: -.1rem; }
.check input:checked { background: var(--gold); border-color: var(--gold); }
.check input:checked::after { transform: rotate(-45deg) scale(1); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { grid-column: 1 / -1; padding: 1.25rem 1.5rem; border-left: 2px solid var(--gold); background: var(--champagne); font-size: .95rem; }
.form-status[hidden] { display: none; }
.form-status.is-error { border-color: #9b2c2c; background: #f3e4e1; }
.form-status h3 { font-family: var(--serif); font-size: 1.5rem; margin-bottom: .35rem; }
.form-status p { margin: .35rem 0 0; }
.form small { color: var(--stone-ink); }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } .checks { grid-template-columns: 1fr; } }

.contact-list li { padding: 1.1rem 0; border-bottom: 1px solid rgba(21, 36, 58,.12); display: grid; gap: .2rem; }
.contact-list .k { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; color: var(--gold-ink); }
.contact-list a { text-decoration: none; font-family: var(--serif); font-size: 1.6rem; }
.call-fab { display: none; }
@media (max-width: 760px) {
  .call-fab { position: fixed; z-index: 90; left: 1rem; right: 1rem; bottom: 1rem; }
  body.has-call { padding-bottom: 5rem; }
}

/* ---------- Carte ---------- */
.map-shell { position: relative; aspect-ratio: 16 / 10; min-height: 24rem; background: var(--graphite); color: var(--ivory); border: 1px solid rgba(165,125,64,.4); }
#map { position: absolute; inset: 0; }
.map-gate { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 1.25rem; padding: 2rem; z-index: 5; background: linear-gradient(rgba(21, 36, 58,.78), rgba(21, 36, 58,.86)), url("../img/golfe-960.webp") center / cover; }
.map-gate p { max-width: 34em; margin: 0 auto; font-size: .92rem; color: rgba(248,246,241,.78); }
.map-gate .btn { justify-self: center; }
.map-pin { width: 1rem; height: 1rem; border-radius: 50%; background: var(--gold); border: 2px solid var(--ivory); box-shadow: 0 0 0 4px rgba(165,125,64,.28); }
.map-pin--zone { background: transparent; border-color: var(--gold); }
.leaflet-container { font-family: var(--sans); background: #bfe0f1; }
.leaflet-tile-pane { filter: none; }
.map-fallback .leaflet-tile-pane { filter: saturate(1.7) contrast(1.05); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--black); color: var(--ivory); border-radius: 0; }
.leaflet-popup-content { font-size: .88rem; line-height: 1.5; margin: .9rem 1.1rem; }
.leaflet-popup-content strong { font-family: var(--serif); font-size: 1.2rem; font-weight: 400; color: var(--gold); display: block; }
.zone-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 3rem; margin-top: 2rem; }
.zone-list li { border-bottom: 1px solid rgba(21, 36, 58,.12); }
.zone-list button { width: 100%; text-align: left; background: none; border: 0; padding: 1rem 0; cursor: pointer; font-family: var(--serif); font-size: 1.5rem; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.zone-list button span { font-family: var(--sans); font-size: .78rem; color: var(--stone-ink); text-align: right; }
.zone-list button:hover { color: var(--gold-ink); }
@media (max-width: 640px) { .zone-list { grid-template-columns: 1fr; } .map-shell { aspect-ratio: 4 / 5; } }

/* ---------- Divers ---------- */
.prose { max-width: 46rem; }
.prose h2 { font-size: 2rem; margin: 3rem 0 1rem; }
.prose h3 { font-size: 1.4rem; margin: 2rem 0 .75rem; }
.prose ul { list-style: disc; padding-left: 1.25rem; margin-bottom: 1.25em; }
.prose li { margin-bottom: .4rem; }
.prose a { text-decoration-color: var(--gold); text-underline-offset: 3px; }
.todo { background: var(--champagne); padding: .05em .4em; font-style: normal; }
.notfound { min-height: 100svh; display: grid; place-content: center; text-align: center; gap: 1.5rem; padding: 2rem; background: var(--black); color: var(--ivory); }
.notfound .display { font-size: clamp(5rem, 16vw, 12rem); color: var(--gold); }

dialog.cookie { border: 1px solid var(--gold); background: var(--black); color: var(--ivory); padding: 2rem; max-width: 34rem; width: calc(100% - 2rem); }
dialog.cookie::backdrop { background: rgba(21, 36, 58,.7); }
dialog.cookie h2 { font-size: 1.8rem; margin-bottom: 1rem; }
dialog.cookie p { font-size: .92rem; color: rgba(248,246,241,.8); }
dialog.cookie .check { color: var(--ivory); margin: 1.25rem 0; }
dialog.cookie .check input { border-color: var(--ivory); }

/* ---------- Introduction ---------- */
.intro { position: fixed; inset: 0; z-index: 300; background: var(--black); display: none; place-content: center; justify-items: center; gap: 1.5rem; }
.js.intro-on .intro { display: grid; }
.intro img { width: min(78vw, 22rem); height: auto; opacity: 0; transform: translateY(14px); animation: intro-logo 1s var(--ease) .15s forwards; }
.intro i { display: block; height: 1px; width: min(52vw, 14rem); background: var(--gold); transform: scaleX(0); transform-origin: left; animation: intro-line .9s var(--ease) .75s forwards; }
.intro.out { animation: intro-out .95s cubic-bezier(.7, 0, .2, 1) .25s forwards; }
.intro.out img { animation: intro-fade .35s ease forwards; }
.intro.out i { animation: intro-fade-line .35s ease forwards; }
@keyframes intro-fade { from { opacity: 1; transform: none; } to { opacity: 0; transform: none; } }
@keyframes intro-fade-line { from { opacity: 1; transform: scaleX(1); } to { opacity: 0; transform: scaleX(1); } }
@keyframes intro-logo { to { opacity: 1; transform: none; } }
@keyframes intro-line { to { transform: scaleX(1); } }
@keyframes intro-out { to { transform: translateY(-100%); visibility: hidden; } }

/* ---------- Révélations au défilement (activées uniquement si JS) ---------- */
.js .rv { opacity: 0; transform: translateY(1.75rem); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }
.js .rv-line { transform: scaleX(0); transition: transform 1.3s var(--ease); transition-delay: var(--d, 0s); }
.js .rv-line.in { transform: scaleX(1); }
/* Révélation des photos : le masque est sur l’image, le conteneur (non masqué) est observé */
.js .rv-mask { background: transparent; }
.js .rv-mask img { clip-path: inset(0 0 100% 0); transform: scale(1.12); transition: clip-path 1.5s var(--ease) var(--d, 0s), transform 2s var(--ease) var(--d, 0s); }
.js .rv-mask.in img { clip-path: inset(0); transform: scale(1); transition: clip-path 1.5s var(--ease) var(--d, 0s), transform 1.6s var(--ease); }
.js .rv-mask.in.ph--hover:hover img, .js .plate:hover .rv-mask.in img { transform: scale(1.045); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .rv, .js .rv-line { opacity: 1; transform: none; }
  .js .rv-mask img { clip-path: none; transform: none; }
  .intro { display: none !important; }
  .scroll-cue::after { animation: none; transform: none; height: 100%; opacity: .5; }
  @view-transition { navigation: none; }
}

@media print { .site-header, .intro, .scroll-cue, .call-fab { display: none !important; } body { background: #fff; } }

.map-gate[hidden] { display: none; }

/* ======================================================================
   Animations — passe 2 (mots qui montent, boutons à balayage, parallaxe douce)
   ====================================================================== */

/* Titres : chaque mot monte depuis un masque (découpage fait par site.js) */
.js .sp .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .1em .05em .16em; margin: -.1em -.05em -.16em; }
.js .sp .w > span {
  display: inline-block; transform: translateY(108%) rotate(2.5deg); transform-origin: 0 100%;
  transition: transform 1.25s var(--ease); transition-delay: calc(var(--d, 0s) + var(--i, 0) * 65ms);
}
.js .sp.in .w > span { transform: none; }

/* Surtitres : le filet doré se dessine */
.js .eyebrow.rv::before { transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease) .15s; }
.js .eyebrow.rv.in::before { transform: none; }

/* Boutons : un balayage doré remplace le changement de couleur instantané */
.btn { isolation: isolate; overflow: hidden; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--b-bg-h); transform: scaleX(0); transform-origin: right; transition: transform .65s var(--ease); }
.btn:hover, .btn:focus-visible { background: var(--b-bg); }
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); transform-origin: left; }

/* Photos : la parallaxe agit via la propriété `translate`, indépendante du zoom */
img[data-depth] { height: calc(100% + 56px); margin-block: -28px; max-width: none; will-change: translate; }
.territory-media { overflow: hidden; }

/* Hero : l’image se pose doucement après l’introduction, puis suit le défilement à faible vitesse */
.hero-media, .page-hero-media { inset: -8% 0; will-change: translate; }
.js .hero-media img, .js .page-hero-media img { transform: scale(1.14); transition: transform 3.4s var(--ease); }
.js.ready .hero-media img, .js.ready .page-hero-media img { transform: none; }

/* Progression de lecture : filet doré sous l’en-tête */
.progress { position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; pointer-events: none; }

/* Changement de page (navigateurs compatibles) : fondu discret, en-tête stable */
.site-header { view-transition-name: site-header; }
::view-transition-old(root) { animation: vt-out .35s ease both; }
::view-transition-new(root) { animation: vt-in .7s var(--ease) .05s both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

@media (prefers-reduced-motion: reduce) {
  .js .sp .w > span, .js .hero-media img, .js .page-hero-media img { transform: none !important; }
  .btn::before { transition: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  img[data-depth] { translate: none !important; }
}


/* ======================================================================
   Direction artistique — passe 3 : maison privée, noir / ivoire / or patiné
   ====================================================================== */
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }

/* Hero : titre plus monumental, image légèrement décalée vers la maison */
.hero h1 { font-size: clamp(3rem, 7.2vw, 7.6rem); max-width: 16ch; }
.hero-media img { object-position: 70% 50%; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 2; background: var(--black); opacity: var(--cover, 0); pointer-events: none; }

/* Rideau : sur ordinateur, la section suivante recouvre le hero qui reste en place */
@media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
  .hero { position: sticky; top: 0; }
  main > section:not(.hero) { position: relative; z-index: 1; }
  main > .section:not(.on-dark):not(.on-champagne):not(.on-graphite) { background: var(--ivory); }
}

/* Services : planches éditoriales, formats et décalages variés */
.plates { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(1rem, 3vw, 3rem); row-gap: clamp(4.5rem, 9vw, 9rem); align-items: start; }
.plate { display: block; text-decoration: none; color: inherit; }
.plate--a { grid-column: 1 / span 6; }
.plate--b { grid-column: 8 / span 5; margin-top: clamp(4rem, 14vw, 13rem); }
.plate--c { grid-column: 2 / span 4; }
.plate--d { grid-column: 7 / span 6; margin-top: clamp(0rem, 6vw, 5.5rem); }
.plate--a .ph { aspect-ratio: 4 / 5; } .plate--b .ph { aspect-ratio: 1 / 1; } .plate--c .ph { aspect-ratio: 3 / 4; } .plate--d .ph { aspect-ratio: 16 / 11; }
.plate-cap { padding-top: 1.5rem; }
.plate-cap .rule { margin-bottom: 1.4rem; }
.plate-row { display: flex; align-items: baseline; gap: 1.25rem; }
.plate .num { flex: none; font-family: var(--serif); font-size: clamp(2.6rem, 4vw, 3.8rem); font-weight: 300; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--gold); transition: color .7s var(--ease); }
.plate h3 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); font-weight: 400; line-height: 1.1; }
.plate p { margin: .9rem 0 1.35rem; color: var(--stone-ink); max-width: 30em; }
.plate:hover .num, .plate:focus-visible .num { color: var(--gold); }
.plate:hover .link { background-size: 40% 1px; }
.plate:hover .link .arr { transform: translateX(.45rem); }
.plate:hover .ph img { transform: scale(1.045) translate(-.6%, -.6%); }
@media (max-width: 760px) {
  .plates { grid-template-columns: 1fr; row-gap: 4rem; }
  .plate { grid-column: auto !important; margin-top: 0 !important; }
  .plate--b { width: 86%; margin-left: auto; } .plate--c { width: 74%; }
}

/* Méthode : chiffres en contour qui se remplissent d’or à l’étape atteinte */
.step .n { color: transparent; -webkit-text-stroke: 1px rgba(165, 125, 64, .75); transition: color .9s var(--ease); }
.step.on .n { color: var(--gold); }

/* Pages intérieures : numéros de services en contour, formats d’images alternés */
.service .no { font-size: clamp(3.4rem, 6vw, 5.5rem); font-weight: 300; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--gold); margin-bottom: .75rem; }
.service:nth-of-type(even) .ph { aspect-ratio: 1 / 1.1; }

/* Pied de page : mot-symbole en filigrane */
.foot-mark { margin: 0 0 2.5rem; padding-bottom: .1em; overflow: hidden; font-family: var(--serif); font-weight: 300; font-size: clamp(2.6rem, 10.4vw, 9.5rem); line-height: .95; letter-spacing: -.02em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(165, 125, 64, .6); user-select: none; }

.territory .eyebrow { color: var(--champagne); }
.territory .eyebrow::before { background: var(--gold); }

/* Phrase d’engagement (tirée de vos flyers) */
.pull { margin: 2.5rem 0 0; font-family: var(--serif); font-size: clamp(1.5rem, 2.4vw, 2.2rem); font-weight: 300; line-height: 1.2; max-width: 22em; }
.pull span { display: block; margin-top: .9rem; font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); }


/* ======================================================================
   Revue « taste » : une seule ligne pour les boutons, retour tactile, en-têtes empilés, bandeau de service
   ====================================================================== */
.btn { white-space: nowrap; transition: background-color .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease), transform .25s var(--ease); }
.btn:active { transform: scale(.98); }
.head-stack { max-width: 16ch; margin-bottom: clamp(3rem, 6vw, 5.5rem); }
.service--band .ph, .service.service--band:nth-of-type(even) .ph { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 21 / 9; }
.service--band .txt { grid-column: 1 / -1; grid-row: auto; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(1rem, 3vw, 3rem); row-gap: 2rem; }
.service--band .txt > div:first-child { grid-column: 1 / span 5; }
.service--band .txt > div:last-child { grid-column: 7 / span 6; }
.service--band .txt h3:first-child { margin-top: 0; }
@media (max-width: 900px) {
  .service--band .ph, .service.service--band:nth-of-type(even) .ph { aspect-ratio: 4 / 3; }
  .service--band .txt > div:first-child, .service--band .txt > div:last-child { grid-column: 1 / -1; }
}

/* Navigation resserrée entre 1240 et 1500 px pour rester sur une seule ligne */
@media (min-width: 1240px) and (max-width: 1500px) {
  .nav, .nav-list { gap: 1.15rem; }
  .nav a:not(.btn) { font-size: .7rem; letter-spacing: .1em; }
  .nav .btn { padding: .7rem 1rem; letter-spacing: .14em; gap: .75rem; }
  .brand img { height: 2.8rem; }
}

/* Colonnes de mise en page : elles passent toutes en une seule colonne sur tablette et mobile */
.s-1-5 { grid-column: 1 / span 5; } .s-1-6 { grid-column: 1 / span 6; } .s-7-6 { grid-column: 7 / span 6; } .s-8-5 { grid-column: 8 / span 5; }
.split > * { min-width: 0; }
@media (max-width: 900px) { .s-1-5, .s-1-6, .s-7-6, .s-8-5 { grid-column: 1 / -1; } }

/* Mobile : aucune colonne ne doit dépasser l'écran */
.form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { min-width: 0; }
@media (max-width: 640px) { .form { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .btn { white-space: normal; text-align: left; } }

/* Fond animé marine et or (section « méthode »)  : léger, jamais devant le texte */
.method { overflow: hidden; isolation: isolate; }
.method > .wrap { position: relative; z-index: 1; }
.shader-bg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; transition: opacity 2s var(--ease); }
.shader-bg.is-ready { opacity: .36; }
@media print { .shader-bg { display: none; } }


/* ======================================================================
   Pied de page « rideau » : le contenu glisse et révèle le pied de page fixé dessous.
   Actif seulement sur grand écran, avec assez de hauteur, sans « réduire les animations ».
   Sinon : pied de page classique (ci-dessus).
   ====================================================================== */
.foot-giant, .foot-marquee, .foot-lead { display: none; }
.foot-top { flex: none; width: 3rem; height: 3rem; display: grid; place-items: center; background: none; border: 1px solid rgba(248, 246, 241, .28); color: var(--ivory); cursor: pointer; transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), translate .5s var(--ease); }
.foot-top:hover { background: var(--gold); border-color: var(--gold); color: var(--black); }
.foot-top .arr.up { transform: rotate(-90deg); width: 1.2rem; }
.foot-bar { align-items: center; }
@keyframes foot-marquee { to { transform: translateX(-50%); } }
@keyframes foot-giant-in { from { translate: -50% 10vh; scale: .85; opacity: 0; } to { translate: -50% 0; scale: 1; opacity: 1; } }
@keyframes foot-rise-in { from { translate: 0 3rem; opacity: 0; } to { translate: 0 0; opacity: 1; } }

@media (min-width: 901px) and (min-height: 760px) and (prefers-reduced-motion: no-preference) {
  main { min-height: 100dvh; }
  .curtain-wrap { position: relative; height: 100dvh; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); view-timeline: --curtain block; }
  .site-footer { position: fixed; inset: auto 0 0 0; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; padding: 0; }
  .foot-giant { display: block; position: absolute; z-index: 0; left: 50%; bottom: -4vw; translate: -50% 0; margin: 0; font-family: var(--serif); font-weight: 300; font-size: 27vw; line-height: .75; letter-spacing: -.04em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(165, 125, 64, .38); pointer-events: none; user-select: none; }
  .foot-marquee { display: block; position: relative; z-index: 1; margin-top: calc(var(--header-h) + 1.25rem); overflow: hidden; border-block: 1px solid rgba(165, 125, 64, .3); padding-block: 1rem; }
  .foot-marquee-track { display: flex; width: max-content; animation: foot-marquee 80s linear infinite; animation-play-state: paused; }
  .curtain-wrap.in-view .foot-marquee-track { animation-play-state: running; }
  .foot-marquee span { position: relative; padding-inline: 2.25rem; font-size: .74rem; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--champagne); white-space: nowrap; }
  .foot-marquee span::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 1.1em; background: var(--gold); translate: 0 -50%; }
  .foot-body { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; justify-content: space-between; padding-top: 1rem; min-height: 0; }
  .foot-lead { display: block; margin-block: auto; text-align: center; }
  .foot-title { margin: 0 0 2.25rem; font-family: var(--serif); font-weight: 300; font-size: clamp(3rem, 7.2vw, 7rem); line-height: .95; letter-spacing: -.02em; color: var(--ivory); }
  .foot-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
  .foot-pill { display: inline-flex; align-items: center; padding: 1rem 1.75rem; border: 1px solid rgba(248, 246, 241, .28); color: var(--ivory); text-decoration: none; font-size: .8rem; letter-spacing: .12em; white-space: nowrap; transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), translate .5s var(--ease); }
  .foot-pill:hover, .foot-pill:focus-visible { background: var(--gold); border-color: var(--gold); color: var(--black); }
  .foot-grid { padding-bottom: 1.5rem; gap: 2rem; font-size: .85rem; }
  .foot-grid > :first-child p { display: none; }
  .foot-grid img { margin-bottom: 0; }
  .foot-grid h2 { margin-bottom: .8rem; }
  .foot-grid li { margin-bottom: .3rem; }
  .foot-mark { display: none; }
  .foot-bar { padding-block: 1.1rem; }
}
@supports (animation-timeline: view()) {
  @media (min-width: 901px) and (min-height: 760px) and (prefers-reduced-motion: no-preference) {
    .foot-giant { animation: foot-giant-in linear both; animation-timeline: --curtain; animation-range: entry 0% entry 100%; }
    .foot-lead, .foot-lower { animation: foot-rise-in linear both; animation-timeline: --curtain; animation-range: entry 35% entry 100%; }
  }
}
.foot-top .arr { display: block; position: relative; width: 1.2rem; height: 1px; background: currentColor; }
.foot-top .arr::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.foot-top .arr.up { transform: rotate(-90deg); }
@media (min-width: 901px) and (min-height: 760px) and (prefers-reduced-motion: no-preference) { .foot-giant { -webkit-text-stroke-color: rgba(165, 125, 64, .26); } }


/* ======================================================================
   Logo officiel : disque ivoire (le dessin n'est ni recoloré ni déformé) + nom de la marque en texte
   ====================================================================== */
.brand { display: flex; align-items: center; gap: .9rem; line-height: 1; flex: none; }
.brand img { height: clamp(2.7rem, 4vw, 3.3rem); width: auto; aspect-ratio: 1; border-radius: 50%; }
.brand-name { display: flex; flex-direction: column; gap: .32rem; font-family: var(--serif); text-transform: uppercase; color: var(--ivory); }
.brand-name b { font-weight: 400; font-size: .58rem; letter-spacing: .44em; color: var(--champagne); }
.brand-name span { font-size: 1.08rem; letter-spacing: .2em; }
.is-scrolled .brand img { height: 2.7rem; }
.foot-brand { margin-bottom: 1.5rem; }
.foot-grid .foot-brand img { height: 3.6rem; margin: 0; }
.intro { gap: 1.25rem; }
.intro img { width: min(52vw, 14rem); height: auto; border-radius: 50%; }
.intro .intro-name { display: flex; flex-direction: column; align-items: center; gap: .5rem; font-family: var(--serif); text-transform: uppercase; letter-spacing: .4em; font-size: .8rem; color: var(--champagne); opacity: 0; animation: intro-logo 1s var(--ease) .45s forwards; }
.intro .intro-name b { font-weight: 400; font-size: 1.7rem; letter-spacing: .24em; color: var(--ivory); }
.intro.out .intro-name { animation: intro-fade .35s ease forwards; }
@media (max-width: 380px) { .brand-name span { font-size: .95rem; } .brand { gap: .65rem; } }
.brand, .brand:hover { text-decoration: none; }

/* Introduction sur fond ivoire : le logo transparent s'incruste directement, sans disque */
.intro { background: var(--ivory); }
.intro img { width: min(56vw, 17rem); border-radius: 0; }
.intro .intro-name { color: var(--stone-ink); }
.intro .intro-name b { color: var(--black); }

/* Photos réelles : voile un peu plus marqué à gauche pour garder le titre lisible sur les feuillages et les ciels clairs */
.hero::before, .page-hero::before { background: linear-gradient(180deg, rgba(21, 36, 58, .55) 0%, rgba(21, 36, 58, .22) 38%, rgba(21, 36, 58, .82) 100%), linear-gradient(90deg, rgba(21, 36, 58, .7), rgba(21, 36, 58, 0) 72%); }
.shader-bg.is-ready { opacity: .3; }

/* Mentions d'information RGPD près des formulaires, boutons de consentement de poids égal */
.notice { margin: .85rem 0 0; font-size: .8rem; line-height: 1.55; color: var(--stone-ink); max-width: 46em; }
.notice a { text-decoration-color: var(--gold); text-underline-offset: 3px; }
dialog.cookie .actions .btn { flex: 1 1 12rem; justify-content: space-between; }
dialog.cookie .note a, dialog.cookie .note .linklike { color: var(--ivory); }

.sign { margin-top: 2rem; font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--stone-ink); }

/* Images de haut de page : l'aperçu flou reste visible, puis la photo apparaît en fondu quand elle est prête */
.js .hero-media img, .js .page-hero-media img { opacity: 0; transition: opacity .8s var(--ease), transform 3.4s var(--ease); }
.js .hero-media img.is-loaded, .js .page-hero-media img.is-loaded { opacity: 1; }


/* ======================================================================
   Typographie : une seule police et une seule couleur par paragraphe ou titre
   (plus d'italique ni de gras ni de couleur différente au milieu d'une phrase)
   ====================================================================== */
.display em, .h2 em, .h3 em, h1 em, h2 em, h3 em { font-style: normal; font-weight: inherit; color: inherit; }
p strong, li strong, td strong { font-weight: inherit; }
.req { color: inherit; }
.pull-sub { margin: .9rem 0 0; font-family: var(--serif); font-size: 1.05rem; line-height: 1.5; color: var(--stone-ink); }
.gate-title { font-size: 1.6rem; font-weight: 400; color: var(--ivory); margin: 0 0 .25rem; }
.gate-title + p { margin-top: 0; }

/* ======================================================================
   Flèches : trait fin et pointe ouverte à bouts arrondis (tracé vectoriel, suit la couleur du texte)
   ====================================================================== */
.arr {
  display: inline-block; flex: none; width: 1.9rem; height: .8rem; background: currentColor; position: relative;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 38 16'%3E%3Cpath d='M1.5 8h34M29 1.5 35.5 8 29 14.5' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 38 16'%3E%3Cpath d='M1.5 8h34M29 1.5 35.5 8 29 14.5' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.btn .arr, .link .arr, .foot-top .arr { height: .8rem; width: 1.9rem; background: currentColor; }
.btn .arr::after, .link .arr::after, .foot-top .arr::after { content: none; }
.btn:hover .arr, .btn:focus-visible .arr { width: 1.9rem; transform: translateX(.45rem); }
.link:hover .arr, .link:focus-visible .arr { transform: translateX(.5rem); }
.btn .arr, .link .arr { transition: transform .5s var(--ease); }
.foot-top .arr.up { transform: rotate(-90deg); width: 1.5rem; height: .7rem; }
.foot-top:hover .arr.up { transform: rotate(-90deg) translateX(.2rem); }
@media (prefers-reduced-motion: reduce) { .btn:hover .arr, .link:hover .arr { transform: none; } }

/* Tableau de 4 engagements : un trait vertical entre chaque colonne (4 colonnes, puis 2, puis 1) */
.pain.pain--4 li, .pain.pain--4 li:not(:nth-child(3n+1)) { padding: 1.75rem 1.5rem 2rem 0; border-left: 0; }
@media (min-width: 1000px) {
  .pain.pain--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pain.pain--4 li:not(:nth-child(4n+1)) { padding-left: 2rem; border-left: 1px solid rgba(248, 246, 241, .16); }
}
@media (min-width: 561px) and (max-width: 999px) {
  .pain.pain--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pain.pain--4 li:nth-child(even) { padding-left: 2rem; border-left: 1px solid rgba(248, 246, 241, .16); }
}
@media (max-width: 560px) { .pain.pain--4 { grid-template-columns: minmax(0, 1fr); } .pain.pain--4 li { padding-right: 0; } }

/* Liste des communes desservies */
.communes { margin-top: clamp(3rem, 6vw, 5rem); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem clamp(1.5rem, 4vw, 3rem); }
.communes .h3 { grid-column: 1 / -1; }
.communes section { border-top: 1px solid rgba(21, 36, 58, .25); padding-top: 1.25rem; }
.communes h4 { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; margin: 0 0 .75rem; }
.communes p { margin: 0; line-height: 1.9; color: var(--stone-ink); }
@media (max-width: 860px) { .communes { grid-template-columns: minmax(0, 1fr); } }

/* Carte plus joyeuse : repères en couleur, bulles claires */
.map-shell { border: 1px solid rgba(21, 36, 58, .18); background: #bfe0f1; }
.map-pin { width: 22px; height: 22px; border-radius: 50%; background: var(--black); border: 3px solid var(--ivory); box-shadow: 0 0 0 2px var(--gold), 0 3px 8px rgba(21, 36, 58, .35); transition: transform .35s var(--ease); }
.map-pin:hover { transform: scale(1.15); }
.map-pin--zone { background: var(--gold); border-color: var(--ivory); box-shadow: 0 0 0 2px var(--black), 0 3px 8px rgba(21, 36, 58, .35); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--ivory); color: var(--black); border-radius: 4px; box-shadow: 0 6px 18px rgba(21, 36, 58, .25); }
.leaflet-popup-content strong { color: var(--black); font-size: 1.3rem; }
.leaflet-popup-content { font-size: .9rem; }
.leaflet-container a.leaflet-popup-close-button { color: var(--stone-ink); }
.leaflet-bar a { color: var(--black); }

/* Carte simple et lisible : étiquettes, repère de la base, légende */
.map-pin { width: 20px; height: 20px; background: var(--black); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(21, 36, 58, .4); }
.map-pin--base { width: 30px; height: 30px; background: var(--gold); border: 4px solid #fff; box-shadow: 0 0 0 2px var(--black), 0 3px 10px rgba(21, 36, 58, .45); }
.leaflet-tooltip.map-label { background: rgba(255, 255, 255, .92); color: var(--black); border: 0; border-radius: 3px; padding: .2rem .55rem; font: 600 .78rem/1.2 var(--sans); letter-spacing: .02em; box-shadow: 0 1px 4px rgba(21, 36, 58, .25); }
.leaflet-tooltip.map-label--base { background: var(--black); color: #fff; font-size: .9rem; padding: .3rem .7rem; }
.leaflet-tooltip-top.map-label::before { border-top-color: rgba(255, 255, 255, .92); }
.leaflet-tooltip-top.map-label--base::before { border-top-color: var(--black); }
.leaflet-tooltip-left.map-label::before { border-left-color: rgba(255, 255, 255, .92); }
.leaflet-tooltip-right.map-label::before { border-right-color: rgba(255, 255, 255, .92); }
.leaflet-tooltip-bottom.map-label::before { border-bottom-color: rgba(255, 255, 255, .92); }
.map-legend { display: flex; flex-wrap: wrap; gap: .5rem 2rem; margin: 1rem 0 0; font-size: .85rem; color: var(--stone-ink); }
.map-legend span { display: inline-flex; align-items: center; gap: .6rem; }
.lg { width: 14px; height: 14px; border-radius: 50%; background: var(--black); border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(21, 36, 58, .35); }
.lg--base { width: 18px; height: 18px; background: var(--gold); box-shadow: 0 0 0 2px var(--black); }
.leaflet-container { background: #cfe2ef; }
.map-fallback .leaflet-tile-pane { filter: saturate(1.25) contrast(1.03); }
@media (max-width: 640px) { .leaflet-tooltip.map-label { font-size: .7rem; padding: .15rem .4rem; } .leaflet-tooltip.map-label--base { font-size: .8rem; } }
