/* =========================================================================
   GSI – Global South Investment | style.css
   Bright premium, light theme. Retune the ENTIRE site from :root below.
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. DESIGN TOKENS  —  EDIT ONLY THIS BLOCK TO RETHEME THE SITE
   ------------------------------------------------------------------------- */
:root {
  /* --- Brand anchors (from the logo) --- */
  --brand-primary:   #0F4C5C;   /* deep teal   */
  --brand-secondary: #E36414;   /* orange      */
  --brand-accent:    #E36414;   /* glow / highlight */

  /* --- Derived teal shades (all via color-mix) --- */
  --primary-tint:   color-mix(in srgb, var(--brand-primary) 12%, #ffffff);
  --primary-soft:   color-mix(in srgb, var(--brand-primary) 30%, #ffffff);
  --primary-dark:   color-mix(in srgb, var(--brand-primary) 82%, #000000);
  --primary-glow:   color-mix(in srgb, var(--brand-primary) 45%, transparent);

  /* --- Derived orange shades --- */
  --secondary-tint: color-mix(in srgb, var(--brand-secondary) 14%, #ffffff);
  --secondary-soft: color-mix(in srgb, var(--brand-secondary) 35%, #ffffff);
  --secondary-dark: color-mix(in srgb, var(--brand-secondary) 80%, #000000);
  --secondary-glow: color-mix(in srgb, var(--brand-secondary) 42%, transparent);

  /* --- Surfaces & canvas (light, airy) --- */
  --bg:            color-mix(in srgb, var(--brand-primary) 3%, #fbfcfd);
  --surface:       #ffffff;
  --surface-tint:  color-mix(in srgb, var(--brand-primary) 5%, #ffffff);
  --glass:         color-mix(in srgb, #ffffff 78%, transparent);
  --glass-strong:  color-mix(in srgb, #ffffff 88%, transparent);

  /* --- Text --- */
  --text:          color-mix(in srgb, var(--brand-primary) 88%, #0b0e12);
  --text-muted:    color-mix(in srgb, var(--brand-primary) 55%, #6b7480);
  --text-on-dark:  #f4f8f9;

  /* --- Borders & lines (hairline) --- */
  --border:        color-mix(in srgb, var(--brand-primary) 14%, transparent);
  --border-strong: color-mix(in srgb, var(--brand-primary) 26%, transparent);

  /* --- Soft depth --- */
  --shadow-sm: 0 1px 2px color-mix(in srgb, var(--brand-primary) 10%, transparent);
  --shadow-md: 0 10px 30px -12px color-mix(in srgb, var(--brand-primary) 26%, transparent);
  --shadow-lg: 0 24px 60px -20px color-mix(in srgb, var(--brand-primary) 30%, transparent);
  --shadow-glow: 0 20px 50px -18px var(--secondary-glow);

  /* --- Type --- */
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;

  /* --- Rhythm --- */
  --radius-sm: 10px;
  --radius:    18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --container: 1280px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 8rem);

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* -------------------------------------------------------------------------
   2. RESET & BASE
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  max-width: 100%;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }

h1, h2, h3, h4 { line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
h1 { font-size: clamp(2.1rem, 1.4rem + 3.4vw, 3.7rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem); }
h3 { font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.55rem); }

:focus-visible {
  outline: 3px solid var(--brand-secondary);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--secondary-soft); color: var(--primary-dark); }

/* -------------------------------------------------------------------------
   3. LAYOUT HELPERS
   ------------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section--tint { background: var(--surface-tint); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-secondary);
  padding: .4rem .9rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: var(--secondary-tint);
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-secondary);
  animation: dotBeacon 1.1s ease-in-out infinite; /* strobe / beacon pulse */
}
@keyframes dotBeacon {
  0%   { transform: scale(0.85); opacity: .65; box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand-secondary) 55%, transparent); }
  50%  { transform: scale(1.15); opacity: 1;   box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand-secondary) 12%, transparent); }
  100% { transform: scale(0.85); opacity: .65; box-shadow: 0 0 0 10px color-mix(in srgb, var(--brand-secondary) 0%, transparent); }
}
@media (prefers-reduced-motion: reduce) { .eyebrow::before { animation: none; } }

.section-head { max-width: 52rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head p { color: var(--text-muted); font-size: 1.1rem; margin-top: 1rem; }
.section-head.center { margin-inline: auto; text-align: center; }

/* Orange highlighted word with animated teal→orange sweep */
.hl { position: relative; z-index: 0; color: var(--brand-secondary); white-space: nowrap; }
.hl::after {
  content: ""; position: absolute; left: 0; bottom: .02em; height: .07em; width: 100%;
  border-radius: 2px; z-index: -1; /* sits BEHIND the text so descenders (g,j,p,q) show over it */
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
  transform: scaleX(0); transform-origin: left;
  animation: sweep 1.1s var(--ease) forwards; animation-delay: .5s;
}
@keyframes sweep { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .hl::after { animation: none; transform: scaleX(1); } }

/* -------------------------------------------------------------------------
   4. GLOW ORBS (decorative, light-mode friendly)
   ------------------------------------------------------------------------- */
.glow { position: absolute; border-radius: 50%; filter: blur(70px); z-index: 0; pointer-events: none; opacity: .55; }
.glow--teal   { background: var(--primary-glow); }
.glow--orange { background: var(--secondary-glow); }
.glow--sm { width: 260px; height: 260px; }
.glow--md { width: 420px; height: 420px; }
.glow--lg { width: 620px; height: 620px; }

/* -------------------------------------------------------------------------
   5. BUTTONS (magnetic + hover lift handled in JS)
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.6rem; font-weight: 700; font-size: .98rem;
  border-radius: var(--radius-pill);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s var(--ease);
  will-change: transform;
}
.btn svg { width: 1.05em; height: 1.05em; }
.btn--primary {
  background: linear-gradient(135deg, var(--brand-secondary), var(--secondary-dark));
  color: #fff; box-shadow: var(--shadow-glow);
}
.btn--primary:hover { box-shadow: 0 26px 55px -16px var(--secondary-glow); }
.btn--ghost {
  background: var(--surface); color: var(--brand-primary);
  border: 1px solid var(--border-strong); box-shadow: var(--shadow-sm);
}
.btn--ghost:hover { background: var(--primary-tint); }
.btn--light { background: #fff; color: var(--brand-primary); box-shadow: var(--shadow-md); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* -------------------------------------------------------------------------
   6. HEADER / NAV
   ------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  transition: transform .4s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease), padding .35s var(--ease);
  padding-block: 1.1rem;
  /* NOTE: no `will-change: transform` here — it would make the header a
     containing block for the fixed mobile drawer, collapsing its height. */
}
/* Condensed state once the page is scrolled (smaller padding + logo). */
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--surface) 95%, transparent);
  box-shadow: 0 1px 0 var(--border), var(--shadow-sm);
  padding-block: .55rem;
}
/* Frosted glass only on desktop. On mobile, backdrop-filter would make the
   header a containing block for the fixed drawer (collapsing it) — so avoid it. */
@media (min-width: 901px) {
  .site-header.is-scrolled {
    background: var(--glass-strong);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
  }
}
/* Hide on scroll-down, reveal on scroll-up (JS toggles .is-hidden). */
.site-header.is-hidden { transform: translateY(-100%); }
@media (prefers-reduced-motion: reduce) { .site-header.is-hidden { transform: none; } }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; font-weight: 800; font-size: 1.15rem; color: var(--brand-primary); letter-spacing: -.02em; }
/* Logo: full size at the top, shrinks when the header condenses on scroll.
   NOTE: no generic ".brand img" rule — it would outrank this by specificity. */
.brand__logo { height: 96px; width: auto; transition: height .35s var(--ease); }
.site-header.is-scrolled .brand__logo { height: 62px; }
@media (max-width: 520px) {
  .brand__logo { height: 64px; }
  .site-header.is-scrolled .brand__logo { height: 48px; }
}
.brand .brand__mark { /* fallback text mark if no logo image yet */
  display: inline-grid; place-items: center; height: 40px; width: 40px; border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-primary), var(--secondary-dark));
  color: #fff; font-weight: 800; font-size: 1.05rem; letter-spacing: 0;
}
.brand small { display: block; font-size: .68rem; font-weight: 600; color: var(--text-muted); letter-spacing: .02em; }

