/* =========================================================
   CLEV Africa Consulting — Design system
   ========================================================= */
:root {
  --green: #1f8b4b;
  --green-600: #17703c;
  --green-900: #0f3d2a;
  --green-950: #0a2a1d;
  --gold: #e2b843;
  --gold-soft: #f4dc8f;
  --ink: #17201b;
  --ink-2: #3a433e;
  --muted: #6b746f;
  --line: rgba(23, 32, 27, 0.1);
  --sand: #f6f4ee;
  --paper: #fbfaf7;
  --white: #ffffff;

  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, serif;

  --radius: 20px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --shadow: 0 20px 60px -20px rgba(15, 61, 42, 0.25);

  --container: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(16px, 0.95vw + 12px, 18px);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; }
::selection { background: var(--green); color: #fff; }

.container {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
}
.section { padding-block: clamp(80px, 10vw, 140px); position: relative; }
.section--dark { background: var(--green-950); color: #e9efe9; }
.section--dark .eyebrow { color: var(--gold-soft); }
.section--dark .title { color: #fff; }
.section--dark .section__lead { color: rgba(233, 239, 233, 0.72); }
.section--sand { background: var(--sand); }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--green-600);
}
.eyebrow__dot {
  width: 8px; height: 8px; border-radius: 50%; background: currentColor;
  box-shadow: 0 0 0 4px rgba(31, 139, 75, 0.15);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(31, 139, 75, 0.35); }
  60% { box-shadow: 0 0 0 8px rgba(31, 139, 75, 0); }
}
.title {
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.05;
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  margin: 18px 0 22px; text-wrap: balance;
}
.title em, .hero__title em, .quote em {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  color: var(--green); letter-spacing: -0.01em;
}
.section--dark .title em { color: var(--gold); }
.section__head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 72px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }
.section__lead { color: var(--muted); font-size: 1.05em; }

/* Split-text words */
.word { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.word > span { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease); will-change: transform; }
.is-inview .word > span { transform: translateY(0); }

/* Reveal */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); will-change: opacity, transform; }
[data-reveal].is-inview { opacity: 1; transform: none; }
[data-reveal="mask"] { transform: none; clip-path: inset(0 0 100% 0 round var(--radius)); transition: clip-path 1.3s var(--ease), opacity 0.6s; }
[data-reveal="mask"].is-inview { clip-path: inset(0 0 0 0 round var(--radius)); }

/* No-JS fallback: never leave content hidden if the script fails or is blocked */
html:not(.js) [data-reveal],
html:not(.js) [data-reveal="mask"] { opacity: 1; transform: none; clip-path: none; }
html:not(.js) .word > span { transform: none; }
html:not(.js) .step { opacity: 1; transform: none; }
html:not(.js) .intro { display: none; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--green); --fg: #fff;
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 26px; border-radius: 999px; font-weight: 700; font-size: 0.95rem;
  color: var(--fg); background: var(--bg); overflow: hidden; isolation: isolate;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), color 0.4s;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.btn::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: var(--green-900);
  transform: translateY(101%); transition: transform 0.55s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:hover { box-shadow: 0 18px 40px -16px rgba(15, 61, 42, 0.55); }
