/* ════════════════════════════════════════════════════════════
   ÆNIX GREEN — thème de la gamme extérieure
   Principe : on ne réécrit aucun composant. On redéfinit les variables
   de couleur dans un périmètre (.g-dark / .g-light) : sol-card, qs, kv,
   hsteps, route, faq, note… reprennent alors l’univers GREEN tout en
   gardant leurs animations d’origine (components.css + main.js).
   Nav, pied de page et bandeau CTA final restent aux couleurs du site.
   ════════════════════════════════════════════════════════════ */

/* Sections sombres : fond #0B0F0C → #111A14, accent vert #2BD94A */
.g-dark {
  --white: #0F1711;
  --mist: #0A0F0B;
  --frost: rgba(255, 255, 255, .12);
  --ink: #EAF1EC;
  --slate: #AEBBB2;
  --steel: #B9C4BC;
  --smoke: #93A399;
  --indigo: #2BD94A;
  --indigo-hover: #63EA7C;
  --lavender: rgba(43, 217, 74, .5);
  --lilac: rgba(43, 217, 74, .38);
  --wash: rgba(43, 217, 74, .10);
  --amethyst: #2BD94A;
  --deep-violet: #0B0F0C;
  --g-chrome: #C9CDD1;
  background: linear-gradient(180deg, #0B0F0C 0%, #111A14 100%);
  color: var(--ink);
}
.g-dark.g-dark-2 { background: #111A14; }
.g-dark + .g-dark { border-top: 1px solid rgba(255, 255, 255, .08); }
.g-dark ::selection { background: rgba(43, 217, 74, .28); color: #fff; }
.g-dark .btn-primary { color: #04210D; }
.g-dark .btn-ghost { color: var(--ink); border-color: rgba(255, 255, 255, .3); }
.g-dark .btn-ghost::before { background: rgba(255, 255, 255, .08); }
.g-dark .btn-ghost:hover { border-color: var(--indigo); }
.g-dark .tag { background: rgba(255, 255, 255, .04); color: var(--steel); }
.g-dark .tag-live { background: var(--wash); color: var(--indigo); }
.g-dark .eyebrow { color: var(--slate); }

/* Sections claires : même mise en page, accent vert foncé (contraste AA sur blanc) */
.g-light {
  --indigo: #0F7A28;
  --indigo-hover: #138A2E;
  --lavender: #9ED8AA;
  --lilac: #BFE8C9;
  --wash: #E7F6EA;
  --amethyst: #0F7A28;
}
.g-light ::selection { background: #E7F6EA; color: #0F7A28; }

/* Navigation : fond quasi opaque sur les pages GREEN (hero sombre → un fond translucide devenait trop gris pour le texte indigo) */
body:has(.g-hero) .nav, body:has(.g-hero) .nav.is-scrolled { background: rgba(255, 255, 255, .96); }
.subnav.g-light { background: rgba(255, 255, 255, .98); }

/* ─── Hero ───────────────────────────────────────────────────── */
.p-hero.g-hero {
  background:
    radial-gradient(110% 80% at 88% 6%, rgba(43, 217, 74, .20), transparent 58%),
    linear-gradient(180deg, #0B0F0C 0%, #111A14 100%);
}
.g-logo { width: clamp(210px, 24vw, 300px); height: auto; aspect-ratio: 1448 / 560; object-fit: cover; object-position: 50% 50%; margin: 0 0 -6px -6px; }
.p-title .g-seo {
  letter-spacing: 0; text-transform: none; font-size: clamp(15px, 1.4vw, 18px); line-height: 1.4;
  color: var(--slate); max-width: 44ch; margin-bottom: 18px; font-weight: 400;
}
.g-name { display: block; }
.g-name .g-chrome .wi {
  background: linear-gradient(180deg, #fff 0%, var(--g-chrome) 48%, #8A9096 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.g-name .g-green { color: var(--indigo); }
.g-name .g-one { display: block; font-weight: 300; }
.p-hero.g-hero .p-tagline { color: #fff; }
.p-hero.g-hero .p-desc { color: var(--steel); }

/* Visuels produit */
.p-media.g-wide { aspect-ratio: 16 / 10; background: #0B0F0C; border-color: rgba(255, 255, 255, .12); }
.spec-visual.g-studio { aspect-ratio: 1512 / 1040; }

/* ─── Chiffres clés ──────────────────────────────────────────── */
.g-stats .qs { border-top: 0; }
.g-stats .qs dt { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--g-chrome); margin-bottom: 12px; }
.g-stats .qs dd { font-size: clamp(40px, 5.4vw, 80px); letter-spacing: -0.04em; line-height: 1; text-shadow: 0 0 34px rgba(43, 217, 74, .5); }
.g-stats .qs dd small { font-size: clamp(16px, 1.8vw, 24px); color: var(--indigo); margin-left: 6px; text-shadow: none; }
.g-stats .qs > div + div { padding-left: clamp(16px, 2.4vw, 40px); }
.g-stats .statement { margin: clamp(32px, 4vw, 56px) 0 0; max-width: 60ch; color: var(--steel); font-size: clamp(18px, 1.8vw, 22px); }

/* ─── Cas d’usage : cartes à image de fond ───────────────────── */
.g-cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.g-case { position: relative; display: flex; align-items: flex-end; min-height: clamp(300px, 34vw, 440px); overflow: hidden; border-radius: var(--r); border: 1px solid var(--frost); background: #0B0F0C; }
.g-case > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--expo); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .g-case:hover > img { transform: scale(1.04); } }
.g-case::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(5, 8, 6, .92) 0%, rgba(5, 8, 6, .6) 22%, rgba(5, 8, 6, 0) 48%); }
.g-case-body { position: relative; z-index: 2; display: grid; gap: 8px; width: 100%; padding: clamp(56px, 7vw, 88px) clamp(22px, 2.6vw, 32px) clamp(22px, 2.6vw, 32px); background: linear-gradient(to top, rgba(5, 8, 6, .94) 0%, rgba(5, 8, 6, .8) 52%, rgba(5, 8, 6, 0) 100%); text-shadow: 0 1px 14px rgba(0, 0, 0, .55); }
.g-case-body h3 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.08; letter-spacing: -0.02em; font-weight: 300; color: #fff; }
.g-case-body p { color: #D5DED8; font-size: 15px; line-height: 1.45; max-width: 46ch; }
.g-case-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 6px; }
.g-case-body .g-case-links a { color: #fff; font-size: 15px; line-height: 1.4; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .55); text-underline-offset: .22em; transition: text-decoration-color .3s var(--expo); }
.g-case-body .g-case-links a:hover, .g-case-body .g-case-links a:focus-visible { text-decoration-color: #fff; }
.g-cases + .note { margin-top: 12px; }

/* ─── Service & contrat SÉRÉNITÉ ─────────────────────────────── */
.g-care { background: linear-gradient(170deg, #0B0F0C, #13261A); --white: #0F1711; --frost: rgba(255, 255, 255, .12); --ink: #EAF1EC; --slate: #AEBBB2; --steel: #B9C4BC; --indigo: #2BD94A; --lilac: rgba(43, 217, 74, .38); border-color: rgba(43, 217, 74, .4); color: var(--ink); }
.g-care .flux-name { color: #fff; }
.g-care .flux-pos { color: var(--steel); font-size: 17px; }
.g-care .btn-primary { color: #04210D; }
.g-care .eyebrow { color: var(--slate); }
.g-care .kv dd { max-width: 58%; }

/* ─── Accueil : bandeau gamme GREEN ──────────────────────────── */
.g-home-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.g-home-text { display: grid; gap: clamp(16px, 2vw, 24px); justify-items: start; }
.g-home-text .lead { max-width: 52ch; }
.g-home .g-stats { margin: clamp(24px, 3vw, 40px) 0; }
.g-home .g-stats .qs dd { font-size: clamp(30px, 3.4vw, 52px); }
.g-home .cta-pair { margin-bottom: 4px; }
.g-home .fineprint { margin-top: 20px; color: var(--smoke); }
.g-home-media { position: relative; margin: 0; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r); border: 1px solid rgba(255, 255, 255, .12); background: #0B0F0C; }
.g-home-media img { width: 100%; height: 100%; object-fit: cover; }

/* Liens de maillage vers les pages métier (accueil, fiche produit) */
.g-links { margin: 8px 0 0; font-size: 16px; color: var(--steel); }
.g-cases + .g-links { margin: 20px 0 12px; }
.g-links a { color: var(--indigo); text-decoration: underline; text-underline-offset: .18em; }
.g-links a:hover { color: var(--indigo-hover); }

/* ─── Pages métier (terrains de sport, collectivités) ─────────── */
.g-hero-stats { position: relative; margin-top: clamp(36px, 5vw, 64px); }
.g-hero-stats .qs dd { font-size: clamp(26px, 3.2vw, 46px); }
.p-title .g-accent { color: var(--indigo); }
.g-nw { white-space: nowrap; }
.p-hero.g-hero .p-title.g-h1-md { font-size: clamp(38px, 5vw, 66px); }
.g-sp-stats .qs dd { font-size: clamp(32px, 3.9vw, 56px); }
.cta-panel.g-cta-split .display { font-size: clamp(34px, 4.2vw, 58px); }
.g-calc { display: grid; gap: 14px; padding: clamp(24px, 3vw, 40px); background: var(--wash); border: 1px solid var(--lilac); border-radius: var(--r); }
.g-calc-big { font-size: clamp(64px, 8vw, 112px); line-height: 1; letter-spacing: -0.04em; color: var(--ink); }
.g-calc-big.is-md { font-size: clamp(40px, 5vw, 72px); }
.split.g-flip > .split-media, .split.g-flip > .g-calc { order: -1; }
.g-calc-sub { margin-top: -6px; color: var(--steel); font-size: 18px; }
.g-calc .kv { margin-top: 8px; }
.g-calc .eyebrow, .g-calc .kv dt, .g-calc .fineprint { color: var(--steel); }
.g-calc .fineprint { margin-top: 4px; }
.g-transp { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); padding: clamp(28px, 4.5vw, 64px); border: 1px solid rgba(43, 217, 74, .4); border-radius: var(--r); background: linear-gradient(170deg, #0B0F0C, #13261A); box-shadow: 0 30px 80px -40px rgba(43, 217, 74, .28); }
.g-transp { --white: #0F1711; --mist: #0A0F0B; --frost: rgba(255, 255, 255, .12); --ink: #EAF1EC; --slate: #AEBBB2; --steel: #B9C4BC; --smoke: #93A399; --indigo: #2BD94A; --indigo-hover: #63EA7C; --lavender: rgba(43, 217, 74, .5); --lilac: rgba(43, 217, 74, .38); --wash: rgba(43, 217, 74, .10); color: var(--ink); }
.g-transp .btn-primary { color: #04210D; }
.g-transp .eyebrow { color: var(--slate); }
.g-transp-head { display: grid; gap: 16px; align-content: start; }
.g-transp-body { display: grid; gap: 18px; justify-items: start; }
.g-transp-body p { max-width: 56ch; color: var(--steel); }
.g-transp-body .lead { color: #fff; }
.cta-panel.g-cta-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.g-cta-media { position: relative; z-index: 1; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); border: 1px solid rgba(255, 255, 255, .22); }
.g-cta-media img { width: 100%; height: 100%; object-fit: cover; }

/* Reflow à 320 px : colonnes de grille et libellés de boutons autorisés à se réduire (aucun contenu rogné) */
.p-hero.g-hero .p-hero-inner > *, .g-home-grid > * { min-width: 0; }
.p-hero.g-hero .btn, .g-home .btn, .g-dark .btn, .g-light .btn, body:has(.g-hero) .cta-section .btn { max-width: 100%; height: auto; min-height: 48px; padding-block: 12px; white-space: normal; text-align: center; }
.p-hero.g-hero .btn-sm, .subnav .btn { min-height: 40px; }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .g-cases { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .g-transp { grid-template-columns: 1fr; }
  .split.g-flip > .split-media, .split.g-flip > .g-calc { order: 0; }
  .cta-panel.g-cta-split { grid-template-columns: 1fr; }
  .g-cta-media { order: -1; }
}
@media (max-width: 900px) {
  .g-home-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .g-home .g-stats .qs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g-home .g-stats .qs dd { font-size: clamp(24px, 7vw, 32px); }
  .g-home .g-stats .qs dt { font-size: 11px; letter-spacing: .06em; }
  .g-home .g-stats .qs > div + div { padding-left: 12px; }
  .g-home .g-stats .qs > div:nth-child(odd) { padding-left: 0; }
  .g-home .g-stats .qs > div:nth-child(3) { padding-left: 12px; }
}
@media (max-width: 640px) {
  .g-cases { grid-template-columns: 1fr; }
  .g-case { min-height: 300px; }
  .g-stats .qs dd { white-space: normal; font-size: clamp(34px, 11vw, 44px); }
  .g-stats .qs dd small { display: block; margin: 4px 0 0; }
  .g-stats .qs > div:nth-child(odd) { padding-left: 0; }
  .g-care .kv dd { max-width: none; }
}

/* ════════════════════════════════════════════════════════════
   Mise en scène « cinéma » de la fiche GREEN ONE (FR)
   Nouvelles classes uniquement : barre produit sombre, sections plein écran,
   étapes collées au défilement. N'altère aucune page existante.
   ════════════════════════════════════════════════════════════ */

/* Barre produit sombre (collée sous le menu) */
.subnav.g-dark { background: rgba(8, 12, 9, .92); -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px); border-block: 1px solid rgba(255, 255, 255, .1); }
.subnav.g-dark .subnav-name { color: #EAF1EC; }
.subnav.g-dark .subnav-name span { color: #AEBBB2; }
.subnav.g-dark .subnav-links a { color: #B9C4BC; }
.subnav.g-dark .subnav-links a:hover, .subnav.g-dark .subnav-links a.is-active { color: #fff; }
.subnav.g-dark .subnav-progress { background: rgba(255, 255, 255, .08); }
.subnav.g-dark .subnav-progress i { background: #2BD94A; }

/* Section plein écran : grand visuel de fond, chiffres géants */
.g-fs { position: relative; isolation: isolate; min-height: 100vh; min-height: 100svh; display: grid; align-items: end; overflow: hidden; padding-block: clamp(72px, 12vh, 140px); background: #0B0F0C; }
.g-fs-bg { --r: 0px; position: absolute; inset: 0; z-index: -2; }
.g-fs-par { position: absolute; inset: 0; }
.g-fs-par img { position: absolute; left: 0; top: -6%; width: 100%; height: 112%; object-fit: cover; transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }
.g-fs::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 12, 9, .64) 0%, rgba(8, 12, 9, .6) 36%, rgba(8, 12, 9, .94) 100%); }
.g-fs.g-fs-left::after { background: linear-gradient(90deg, rgba(8, 12, 9, .9) 0%, rgba(8, 12, 9, .72) 46%, rgba(8, 12, 9, .3) 100%); }
.g-fs .container { position: relative; display: grid; gap: clamp(20px, 3vh, 36px); }
.g-fs .h2 { color: #fff; max-width: 18ch; }
.g-fs .lead { color: #D5DED8; max-width: 52ch; }
.g-fs .eyebrow { color: #C3CEC7; }
.g-fs-figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3.4vh, 40px) clamp(32px, 5vw, 88px); max-width: 1040px; margin-top: clamp(8px, 2vh, 24px); }
.g-fs-figs.g-fs-figs-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 960px; }
.g-fs-fig { display: flex; flex-direction: column-reverse; gap: 10px; border-top: 1px solid rgba(255, 255, 255, .28); padding-top: 18px; }
.g-fs-fig dt { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: #E3EAE5; }
.g-fs-fig dd { font-size: clamp(52px, 7.4vw, 120px); line-height: .95; letter-spacing: -0.04em; font-weight: 300; color: #fff; white-space: nowrap; }
.g-fs-figs-3 .g-fs-fig dd { font-size: clamp(48px, 6.4vw, 104px); }
.g-fs-fig dd small { margin-left: .3em; font-size: clamp(15px, 1.5vw, 22px); letter-spacing: 0; color: #7DF08F; }
.g-fs-figs, .g-fs .lead, .g-fs .h2 { text-shadow: 0 1px 22px rgba(0, 0, 0, .55); }
.g-fs-statement { max-width: 64ch; color: #D5DED8; font-size: clamp(16px, 1.35vw, 19px); line-height: 1.5; }
.g-fs .fineprint { color: rgba(255, 255, 255, .88); }

/* Étapes collées au défilement : visuel fixe à gauche, étapes à droite */
.g-story-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); }
.g-story-sticky { position: sticky; top: calc(var(--nav-h) + 80px); display: grid; gap: 20px; justify-items: start; }
.g-story-media { width: 100%; height: clamp(180px, 30vh, 320px); margin: 0; overflow: hidden; border-radius: var(--r); border: 1px solid var(--frost); background: #0B0F0C; }
.g-story-media img { width: 100%; height: 100%; object-fit: cover; }
.g-story-sticky .defis-index { margin-top: 0; font-size: clamp(48px, 6vw, 88px); }
.g-story-list { list-style: none; margin: 0; padding: 0; }
.g-step { position: relative; display: grid; align-content: center; gap: 14px; min-height: 64vh; padding: 40px 0 40px 32px; border-left: 1px solid var(--frost); color: var(--smoke); transition: color .5s var(--ease); }
.g-step::before { content: ""; position: absolute; left: -1px; top: 18%; bottom: 18%; width: 2px; background: var(--indigo); transform: scaleY(0); transform-origin: top; transition: transform .7s var(--expo); }
.g-step-num { font-size: 14px; letter-spacing: .06em; color: var(--smoke); transition: color .5s var(--ease); }
.g-step h3 { font-size: clamp(28px, 3.2vw, 46px); line-height: 1.08; letter-spacing: -0.02em; font-weight: 300; }
.g-step p { max-width: 46ch; color: inherit; line-height: 1.5; }
.g-step.is-active { color: var(--ink); }
.g-step.is-active::before { transform: scaleY(1); }
.g-step.is-active .g-step-num { color: var(--indigo); }
.g-step.is-active p { color: var(--steel); }

@media (max-width: 960px) {
  .g-story-grid { grid-template-columns: 1fr; }
  .g-story-sticky { position: static; }
  .g-story-media { height: clamp(200px, 34vw, 300px); }
  .g-step { min-height: 0; padding: 28px 0 28px 22px; color: var(--ink); }
  .g-step p { color: var(--steel); }
  .g-step-num { color: var(--indigo); }
  .g-step::before { transform: scaleY(1); top: 28px; bottom: 28px; }
}
@media (max-width: 760px) {
  .g-fs { align-items: center; }
  .g-fs-figs, .g-fs-figs.g-fs-figs-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
  .g-fs-figs.g-fs-figs-3 .g-fs-fig:last-child { grid-column: 1 / -1; }
  .g-fs-fig dd, .g-fs-figs-3 .g-fs-fig dd { font-size: clamp(40px, 12vw, 64px); }
  .g-fs-fig dd small { display: block; margin: 6px 0 0; }
  .g-fs.g-fs-left::after { background: linear-gradient(180deg, rgba(8, 12, 9, .78), rgba(8, 12, 9, .88)); }
}
@media (prefers-reduced-motion: reduce) {
  .g-fs-par img { transform: none; will-change: auto; }
  .g-step, .g-step::before, .g-step-num { transition: none; }
}