.nav__links { display: flex; align-items: center; gap: .35rem; }
.nav__links a {
  position: relative; padding: .55rem .95rem; font-weight: 600; font-size: .96rem; color: var(--text);
  border-radius: var(--radius-pill); transition: color .25s var(--ease), background .25s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 50%; bottom: .32rem; width: 0; height: 2px; border-radius: 2px;
  background: var(--brand-secondary); transform: translateX(-50%); transition: width .28s var(--ease);
}
.nav__links a:hover { color: var(--brand-primary); }
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after { width: 42%; }
.nav__links a[aria-current="page"] { color: var(--brand-primary); }
.nav__actions { display: flex; align-items: center; gap: .75rem; }

/* Hamburger */
.nav__toggle { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface); position: relative; }
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 20px; height: 2px; border-radius: 2px;
  background: var(--brand-primary); transform: translate(-50%, -50%);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after  { top: 6px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translate(-50%, -50%) rotate(45deg); top: 0; }
.nav__toggle[aria-expanded="true"] span::after  { transform: translate(-50%, -50%) rotate(-45deg); top: 0; }

/* Close (✕) button — injected into the drawer by main.js, mobile only */
.nav__close { display: none; }

@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(84vw, 340px);
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: .3rem;
    padding: 5.5rem 1.4rem 2rem;
    background: var(--surface); /* fully opaque — no page bleed-through */
    box-shadow: -18px 0 60px -20px color-mix(in srgb, var(--brand-primary) 40%, transparent);
    border-left: 1px solid var(--border);
    transform: translateX(105%); transition: transform .4s var(--ease);
    z-index: 120; /* above the sticky header (100) so it covers it and the hamburger */
  }
  .nav__links.is-open { transform: translateX(0); }
  .nav__links a { padding: .9rem 1rem; font-size: 1.1rem; border-bottom: 1px solid var(--border); border-radius: var(--radius-sm); }
  .nav__links a::after { display: none; }
  .nav__actions .btn { display: none; }

  .nav__close {
    display: grid; place-items: center; position: absolute; top: 1.1rem; right: 1.2rem;
    width: 46px; height: 46px; border-radius: 12px;
    background: var(--surface-tint); border: 1px solid var(--border-strong); color: var(--brand-primary);
    transition: background .25s var(--ease), transform .25s var(--ease);
  }
  .nav__close:hover { background: var(--primary-tint); }
  .nav__close:active { transform: scale(.94); }
  .nav__close svg { width: 22px; height: 22px; }

  /* Dim backdrop behind the drawer (below the header so the drawer stays pure white) */
  .nav-backdrop {
    position: fixed; inset: 0; z-index: 90;
    background: color-mix(in srgb, var(--brand-primary) 32%, transparent);
    opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s var(--ease);
  }
  .nav-backdrop.is-open { opacity: 1; visibility: visible; }
}