.btn:active { transform: scale(0.97); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn > span { position: relative; }
.btn--ghost { --bg: rgba(255, 255, 255, 0.08); --fg: #fff; border: 1px solid rgba(255, 255, 255, 0.35); backdrop-filter: blur(8px); }
.btn--ghost::before { background: #fff; }
.btn--ghost:hover { color: var(--green-900); }
.btn--dark { --bg: var(--ink); }
.btn--dark::before { background: var(--green); }
.btn--sm { padding: 12px 20px; font-size: 0.85rem; }
.btn--block { width: 100%; justify-content: center; }
.ripple {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: 1;
  background: rgba(255, 255, 255, 0.35); transform: scale(0);
  animation: ripple 0.7s var(--ease) forwards;
}
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

/* ---------- Intro ---------- */
.intro {
  position: fixed; inset: 0; z-index: 1000; background: var(--green-950);
  display: grid; place-items: center; color: #fff;
  transition: clip-path 1s var(--ease-io) 0.9s, visibility 0s 2s;
  clip-path: inset(0 0 0 0);
}
.intro.is-done { clip-path: inset(0 0 100% 0); visibility: hidden; }
.intro__logo { display: flex; align-items: baseline; gap: 2px; font-size: clamp(2.4rem, 7vw, 5rem); font-weight: 800; letter-spacing: -0.04em; position: relative; }
.intro__logo-img {
  width: min(420px, 72vw); height: auto;
  animation: introUp 1s var(--ease) both;
}
.intro__word { display: inline-block; animation: introUp 1s var(--ease) both; }
.intro__word--accent { color: var(--gold); animation-delay: 0.1s; }
.intro__logo small {
  position: absolute; left: 50%; bottom: -1.3em; transform: translateX(-50%);
  font-size: 0.25em; letter-spacing: 0.4em; text-transform: uppercase; font-weight: 600; color: rgba(255, 255, 255, 0.7);
  animation: introFade 0.8s var(--ease) 0.4s both;
}
@keyframes introUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes introFade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Cursor ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 999; pointer-events: none; display: none; }
.has-cursor .cursor { display: block; }
.cursor__dot, .cursor__ring, .cursor__label { position: absolute; top: 0; left: 0; transform: translate(-50%, -50%); }
.cursor__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); transition: opacity 0.3s, transform 0.3s; }
.cursor__ring { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid rgba(31, 139, 75, 0.6); transition: width 0.4s var(--ease), height 0.4s var(--ease), background 0.4s, border-color 0.4s; }
.cursor__label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; opacity: 0; transition: opacity 0.3s; white-space: nowrap; }
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; background: rgba(31, 139, 75, 0.12); border-color: transparent; }
.cursor.is-hover .cursor__dot { transform: translate(-50%, -50%) scale(0.5); }
.cursor.is-drag .cursor__ring { width: 84px; height: 84px; background: var(--green); border-color: transparent; }
.cursor.is-drag .cursor__dot { opacity: 0; }
.cursor.is-drag .cursor__label { opacity: 1; }
.cursor.is-hidden { opacity: 0; }
.cursor.is-down .cursor__ring { transform: translate(-50%, -50%) scale(0.8); }

