/* ==========================================================================
   DiscGolfLab : système « Terrain »
   Mobile first (base 360 px, puis min-width). Pleine largeur, typo XXL,
   une seule famille sans serif (Bricolage Grotesque), jamais d'italique.
   Les titres sont dimensionnés en container queries (cqi) : aucun débordement.
   ========================================================================== */

/* Police hébergée sur le site (plus de requête vers Google Fonts) : Bricolage Grotesque variable, graisses 200 à 800, largeurs 75 à 100 */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-stretch: 75% 100%; font-display: swap;
  src: url("fonts/bricolage-grotesque-v9-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-stretch: 75% 100%; font-display: swap;
  src: url("fonts/bricolage-grotesque-v9-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --green: #38724b;          /* vert logo */
  --green-d: #285738;
  --green-dd: #173322;
  --green-l: #e3ece4;
  --ink: #17181a;
  --ink-2: #2a2c2f;
  --sand: #c5a48e;           /* sable de la charte */
  --sand-l: #efe6dd;
  --paper: #f6f3ee;
  --white: #fff;
  --muted: #5d625e;
  --line: rgba(23, 24, 26, .12);
  --line-l: rgba(255, 255, 255, .18);

  --gutter: clamp(16px, 3.4vw, 64px);
  --nav-h: 72px;
  --radius: 14px;
  --radius-lg: 22px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --fs-body: clamp(1rem, .96rem + .2vw, 1.125rem);
  --fs-lead: clamp(1.15rem, 1.02rem + .55vw, 1.55rem);
  --fs-small: .875rem;
}
@media (min-width: 961px) { :root { --nav-h: 88px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  font-size: var(--fs-body); line-height: 1.55; font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; color: inherit; }
p, ul, ol, dl, figure, blockquote { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: 1; overflow-wrap: normal; hyphens: none; }
em, i { font-style: normal; }
::selection { background: var(--green); color: #fff; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }

/* ---------- Mise en page ---------- */
.wrap { width: 100%; padding-inline: var(--gutter); container-type: inline-size; }
.s { padding-block: clamp(72px, 11vw, 168px); position: relative; }
.s--tight { padding-block: clamp(56px, 7vw, 104px); }
.s--ink { background: var(--ink); color: #fff; }
.s--green { background: var(--green); color: #fff; }
.s--deep { background: var(--green-dd); color: #fff; }
.s--sand { background: var(--sand-l); }
.s--white { background: #fff; }
.s--ink .muted, .s--green .muted, .s--deep .muted { color: rgba(255,255,255,.72); }

/* ---------- Typographie ---------- */
.d1, .d2, .d3, .d4 { font-weight: 800; letter-spacing: -.028em; font-variation-settings: "wdth" 100; text-wrap: balance; }
.d1 { font-size: min(clamp(3rem, 13vw, 14rem), 13cqi); line-height: .9; }
.d2 { font-size: min(clamp(2.3rem, 10vw, 9rem), 9.6cqi); line-height: .94; }
.d3 { font-size: min(clamp(1.9rem, 7.4vw, 5.6rem), 8.4cqi); line-height: .98; letter-spacing: -.025em; }
.d4 { font-size: min(clamp(1.5rem, 5.4vw, 3rem), 8cqi); line-height: 1; letter-spacing: -.025em; }
.lead { font-size: var(--fs-lead); line-height: 1.38; font-weight: 450; max-width: 38ch; text-wrap: pretty; }
.prose { max-width: 62ch; }
.prose p + p { margin-top: 1em; }
.prose strong, .lead strong { font-weight: 700; }
.hl { color: var(--green); }
.s--ink .hl, .s--deep .hl { color: #9fd2ac; }
.s--green .hl { color: var(--sand-l); }
.label { display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-small); font-weight: 700; letter-spacing: .02em; color: var(--green); }
.label::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.s--ink .label, .s--green .label, .s--deep .label { color: #9fd2ac; }
.s--green .label { color: #fff; }
.num { font-variant-numeric: tabular-nums; }

/* Lignes masquées pour les révélations de titres (padding : accents jamais rognés) */
.mask { display: block; overflow: hidden; padding: .24em .05em .16em; margin: -.24em -.05em -.16em; }
.mask > span { display: block; }
.js [data-lines] .mask > span { transform: translate3d(0, 108%, 0); transition: transform 1s var(--ease); }
.js [data-lines].is-in .mask > span { transform: none; }
.js [data-lines].is-in .mask:nth-child(2) > span { transition-delay: .08s; }
.js [data-lines].is-in .mask:nth-child(3) > span { transition-delay: .16s; }
.js [data-lines].is-in .mask:nth-child(4) > span { transition-delay: .24s; }

/* Révélations (transform + opacité seulement : aucun décalage de mise en page) */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="scale"] { transform: scale(.96); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js [data-lines] .mask > span { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- Boutons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--lg { min-height: 60px; padding: 0 30px; font-size: 1.06rem; }
.btn--green { background: var(--green); color: #fff; }
.btn--green:hover { background: var(--green-d); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--ink-2); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--sand-l); }
.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn--ghost:hover { background: rgba(127,127,127,.12); }
.btn--glass { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.4); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--glass:hover { background: rgba(255,255,255,.24); }
@media (max-width: 420px) { .btns--stack .btn { width: 100%; } }

/* Lien flèche */
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .2s var(--ease); }
.link:hover svg { transform: translateX(3px); }

/* ---------- Progression + navigation ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 120; pointer-events: none; }
.progress b { display: block; height: 100%; background: var(--green); transform-origin: 0 50%; transform: scaleX(0); }
.nav { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--nav-h); transition: transform .4s var(--ease), background-color .3s, box-shadow .3s; color: #fff; }
.nav__in { height: 100%; display: flex; align-items: center; gap: 20px; padding-inline: var(--gutter); }
.nav__logo { position: relative; display: block; width: clamp(150px, 38vw, 200px); flex: none; }
.nav__logo img { width: 100%; height: auto; transition: opacity .3s; }
.nav__logo-g { position: absolute; inset: 0; opacity: 0; }
.nav__links { display: none; }
.nav__cta { display: none; }
.nav.is-solid, body.nav-solid .nav { background: rgba(246, 243, 238, .92); color: var(--ink); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); }
.nav.is-solid .nav__logo-w, body.nav-solid .nav__logo-w { opacity: 0; }
.nav.is-solid .nav__logo-g, body.nav-solid .nav__logo-g { opacity: 1; }
.nav.is-hidden { transform: translateY(-100%); }
.burger { margin-left: auto; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.16); display: grid; place-content: center; gap: 7px; cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.burger i { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease); }
.nav.is-solid .burger, body.nav-solid .burger { background: rgba(23,24,26,.06); }
.burger[aria-expanded="true"] i:first-of-type { transform: translateY(4.5px) rotate(45deg); }
.burger[aria-expanded="true"] i:last-of-type { transform: translateY(-4.5px) rotate(-45deg); }
@media (min-width: 1081px) {
  .nav__links { display: flex; gap: clamp(14px, 3.4vw - 20px, 40px); margin-left: auto; }
  .nav__links a { font-weight: 600; text-decoration: none; padding: 8px 0; position: relative; white-space: nowrap; }
  .nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: 0 50%; transition: transform .3s var(--ease); }
  .nav__links a:hover::after, .nav__links a[aria-current]::after { transform: scaleX(1); }
  .nav__cta { display: inline-flex; min-height: 48px; }
  .burger { display: none; }
}
.menu { position: fixed; inset: 0; z-index: 90; background: var(--green-dd); color: #fff; padding: calc(var(--nav-h) + 24px) var(--gutter) 32px; display: flex; flex-direction: column; justify-content: space-between; overflow-y: auto; }
.menu[hidden] { display: none; }
.menu__links { display: grid; }
.menu__links a { display: flex; align-items: baseline; gap: 14px; font-size: clamp(1.7rem, 7.6vw, 3rem); font-weight: 800; letter-spacing: -.025em; font-variation-settings: "wdth" 100; text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--line-l); }
.menu__links small { font-size: .8rem; font-weight: 600; opacity: .6; letter-spacing: 0; }
.menu__foot { display: grid; gap: 16px; margin-top: 32px; }
body.menu-open { overflow: hidden; }
body.menu-open .nav { background: transparent; box-shadow: none; color: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
body.menu-open .nav__logo-w { opacity: 1 !important; }
body.menu-open .nav__logo-g { opacity: 0 !important; }

/* ---------- Héro accueil : photo + panier détouré devant le titre ---------- */
.hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; background: var(--green-dd); color: #fff; isolation: isolate; --hp: 64% 50%; }
.hero__layer { position: absolute; inset: -4% -2% -8%; will-change: transform; }
.hero__layer img { width: 100%; height: 100%; object-fit: cover; object-position: var(--hp); }
.hero__bg { z-index: 0; }
.hero__shade { position: absolute; inset: 0; z-index: 1; background:
  linear-gradient(180deg, rgba(10,22,14,.55) 0%, rgba(10,22,14,0) 26%, rgba(10,22,14,0) 52%, rgba(10,22,14,.78) 100%),
  linear-gradient(90deg, rgba(10,22,14,.45), rgba(10,22,14,0) 60%); }
.hero__titlewrap { position: absolute; z-index: 2; inset: calc(var(--nav-h) + 3svh) 0 auto; }
.hero__title { font-size: min(clamp(2.9rem, 14.4vw, 15rem), 14.4cqi); line-height: .88; letter-spacing: -.035em; font-variation-settings: "wdth" 100; font-weight: 800; text-shadow: 0 8px 50px rgba(0,0,0,.18); }

.hero__cut { z-index: 3; pointer-events: none; }
.hero__foot { position: absolute; z-index: 4; inset: auto 0 0; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.hero__copy { display: grid; gap: 20px; }
.hero__copy .lead { max-width: 30ch; }
@media (max-width: 599px) { .hero__foot .btn { flex: 1 1 100%; } }
/* Mobile et tablette : le titre vit sous le panier, jamais derrière */
@media (max-width: 960px) {
  .hero { --hp: 33% 50%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .hero__cut { display: none; }
  .hero__titlewrap, .hero__foot { position: relative; inset: auto; z-index: 4; }
  .hero__titlewrap { margin-bottom: 18px; }
  .hero__foot { padding-bottom: 0; }
  .hero__shade { background: linear-gradient(180deg, rgba(10,22,14,.5) 0%, rgba(10,22,14,0) 22%, rgba(10,22,14,0) 38%, rgba(10,22,14,.88) 78%, rgba(10,22,14,.94) 100%); }
}
@media (min-width: 600px) and (max-width: 960px) { .hero { --hp: 30% 50%; } }
@media (min-width: 961px) {
  .hero { --hp: 30% 60%; }
  .hero__title { font-size: min(9.4cqi, 13rem); }
  .hero__titlewrap { top: calc(var(--nav-h) + 2svh); }
  .hero__foot { padding-bottom: 40px; }
  .hero__copy { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
}
.hero__scroll { display: none; }

/* Héro de page interne */
.phero { position: relative; min-height: 88svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; isolation: isolate; background: var(--green-dd); padding-top: calc(var(--nav-h) + 40px); padding-bottom: clamp(28px, 5vw, 64px); }
.phero__bg { position: absolute; inset: -4% 0 -8%; z-index: -2; will-change: transform; }
.phero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pp, 50% 50%); }
.phero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,22,14,.5) 0%, rgba(10,22,14,.05) 35%, rgba(10,22,14,.82) 100%); }
.phero__in { display: grid; gap: 22px; width: 100%; }
.phero .d1 { font-size: min(clamp(2.8rem, 12.6vw, 12rem), 12.6cqi); }
@media (min-width: 961px) { .phero__in { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: end; gap: 48px; } }

/* ---------- En-tête de section ---------- */
.head { display: grid; gap: 22px; margin-bottom: clamp(36px, 6vw, 88px); }
.head > div { container-type: inline-size; }
@media (min-width: 961px) {
  .head--split { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: end; gap: 48px; }
}

/* ---------- Services : grandes lignes numérotées ---------- */
.rows { border-top: 1px solid var(--line); }
.s--ink .rows, .s--deep .rows { border-color: var(--line-l); }
.row { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 18px; padding: 26px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.s--ink .row, .s--deep .row { border-color: var(--line-l); }
.row__n { font-size: var(--fs-small); font-weight: 700; color: var(--green); padding-top: .5em; }
.s--ink .row__n, .s--deep .row__n { color: #9fd2ac; }
.row__t { container-type: inline-size; }
.row__t h3 { font-size: min(clamp(1.9rem, 8vw, 5.4rem), 9.4cqi); letter-spacing: -.028em; font-variation-settings: "wdth" 100; line-height: .95; transition: transform .5s var(--ease), color .3s; }
.row__d { grid-column: 2; color: var(--muted); max-width: 46ch; }
.s--ink .row__d, .s--deep .row__d { color: rgba(255,255,255,.7); }
.row__img { grid-column: 1 / -1; margin-top: 14px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; }
.row__img img { width: 100%; height: 100%; object-fit: cover; }
.row__go { display: none; }
@media (min-width: 961px) {
  .row { grid-template-columns: 80px minmax(0, 1.4fr) minmax(0, 1fr) 64px; align-items: center; padding: 34px 0; gap: 32px; }
  .row__n { padding-top: 0; }
  .row__d { grid-column: auto; }
  .row__img { position: absolute; z-index: 5; right: 18%; top: 50%; width: clamp(260px, 22vw, 380px); aspect-ratio: 4 / 3; margin: 0; opacity: 0; transform: translate3d(0, -50%, 0) rotate(-3deg) scale(.9); transition: opacity .35s var(--ease), transform .5s var(--ease); pointer-events: none; box-shadow: 0 30px 60px -20px rgba(0,0,0,.45); }
  .row:hover .row__img { opacity: 1; transform: translate3d(0, -50%, 0) rotate(-3deg) scale(1); }
  .row:hover h3 { transform: translateX(14px); color: var(--green); }
  .s--ink .row:hover h3, .s--deep .row:hover h3 { color: #9fd2ac; }
  .row__go { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; border: 1.5px solid currentColor; transition: background-color .3s, color .3s, transform .3s var(--ease); }
  .row__go svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; }
  .row:hover .row__go { background: var(--green); border-color: var(--green); color: #fff; transform: rotate(-45deg); }
}

/* ---------- Chiffres ---------- */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid currentColor; }
.stat { padding: 22px 12px 26px 0; border-bottom: 1px solid var(--line); container-type: inline-size; }
.s--ink .stat, .s--green .stat, .s--deep .stat { border-color: var(--line-l); }
.stat b { display: block; font-size: min(clamp(2.6rem, 12vw, 8rem), 27cqi); font-weight: 800; letter-spacing: -.035em; line-height: .9; font-variation-settings: "wdth" 100; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 10px; font-size: .95rem; line-height: 1.35; max-width: 22ch; opacity: .8; }
@media (min-width: 861px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat { padding: 30px 24px 34px 0; border-bottom: 0; }
  .stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
  .s--ink .stat + .stat, .s--green .stat + .stat, .s--deep .stat + .stat { border-color: var(--line-l); }
}

/* ---------- Étapes : photos empilées collantes ---------- */
.steps { display: grid; gap: 18px; }
.step { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink); color: #fff; min-height: 72svh; display: flex; align-items: flex-end; isolation: isolate; }
.step img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.step::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,22,14,.1) 30%, rgba(10,22,14,.85)); }
.step__body { padding: clamp(22px, 4vw, 56px); display: grid; gap: 12px; width: 100%; container-type: inline-size; }
.step__n { font-size: var(--fs-small); font-weight: 700; color: #9fd2ac; }
.step h3 { font-size: min(clamp(2.4rem, 11vw, 9rem), 11.4cqi); letter-spacing: -.03em; font-variation-settings: "wdth" 100; line-height: .88; }
.step p { max-width: 40ch; font-size: var(--fs-lead); line-height: 1.35; }
@media (min-width: 861px) {
  .step { position: sticky; top: calc(var(--nav-h) + 16px); min-height: calc(100svh - var(--nav-h) - 48px); transform-origin: 50% 0; }
}

/* ---------- Fiche équipement : panier détouré + repères ---------- */
.spec { display: grid; gap: 40px; align-items: center; }
.spec__stage { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); background: radial-gradient(120% 80% at 50% 30%, #fff 0%, var(--sand-l) 70%); overflow: hidden; perspective: 1200px; }
.spec__stage::before { content: ""; position: absolute; left: 50%; bottom: 8%; width: 60%; height: 7%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(23,24,26,.28), transparent); filter: blur(4px); }
.spec__obj { position: absolute; left: 50%; bottom: 7%; height: 84%; transform: translateX(-50%); transform-style: preserve-3d; transition: transform .6s var(--ease); }
.spec__obj img { height: 100%; width: auto; max-width: none; }
.pin { position: absolute; z-index: 2; display: flex; align-items: center; gap: 8px; transform: translate(-50%, -50%); }
.pin button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--green); color: #fff; font-weight: 800; font-size: .85rem; cursor: pointer; box-shadow: 0 0 0 6px rgba(56,114,75,.22); transition: transform .2s var(--ease), box-shadow .3s; }
.pin button:hover, .pin.is-on button { transform: scale(1.12); box-shadow: 0 0 0 10px rgba(56,114,75,.25); }
.spec__list { display: grid; border-top: 1px solid var(--line); counter-reset: sp; }
.spec__item { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); cursor: default; transition: background-color .25s; }
.spec__item b { font-size: 1.1rem; }
.spec__item p { color: var(--muted); font-size: .95rem; margin-top: 2px; }
.spec__item i { width: 34px; height: 34px; border-radius: 50%; background: var(--green-l); color: var(--green); display: grid; place-items: center; font-weight: 800; font-size: .85rem; transition: background-color .25s, color .25s; }
.spec__item.is-on i { background: var(--green); color: #fff; }
.spec__dims { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip { display: inline-flex; align-items: baseline; gap: 6px; padding: 9px 15px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .92rem; }
.chip b { font-weight: 800; }
@media (min-width: 961px) { .spec { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 120px); } .spec__stage { aspect-ratio: auto; height: min(88vh, 900px); } }

/* ---------- Grande photo + énoncé ---------- */
.statement { position: relative; min-height: 92svh; display: flex; align-items: center; color: #fff; overflow: hidden; isolation: isolate; }
.statement__bg { position: absolute; inset: -8% 0; z-index: -2; will-change: transform; }
.statement__bg img { width: 100%; height: 100%; object-fit: cover; }
.statement::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,22,14,.55), rgba(10,22,14,.35) 50%, rgba(10,22,14,.7)); }
.statement .wrap { display: grid; gap: 28px; }
.statement .d2 { max-width: 14ch; }

/* ---------- Grille deux colonnes / média ---------- */
.split { display: grid; gap: clamp(28px, 5vw, 88px); align-items: center; }
.split > * { min-width: 0; container-type: inline-size; }
.split__text { display: grid; gap: 22px; align-content: start; }
.media { border-radius: var(--radius-lg); overflow: hidden; position: relative; background: var(--sand-l); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--tall { aspect-ratio: 4 / 5; }
.media--wide { aspect-ratio: 16 / 10; }
.media--sq { aspect-ratio: 1; }
.media figcaption { position: absolute; left: 14px; bottom: 14px; right: 14px; color: #fff; font-size: .85rem; font-weight: 600; text-shadow: 0 1px 12px rgba(0,0,0,.6); }
@media (min-width: 961px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split--wide-media { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
  .split--rev > :first-child { order: 2; }
  .media--tall { aspect-ratio: auto; height: min(86vh, 860px); }
}

/* ---------- Cartes ---------- */
.cards { display: grid; gap: 14px; }
.card { position: relative; border-radius: var(--radius-lg); background: #fff; padding: clamp(22px, 3vw, 36px); display: grid; gap: 12px; align-content: start; container-type: inline-size; border: 1px solid var(--line); }
.s--ink .card, .s--deep .card { background: rgba(255,255,255,.06); border-color: var(--line-l); }
.card h3 { font-size: min(clamp(1.5rem, 5.6vw, 2.4rem), 12cqi); letter-spacing: -.02em; font-variation-settings: "wdth" 100; line-height: 1; }
.card p { color: var(--muted); }
.s--ink .card p, .s--deep .card p { color: rgba(255,255,255,.72); }
.card__n { font-size: var(--fs-small); font-weight: 700; color: var(--green); }
.card--photo { padding: 0; overflow: hidden; color: #fff; min-height: 460px; display: flex; align-items: flex-end; border: 0; isolation: isolate; }
.card--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease); }
.card--photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,22,14,0) 35%, rgba(10,22,14,.85)); }
.card--photo:hover img { transform: scale(1.04); }
.card--photo .card__body { padding: clamp(22px, 3vw, 36px); display: grid; gap: 10px; }
.card--photo p { color: rgba(255,255,255,.82); }
@media (min-width: 721px) { .cards--2, .cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1081px) { .cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Liste à puces cochées */
.checks { list-style: none; padding: 0; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start; }
.checks li::before { content: ""; width: 26px; height: 26px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 15px no-repeat; margin-top: 1px; }
.s--green .checks li::before { background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2338724b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }

/* ---------- Galerie défilante horizontale ---------- */
.rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-inline: var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { flex: 0 0 min(82vw, 520px); scroll-snap-align: start; }
.rail .media { aspect-ratio: 4 / 5; }
@media (min-width: 961px) { .rail > * { flex-basis: min(34vw, 560px); } }

/* ---------- Réalisations ---------- */
.refs { display: grid; gap: 14px; }
.ref { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 70svh; display: flex; align-items: flex-end; color: #fff; isolation: isolate; text-decoration: none; }
.ref img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.ref::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,22,14,0) 40%, rgba(10,22,14,.85)); }
.ref:hover img { transform: scale(1.04); }
.ref__body { padding: clamp(22px, 3vw, 40px); display: grid; gap: 8px; width: 100%; container-type: inline-size; }
.ref__body h3 { font-size: min(clamp(2rem, 9vw, 4.8rem), 13cqi); letter-spacing: -.03em; font-variation-settings: "wdth" 100; line-height: .9; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-block; padding: 6px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: rgba(255,255,255,.16); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.tag--g { background: var(--green-l); color: var(--green-d); backdrop-filter: none; }
@media (min-width: 961px) { .refs { grid-template-columns: 1.3fr 1fr; } .refs .ref:first-child { grid-row: span 2; min-height: 100%; } .ref { min-height: 46vh; } }

/* ---------- Public / privé ---------- */
.aud { display: grid; gap: 14px; }
.aud__card { border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 48px); display: grid; gap: 22px; align-content: start; container-type: inline-size; }
.aud__card--pub { background: var(--green); color: #fff; }
.aud__card--priv { background: var(--ink); color: #fff; }
.aud__card h3 { font-size: min(clamp(2.2rem, 10vw, 5.2rem), 12.5cqi); letter-spacing: -.03em; font-variation-settings: "wdth" 100; line-height: .9; }
.aud__card ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.aud__card li { padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); font-size: .92rem; }
.person { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: center; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.22); }
.person img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.person b { display: block; font-size: 1.1rem; }
.person a { display: block; text-decoration: none; opacity: .85; overflow-wrap: anywhere; }
.person a:hover { opacity: 1; text-decoration: underline; }
@media (min-width: 861px) { .aud { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) 40px; gap: 16px; align-items: center; padding: 22px 0; font-weight: 700; font-size: clamp(1.1rem, 1rem + .6vw, 1.5rem); letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 40px; height: 40px; border-radius: 50%; background: var(--green-l) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2338724b' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 18px no-repeat; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 56px 24px 0; color: var(--muted); max-width: 70ch; }

/* ---------- Configurateur de projet ---------- */
.cfg { border-radius: var(--radius-lg); background: #fff; color: var(--ink); padding: clamp(20px, 3.5vw, 48px); display: grid; gap: 26px; border: 1px solid var(--line); }
.cfg fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; min-width: 0; }
.cfg legend { font-weight: 800; font-size: 1.15rem; margin-bottom: 12px; padding: 0; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt span { display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 600; transition: background-color .2s, color .2s, border-color .2s; }
.opt input:checked + span { background: var(--green); border-color: var(--green); color: #fff; }
.opt input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 3px; }
.cfg__out { display: grid; gap: 14px; padding-top: 22px; border-top: 1px solid var(--line); }
.cfg__out p { font-size: var(--fs-lead); line-height: 1.35; font-weight: 500; }

/* ---------- Formulaire ---------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field label { font-weight: 700; font-size: .95rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 54px; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-size: 1rem; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--green); box-shadow: 0 0 0 4px rgba(56,114,75,.15); }
.form__row { display: grid; gap: 16px; }
@media (min-width: 721px) { .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.form__note { font-size: var(--fs-small); color: var(--muted); }

/* ---------- Vidéo légère ---------- */
.yt { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: #000; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.yt button { position: absolute; inset: 0; margin: auto; width: 88px; height: 88px; border-radius: 50%; border: 0; background: var(--green); color: #fff; cursor: pointer; display: grid; place-items: center; transition: transform .2s var(--ease); }
.yt button:hover { transform: scale(1.06); }
.yt button svg { width: 30px; height: 30px; fill: currentColor; margin-left: 4px; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Logos partenaires ---------- */
.logos { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(24px, 5vw, 64px); }
.logos img { height: clamp(34px, 5vw, 54px); width: auto; }

/* ---------- CTA de fin ---------- */
.cta { display: grid; gap: 28px; }
.cta .d1 { max-width: 12ch; }
@media (min-width: 961px) { .cta { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: end; } }

/* ---------- Pied de page ---------- */
.foot { background: var(--green-dd); color: #fff; padding: clamp(64px, 9vw, 130px) var(--gutter) calc(96px + env(safe-area-inset-bottom)); }
.foot__big { display: grid; gap: 28px; padding-bottom: clamp(48px, 7vw, 96px); border-bottom: 1px solid var(--line-l); container-type: inline-size; }
.foot__claim { font-size: min(clamp(2.6rem, 11.4vw, 12rem), 11.4cqi); font-weight: 800; letter-spacing: -.035em; line-height: .9; font-variation-settings: "wdth" 100; }
.foot__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 20px; padding-block: 48px; }
.foot__brand { grid-column: 1 / -1; display: grid; gap: 16px; max-width: 420px; }
.foot__brand img { width: 200px; }
.foot__brand p { color: rgba(255,255,255,.72); }
.foot h2, .foot__h { font-size: .85rem; font-weight: 700; color: #9fd2ac; margin-bottom: 14px; letter-spacing: .02em; }
.foot ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot .muted { color: rgba(255,255,255,.55); font-size: .85rem; }
.foot__grid > div:nth-child(3) { grid-column: 1 / -1; }
/* mobile : la liste « Le site » prend toute la largeur, sinon ses libellés longs passent sur deux lignes à côté d'une colonne vide */
@media (max-width: 760px) { .foot__grid > div:nth-child(2) { grid-column: 1 / -1; } }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 24px; border-top: 1px solid var(--line-l); font-size: var(--fs-small); color: rgba(255,255,255,.6); }
@media (min-width: 761px) { .foot__grid > div:nth-child(3) { grid-column: auto; } .foot__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1081px) { .foot__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } .foot__brand { grid-column: auto; } .foot__big { grid-template-columns: minmax(0, 1fr) auto; align-items: end; } .foot { padding-bottom: 40px; } }

/* Barre d'action mobile */
.mcta { position: fixed; z-index: 80; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: minmax(0, 1fr) 56px; gap: 8px; transform: translateY(150%); transition: transform .45s var(--ease); }
.mcta.is-on { transform: none; }
.mcta .btn { min-height: 56px; box-shadow: 0 14px 30px -10px rgba(0,0,0,.4); }
.mcta__tel { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: #fff; box-shadow: 0 14px 30px -10px rgba(0,0,0,.4); }
.mcta__tel svg { width: 22px; height: 22px; fill: currentColor; }
@media (min-width: 1081px) { .mcta { display: none; } }

/* ---------- Loader plein écran + transitions (logo qui se remplit, pourcentage réel) ---------- */
:root { --pt-a: #c5a48e; --pt-b: #38724b; --pt-fg: #fff;; --pt-acc: #efe6dd; }
.ldr { position: fixed; inset: 0; z-index: 1000; pointer-events: none; visibility: hidden; --p: 0; }
.ldr__a, .ldr__b { position: absolute; inset: 0; clip-path: inset(100% 0 0 0); will-change: clip-path; }
.ldr__a { background: var(--pt-a); }
.ldr__b { background: var(--pt-b); color: var(--pt-fg); display: grid; grid-template-rows: minmax(0, 1fr) auto; padding: calc(28px + env(safe-area-inset-top)) var(--gutter) calc(26px + env(safe-area-inset-bottom)); overflow: hidden; }
.ldr__center { display: grid; place-items: center; align-content: center; gap: clamp(16px, 3vh, 28px); min-height: 0; }
.ldr__logo { position: relative; width: clamp(130px, 40vw, 280px); }
.ldr__logo img { display: block; width: 100%; height: auto; }
.ldr__ghost { opacity: .14; }
.ldr__fill { position: absolute; inset: 0; clip-path: inset(calc((1 - var(--p)) * 100%) 0 0 0); }
.ldr__label { font-weight: 800; font-size: clamp(1.5rem, 7vw, 3.4rem); line-height: 1; letter-spacing: -.02em; text-align: center; max-width: 90vw; min-height: 1em; overflow-wrap: normal; text-wrap: balance; }
.ldr__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.ldr__pct { display: flex; align-items: flex-start; font-weight: 800; font-size: clamp(4.6rem, 27vw, 15rem); line-height: .78; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.ldr__pct i { font-style: normal; font-size: .32em; line-height: 1; margin: .08em 0 0 .08em; opacity: .55; }
.ldr__name { font-size: .82rem; font-weight: 600; line-height: 1.35; opacity: .6; text-align: right; max-width: 46%; padding-bottom: .4em; }
.ldr__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .1); }
.ldr__bar b { display: block; height: 100%; background: var(--pt-acc); transform-origin: 0 50%; transform: scaleX(var(--p)); }
@media (min-width: 961px) { .ldr__name { font-size: .95rem; } }
html.ld .ldr, html.ld-out .ldr { visibility: visible; pointer-events: auto; }
html.ld .ldr__a, html.ld .ldr__b { clip-path: inset(0); }
/* Le rideau se lève */
html.ld-done .ldr__b { animation: ld-lift .82s .04s cubic-bezier(.76, 0, .24, 1) forwards; }
html.ld-done .ldr__a { animation: ld-lift .82s .16s cubic-bezier(.76, 0, .24, 1) forwards; }
html.ld-done .ldr__center, html.ld-done .ldr__foot { animation: ld-up .45s cubic-bezier(.5, 0, .75, 0) forwards; }
/* Le rideau descend vers la page suivante */
html.ld-out .ldr__a { animation: ld-cover .62s cubic-bezier(.76, 0, .24, 1) forwards; }
html.ld-out .ldr__b { animation: ld-cover .62s .07s cubic-bezier(.76, 0, .24, 1) forwards; }
html.ld-out .ldr__center, html.ld-out .ldr__foot { opacity: 0; transform: translate3d(0, 30px, 0); animation: ld-in .5s .32s cubic-bezier(.22, 1, .36, 1) forwards; }
/* Les révélations du héro attendent la levée du rideau */
html.ld-wait [data-lines] .mask > span { transform: translate3d(0, 110%, 0) !important; }
html.ld-wait [data-reveal] { opacity: 0 !important; }
@keyframes ld-cover { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }
@keyframes ld-lift { from { clip-path: inset(0); } to { clip-path: inset(0 0 100% 0); } }
@keyframes ld-up { to { opacity: 0; transform: translate3d(0, -40px, 0); } }
@keyframes ld-in { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ldr { display: none; } }


/* =========================================================
   Fluidité partout : révélations plus douces, photos qui s'ouvrent
   ========================================================= */
:root { --ease-smooth: cubic-bezier(.16, 1, .3, 1); }
.js [data-reveal] { transition: opacity 1s var(--ease-smooth), transform 1.15s var(--ease-smooth); }
.js [data-lines] .mask > span { transition-duration: 1.15s; transition-timing-function: var(--ease-smooth); }
.js [data-clip] { clip-path: inset(9% 7% 9% 7% round 28px); transition: clip-path 1.25s var(--ease-smooth); }
.js [data-clip] img { transform: scale(1.14); transition: transform 1.7s var(--ease-smooth); }
.js [data-clip].is-open { clip-path: inset(0 0 0 0 round 0px); }
.js [data-clip].is-open img { transform: none; }
html.ld-wait [data-clip] { clip-path: inset(9% 7% 9% 7% round 28px) !important; }
a, button, .btn { -webkit-tap-highlight-color: transparent; }
.btn { transition: transform .35s var(--ease-smooth), background-color .3s var(--ease-smooth), color .3s var(--ease-smooth), border-color .3s var(--ease-smooth), box-shadow .35s var(--ease-smooth); }
@media (hover: hover) { .btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -16px rgba(23, 24, 26, .45); } .btn:active { transform: translateY(0) scale(.98); } }
details[open] > *:not(summary) { animation: sm-open .5s var(--ease-smooth); }
@keyframes sm-open { from { opacity: 0; transform: translateY(-6px); } }
.card, .ref, .aud__card, .media { transition: transform .6s var(--ease-smooth), box-shadow .6s var(--ease-smooth); }
@media (hover: hover) { .card:hover, .aud__card:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -34px rgba(23, 24, 26, .5); } }

/* Envoi du formulaire */
.form.is-busy [type=submit] { pointer-events: none; opacity: .8; }
.form.is-busy [type=submit]::after { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; animation: sp-rot .7s linear infinite; }
@keyframes sp-rot { to { transform: rotate(360deg); } }
.sent { display: grid; gap: 20px; justify-items: start; padding: clamp(24px, 4vw, 56px); border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); outline: none; container-type: inline-size; animation: sm-open .7s var(--ease-smooth); }
.sent .d3 { font-size: min(clamp(2.2rem, 10vw, 5rem), 13cqi); }
.sent .lead { overflow-wrap: anywhere; }
.sent__check { width: 76px; height: 76px; fill: none; stroke: var(--green); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.sent__check circle { stroke-dasharray: 190; stroke-dashoffset: 190; animation: ck-draw .7s .1s var(--ease-smooth) forwards; }
.sent__check path { stroke-dasharray: 50; stroke-dashoffset: 50; animation: ck-draw .45s .6s var(--ease-smooth) forwards; }
@keyframes ck-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .js [data-clip], .js [data-clip] img { clip-path: none !important; transform: none !important; transition: none !important; }
  details[open] > *:not(summary), .sent { animation: none; }
}
.phero .hl, .hero .hl, .statement .hl { color: #9fd2ac; }

/* Fiche panier sur photo réelle */
.spec__stage--photo { background: var(--ink); perspective: none; }
.spec__stage--photo::before { display: none; }
.spec__stage--photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 49% 50%; }
.spec__stage--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,22,14,0) 60%, rgba(10,22,14,.25)); pointer-events: none; }
.spec__stage--photo .pin button { box-shadow: 0 0 0 6px rgba(255,255,255,.35), 0 6px 18px rgba(0,0,0,.35); }