/* -------------------------------------------------------------------------
   7. HERO
   ------------------------------------------------------------------------- */
/* Full-bleed decorative background: glows extend past the centered content
   to the viewport edges (body has overflow-x: clip) — no visible container edge. */
.hero { position: relative; padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: var(--section-y); }
.hero__inner { position: relative; z-index: 2; max-width: 60rem; }
.hero .glow { filter: blur(120px); }
.hero .glow--teal   { top: -16%; right: -16%; opacity: .2; }
.hero .glow--orange { bottom: -16%; left: -10%; opacity: .3; }
.hero__badge { margin-bottom: 1.6rem; }
.hero h1 { margin-bottom: 1.4rem; }
.hero__sub { font-size: clamp(1.08rem, 1rem + 0.5vw, 1.35rem); color: var(--text-muted); max-width: 40rem; margin-bottom: 2.2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.hero__note { color: var(--text-muted); font-size: .92rem; display: inline-flex; gap: .5rem; align-items: center; }

.hero__meta { display: flex; flex-wrap: wrap; gap: 2.4rem; margin-top: 3.2rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.hero__meta div strong { display: block; font-size: 1.9rem; font-weight: 800; color: var(--brand-primary); letter-spacing: -.02em; }
.hero__meta div span { color: var(--text-muted); font-size: .9rem; }

/* Hero visual : photo produit encadrée + pastilles flottantes en verre */
.hero__deco { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%);
  width: min(42%, 460px); z-index: 1; display: none; }
@media (min-width: 1080px) { .hero__deco { display: block; } .hero__inner { max-width: 38rem; } }
@media (min-width: 1280px) { .hero__inner { max-width: 42rem; } }
.hero-orbit { width: 100%; height: auto; display: block; overflow: visible; }
.hero-orbit .ho-a { stop-color: var(--brand-primary); }
.hero-orbit .ho-b { stop-color: var(--brand-secondary); }
.hero-orbit .ho-dot { fill: var(--brand-primary); opacity: .14; }
.hero-orbit .ho-ring { fill: none; stroke: url(#ho-line); stroke-width: 1.4; stroke-opacity: .42; }
.hero-orbit .ho-ring--d { stroke-dasharray: 3 8; stroke-opacity: .6; }
.hero-orbit .ho-no { fill: var(--brand-secondary); }
.hero-orbit .ho-nt { fill: var(--brand-primary); }
/* nœuds calés sur l'orbite : le groupe .ho-sp (anneau + nœud) pivote autour du centre,
   puis .ho-tilt l'incline (rotate + scaleY) pour donner l'ellipse — le nœud suit exactement l'anneau.
   Pivot fixé explicitement au noyau (210,210) via view-box pour rester parfaitement centré. */
.hero-orbit .ho-tilt, .hero-orbit .ho-sp { transform-box: view-box; transform-origin: 210px 210px; }
.hero-orbit .ho-tilt-a { transform: rotate(16deg) scaleY(.60); } .hero-orbit .ho-sp-a { animation: hoSpin 30s linear infinite; }
.hero-orbit .ho-tilt-b { transform: rotate(-26deg) scaleY(.55); } .hero-orbit .ho-sp-b { animation: hoSpin 44s linear infinite reverse; }
.hero-orbit .ho-tilt-c { transform: rotate(64deg) scaleY(.72); } .hero-orbit .ho-sp-c { animation: hoSpin 21s linear infinite; }
.hero-orbit .ho-core { transform-box: fill-box; transform-origin: center; animation: hoPulse 3s ease-in-out infinite; }
@keyframes hoSpin { to { transform: rotate(360deg); } }
@keyframes hoPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@media (prefers-reduced-motion: reduce) { .hero-orbit * { animation: none !important; } }

/* Visuels des page-heroes (Services / À propos) : texte à gauche, art à droite */
@media (min-width: 1080px) {
  .page-hero { display: flex; align-items: center; min-height: 440px; }
  .page-hero__inner { max-width: 40rem; }
  .page-hero .hero__deco { width: min(36%, 400px); }
}
/* Services — trois piliers */
.hero-bars, .hero-curve { width: 100%; height: auto; display: block; overflow: visible; }
.hero-bars .bar { transform-box: fill-box; transform-origin: 50% 100%; }
.hero-bars .b1 { animation: hbPulse 2.8s ease-in-out infinite; }
.hero-bars .b2 { animation: hbPulse 2.8s ease-in-out infinite .35s; }
.hero-bars .b3 { animation: hbPulse 2.8s ease-in-out infinite .7s; }
@keyframes hbPulse { 0%, 100% { transform: scaleY(.92); } 50% { transform: scaleY(1.06); } }
/* À propos — courbe de croissance */
.hero-curve .hc-line { fill: none; stroke: url(#hc-g); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 560; stroke-dashoffset: 560; animation: hcDraw 4.5s ease-in-out infinite; }
.hero-curve .hc-end { transform-box: fill-box; transform-origin: center; animation: hcPulse 2.4s ease-in-out infinite; }
@keyframes hcDraw { 0% { stroke-dashoffset: 560; } 55%, 100% { stroke-dashoffset: 0; } }
@keyframes hcPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .hero-bars *, .hero-curve * { animation: none !important; } }

/* -------------------------------------------------------------------------
   8. CARDS  (services / features / glass)
   ------------------------------------------------------------------------- */
.grid { display: grid; gap: 1.4rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px)  { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  will-change: transform;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, var(--primary-glow), transparent 40%, var(--secondary-glow));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .4s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover::before { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .card:hover { transform: none; } }

.card__icon {
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; margin-bottom: 1.3rem;
  background: linear-gradient(135deg, var(--primary-tint), var(--secondary-tint));
  color: var(--brand-primary); border: 1px solid var(--border);
}
.card__icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: .7rem; }
.card p { color: var(--text-muted); margin-bottom: 1.1rem; }
.card__list li { position: relative; padding-left: 1.6rem; margin-bottom: .5rem; color: var(--text); font-size: .96rem; }
.card__list li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand-secondary); box-shadow: 0 0 0 4px var(--secondary-tint);
}
.card__link { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; color: var(--brand-primary); }
.card__link svg { transition: transform .3s var(--ease); }
.card__link:hover svg { transform: translateX(4px); }
.card__num { position: absolute; top: 1.2rem; right: 1.4rem; font-weight: 800; font-size: 2.4rem; color: var(--primary-tint); letter-spacing: -.04em; }

/* Home "pôle" cards — illustrated icon + engaging paragraph (no bullet list) */
.card--pole { display: flex; flex-direction: column; }
.card__img {
  width: 96px; height: 96px; margin-bottom: 1.4rem; border-radius: 22px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--brand-primary) 5%, #fff);
  border: 1px solid var(--border);
}
.card__img img { width: 62px; height: 62px; object-fit: contain; transition: transform .45s var(--ease); }
.card--pole:hover .card__img img { transform: scale(1.08) rotate(-3deg); }
.card__lead { color: var(--text-muted); font-size: 1.03rem; line-height: 1.72; margin-bottom: 1.4rem; }
.card--pole .card__link { margin-top: auto; } /* align link to bottom across cards */
@media (prefers-reduced-motion: reduce) { .card--pole:hover .card__img img { transform: none; } }