/* ---------- Progress ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 900; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--green), var(--gold)); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 800;
  padding: 18px 0; transition: padding 0.5s var(--ease), background 0.5s, box-shadow 0.5s, transform 0.5s var(--ease);
  color: #fff;
}
.header::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.5s;
  background: rgba(251, 250, 247, 0.82); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.header.is-scrolled { padding: 10px 0; color: var(--ink); }
.header.is-scrolled::after { opacity: 1; }
.header.is-hidden { transform: translateY(-110%); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; }
.brand__logo { height: 44px; width: auto; transition: height 0.5s var(--ease); }
.is-scrolled .brand__logo { height: 38px; }
/* Header transparent (sur le hero sombre) → logo blanc ; header clair → logo foncé */
.header .brand__logo--alt { display: none; }
.header:not(.is-scrolled) .brand__logo--alt { display: inline-block; }
.header:not(.is-scrolled) .brand__logo--main { display: none; }
.brand__txt { font-family: var(--font-body); font-weight: 800; font-size: 62px; letter-spacing: -2.5px; fill: #fff; transition: fill 0.5s; }
.is-scrolled .brand__txt, .brand__logo--light .brand__txt { fill: #333333; }
.brand__logo--light .brand__txt { fill: #fff; }
.brand__a-grey { fill: #8f8f8f; }
.brand__a-green, .brand__bar, .brand__i { fill: var(--green); }
.brand__sub { font-family: var(--font-body); font-weight: 700; font-size: 13.5px; letter-spacing: 5px; fill: #fff; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav__list { display: flex; gap: 6px; }
.nav__link {
  position: relative; display: inline-block; padding: 8px 12px; font-size: 0.9rem; font-weight: 600; opacity: 0.85;
  transition: opacity 0.3s;
}
.nav__link::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease);
}
.nav__link:hover, .nav__link.is-active { opacity: 1; }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.is-scrolled .nav__link.is-active { color: var(--green-600); }

.burger { display: none; position: relative; width: 44px; height: 44px; border-radius: 50%; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; transition: transform 0.5s var(--ease), top 0.5s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding: 140px 0 40px; color: #fff; overflow: hidden; isolation: isolate;
}
.hero__bg { position: absolute; inset: -12% 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transform: scale(1.08); animation: heroZoom 2.4s var(--ease) 0.6s both; }
@keyframes heroZoom { from { transform: scale(1.18); filter: blur(6px); } to { transform: scale(1.08); filter: blur(0); } }
.hero__veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 80% at 20% 40%, rgba(10, 42, 29, 0.55), transparent 70%),
    linear-gradient(180deg, rgba(10, 42, 29, 0.75) 0%, rgba(10, 42, 29, 0.55) 50%, rgba(10, 42, 29, 0.95) 100%);
}
.hero__grain { position: absolute; inset: 0; z-index: -1; opacity: 0.08; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero__content { position: relative; max-width: 900px; }
.hero__eyebrow { color: var(--gold-soft); }
.hero__title {
  margin: 22px 0 26px; font-weight: 700; letter-spacing: -0.035em; line-height: 1.02;
  font-size: clamp(2.5rem, 6.2vw, 5.4rem); text-wrap: balance;
}
.hero__title em { color: var(--gold); }
.hero__lead { max-width: 640px; font-size: clamp(1rem, 1.2vw, 1.2rem); color: rgba(255, 255, 255, 0.8); line-height: 1.7; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero__stats {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  margin-top: clamp(56px, 8vw, 96px); background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--radius); overflow: hidden;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.stat { padding: 26px 28px; background: rgba(10, 42, 29, 0.45); transition: background 0.4s; }
.stat:hover { background: rgba(31, 139, 75, 0.35); }
.stat__num { display: block; font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.stat__label { display: block; margin-top: 8px; font-size: 0.82rem; color: rgba(255, 255, 255, 0.7); }

.hero__scroll {
  position: absolute; right: var(--gutter); bottom: 32px; display: flex; align-items: center; gap: 12px;
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7);
}
.hero__mouse { width: 22px; height: 34px; border: 1.5px solid rgba(255, 255, 255, 0.6); border-radius: 12px; position: relative; }
.hero__mouse i { position: absolute; left: 50%; top: 6px; width: 3px; height: 6px; margin-left: -1.5px; border-radius: 2px; background: var(--gold); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Trust marquee ---------- */
.trust { padding: 56px 0 64px; background: var(--white); border-bottom: 1px solid var(--line); }
.trust__head { text-align: center; margin-bottom: 30px; }
.marquee { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; align-items: center; gap: clamp(48px, 6vw, 96px); width: max-content; animation: marquee var(--dur, 45s) linear infinite; will-change: transform; }
.marquee:hover .marquee__track, .marquee.is-paused .marquee__track { animation-play-state: paused; }
.marquee__track img {
  height: 44px; width: auto; max-width: 160px; object-fit: contain; flex: 0 0 auto;
  filter: grayscale(1) contrast(1.05); opacity: 0.6; transition: filter 0.5s, opacity 0.5s, transform 0.5s var(--ease);
}
.marquee__track img:hover { filter: none; opacity: 1; transform: scale(1.08); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.about__media { position: relative; }
.tilt { margin: 0; border-radius: var(--radius); overflow: hidden; position: relative; box-shadow: var(--shadow); transform-style: preserve-3d; transition: transform 0.6s var(--ease); }
.tilt img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4; transform: scale(1.02); transition: transform 1.2s var(--ease); }
.tilt:hover img { transform: scale(1.06); }
.tilt figcaption {
  position: absolute; left: 20px; right: 20px; bottom: 20px; padding: 16px 20px; border-radius: 14px;
  background: rgba(10, 42, 29, 0.7); backdrop-filter: blur(10px); color: #fff; font-size: 0.9rem;
}
.tilt figcaption span { display: block; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 4px; }
.about__badge {
  position: absolute; top: -24px; right: -24px; width: 130px; height: 130px; border-radius: 50%;
  background: var(--green); color: #fff; display: grid; place-content: center; text-align: center;
  box-shadow: 0 20px 40px -18px rgba(31, 139, 75, 0.7); animation: float 6s ease-in-out infinite;
}
.about__badge span { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.85; }
.about__badge strong { font-size: 2rem; letter-spacing: -0.04em; line-height: 1; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.about__text p { color: var(--ink-2); margin-bottom: 16px; }
.about__text strong { color: var(--ink); font-weight: 700; }

.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 32px; }
.value {
  position: relative; padding: 20px 20px 18px; border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--line);
  overflow: hidden; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.4s;
}
.value:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(31, 139, 75, 0.3); }
.value svg { width: 26px; height: 26px; fill: none; stroke: var(--green); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 10px; }
.value strong { display: block; font-size: 1rem; }
.value span { display: block; font-size: 0.85rem; color: var(--muted); margin-top: 2px; }

/* Spotlight (cursor-following glow) */
[data-spot]::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), var(--spot, rgba(31, 139, 75, 0.14)), transparent 60%);
  transition: opacity 0.5s;
}
[data-spot]:hover::before { opacity: 1; }
.section--dark [data-spot] { --spot: rgba(226, 184, 67, 0.16); }