/* =========================================================
   Configurateur « Votre projet en 20 secondes »
   ========================================================= */
.cfx { display: grid; gap: 16px; align-items: start; }
.cfx__steps { display: grid; gap: 12px; min-width: 0; }
.cfx__step { border: 0; margin: 0; padding: clamp(18px, 3vw, 30px); border-radius: var(--radius-lg); background: #fff; min-width: 0; }
.cfx__step legend { float: left; width: 100%; display: flex; align-items: center; gap: 12px; padding: 0; margin-bottom: 16px; font-weight: 800; font-size: clamp(1.15rem, 4.6vw, 1.5rem); letter-spacing: -.015em; }
.cfx__step legend + * { clear: both; }
.cfx__n { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--green-l); color: var(--green); font-size: .9rem; transition: background-color .3s, color .3s; }
.cfx__step:focus-within .cfx__n, .cfx__step:has(input:checked) .cfx__n { background: var(--green); color: #fff; }

/* Tuiles projet */
.cfx__kinds { display: grid; gap: 8px; }
.cfx-kind, .cfx-site { position: relative; display: block; cursor: pointer; min-width: 0; }
.cfx-kind input, .cfx-site input { position: absolute; opacity: 0; inset: 0; pointer-events: none; }
.cfx-kind__in { display: grid; grid-template-columns: 48px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--paper); transition: background-color .35s var(--ease-smooth), border-color .35s, color .35s, transform .35s var(--ease-smooth); }
.cfx-kind__in svg { grid-row: span 2; width: 48px; height: 48px; padding: 9px; border-radius: 14px; background: #fff; fill: none; stroke: var(--green); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: background-color .35s, stroke .35s; }
.cfx-kind__in b { font-size: 1.05rem; line-height: 1.2; }
.cfx-kind__in small { color: var(--muted); font-size: .86rem; }
.cfx-kind input:checked + .cfx-kind__in { background: var(--green); border-color: var(--green); color: #fff; transform: translateY(-2px); }
.cfx-kind input:checked + .cfx-kind__in small { color: rgba(255,255,255,.78); }
.cfx-kind input:checked + .cfx-kind__in svg { background: rgba(255,255,255,.16); stroke: #fff; }
.cfx-kind input:focus-visible + .cfx-kind__in, .cfx-site input:focus-visible + .cfx-site__in { outline: 3px solid var(--green); outline-offset: 3px; }
@media (hover: hover) { .cfx-kind:hover .cfx-kind__in { border-color: var(--green); } }
@media (min-width: 721px) { .cfx__kinds { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cfx-kind__in { grid-template-columns: 1fr; row-gap: 4px; padding: 18px; height: 100%; align-content: start; } .cfx-kind__in svg { grid-row: auto; margin-bottom: 10px; } }

/* Tuiles photo du site */
.cfx__sites { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cfx-site__in { position: relative; display: flex; align-items: flex-end; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; color: #fff; isolation: isolate; outline: 2.5px solid transparent; outline-offset: -2.5px; transition: outline-color .3s; }
.cfx-site__in img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .9s var(--ease-smooth), filter .5s; filter: saturate(.85); }
.cfx-site__in::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,22,14,0) 35%, rgba(10,22,14,.75)); }
.cfx-site__in b { padding: 12px 14px; font-size: .98rem; line-height: 1.15; }
.cfx-site__in::before { content: ""; position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(255,255,255,.8); background: rgba(10,22,14,.2) center / 15px no-repeat; transition: background-color .3s, border-color .3s, transform .4s var(--ease-smooth); }
.cfx-site input:checked + .cfx-site__in { outline-color: var(--green); }
.cfx-site input:checked + .cfx-site__in img { transform: scale(1.06); filter: none; }
.cfx-site input:checked + .cfx-site__in::before { background-color: var(--green); border-color: var(--green); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); transform: scale(1.1); }
@media (hover: hover) { .cfx-site:hover .cfx-site__in img { transform: scale(1.05); filter: none; } }
@media (min-width: 721px) { .cfx__sites { grid-template-columns: repeat(4, minmax(0, 1fr)); } .cfx-site__in { aspect-ratio: 3 / 4; } }

/* Curseur nombre de trous */
.holes-ui { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px; }
.holes-ui__range { -webkit-appearance: none; appearance: none; width: 100%; height: 10px; border-radius: 999px; background: linear-gradient(90deg, var(--green) calc(var(--p, .4) * 100%), var(--green-l) 0); cursor: pointer; }
.holes-ui__range::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 3px solid var(--green); box-shadow: 0 6px 16px -6px rgba(23,24,26,.45); transition: transform .2s var(--ease-smooth); }
.holes-ui__range::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid var(--green); }
.holes-ui__range:active::-webkit-slider-thumb { transform: scale(1.15); }
.holes-ui__range:disabled { opacity: .4; cursor: not-allowed; }
.holes-ui__out { display: flex; align-items: baseline; gap: 6px; min-width: 4.2em; justify-content: flex-end; }
.holes-ui__out b { font-size: clamp(2.4rem, 9vw, 3.4rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.holes-ui__out span { color: var(--muted); font-weight: 600; }
.holes-ui__dots { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 6px; margin: 18px 0 14px; }
.holes-ui__dots i { position: relative; aspect-ratio: 1; border-radius: 50%; background: var(--green-l); display: grid; place-items: center; transform: scale(.7); opacity: .5; transition: transform .45s var(--ease-smooth), background-color .35s, opacity .35s; }
.holes-ui__dots i b { font-size: .62rem; font-weight: 800; color: var(--green); opacity: 0; transition: opacity .3s; }
.holes-ui__dots i.is-on { background: var(--green); transform: none; opacity: 1; }
.holes-ui__dots i.is-on b { color: #fff; opacity: 1; }
.cfx.is-libre .holes-ui__dots i, .cfx.is-libre .holes-ui__out { opacity: .3; }
@media (min-width: 721px) { .holes-ui__dots { grid-template-columns: repeat(18, minmax(0, 1fr)); } }
.chip-t { position: relative; display: inline-block; cursor: pointer; }
.chip-t input { position: absolute; opacity: 0; inset: 0; pointer-events: none; }
.chip-t span { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 600; font-size: .92rem; transition: background-color .25s, color .25s, border-color .25s; }
.chip-t span::before { content: ""; width: 16px; height: 16px; border-radius: 5px; border: 2px solid currentColor; opacity: .6; }
.chip-t input:checked + span { background: var(--green); border-color: var(--green); color: #fff; }
.chip-t input:checked + span::before { opacity: 1; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2338724b' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; border-color: #fff; }
.cfx__q:not([hidden]) { animation: sm-open .5s var(--ease-smooth); }

/* Fiche « Votre demande » */
.cfx__card { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius-lg); color: #fff; padding: clamp(22px, 3.4vw, 36px); display: grid; gap: 20px; min-height: 420px; align-content: space-between; background: var(--green-dd); }
.cfx__bg { position: absolute; inset: 0; z-index: -1; }
.cfx__bg img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s var(--ease-smooth), transform 1.4s var(--ease-smooth); transform: scale(1.04); }
.cfx__bg img.is-swap { opacity: 0; transform: scale(1.1); }
.cfx__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,22,14,.55), rgba(10,22,14,.45) 40%, rgba(10,22,14,.92)); }
.cfx__top { display: flex; justify-content: space-between; align-items: center; }
.cfx__eyebrow { font-weight: 700; font-size: .95rem; }
.cfx__ring { width: 44px; height: 44px; transform: rotate(-90deg); }
.cfx__ring circle { fill: none; stroke: rgba(255,255,255,.22); stroke-width: 3.5; }
.cfx__ring .cfx__ring-p { stroke: #9fd2ac; stroke-linecap: round; transition: stroke-dashoffset .7s var(--ease-smooth); }
.cfx__sum { display: grid; margin: 0; }
.cfx__sum div { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.cfx__sum div:first-child { border-top: 1px solid rgba(255,255,255,.18); }
.cfx__sum dt { font-size: .82rem; color: rgba(255,255,255,.65); font-weight: 600; }
.cfx__sum dd { margin: 0; font-weight: 800; font-size: clamp(1.1rem, 4.4vw, 1.45rem); line-height: 1.2; letter-spacing: -.01em; overflow-wrap: anywhere; transition: color .3s; }
.cfx__sum dd.is-empty { color: rgba(255,255,255,.45); font-weight: 600; }
.cfx__go { width: 100%; }
.cfx__note { font-size: .85rem; color: rgba(255,255,255,.7); }
@media (min-width: 1081px) {
  .cfx { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; }
  .cfx__card { position: sticky; top: calc(var(--nav-h) + 20px); min-height: min(74vh, 640px); }
}
@media (prefers-reduced-motion: reduce) { .cfx__q, .cfx__bg img, .holes-ui__dots i { animation: none !important; transition: none !important; } }

/* Héro vidéo */
.hero__layer video { width: 100%; height: 100%; object-fit: cover; object-position: var(--hp); display: block; }
.hero__video { background: var(--green-dd) url("../img/hero-video-poster-v2.webp") center / cover no-repeat; }
.hero { --hp: 50% 50%; }
@media (max-width: 960px) { .hero { --hp: 50% 50%; } }
@media (min-width: 961px) { .hero { --hp: 50% 50%; } }
/* Héro mobile : affiche verticale légère, titre qui remplit la largeur, actions au pouce */
@media (max-width: 760px) and (orientation: portrait) { .hero__video { background-image: url("../img/hero-video-poster-m-v2.webp"); } }
@media (max-width: 960px) {
  .hero { min-height: 560px; }
  .hero__title { font-size: min(clamp(2.7rem, 15.2vw, 7rem), 15.2cqi); line-height: .9; }
  .hero__titlewrap { margin-bottom: 14px; }
  .hero__copy { gap: 18px; }
  .hero__copy .lead { font-size: clamp(1.05rem, 4.4vw, 1.3rem); max-width: 32ch; }
  .hero__foot .btns { gap: 8px; }
  .hero__foot .btn { min-height: 56px; }
}
@media (max-width: 960px) and (max-height: 700px) { .hero__title { font-size: min(12.4vw, 12.4cqi); } .hero__foot .btn { min-height: 50px; } }
/* Héro : interlignage resserré */
.hero__title { line-height: .8 !important; }
.hero__title .mask { padding-block: .3em .22em; margin-block: -.3em -.22em; }

/* Héro bureau : titre centré, interlignage serré, actions centrées */
@media (min-width: 961px) {
  .hero__titlewrap { inset: 0; display: grid; place-items: center; padding-top: var(--nav-h); padding-bottom: 150px; }
  .hero__title { text-align: center; line-height: .76 !important; font-size: min(10.4cqi, 14rem); }
  .hero__title .mask > span { margin-inline: auto; }
  .hero__copy { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 22px; }
  .hero__copy .lead { max-width: 46ch; }
  .hero__copy .btns { justify-content: center; }
}
@media (min-width: 961px) {
  .hero__title { font-size: min(8.6cqi, 12rem, calc((100svh - 340px) / 3.1)); }
}
/* Héro bureau : titre et sous-titre dans le même flux, aucun chevauchement possible */
@media (min-width: 961px) {
  .hero { display: flex; flex-direction: column; }
  .hero__titlewrap { position: relative; inset: auto; flex: 1 1 auto; display: grid; place-items: center; padding-top: calc(var(--nav-h) + 2svh); padding-bottom: 3svh; min-height: 0; }
  .hero__foot { position: relative; inset: auto; flex: none; padding-bottom: 44px; }
  .hero__title { font-size: min(8.4cqi, 12rem, calc((100svh - 360px) / 3.05)); }
}
/* Héro bureau : retour au titre aligné à gauche en haut, sous-titre et boutons en bas */
@media (min-width: 961px) {
  .hero__titlewrap { place-items: start; align-content: start; padding-top: calc(var(--nav-h) + 3svh); padding-bottom: 6svh; }
  .hero__title { text-align: left; }
  .hero__title .mask > span { margin-inline: 0; }
  .hero__copy { grid-template-columns: minmax(0, 1fr) auto; justify-items: stretch; align-items: end; text-align: left; gap: 32px; }
  .hero__copy .lead { max-width: 34ch; }
  .hero__copy .btns { justify-content: flex-end; }
}
.person img { object-position: 50% 18%; }

/* =========================================================
   Grande icône du logo en fond, en parallaxe (comme la plaquette)
   ========================================================= */
.has-mark { position: relative; overflow: hidden; isolation: isolate; }
.has-mark > .wrap { position: relative; z-index: 1; }
.bgmark { position: absolute; z-index: 0; top: -6%; right: -14vw; width: clamp(320px, 62vw, 820px); aspect-ratio: 1; pointer-events: none; }
.bgmark img { width: 100%; height: 100%; opacity: .09; will-change: transform; }
.has-mark--left .bgmark { right: auto; left: -16vw; top: auto; bottom: -12%; }
.s--deep .bgmark img, .s--ink .bgmark img, .s--green .bgmark img { filter: brightness(0) invert(1); opacity: .06; }
.s--sand .bgmark img { opacity: .1; }
@media (min-width: 961px) { .bgmark { right: -6vw; top: -10%; width: min(52vw, 820px); } .has-mark--left .bgmark { left: -8vw; } }

/* Qui sommes-nous */
.qui { display: grid; gap: clamp(28px, 5vw, 80px); align-items: center; }
.qui__text { display: grid; gap: 20px; container-type: inline-size; min-width: 0; }
.qui__kicker { font-size: var(--fs-lead); font-weight: 700; color: var(--green); line-height: 1.3; max-width: 30ch; }
.qui__values { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.qui__values li { padding: 10px 18px; border-radius: 999px; background: var(--green); color: #fff; font-size: 1rem; }
.qui__more { display: grid; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); max-width: 60ch; }
.qui__more b { color: var(--ink); }
.qui__media { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; align-items: end; min-width: 0; }
.qui__a { aspect-ratio: 4 / 4.6; }
.qui__b { aspect-ratio: 3 / 4.2; transform: translateY(-14%); }
@media (min-width: 961px) { .qui { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }

/* Un investissement rentable */
.inv { display: grid; gap: 14px; }
.inv__media { aspect-ratio: 16 / 10; }
.inv__cards { display: grid; gap: 12px; }
.inv__card { display: grid; gap: 8px; align-content: start; padding: clamp(20px, 2.6vw, 30px); border-radius: var(--radius-lg); background: var(--paper); border: 1px solid var(--line); container-type: inline-size; transition: transform .6s var(--ease-smooth), background-color .4s, box-shadow .6s var(--ease-smooth); }
.inv__n { font-size: .82rem; font-weight: 800; color: var(--green); }
.inv__card h3 { font-size: min(clamp(1.35rem, 5.4vw, 1.9rem), 12cqi); letter-spacing: -.02em; line-height: 1.05; }
.inv__card p { color: var(--muted); }
@media (hover: hover) { .inv__card:hover { transform: translateY(-4px); background: #fff; box-shadow: 0 30px 50px -34px rgba(23,24,26,.45); } }
@media (min-width: 721px) { .inv__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1081px) { .inv { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: stretch; } .inv__media { aspect-ratio: auto; min-height: 100%; } }
.cfx__step .cfx__q { clear: both; }

/* ===== Retours de Guillaume (21/11) ===== */
/* Héro bureau : titre centré verticalement entre le logo et le sous-titre, toujours aligné à gauche */
@media (min-width: 961px) { .hero__titlewrap { align-content: center; place-items: center start; padding-top: var(--nav-h); padding-bottom: 2svh; } }

/* « Un 9 trous… » : bouton décollé du bas de la photo */
.statement { padding-block: clamp(72px, 9vw, 140px); }
.statement .btns { margin-bottom: clamp(8px, 2vw, 28px); }

/* Qui sommes-nous : les deux portraits, même taille */
.qui__media { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.qui__p { aspect-ratio: 3 / 4; }
.qui__p img { object-position: 50% 20%; }
.qui__p figcaption { left: 12px; right: auto; bottom: 12px; padding: 7px 12px; border-radius: 999px; background: rgba(23,24,26,.6); text-shadow: none; font-size: .85rem; }

/* Configurateur : logo à la place du chapeau */
.cfx__logo { display: flex; align-items: flex-end; }
.cfx__logo img { width: clamp(170px, 26vw, 300px); height: auto; }
@media (min-width: 961px) { .cfx__logo { justify-content: flex-end; } }

/* Fiche panier : bouton spécifications */
.spec__actions { margin-top: 18px; }

/* Cliché des spécifications techniques au-dessus du site */
.specs { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 16px; background: rgba(10,22,14,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s var(--ease-smooth); }
.specs.is-on { opacity: 1; }
.specs[hidden] { display: none; }
.specs__panel { position: relative; width: min(75vw, 1200px); max-height: 86svh; overflow: auto; background: #fff; border-radius: var(--radius-lg); padding: clamp(14px, 2.4vw, 32px); box-shadow: 0 40px 90px -30px rgba(0,0,0,.6); transform: scale(.96) translateY(8px); transition: transform .35s var(--ease-smooth); }
.specs.is-on .specs__panel { transform: none; }
/* le bas du cliché d'origine porte un mot rogné (« DIMENSIONS ») : on le masque */
.specs__panel img { width: 100%; height: auto; aspect-ratio: 2300 / 1120; object-fit: cover; object-position: 50% 0; }
.specs__cap { margin-top: 10px; font-size: .85rem; color: var(--muted); }
.specs__close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
@media (max-width: 760px) { .specs__panel { width: 100%; } }
html.specs-open { overflow: hidden; }

/* Galeries : défilement automatique, flèches */
@media (min-width: 721px) { [data-autorail] { scroll-snap-type: none; cursor: grab; } [data-autorail].is-drag { cursor: grabbing; user-select: none; } }
.rail-nav { display: none; }
@media (min-width: 721px) {
  .rail-nav { display: flex; justify-content: flex-end; gap: 8px; padding: 14px var(--gutter) 0; }
  .rail-nav__b { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; transition: background-color .25s, border-color .25s, transform .25s var(--ease-smooth); }
  .rail-nav__b svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2; }
  .rail-nav__b:hover { background: var(--green); border-color: var(--green); transform: translateY(-2px); }
  .rail-nav__b:hover svg { stroke: #fff; }
}

/* =========================================================
   Blog : cartes d'articles (accueil, liste, « À lire aussi »)
   Un seul balisage (admin-config.php, blog.card), trois dispositions.
   ========================================================= */
.posts { display: grid; gap: clamp(36px, 5vw, 64px) clamp(14px, 2vw, 28px); }
.posts:empty { display: none; }
.s:has(> .wrap > .posts:empty) { display: none; }
.post { display: grid; gap: 18px; align-content: start; min-width: 0; color: inherit; text-decoration: none; container-type: inline-size; }
.post__img { aspect-ratio: 3 / 2; }
.post__img img { transition: transform 1s var(--ease); }
.post:hover .post__img img { transform: scale(1.04); }
.post__body { display: grid; gap: 12px; align-content: start; justify-items: start; min-width: 0; }
.post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: var(--fs-small); font-weight: 600; color: var(--muted); }
.post__meta > * { white-space: nowrap; }
.post__meta > * + *::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .5; margin-right: 12px; vertical-align: middle; }
.post__cat { position: absolute; left: 12px; top: 12px; background: rgba(23, 24, 26, .46); color: #fff; }
.tag:empty { display: none; } /* article sans catégorie : pas de pastille vide */
.post__t { font-size: min(clamp(1.5rem, 5.6vw, 2.5rem), 7.8cqi); font-weight: 800; letter-spacing: -.025em; line-height: 1.04; font-variation-settings: "wdth" 100; text-wrap: balance; }
.post__x { color: var(--muted); max-width: 56ch; text-wrap: pretty; }
.post__go { margin-top: 4px; font-size: .95rem; }
.post:hover .post__go svg { transform: translateX(3px); }

/* Ligne compacte : vignette à gauche, titre à droite */
@media (max-width: 719px) {
  .posts--home { gap: 0; }
  .posts--home .post + .post { grid-template-columns: 104px minmax(0, 1fr); gap: 16px; align-items: center; margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
  .posts--home .post + .post .post__img { aspect-ratio: 1; border-radius: var(--radius); }
  .posts--home .post + .post .post__t { font-size: 1.2rem; line-height: 1.12; }
  .posts--home .post + .post :is(.post__x, .post__go, .post__cat, .post__meta span) { display: none; }
}
@media (min-width: 720px) {
  .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Premier article en grand, image et texte côte à côte */
  .posts--list .post:first-child, .posts--home .post:first-child { grid-column: 1 / -1; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
  .posts--list .post:first-child .post__t, .posts--home .post:first-child .post__t { font-size: min(clamp(2rem, 4.4vw, 4.2rem), 11cqi); line-height: 1; }
  .posts--list .post:first-child .post__body, .posts--home .post:first-child .post__body { gap: 18px; }
}
@media (min-width: 1081px) {
  /* Accueil : un grand article, les suivants en lignes à droite */
  .posts--home { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); grid-auto-rows: 1fr; gap: 0 clamp(28px, 4vw, 72px); }
  .posts--home .post:first-child { grid-column: 1; grid-row: 1 / span 2; grid-template-columns: minmax(0, 1fr); gap: 22px; align-content: start; }
  .posts--home .post:first-child .post__img { aspect-ratio: 16 / 10; }
  .posts--home .post:first-child .post__t { font-size: min(clamp(2rem, 3.2vw, 3.4rem), 8cqi); }
  .posts--home .post + .post { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: clamp(18px, 2vw, 32px); padding-block: clamp(18px, 2vw, 28px); border-top: 1px solid var(--line); }
  .posts--home .post:last-child { border-bottom: 1px solid var(--line); }
  .posts--home .post + .post { align-items: stretch; grid-template-rows: minmax(0, 1fr); }
  .posts--home .post + .post .post__img { aspect-ratio: auto; min-height: 190px; height: 100%; }
  .posts--home .post + .post .post__body { align-content: center; }
  .posts--home .post + .post .post__t { font-size: min(clamp(1.3rem, 1.7vw, 1.9rem), 11cqi); line-height: 1.08; }
  .posts--home .post + .post :is(.post__x, .post__go) { display: none; }
  .posts--home .post:only-child { grid-column: 1 / -1; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; }
}
@media (min-width: 1281px) {
  .posts--list:has(.post:nth-child(5)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* =========================================================
   Mentions légales : fenêtre sur ordinateur, feuille plein écran sur mobile
   (texte fourni par l'administration à la place du marqueur du pied de page)
   ========================================================= */
.foot__base a { color: inherit; text-decoration: underline; text-decoration-color: rgba(255,255,255,.35); text-underline-offset: .22em; }
.foot__base a:hover { color: #fff; text-decoration-color: currentColor; }
.foot:has(+ .legal .legal__body:empty) [data-legal-open] { display: none; }
.legal { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(10, 22, 14, 0); color: var(--ink); overflow: hidden; transition: background-color .2s var(--ease); }
.legal:not([open]) { display: none; }
.legal[open] { display: grid; align-items: end; justify-items: stretch; }
.legal::backdrop { background: transparent; }
.legal.is-on { background: rgba(10, 22, 14, .72); }
.legal__panel { display: flex; flex-direction: column; width: 100%; height: 100dvh; max-height: 100dvh; background: var(--paper); overflow: hidden; opacity: 0; transform: translate3d(0, 24px, 0); transition: opacity .2s var(--ease), transform .22s var(--ease); }
.legal.is-on .legal__panel { opacity: 1; transform: none; }
.legal.is-out { transition-duration: .16s; }
.legal.is-out .legal__panel { transition-duration: .16s; }
.legal__head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px var(--gutter) 14px; padding-top: calc(14px + env(safe-area-inset-top)); border-bottom: 1px solid var(--line); background: var(--paper); }
.legal__title { font-size: clamp(1.5rem, 1.1rem + 2vw, 2.4rem); font-weight: 800; letter-spacing: -.028em; line-height: 1; font-variation-settings: "wdth" 100; }
.legal__close { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; display: grid; place-items: center; cursor: pointer; transition: transform .2s var(--ease), background-color .2s; }
.legal__close:hover { background: var(--green); }
.legal__close:active { transform: scale(.95); }
.legal__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.legal__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: clamp(22px, 4vw, 44px) var(--gutter) calc(40px + env(safe-area-inset-bottom)); font-size: 1rem; line-height: 1.62; overflow-wrap: break-word; }
.legal__body:focus-visible { outline-offset: -3px; }
.legal__body > * { max-width: 68ch; }
.legal__body > * + * { margin-top: 1em; }
.legal__body h2 { font-size: clamp(1.25rem, 1.1rem + .8vw, 1.6rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.12; margin-top: 2em; padding-top: 1.1em; border-top: 1px solid var(--line); }
.legal__body > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal__body h3 { font-size: 1.08rem; font-weight: 800; line-height: 1.2; margin-top: 1.6em; }
.legal__body h2 + *, .legal__body h3 + * { margin-top: .6em; }
.legal__body p, .legal__body li { color: #3b3f3c; }
.legal__body strong { font-weight: 700; color: var(--ink); }
.legal__body em { font-weight: 600; }
.legal__body ul, .legal__body ol { padding-left: 1.2em; display: grid; gap: .4em; }
.legal__body li::marker { color: var(--green); font-weight: 700; }
.legal__body a { color: var(--green-d); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(56, 114, 75, .4); text-decoration-thickness: 2px; text-underline-offset: .22em; overflow-wrap: anywhere; }
.legal__body a:hover { text-decoration-color: currentColor; }
html.legal-open { overflow: hidden; }
@media (min-width: 761px) {
  .legal[open] { align-items: center; justify-items: center; padding: 24px; }
  .legal__panel { width: min(860px, 100%); height: auto; max-height: min(86svh, 920px); border-radius: var(--radius-lg); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .6); transform: translate3d(0, 12px, 0) scale(.97); }
  .legal__head { padding: 22px clamp(28px, 4vw, 48px); }
  .legal__body { padding: 32px clamp(28px, 4vw, 48px) 44px; font-size: 1.0625rem; }
}
@media (prefers-reduced-motion: reduce) { .legal, .legal__panel { transition: none !important; } }


/* =========================================================
   Référencement : tableaux de données, liens dans les chapôs, pages filles
   ========================================================= */
.lead a, .prose a, .faq details a, .tbl a { color: inherit; text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .2em; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); transition: text-decoration-color .2s var(--ease); }
.lead a:hover, .prose a:hover, .faq details a:hover, .tbl a:hover { text-decoration-color: currentColor; }
.btns.more { margin-top: clamp(24px, 3vw, 40px); }
.aud__card > .link { justify-self: start; }
.posts > .bl-empty { display: grid; gap: 22px; grid-column: 1 / -1; }

/* Tableau de données : lignes empilées sur mobile (l'intitulé de colonne vient de data-th), vraie grille à partir de 761 px */
.tbl-wrap { margin-block: clamp(28px, 4vw, 56px); }
.tbl { width: 100%; border-collapse: collapse; text-align: left; }
.tbl caption { caption-side: top; text-align: left; font-weight: 700; font-size: clamp(1.1rem, 1rem + .6vw, 1.5rem); letter-spacing: -.01em; padding-bottom: 14px; text-wrap: balance; }
.tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.tbl tr { display: grid; gap: 6px; padding: 18px 0; border-top: 1px solid var(--line); }
.tbl tbody tr:last-child { border-bottom: 1px solid var(--line); }
.tbl th, .tbl td { display: block; padding: 0; font-weight: 400; overflow-wrap: break-word; }
.tbl th[scope="row"] { font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; }
.tbl td { color: var(--muted); }
.tbl td[data-th]::before { content: attr(data-th) " : "; font-weight: 700; color: var(--ink); }
.tbl--kv td { color: var(--ink); }
.s--ink .tbl tr, .s--deep .tbl tr, .s--green .tbl tr { border-color: var(--line-l); }
.s--ink .tbl td, .s--deep .tbl td, .s--green .tbl td { color: rgba(255, 255, 255, .78); }
.s--ink .tbl td[data-th]::before, .s--deep .tbl td[data-th]::before, .s--green .tbl td[data-th]::before { color: #fff; }
@media (min-width: 761px) {
  .tbl thead { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  .tbl tr { display: table-row; padding: 0; }
  .tbl th, .tbl td { display: table-cell; padding: 18px 24px 18px 0; vertical-align: top; }
  .tbl thead th { font-size: var(--fs-small); font-weight: 700; color: var(--muted); padding-block: 0 12px; }
  .tbl tbody tr { border-top: 1px solid var(--line); }
  .tbl td[data-th]::before { content: none; }
  .tbl th[scope="row"] { width: 26%; }
  .tbl--kv th[scope="row"] { width: 38%; font-size: 1rem; font-weight: 700; }
}

/* Fiche de réalisation : photo, texte, repères */
.rz { display: grid; gap: clamp(28px, 5vw, 88px); align-items: start; scroll-margin-top: calc(var(--nav-h) + 20px); }
.rz > * { min-width: 0; container-type: inline-size; }
.rz + .rz { margin-top: clamp(56px, 8vw, 140px); }
.rz__media { display: grid; gap: 14px; }
.rz__media .media--plan { aspect-ratio: 16 / 10; }
.rz__media .media--plan img { object-fit: contain; background: #fff; }
.rz__text { display: grid; gap: 20px; align-content: start; }
.rz__text .d2 { font-size: min(clamp(1.9rem, 7.6vw, 4.2rem), 9.4cqi); }
.rz__text { order: -1; }
@media (min-width: 961px) { .rz { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } .rz__text { order: 0; } .rz--rev .rz__media { order: 2; } .rz__text { position: sticky; top: calc(var(--nav-h) + 28px); } }

/* Groupes de questions (page des questions fréquentes) */
.fq { display: grid; gap: clamp(20px, 3vw, 40px); scroll-margin-top: calc(var(--nav-h) + 20px); }
.fq + .fq { margin-top: clamp(48px, 7vw, 110px); }
.fq > * { min-width: 0; container-type: inline-size; }
.fq .d3 { text-wrap: balance; }
@media (min-width: 961px) { .fq { grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); align-items: start; } .fq > div:first-child { position: sticky; top: calc(var(--nav-h) + 28px); } }

/* Héro typographique sans photo (blog, questions fréquentes) */
.bl-hero { padding-top: calc(var(--nav-h) + clamp(36px, 7vw, 110px)); padding-bottom: clamp(40px, 6vw, 88px); }
.bl-hero__title { font-size: min(clamp(3rem, 17vw, 16rem), 17cqi); line-height: .88; letter-spacing: -.04em; }
.bl-hero__row { display: grid; gap: 14px; margin-top: clamp(24px, 4vw, 48px); }
.bl-hero__row .lead { max-width: 44ch; }
.bl-hero__for { color: var(--muted); font-weight: 600; max-width: 34ch; text-wrap: pretty; }
@media (min-width: 961px) { .bl-hero__row { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: end; gap: 48px; } .bl-hero__for { justify-self: end; text-align: right; } }
.bl-hero__title--m { font-size: min(clamp(2.6rem, 14vw, 14rem), 14cqi); }

/* Héro de page fille : titre sur toute la largeur, chapô et boutons dessous (même principe que la page Création de parcours) */
.phero__side { display: grid; gap: 20px; }
.phero--stack::after { background: linear-gradient(180deg, rgba(10,22,14,.5) 0%, rgba(10,22,14,.12) 30%, rgba(10,22,14,.55) 55%, rgba(10,22,14,.88) 100%); }
.phero--stack .phero__side .lead { max-width: 48ch; }
@media (max-width: 599px) { .phero--stack .btns .btn { flex: 1 1 100%; } }
@media (min-width: 961px) {
  .phero--stack .phero__in { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .phero--stack .d1 { font-size: min(9.4cqi, 12rem); }
  .phero--stack .phero__side { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 48px; }
}

/* =========================================================
   Lecteur vidéo partagé (page Le Disc Golf, sections ajoutées, articles) :
   façade YouTube dont l'iframe n'est chargée qu'au clic, fichiers en lecteur natif.
   ========================================================= */
.yt { cursor: pointer; isolation: isolate; }
.yt.is-playing { cursor: default; }
.yt::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(10, 22, 14, 0) 45%, rgba(10, 22, 14, .7)); pointer-events: none; }
.yt.is-playing::after { display: none; }
.yt__title { position: absolute; z-index: 1; left: clamp(14px, 2.4vw, 32px); right: clamp(14px, 2.4vw, 32px); bottom: clamp(12px, 2vw, 26px); color: #fff; font-weight: 700; font-size: clamp(1rem, .9rem + .7vw, 1.5rem); line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; pointer-events: none; }
.yt__title:empty { display: none; }
.yt button { z-index: 2; width: clamp(68px, 9vw, 104px); height: clamp(68px, 9vw, 104px); box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .6); transition: transform .2s var(--ease), box-shadow .25s var(--ease), background-color .2s var(--ease); }
.yt:hover button { transform: scale(1.06); box-shadow: 0 0 0 12px rgba(255, 255, 255, .2), 0 18px 40px -14px rgba(0, 0, 0, .6); }
.yt button:active { transform: scale(.96); }
.yt button:focus-visible { outline: 3px solid #fff; outline-offset: 5px; }
.yt button svg { width: 34%; height: 34%; margin-left: 5%; }
.yt iframe { z-index: 3; }
.vfile video, figure.video > video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); background: #0c120e; }
.vfile.is-portrait video, figure.video.is-portrait > video { width: auto; max-width: 100%; max-height: min(82svh, 780px); margin-inline: auto; }
@media (prefers-reduced-motion: reduce) { .yt button { transition: none; } }

/* Pied de page : liens légaux (mentions, confidentialité, cookies). « Gérer mes cookies » n'apparaît que si le bandeau de consentement est actif. */
.foot__links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; min-width: 0; }
.foot__links a { display: inline-flex; align-items: center; min-height: 44px; }
.foot__base { align-items: center; }
html:not(.admc-on) [data-consent-open] { display: none; }