/* Feature (differentiators) — big icon on top, centered text */
.feature { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.1rem; }
.feature__ic { flex: none; display: grid; place-items: center; transition: transform .4s var(--ease); }
.feature__ic img { width: 120px; height: 120px; object-fit: contain; }
.feature:hover .feature__ic { transform: translateY(-5px); }
@media (prefers-reduced-motion: reduce) { .feature:hover .feature__ic { transform: none; } }
.feature h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.feature p { color: var(--text-muted); font-size: .97rem; max-width: 26ch; margin-inline: auto; }

/* -------------------------------------------------------------------------
   9. STATS BAND
   ------------------------------------------------------------------------- */
.stats { position: relative; overflow: hidden; }
.stats__panel {
  position: relative; z-index: 2; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--brand-primary), var(--primary-dark));
  color: var(--text-on-dark); padding: clamp(2.4rem, 5vw, 4rem) clamp(1.4rem, 4vw, 3.5rem);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.stats__panel .glow { opacity: .4; }
.stats__panel .glow--orange { top: -30%; right: -8%; }
.stats__panel .glow--teal { bottom: -40%; left: -10%; background: color-mix(in srgb, #ffffff 30%, transparent); }
.stats__grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; text-align: center; }
@media (max-width: 900px) { .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; } }
@media (max-width: 480px) { .stats__grid { grid-template-columns: 1fr; } }
.stat__num { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.4rem); font-weight: 800; letter-spacing: -.03em; color: #fff; line-height: 1; }
.stat__num .u { color: var(--brand-secondary); }
.stat__label { margin-top: .6rem; color: color-mix(in srgb, var(--text-on-dark) 78%, transparent); font-size: .95rem; }