/* ---------- Expertises (bento) ---------- */
.expertises { background: var(--green-950); background-image: radial-gradient(80% 60% at 100% 0%, rgba(31, 139, 75, 0.25), transparent 60%); }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  position: relative; padding: 32px 30px 28px; border-radius: var(--radius); overflow: hidden;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.6s var(--ease), background 0.5s, border-color 0.5s;
}
.card:hover { transform: translateY(-6px); background: rgba(255, 255, 255, 0.07); border-color: rgba(226, 184, 67, 0.35); }
.card--wide { grid-column: span 2; }
.card--accent { background: linear-gradient(135deg, rgba(31, 139, 75, 0.5), rgba(31, 139, 75, 0.15)); border-color: rgba(31, 139, 75, 0.5); }
.card__index { position: absolute; top: 24px; right: 26px; font-size: 0.75rem; letter-spacing: 0.2em; color: rgba(255, 255, 255, 0.4); font-weight: 700; }
.card__icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: rgba(226, 184, 67, 0.12); margin-bottom: 22px; transition: transform 0.6s var(--ease), background 0.5s; }
.card:hover .card__icon { transform: rotate(-6deg) scale(1.06); background: rgba(226, 184, 67, 0.22); }
.card__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--gold); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; color: #fff; margin-bottom: 10px; }
.card p { color: rgba(233, 239, 233, 0.7); font-size: 0.95rem; }
.card__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-size: 0.85rem; font-weight: 700; color: var(--gold-soft); }
.card__link i { font-style: normal; transition: transform 0.4s var(--ease); }
.card__link:hover i { transform: translateX(5px); }

/* ---------- Approach ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; counter-reset: step; }
.steps::before {
  content: ""; position: absolute; top: 34px; left: 8%; right: 8%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  transform: scaleX(0); transition: transform 1.6s var(--ease) 0.3s;
}
.steps.is-inview::before { transform: scaleX(1); }
.step { position: relative; padding: 0 8px; opacity: 0; transform: translateY(20px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.steps.is-inview .step { opacity: 1; transform: none; }
.steps.is-inview .step:nth-child(2) { transition-delay: 0.15s; }
.steps.is-inview .step:nth-child(3) { transition-delay: 0.3s; }
.steps.is-inview .step:nth-child(4) { transition-delay: 0.45s; }
.step__num {
  display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; margin-bottom: 22px;
  background: var(--white); border: 1px solid var(--line); font-weight: 800; letter-spacing: -0.03em; color: var(--green);
  position: relative; z-index: 1; transition: transform 0.5s var(--ease), background 0.4s, color 0.4s;
}
.step:hover .step__num { transform: scale(1.1) rotate(-6deg); background: var(--green); color: #fff; }
.step h3 { font-size: 1.15rem; margin-bottom: 8px; letter-spacing: -0.01em; }
.step p { color: var(--muted); font-size: 0.93rem; }

.quote { margin: clamp(60px, 8vw, 100px) auto 0; max-width: 820px; text-align: center; }
.quote p { font-size: clamp(1.35rem, 2.4vw, 2rem); line-height: 1.35; letter-spacing: -0.02em; font-weight: 600; }
.quote cite { display: block; margin-top: 18px; font-style: normal; font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }

/* ---------- Training ---------- */
.training__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.training__text p { color: var(--ink-2); }
.training__list { margin: 28px 0 32px; display: grid; gap: 14px; }
.training__list li { padding: 18px 20px 18px 24px; border-left: 3px solid var(--green); background: var(--white); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; transition: transform 0.5s var(--ease), box-shadow 0.5s; }
.training__list li:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.training__list strong { display: block; font-size: 1rem; }
.training__list span { display: block; font-size: 0.88rem; color: var(--muted); margin-top: 4px; }
.training__poster .tilt img { aspect-ratio: 1085 / 1536; }

.gallery { margin-top: clamp(60px, 8vw, 100px); }
.gallery__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.gallery__hint { display: inline-flex; align-items: center; gap: 10px; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.gallery__hint svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; animation: nudge 2s var(--ease) infinite; }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }
.gallery__track {
  display: flex; gap: 18px; padding: 6px var(--gutter) 28px; overflow-x: auto; scroll-snap-type: x proximity;
  scrollbar-width: none; cursor: grab; -webkit-overflow-scrolling: touch;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.gallery__track.is-dragging .shot img { pointer-events: none; }
.shot { flex: 0 0 auto; width: clamp(220px, 24vw, 300px); aspect-ratio: 3 / 4; margin: 0; border-radius: var(--radius); overflow: hidden; position: relative; scroll-snap-align: start; background: #ddd; }
.shot--wide { width: clamp(300px, 34vw, 420px); aspect-ratio: 4 / 3; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter 0.6s; user-select: none; -webkit-user-drag: none; }
.shot:hover img { transform: scale(1.06); }
.shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; color: #fff; font-size: 0.85rem; font-weight: 600;
  background: linear-gradient(180deg, transparent, rgba(10, 42, 29, 0.8)); transform: translateY(8px); opacity: 0; transition: transform 0.5s var(--ease), opacity 0.5s;
}
.shot:hover figcaption { transform: none; opacity: 1; }
@media (hover: none) { .shot figcaption { transform: none; opacity: 1; } }

/* ---------- References grid ---------- */
.logos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.logo {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  aspect-ratio: 4 / 3; padding: 22px; border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--line);
  overflow: hidden; transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease), border-color 0.4s;
}
.logo:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(31, 139, 75, 0.3); }
.logo img { max-height: 56px; max-width: 78%; width: auto; object-fit: contain; filter: grayscale(1); opacity: 0.75; transition: filter 0.5s, opacity 0.5s, transform 0.6s var(--ease); }
.logo:hover img { filter: none; opacity: 1; transform: scale(1.06); }
.logo span { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; text-align: center; }
.logos.is-inview .logo { animation: logoIn 0.8s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes logoIn { from { opacity: 0; transform: translateY(20px) scale(0.96); } to { opacity: 1; transform: none; } }

/* ---------- Presence ---------- */
.presence { background-image: radial-gradient(70% 70% at 0% 100%, rgba(31, 139, 75, 0.25), transparent 60%); }
.offices { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.office {
  position: relative; padding: 36px 34px; border-radius: var(--radius); overflow: hidden;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); transition: transform 0.6s var(--ease), border-color 0.5s;
}
.office:hover { transform: translateY(-6px); border-color: rgba(226, 184, 67, 0.35); }
.office__flag { display: inline-block; width: 42px; height: 28px; border-radius: 4px; overflow: hidden; margin-bottom: 22px; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.6); }
.office__flag svg { width: 100%; height: 100%; display: block; }
.office h3 { font-size: 1.7rem; letter-spacing: -0.03em; color: #fff; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.office h3 small { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-soft); font-weight: 600; }
.office p { margin: 14px 0 20px; color: rgba(233, 239, 233, 0.72); font-size: 0.95rem; }
.office a { color: #fff; font-weight: 700; border-bottom: 1px solid rgba(255, 255, 255, 0.3); transition: border-color 0.3s, color 0.3s; }
.office a:hover { color: var(--gold); border-color: var(--gold); }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__text p { color: var(--ink-2); }
.contact__list { margin-top: 32px; display: grid; gap: 16px; }
.contact__list li { display: flex; align-items: center; gap: 14px; font-size: 0.98rem; }
.contact__list svg { flex: 0 0 auto; width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: var(--sand); fill: none; stroke: var(--green); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact__list a { border-bottom: 1px solid transparent; transition: border-color 0.3s, color 0.3s; }
.contact__list a:hover { color: var(--green-600); border-color: currentColor; }

.form { padding: clamp(24px, 3vw, 40px); border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field span { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 0.98rem; color: var(--ink); padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper);
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s; -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b746f' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); background: #fff; box-shadow: 0 0 0 4px rgba(31, 139, 75, 0.12); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #d64545; box-shadow: 0 0 0 4px rgba(214, 69, 69, 0.12); }
.form__note { font-size: 0.9rem; color: var(--green-600); min-height: 1.2em; }
.form__note.is-error { color: #d64545; }

/* ---------- Footer ---------- */
.footer { background: var(--green-950); color: rgba(233, 239, 233, 0.75); padding: clamp(60px, 7vw, 90px) 0 30px; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer__brand p { margin: 18px 0 22px; max-width: 360px; font-size: 0.95rem; }
.footer__brand .brand__logo { height: 48px; width: auto; }
.footer__social { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.15); color: #fff; font-size: 0.85rem; font-weight: 700; transition: background 0.4s, border-color 0.4s; }
.footer__social:hover { background: var(--green); border-color: var(--green); }
.footer__social svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.footer__col { display: grid; gap: 10px; align-content: start; font-size: 0.93rem; }
.footer__col h4 { color: #fff; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 8px; }
.footer__col a { width: fit-content; position: relative; transition: color 0.3s; }
.footer__col a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease); }
.footer__col a:hover { color: #fff; }
.footer__col a:hover::after { transform: scaleX(1); transform-origin: left; }
.footer__col address { font-style: normal; margin-top: 6px; font-size: 0.88rem; }
.footer__bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.82rem; }
.footer__values { color: var(--gold-soft); letter-spacing: 0.05em; }

/* ---------- To top ---------- */
.totop {
  position: fixed; right: 24px; bottom: 24px; z-index: 700; width: 50px; height: 50px; border-radius: 50%;
  background: var(--green); color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -12px rgba(15, 61, 42, 0.6);
  opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity 0.4s, transform 0.5s var(--ease), background 0.3s;
}
.totop.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { background: var(--green-900); }
.totop svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* =========================================================
   Pages dédiées (expertises.php / formations.php)
   ========================================================= */
.page-hero {
  padding: clamp(140px, 18vw, 200px) 0 clamp(56px, 7vw, 90px);
  background-image: radial-gradient(70% 90% at 100% 0%, rgba(226, 184, 67, 0.12), transparent 60%),
    radial-gradient(60% 80% at 0% 100%, rgba(31, 139, 75, 0.28), transparent 60%);
}
.page-hero .title { max-width: 800px; }
.page-hero .section__lead { max-width: 640px; }

/* ---------- Domaines d'expertise ---------- */
.domains { display: grid; gap: 22px; }
.domain {
  position: relative;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: clamp(18px, 3vw, 40px);
  padding: clamp(26px, 4vw, 44px);
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.4s;
}
.domain:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(31, 139, 75, 0.3); }
.domain--img { grid-template-columns: 80px 1fr minmax(220px, 300px); }
.domain__media { min-height: 100%; }
.domain__media img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: var(--radius-sm); aspect-ratio: 4 / 3;
}
.domain__num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(31, 139, 75, 0.25);
  line-height: 1;
}
.domain__body h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -0.02em; margin-bottom: 10px; }
.domain__lead { color: var(--ink-2); margin-bottom: 20px; max-width: 640px; }
.domain__list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; }
.domain__list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.94rem;
  color: var(--ink-2);
}
.domain__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--green);
  transform: rotate(45deg);
}