/* -------------------------------------------------------------------------
   10. MARQUEE (client logos)
   ------------------------------------------------------------------------- */
.marquee { position: relative; overflow: hidden; height: 128px; display: flex; align-items: center; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; align-items: center; gap: 4.5rem; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { flex: none; display: flex; align-items: center; justify-content: center; }
.marquee__item img { max-height: 78px; width: auto; max-width: 190px; object-fit: contain; opacity: .82; transition: opacity .3s var(--ease), transform .3s var(--ease); }
.marquee__item:hover img { opacity: 1; transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) {
  .marquee { height: auto; }
  .marquee__track { width: 100%; flex-wrap: wrap; justify-content: center; gap: 2rem 3.5rem; padding-block: 1rem; padding-inline: var(--gutter); }
}

/* Clients — static 2×2 grid, grayscale by default, real colors on hover */
.clients { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; max-width: 1040px; margin-inline: auto; }
@media (max-width: 820px) { .clients { grid-template-columns: repeat(2, 1fr); } }
.client {
  display: grid; place-items: center; padding: clamp(0.8rem, 1.6vw, 1.3rem);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.client:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.client img {
  height: 180px; width: 100%; max-width: 100%; object-fit: contain;
  filter: grayscale(1); opacity: .6;
  transition: filter .45s var(--ease), opacity .45s var(--ease), transform .45s var(--ease);
}
.client:hover img { filter: grayscale(0); opacity: 1; transform: scale(1.04); }
@media (max-width: 560px) { .clients { gap: 1rem; } .client { padding: 0.8rem; } .client img { height: 128px; } }
@media (prefers-reduced-motion: reduce) { .client:hover, .client:hover img { transform: none; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; } }

/* -------------------------------------------------------------------------
   11. CTA BAND
   ------------------------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; }
.cta-band__inner {
  position: relative; z-index: 2; text-align: center; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--secondary-dark), var(--brand-secondary));
  color: #fff; padding: clamp(2.6rem, 6vw, 4.5rem) var(--gutter); box-shadow: var(--shadow-glow); overflow: hidden;
}
.cta-band__inner .glow { background: color-mix(in srgb, #fff 34%, transparent); opacity: .5; }
.cta-band__inner .glow--1 { top: -40%; left: -6%; } .cta-band__inner .glow--2 { bottom: -50%; right: -4%; }
.cta-band h2 { color: #fff; position: relative; z-index: 2; }
.cta-band p { color: color-mix(in srgb, #fff 88%, transparent); max-width: 40rem; margin: 1rem auto 2rem; position: relative; z-index: 2; }
.cta-band .btn { position: relative; z-index: 2; }

/* -------------------------------------------------------------------------
   12. SERVICES PAGE (detail rows + engagements)
   ------------------------------------------------------------------------- */
.pillar { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; scroll-margin-top: 100px; }
.pillar + .pillar { margin-top: clamp(3.5rem, 7vw, 6rem); }
.pillar:nth-child(even) .pillar__media { order: -1; }
@media (max-width: 820px) { .pillar { grid-template-columns: 1fr; } .pillar:nth-child(even) .pillar__media { order: 0; } }
.pillar__media {
  position: relative; border-radius: var(--radius-lg); min-height: 320px; overflow: hidden;
  background: linear-gradient(135deg, var(--primary-tint), var(--secondary-tint));
  border: 1px solid var(--border); box-shadow: var(--shadow-md); display: grid; place-items: center;
}
.pillar__media .glow--teal { top: -20%; left: -10%; } .pillar__media .glow--orange { bottom: -20%; right: -10%; }
.pillar__media img { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; transition: transform .6s var(--ease); }
.pillar:hover .pillar__media img { transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) { .pillar:hover .pillar__media img { transform: none; } }
.pillar__media .pillar__emoji { position: relative; z-index: 2; font-size: 5rem; }
.pillar__tag { display: inline-block; font-weight: 700; color: var(--brand-secondary); margin-bottom: .8rem; letter-spacing: .02em; }
.pillar h2 { margin-bottom: 1rem; }
.pillar p { color: var(--text-muted); margin-bottom: 1.2rem; }

/* Notre mission — editorial: sticky statement + numbered hairline list */
.mission { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.mission__intro { position: sticky; top: 108px; }
.mission__intro h2 { margin: 1rem 0 1.1rem; }
.mission__intro p { color: var(--text-muted); margin-bottom: 1.7rem; max-width: 40ch; }

.mission__list { list-style: none; margin: 0; padding: 0; }
.m-item {
  position: relative; display: grid; grid-template-columns: auto auto minmax(0, 1fr);
  align-items: start; gap: 1.15rem;
  padding: 1.5rem 1.1rem 1.5rem 1.4rem;
  border-top: 1px solid var(--border); border-radius: 14px;
  transition: background .35s var(--ease), transform .35s var(--ease);
}
.m-item:last-child { border-bottom: 1px solid var(--border); }
.m-item::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 0; background: var(--brand-secondary); border-radius: 3px;
  transition: height .4s var(--ease);
}
.m-item:hover { background: color-mix(in srgb, var(--brand-secondary) 6%, transparent); transform: translateX(5px); }
.m-item:hover::before { height: 60%; }
.m-item__num {
  font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 800; line-height: 1; letter-spacing: -.02em;
  min-width: 2.2ch;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  opacity: .38; transition: opacity .4s var(--ease);
}
.m-item:hover .m-item__num { opacity: 1; }
.m-item__ic {
  display: grid; place-items: center; width: 60px; height: 60px; flex-shrink: 0;
  border-radius: 16px; color: var(--brand-secondary);
  background: color-mix(in srgb, var(--brand-secondary) 10%, transparent);
  transition: background .4s var(--ease), color .4s var(--ease), transform .4s var(--ease);
}
.m-item__ic svg { width: 26px; height: 26px; }
.m-item__ic img { width: 40px; height: 40px; object-fit: contain; transition: filter .4s var(--ease); }
.m-item:hover .m-item__ic { background: var(--brand-secondary); color: #fff; transform: scale(1.18); }
.m-item:hover .m-item__ic img { filter: brightness(0) invert(1); }
.m-item__body h3 { font-size: 1rem; font-weight: 600; color: var(--brand-primary); line-height: 1.5; margin-bottom: .35rem; }
.m-item__verb { color: var(--brand-secondary); font-weight: 800; }
.m-item__body p { color: var(--text-muted); font-size: .93rem; line-height: 1.62; }
@media (max-width: 900px) {
  .mission { grid-template-columns: 1fr; gap: 2.4rem; }
  .mission__intro { position: static; }
}
@media (max-width: 520px) {
  .m-item { grid-template-columns: auto minmax(0, 1fr); gap: .9rem; padding: 1.3rem .5rem 1.3rem 1.1rem; }
  .m-item__ic { display: none; }
}

/* Nos engagements — parcours en cartes reliées par des chevrons (sans numéros) */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.7rem; margin-top: 3rem; }
.flow__step {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 2.6vw, 2rem);
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
/* top accent bar that grows on hover */
.flow__step::before {
  content: ""; position: absolute; left: clamp(1.5rem, 2.6vw, 2rem); top: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
  border-radius: 0 0 3px 3px; transition: width .45s var(--ease);
}
.flow__step:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.flow__step:hover::before { width: 46px; }
@media (prefers-reduced-motion: reduce) { .flow__step:hover { transform: none; } }
/* chevron connector pointing to the next step */
.flow__step:not(:last-child)::after {
  content: ""; position: absolute; right: -1.12rem; top: 3.15rem; width: 12px; height: 12px;
  border-top: 2.5px solid color-mix(in srgb, var(--brand-secondary) 65%, transparent);
  border-right: 2.5px solid color-mix(in srgb, var(--brand-secondary) 65%, transparent);
  transform: rotate(45deg); z-index: 2;
}
.flow__ic {
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 16px; margin-bottom: 1.2rem;
  background: linear-gradient(135deg, var(--primary-tint), var(--secondary-tint));
  color: var(--brand-primary); border: 1px solid var(--border);
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
}
.flow__ic svg { width: 30px; height: 30px; }
.flow__step:hover .flow__ic {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  color: #fff; border-color: transparent; transform: scale(1.08);
}
.flow__step h3 { font-size: 1.12rem; margin-bottom: .55rem; color: var(--brand-primary); }
.flow__step p { color: var(--text-muted); font-size: .94rem; line-height: 1.62; }
@media (max-width: 900px) {
  .flow { grid-template-columns: repeat(2, 1fr); }
  .flow__step:not(:last-child)::after { display: none; }
}
@media (max-width: 480px) { .flow { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------------------
   13. À PROPOS (timeline / mission)
   ------------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.value-list li { display: flex; gap: .8rem; align-items: flex-start; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.value-list li:last-child { border-bottom: none; }
.value-list .v-ic { flex: none; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--primary-tint); color: var(--brand-primary); }
.value-list strong { display: block; }
.value-list span { color: var(--text-muted); font-size: .95rem; }

.timeline { position: relative; padding-left: 2rem; }
.timeline::before { content: ""; position: absolute; left: 7px; top: .4rem; bottom: .4rem; width: 2px; background: linear-gradient(var(--brand-primary), var(--brand-secondary)); border-radius: 2px; }
.timeline li { position: relative; padding: 0 0 1.8rem; }
.timeline li::before { content: ""; position: absolute; left: -2rem; top: .35rem; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 3px solid var(--brand-secondary); box-shadow: 0 0 0 4px var(--secondary-tint); }
.timeline b { color: var(--brand-primary); }
.timeline p { color: var(--text-muted); margin-top: .2rem; }

/* À propos — décodage du nom : G / S / I */
.name-decode { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.name-card {
  position: relative; overflow: hidden; padding: clamp(1.9rem, 3vw, 2.5rem);
  background: linear-gradient(160deg, color-mix(in srgb, var(--brand-primary) 6%, #fff), color-mix(in srgb, var(--brand-secondary) 8%, #fff));
  border: 1px solid color-mix(in srgb, var(--brand-secondary) 14%, transparent); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.name-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
}
.name-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
@media (prefers-reduced-motion: reduce) { .name-card:hover { transform: none; } }
.name-card__letter {
  display: block; font-size: clamp(3.4rem, 6vw, 4.8rem); font-weight: 800; line-height: .85; letter-spacing: -.03em;
  background: linear-gradient(120deg, var(--brand-primary) 25%, var(--brand-secondary) 85%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  margin-bottom: .7rem;
}
.name-card h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .12em; color: var(--brand-secondary); margin-bottom: .5rem; }
.name-card p { color: var(--text-muted); font-size: .95rem; line-height: 1.62; }
@media (max-width: 760px) { .name-decode { grid-template-columns: 1fr; } }

/* À propos — valeurs (typographique, filet dégradé en tête) */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.7rem; margin-top: 2.6rem; }
.value { padding-top: 1.1rem; border-top: 3px solid transparent; border-image: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary)) 1; }
.value h3 { font-size: 1.2rem; color: var(--brand-primary); margin-bottom: .55rem; }
.value p { color: var(--text-muted); font-size: .95rem; line-height: 1.6; }
@media (max-width: 860px) { .values { grid-template-columns: repeat(2, 1fr); gap: 1.9rem; } }
@media (max-width: 480px) { .values { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------------------
   14. CONTACT
   ------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.info-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.6rem, 3vw, 2.2rem); box-shadow: var(--shadow-sm); }
.info-row { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.info-row:last-of-type { border-bottom: none; }
.info-row .i-ic { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--secondary-tint); color: var(--brand-secondary); }
.info-row strong { display: block; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); margin-bottom: .15rem; }
.info-row a, .info-row span { color: var(--text); font-weight: 600; }
.info-row a:hover { color: var(--brand-secondary); }

.map-embed { margin-top: 1.4rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.map-embed iframe { width: 100%; height: 260px; border: 0; display: block; }

/* Form */
.form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.6rem, 3vw, 2.4rem); box-shadow: var(--shadow-md); }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .45rem; color: var(--text); }
.field label .req { color: var(--brand-secondary); }
.field input, .field textarea, .field select {
  width: 100%; padding: .9rem 1.05rem; font: inherit; color: var(--text);
  background: var(--surface-tint); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brand-secondary); background: var(--surface);
  box-shadow: 0 0 0 4px var(--secondary-tint);
}
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .field--row { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__submit { width: 100%; margin-top: .4rem; }
.form__consent { font-size: .82rem; color: var(--text-muted); margin-top: 1rem; }

.form-status { margin-top: 1rem; padding: .95rem 1.1rem; border-radius: var(--radius-sm); font-weight: 600; font-size: .95rem; display: none; align-items: center; gap: .6rem; }
.form-status.is-visible { display: flex; animation: statusIn .4s var(--ease); }
.form-status.is-ok { background: color-mix(in srgb, #16a34a 12%, #fff); color: #15803d; border: 1px solid color-mix(in srgb, #16a34a 30%, transparent); }
.form-status.is-err { background: color-mix(in srgb, #dc2626 10%, #fff); color: #b91c1c; border: 1px solid color-mix(in srgb, #dc2626 28%, transparent); }
@keyframes statusIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.btn.is-loading { opacity: .75; pointer-events: none; }
.btn.is-loading .btn__spin { display: inline-block; }
.btn__spin { display: none; width: 1em; height: 1em; border: 2px solid color-mix(in srgb, #fff 40%, transparent); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* -------------------------------------------------------------------------
   15. FOOTER
   ------------------------------------------------------------------------- */
.site-footer { background: var(--primary-dark); color: var(--text-on-dark); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; position: relative; overflow: hidden; }
.site-footer .glow--teal { background: color-mix(in srgb, #fff 12%, transparent); top: -40%; right: 10%; }
.footer__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr; gap: 2rem; } }
.footer__brand { display: inline-flex; align-items: center; background: #fff; padding: .65rem .95rem; border-radius: 14px; margin-bottom: 1.2rem; box-shadow: var(--shadow-md); }
.footer__brand img { height: 40px; width: auto; display: block; }
.footer__brand .brand__mark { height: 40px; width: 40px; }
.site-footer p { color: color-mix(in srgb, var(--text-on-dark) 72%, transparent); max-width: 30rem; }
.footer__col h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1.1rem; }
.footer__col a, .footer__col li { color: color-mix(in srgb, var(--text-on-dark) 78%, transparent); display: block; padding: .3rem 0; transition: color .25s var(--ease); }
.footer__col a:hover { color: var(--brand-secondary); }
.footer__bottom { position: relative; z-index: 2; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid color-mix(in srgb, #fff 14%, transparent); display: flex; flex-wrap: wrap; justify-content: center; text-align: center; gap: 1rem; color: color-mix(in srgb, var(--text-on-dark) 62%, transparent); font-size: .88rem; }

/* -------------------------------------------------------------------------
   16. SCROLL REVEAL (JS adds .in)
   ------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); }
.is-ready .reveal { transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; } }

/* Page intro spacing under sticky header */
.page-hero { padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: clamp(2rem, 4vw, 3rem); position: relative; }
.page-hero .glow { opacity: .2; filter: blur(120px); }
.page-hero .glow--teal { top: -34%; right: -12%; } .page-hero .glow--orange { top: 10%; left: -12%; }
.page-hero__inner { position: relative; z-index: 2; max-width: 48rem; }
.breadcrumb { color: var(--text-muted); font-size: .9rem; margin-bottom: 1rem; }
.breadcrumb a:hover { color: var(--brand-secondary); }

.skip-link { position: absolute; left: -999px; top: 0; z-index: 200; background: var(--brand-primary); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 10px 0; }
.skip-link:focus { left: 0; }