/* ---------- Abonnements ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(26px, 3.5vw, 40px);
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.plan h3 { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: 0.06em; color: var(--green-900); }
.plan__price { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 800; letter-spacing: -0.03em; color: var(--green); }
.plan p { color: var(--ink-2); font-size: 0.95rem; flex: 1; }
.plan--featured { background: var(--green-950); border-color: var(--green-900); color: #e9efe9; }
.plan--featured h3 { color: var(--gold); }
.plan--featured p { color: rgba(233, 239, 233, 0.75); }
.plan--featured .plan__price { color: var(--gold-soft); }
.plan--featured .btn--dark { --bg: var(--gold); color: var(--green-950); }
.plan--featured .btn--dark::before { background: #fff; }

/* ---------- Formations ---------- */
.formations-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.formation {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.4s;
}
.formation:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(31, 139, 75, 0.3); }
.formation__media { margin: -8px -8px 4px; }
.formation__media img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: 10px;
}
.formation__icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: rgba(31, 139, 75, 0.1); display: grid; place-items: center;
}
.formation__icon svg { width: 26px; height: 26px; fill: var(--green); }
.formation h2 { font-size: 1.2rem; letter-spacing: -0.02em; line-height: 1.3; }
.formation__meta { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-600); }
.formation p { color: var(--ink-2); font-size: 0.94rem; }
.formation__cta { margin-top: auto; align-self: flex-start; }
.domain .card__link { color: var(--green-600); }
.domain .card__link:hover { color: var(--green-900); }

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  display: grid;
  justify-items: center;
  gap: 18px;
}
.cta-band p { color: var(--ink-2); }
.cta-band__actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.section .cta-band { margin-top: clamp(48px, 7vw, 80px); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card--wide { grid-column: span 2; }
  .logos { grid-template-columns: repeat(4, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; align-items: flex-start; gap: 20px;
    padding: 110px var(--gutter) 40px; background: var(--green-950); color: #fff;
    clip-path: circle(0 at calc(100% - 44px) 40px); transition: clip-path 0.8s var(--ease-io);
  }
  .nav.is-open { clip-path: circle(150% at calc(100% - 44px) 40px); }
  .nav__list { flex-direction: column; gap: 4px; }
  .nav__link { font-size: clamp(1.6rem, 6vw, 2.2rem); font-weight: 700; letter-spacing: -0.02em; padding: 8px 0; opacity: 0; transform: translateY(20px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
  .nav__link::after { display: none; }
  .nav.is-open .nav__link { opacity: 1; transform: none; }
  .nav.is-open .nav__link:nth-child(1) { transition-delay: 0.25s; }
  .nav.is-open li:nth-child(2) .nav__link { transition-delay: 0.3s; }
  .nav.is-open li:nth-child(3) .nav__link { transition-delay: 0.35s; }
  .nav.is-open li:nth-child(4) .nav__link { transition-delay: 0.4s; }
  .nav.is-open li:nth-child(5) .nav__link { transition-delay: 0.45s; }
  .nav.is-open li:nth-child(6) .nav__link { transition-delay: 0.5s; }
  .nav__cta { margin-top: 12px; opacity: 0; transition: opacity 0.6s 0.55s; }
  .nav.is-open .nav__cta { opacity: 1; }
  .header.is-menu { color: #fff; }
  .header.is-menu::after { opacity: 0; }
  .header.is-menu .brand__txt { fill: #fff; }
  .burger { display: block; }

  .hero { padding-top: 120px; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .hero__scroll { display: none; }
  .about__grid, .training__grid, .contact__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 520px; }
  .about__badge { right: 12px; top: -18px; width: 104px; height: 104px; }
  .about__badge strong { font-size: 1.6rem; }
  .training__poster { order: -1; max-width: 420px; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
  .steps::before { display: none; }
  .offices { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(3, 1fr); }
  .domain, .domain--img { grid-template-columns: 1fr; }
  .domain__media { order: -1; }
  .plans, .formations-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .hero__title { font-size: clamp(2.1rem, 10vw, 3rem); }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__stats { margin-top: 44px; }
  .stat { padding: 20px 18px; }
  .values { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .card--wide { grid-column: auto; }
  .steps { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .logo { padding: 16px; }
  .logo img { max-height: 44px; }
  .form__row { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .domain__list, .plans, .formations-grid { grid-template-columns: 1fr; }
  .marquee__track img { height: 36px; max-width: 130px; }
  .shot { width: 72vw; }
  .shot--wide { width: 84vw; }
}
