/* ==========================================================================
   S2E - Sahel Energies Equipements
   Typographies Spaciaz (Involve / URW Gothic + Switzer), palette « soleil » du logo S2E
   ========================================================================== */

@font-face { font-family: "Switzer"; src: url("../fonts/Switzer-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("../fonts/Switzer-Semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Involve"; src: url("../fonts/URWGothicL-Demi.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --sun-1: #FFD400;
  --sun-2: #F7941D;
  --sun-3: #E8332A;
  --navy: #2E3192;
  --grad: linear-gradient(100deg, var(--sun-1) 0%, var(--sun-2) 50%, var(--sun-3) 100%);

  --bg: #07090F;
  --bg-2: #0C1020;
  --surface: #11162A;
  --surface-2: #171D36;
  --line: rgba(237, 239, 245, .12);
  --text: #EDEFF5;
  --muted: #9AA1B8;
  --invert: #07090F;
  --img-filter: saturate(.9) contrast(1.05);
  --hero-overlay: linear-gradient(180deg, rgba(7,9,15,.55) 0%, rgba(7,9,15,.75) 55%, #07090F 100%);

  --f-head: "Involve", "URW Gothic", "Century Gothic", "Avenir Next", sans-serif;
  --f-body: "Switzer", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --radius: 22px;
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1360px;
  --header-h: 84px;
  color-scheme: dark;
}

[data-theme="day"] {
  --bg: #F6F2EA;
  --bg-2: #EFE8DC;
  --surface: #FFFFFF;
  --surface-2: #FBF8F2;
  --line: rgba(11, 15, 30, .12);
  --text: #0B0F1E;
  --muted: #565C72;
  --invert: #FFFFFF;
  --img-filter: none;
  --hero-overlay: linear-gradient(180deg, rgba(246,242,234,.35) 0%, rgba(246,242,234,.8) 60%, #F6F2EA 100%);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; overflow-x: hidden; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
  transition: background-color .6s var(--ease), color .6s var(--ease);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--sun-2); color: #07090F; }
:focus-visible { outline: 2px solid var(--sun-2); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(90px, 13vw, 180px) 0; position: relative; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.outline { color: transparent; -webkit-text-stroke: 1.5px var(--text); }

.h1, .h2, h1, h2, h3 { font-family: var(--f-head); font-weight: 700; letter-spacing: -.02em; line-height: 1; margin: 0; }
.h1 { font-size: clamp(42px, 7.2vw, 120px); line-height: .95; }
.h2 { font-size: clamp(32px, 4.4vw, 68px); line-height: 1.02; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 28px;
}
.eyebrow i { font-style: normal; color: var(--sun-2); font-family: var(--f-head); letter-spacing: 0; }
.eyebrow i::after { content: ""; display: inline-block; width: 36px; height: 1px; background: currentColor; vertical-align: middle; margin-left: 12px; }

.section__head { margin-bottom: clamp(48px, 7vw, 96px); }
.section__head--split { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 960px) {
  .section__head--split { grid-template-columns: 280px 1fr; align-items: start; }
  .section__head--split .eyebrow { margin-top: 18px; }
}

/* ---------- Boutons ---------- */
.btn {
  --h: 58px;
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  height: var(--h); padding: 0 30px; border-radius: 999px;
  font-weight: 600; font-size: 15px; letter-spacing: .01em;
  overflow: hidden; isolation: isolate; white-space: nowrap;
  transition: transform .5s var(--ease), color .4s var(--ease), border-color .4s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--sm { --h: 46px; padding: 0 22px; font-size: 14px; }
.btn--lg { --h: 66px; padding: 0 38px; font-size: 16px; }
.btn--sun { background: var(--grad); color: #0B0F1E; background-size: 200% 100%; }
.btn--sun::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: #0B0F1E; border-radius: inherit;
  transform: translateY(101%); transition: transform .55s var(--ease);
}
[data-theme="day"] .btn--sun::before { background: var(--navy); }
.btn--sun:hover { color: #fff; }
.btn--sun:hover::before { transform: translateY(0); }
.btn--ghost { border: 1px solid var(--line); color: var(--text); backdrop-filter: blur(8px); }
.btn--ghost::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--text); transform: scale(0); transition: transform .55s var(--ease);
}
.btn--ghost:hover { color: var(--invert); border-color: var(--text); }
.btn--ghost:hover::before { transform: scale(1.05); }
.magnetic span { display: inline-block; transition: transform .4s var(--ease); }

/* ---------- Preloader ---------- */
.loader { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; pointer-events: none; }
html:not(.js) .loader { display: none; }
.loader__curtain { position: absolute; left: 0; right: 0; height: 50.5%; background: #07090F; z-index: -1; }
.loader__curtain--top { top: 0; }
.loader__curtain--bottom { bottom: 0; }
.loader__inner { text-align: center; color: #EDEFF5; }
.loader__bolt { width: 84px; height: 112px; margin: 0 auto 26px; filter: drop-shadow(0 0 18px rgba(247,148,29,.6)); }
.loader__bolt path { stroke-dasharray: 520; stroke-dashoffset: 520; }
.loader__count { font-family: var(--f-head); font-size: clamp(56px, 10vw, 120px); line-height: 1; letter-spacing: -.03em; }
.loader__count small { font-size: .3em; margin-left: 6px; color: var(--sun-2); }
.loader__label { margin: 14px 0 0; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: #9AA1B8; }
.dots::after { content: ""; animation: dots 1.2s steps(4) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
.loader.is-done { display: none; }
html.js .loader { animation: loaderSafety 0s 14s forwards; }
@keyframes loaderSafety { to { visibility: hidden; opacity: 0; } }

/* ---------- Curseur + étincelles ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  html.js body, html.js a, html.js button, html.js label { cursor: none; }
  html.js input, html.js textarea { cursor: text; }
  .cursor { display: block; position: fixed; top: 0; left: 0; z-index: 1001; pointer-events: none; mix-blend-mode: difference; }
  .cursor__dot { position: fixed; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #fff; }
  .cursor__ring {
    position: fixed; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%;
    border: 1px solid #fff; display: grid; place-items: center;
    transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background-color .3s;
  }
  .cursor.is-link .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: #fff; }
  .cursor.is-view .cursor__ring { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: #fff; }
  .cursor__label { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #000; opacity: 0; transition: opacity .3s; }
  .cursor.is-view .cursor__label { opacity: 1; }
  .cursor.is-hidden { opacity: 0; }
}
.sparks { position: fixed; inset: 0; z-index: 998; pointer-events: none; width: 100%; height: 100%; }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 12px var(--sun-2); }

.flash { position: fixed; inset: 0; z-index: 997; pointer-events: none; background: #FFF8DC; opacity: 0; }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter);
  transition: transform .6s var(--ease), background-color .4s, height .4s var(--ease);
}
.header.is-scrolled { background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); --header-h: 70px; border-bottom: 1px solid var(--line); }
.header.is-hidden { transform: translateY(-100%); }
.header__logo img { height: 46px; width: auto; border-radius: 10px; transition: height .4s var(--ease); }
.header.is-scrolled .header__logo img { height: 40px; }
.nav { display: none; gap: 34px; }
.nav__link { position: relative; display: inline-block; overflow: hidden; font-size: 15px; height: 1.6em; line-height: 1.6; }
.nav__link::before { content: attr(data-text); position: absolute; top: 100%; left: 0; color: var(--sun-2); }
.nav__link, .nav__link::before { transition: transform .5s var(--ease); }
.nav__link:hover { color: transparent; }
.nav__link:hover::before { transform: translateY(-100%); }
.nav__link.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--grad); }
.header__actions { display: flex; align-items: center; gap: 14px; }
.header__actions .btn { display: none; }
@media (min-width: 1100px) { .nav { display: flex; } .header__actions .btn { display: inline-flex; } .burger { display: none !important; } }

/* Interrupteur jour / nuit */
.switch { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.switch__plate { width: 30px; height: 46px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; box-shadow: inset 0 2px 6px rgba(0,0,0,.25); }
.switch__toggle { width: 14px; height: 24px; border-radius: 4px; background: linear-gradient(180deg, #3A4060, #1A1F35); position: relative; transition: transform .45s var(--ease), background .45s; }
.switch__toggle::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: #E8332A; box-shadow: 0 0 6px #E8332A; transition: all .45s; }
[data-theme="day"] .switch__toggle { background: var(--grad); transform: scaleY(-1); }
[data-theme="day"] .switch__toggle::after { background: #2BD96B; box-shadow: 0 0 8px #2BD96B; }
.switch__label { position: relative; overflow: hidden; height: 1.4em; display: none; }
.switch__label span { display: block; transition: transform .45s var(--ease); line-height: 1.4; }
[data-theme="day"] .switch__label span { transform: translateY(-100%); }
@media (min-width: 640px) { .switch__label { display: block; } }

.burger { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-content: center; gap: 6px; position: relative; z-index: 120; }
.burger span { display: block; width: 18px; height: 1.5px; background: var(--text); transition: transform .5s var(--ease); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; justify-content: center; padding: 110px var(--gutter) 40px; visibility: hidden; }
.menu__bg { position: absolute; inset: 0; background: var(--bg-2); clip-path: circle(0% at calc(100% - 48px) 42px); transition: clip-path .9s var(--ease-io); }
.menu.is-open { visibility: visible; }
.menu.is-open .menu__bg { clip-path: circle(150% at calc(100% - 48px) 42px); }
.menu__nav { position: relative; display: flex; flex-direction: column; gap: 4px; }
.menu__nav a { font-family: var(--f-head); font-size: clamp(36px, 10vw, 64px); line-height: 1.1; display: flex; align-items: baseline; gap: 14px; opacity: 0; transform: translateY(40px); transition: opacity .6s var(--ease), transform .8s var(--ease), color .3s; }
.menu__nav a i { font-style: normal; font-size: 13px; color: var(--sun-2); font-family: var(--f-body); }
.menu__nav a:hover { color: var(--sun-2); }
.menu.is-open .menu__nav a { opacity: 1; transform: none; }
.menu.is-open .menu__nav a:nth-child(1) { transition-delay: .25s; } .menu.is-open .menu__nav a:nth-child(2) { transition-delay: .3s; }
.menu.is-open .menu__nav a:nth-child(3) { transition-delay: .35s; } .menu.is-open .menu__nav a:nth-child(4) { transition-delay: .4s; }
.menu.is-open .menu__nav a:nth-child(5) { transition-delay: .45s; } .menu.is-open .menu__nav a:nth-child(6) { transition-delay: .5s; }
.menu__foot { position: relative; margin-top: 48px; display: flex; flex-wrap: wrap; gap: 8px 28px; color: var(--muted); opacity: 0; transition: opacity .6s .6s; }
.menu.is-open .menu__foot { opacity: 1; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; padding: calc(var(--header-h) + 40px) 0 clamp(90px, 12vh, 140px); overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -3; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: var(--hero-overlay); }
.hero__img { width: 100%; height: 115%; object-fit: cover; filter: grayscale(.85) contrast(1.15) brightness(.85); }
[data-theme="day"] .hero__img { filter: grayscale(.6) contrast(1.05) brightness(1.05); }
.hero__grid { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; }
.hero__sun {
  position: absolute; z-index: -2; right: -18vmax; top: -22vmax; width: 62vmax; height: 62vmax; border-radius: 50%;
  background: radial-gradient(circle at 40% 60%, rgba(255,212,0,.16), rgba(247,148,29,.08) 35%, rgba(232,51,42,.04) 55%, transparent 70%);
  filter: blur(10px); pointer-events: none;
}
.hero__content { position: relative; }
.hero__eyebrow { color: var(--text); opacity: .85; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #2BD96B; box-shadow: 0 0 0 0 rgba(43,217,107,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(43,217,107,0); } 100% { box-shadow: 0 0 0 0 rgba(43,217,107,0); } }
.hero__title { font-size: clamp(50px, 10.5vw, 176px); line-height: .9; letter-spacing: -.035em; margin: 0 0 clamp(28px, 4vw, 52px); }
.line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.split { display: inline-block; }
.char { display: inline-block; will-change: transform; }
.hero__bottom { display: grid; gap: 32px; align-items: end; }
.hero__lead { max-width: 560px; margin: 0; color: var(--muted); font-size: clamp(16px, 1.25vw, 20px); }
.hero__lead strong { color: var(--text); font-weight: 600; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }
@media (min-width: 960px) { .hero__bottom { grid-template-columns: 1fr auto; } }

.gauge { position: absolute; right: var(--gutter); top: calc(var(--header-h) + 40px); width: 150px; text-align: center; display: none; }
@media (min-width: 900px) and (min-height: 700px) { .gauge { display: block; } }
.gauge__svg { width: 150px; height: 150px; transform: rotate(-90deg); }
.gauge__track { fill: none; stroke: var(--line); stroke-width: 2; }
.gauge__fill { fill: none; stroke: var(--sun-2); transition: stroke-dashoffset 1.2s var(--ease); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 314; stroke-dashoffset: 314; filter: drop-shadow(0 0 6px var(--sun-2)); }
.gauge__value { position: absolute; top: 0; left: 0; width: 150px; height: 150px; display: grid; place-content: center; font-family: var(--f-head); font-size: 40px; line-height: 1; }
.gauge__value small { font-size: 13px; color: var(--sun-2); margin-top: 4px; font-family: var(--f-body); letter-spacing: .1em; }
.gauge__caption { margin: 10px 0 0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); min-height: 2.6em; }

.scroll-hint { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); }
.scroll-hint i { width: 1px; height: 46px; background: var(--line); position: relative; overflow: hidden; }
.scroll-hint i::after { content: ""; position: absolute; left: 0; top: -50%; width: 100%; height: 50%; background: var(--grad); animation: drip 1.8s var(--ease-io) infinite; }
@keyframes drip { to { top: 100%; } }
@media (max-width: 760px), (max-height: 640px) { .scroll-hint { display: none; } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; white-space: nowrap; position: relative; }
.marquee__track { display: inline-flex; align-items: center; gap: 36px; padding-right: 36px; animation: marquee 32s linear infinite; }
.marquee__track--rev { animation-direction: reverse; animation-duration: 40s; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee--sun { background: var(--grad); color: #0B0F1E; padding: 20px 0; transform: rotate(-2deg) scale(1.04); margin: -10px 0; z-index: 2; box-shadow: 0 20px 60px -20px rgba(247,148,29,.5); }
.marquee--sun span { font-family: var(--f-head); font-size: clamp(22px, 2.6vw, 38px); text-transform: uppercase; letter-spacing: -.01em; }
.marquee--sun b { font-size: 20px; }
.marquee--outline { padding: 30px 0 0; }
.marquee--outline span { font-family: var(--f-head); font-size: clamp(48px, 8vw, 130px); color: transparent; -webkit-text-stroke: 1px var(--line); transition: -webkit-text-stroke-color .3s; text-transform: uppercase; }
.marquee--outline b { color: var(--sun-2); font-size: 40px; }

/* ---------- Présentation ---------- */
.about__statement { font-family: var(--f-head); font-size: clamp(26px, 3.5vw, 54px); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 clamp(70px, 10vw, 140px); max-width: 1200px; }
.about__statement .w { opacity: .14; transition: opacity .2s; }
html:not(.anim) .about__statement .w { opacity: 1; }
.about__grid { display: grid; gap: clamp(48px, 7vw, 110px); align-items: center; }
@media (min-width: 960px) { .about__grid { grid-template-columns: 1.05fr 1fr; } }
.about__visual { position: relative; padding-bottom: 18%; }
.about__img { margin: 0; overflow: hidden; border-radius: var(--radius); position: relative; }
.about__img img { width: 100%; height: 100%; object-fit: cover; filter: var(--img-filter); }
.about__img--main { aspect-ratio: 4/3.4; }
.about__img--main figcaption { position: absolute; left: 16px; bottom: 16px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; background: rgba(7,9,15,.7); color: #fff; padding: 8px 14px; border-radius: 999px; backdrop-filter: blur(6px); }
.about__img--float { position: absolute; right: -4%; bottom: 0; width: 46%; aspect-ratio: 3/4; border: 6px solid var(--bg); box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); }
.about__badge { position: absolute; left: -24px; top: -40px; width: 150px; height: 150px; display: grid; place-items: center; }
.about__badge svg { position: absolute; inset: 0; animation: spin 18s linear infinite; }
.about__badge text { font-size: 15px; letter-spacing: .14em; text-transform: uppercase; fill: var(--text); font-family: var(--f-body); }
.about__badge-bolt { width: 64px; height: 64px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-size: 28px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 600px) { .about__badge { width: 110px; height: 110px; left: -6px; top: -50px; } .about__badge-bolt { width: 48px; height: 48px; font-size: 20px; } }
.about__text p { color: var(--muted); margin: 26px 0 0; max-width: 560px; }
.about__text strong { color: var(--text); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 44px; }
.stat { background: var(--bg); padding: 26px 22px; transition: background .4s; }
.stat:hover { background: var(--surface); }
.stat__num { display: block; font-family: var(--f-head); font-size: clamp(38px, 4vw, 60px); line-height: 1; letter-spacing: -.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { display: block; margin-top: 10px; font-size: 14px; color: var(--muted); }

.quote { position: relative; margin: clamp(80px, 12vw, 160px) 0 0; padding: clamp(36px, 5vw, 72px); border-radius: calc(var(--radius) * 1.5); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.quote::before { content: ""; position: absolute; inset: auto -20% -60% auto; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(247,148,29,.25), transparent 65%); }
.quote__mark { position: absolute; top: -10px; left: 24px; font-family: var(--f-head); font-size: 220px; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .5; }
.quote p { position: relative; margin: 0; font-family: var(--f-head); font-size: clamp(22px, 2.4vw, 36px); line-height: 1.3; letter-spacing: -.01em; max-width: 1050px; }
.quote em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.quote footer { position: relative; margin-top: 28px; color: var(--muted); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Domaines ---------- */
.domains { background: var(--bg-2); border-radius: clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px) 0 0; }
.domains__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.domain { border-bottom: 1px solid var(--line); position: relative; }
.domain__head { width: 100%; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 16px; padding: clamp(22px, 3vw, 38px) 0; text-align: left; position: relative; }
.domain__head::before { content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: -1px; background: var(--grad); transform: scaleY(0); transform-origin: 50% 100%; transition: transform .6s var(--ease); z-index: 0; border-radius: 4px; }
.domain__head > * { position: relative; z-index: 1; transition: color .4s, transform .6s var(--ease); }
.domain__num { font-family: var(--f-head); font-size: 14px; color: var(--sun-2); }
.domain__title { font-family: var(--f-head); font-size: clamp(22px, 3.4vw, 54px); line-height: 1.05; letter-spacing: -.02em; }
.domain__tag { display: none; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; }
.domain__icon { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); position: relative; justify-self: end; }
.domain__icon::before, .domain__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform .5s var(--ease); }
.domain__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.domain.is-open .domain__icon::after { transform: translate(-50%, -50%) rotate(0); }
@media (min-width: 760px) {
  .domain__head { grid-template-columns: 80px 1fr auto 52px; }
  .domain__tag { display: inline-block; }
  .domain__icon { width: 52px; height: 52px; }
}
@media (hover: hover) {
  .domain__head:hover::before { transform: scaleY(1); }
  .domain__head:hover > * { color: #0B0F1E; }
  .domain__head:hover .domain__title { transform: translateX(14px); }
  .domain__head:hover .domain__tag, .domain__head:hover .domain__icon { border-color: rgba(11,15,30,.3); }
}
.domain__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease); }
.domain.is-open .domain__body { grid-template-rows: 1fr; }
.domain__inner { overflow: hidden; display: grid; gap: 28px; }
.domain__inner > * { margin-bottom: 34px; }
.domain__inner img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--radius); filter: var(--img-filter); margin-bottom: 0; }
.domain__inner p { margin: 0 0 18px; color: var(--muted); max-width: 620px; font-size: 17px; }
@media (min-width: 760px) { .domain__inner { grid-template-columns: 340px 1fr; padding-left: 96px; } .domain__inner img { margin-bottom: 34px; } }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ticks li { font-size: 14px; padding: 8px 14px 8px 32px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); position: relative; }
.ticks li::before { content: ""; position: absolute; left: 13px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--grad); }

.domains__preview { position: fixed; top: 0; left: 0; width: 320px; height: 220px; pointer-events: none; z-index: 50; border-radius: 18px; overflow: hidden; opacity: 0; transform: scale(.6); display: none; }
@media (hover: hover) and (pointer: fine) { .domains__preview { display: block; } }
.domains__preview-inner { position: absolute; inset: 0; background-size: cover; background-position: center; transition: background-image .2s; }

/* ---------- Parcours (horizontal) ---------- */
.journey { position: relative; background: var(--bg-2); overflow: hidden; }
.journey__pin { padding: clamp(60px, 9vw, 120px) 0; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.journey__head { margin-bottom: 52px; }
.journey__wire { position: relative; height: 2px; margin: 0 var(--gutter) -1px; background: var(--line); }
.journey__current { position: absolute; left: 0; top: 0; height: 100%; width: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 18px var(--sun-2); }
.journey__current::after { content: ""; position: absolute; right: -6px; top: -5px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255,212,0,.35), 0 0 24px 6px var(--sun-2); }
.journey__track { display: flex; gap: clamp(18px, 2.4vw, 32px); padding: 0 var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.journey__track::-webkit-scrollbar { display: none; }
.journey.is-pinned .journey__track { overflow: visible; width: max-content; scroll-snap-type: none; }
.stop { flex: 0 0 auto; width: min(82vw, 380px); scroll-snap-align: start; position: relative; padding-top: 34px; }
.stop::before { content: ""; position: absolute; top: -7px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--bg-2); border: 2px solid var(--line); transition: all .4s; }
.stop.is-lit::before { background: var(--sun-1); border-color: var(--sun-1); box-shadow: 0 0 16px var(--sun-2); }
.stop__year { display: block; font-family: var(--f-head); font-size: clamp(48px, 5.4vw, 84px); line-height: 1; letter-spacing: -.03em; color: transparent; -webkit-text-stroke: 1px var(--muted); margin-bottom: 20px; transition: color .5s, -webkit-text-stroke-color .5s; }
.stop.is-lit .stop__year { color: var(--text); -webkit-text-stroke-color: transparent; }
.stop__year.grad-text { -webkit-text-stroke: 0; }
.stop__card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: transform .5s var(--ease), border-color .4s; }
.stop__card:hover { transform: translateY(-6px); border-color: var(--sun-2); }
.stop__card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 14px; margin-bottom: 18px; filter: var(--img-filter); }
.stop__card h3 { font-size: 22px; margin-bottom: 10px; }
.stop__card p { margin: 0; font-size: 15px; color: var(--muted); }
.stop--end .stop__card { background: var(--grad); color: #0B0F1E; border: 0; }
.stop--end .stop__card p { color: rgba(11,15,30,.75); margin-bottom: 20px; }
.stop--end .btn--sun { background: #0B0F1E; color: #fff; }
.stop--end .btn--sun::before { background: #fff; }
.stop--end .btn--sun:hover { color: #0B0F1E; }

/* ---------- Références ---------- */
.refs__count { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; min-width: 1.2em; }
.refs__toolbar { display: grid; gap: 16px; margin-bottom: 40px; }
@media (min-width: 1000px) { .refs__toolbar { grid-template-columns: auto 1fr; } .refs__toolbar .search { grid-column: 2; grid-row: 1; justify-self: end; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; transition: all .35s var(--ease); }
.chip:hover { border-color: var(--text); }
.chip.is-active { background: var(--text); color: var(--invert); border-color: var(--text); }
.chips--small .chip { padding: 6px 14px; font-size: 13px; color: var(--muted); }
.chips--small .chip.is-active { background: var(--grad); color: #0B0F1E; border-color: transparent; }
.search { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); padding: 8px 4px; min-width: min(100%, 340px); transition: border-color .3s; }
.search:focus-within { border-color: var(--sun-2); }
.search svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; flex: none; }
.search input { background: none; border: 0; outline: 0; color: var(--text); font: inherit; width: 100%; }
.search input::placeholder { color: var(--muted); }
.refs__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.ref { position: relative; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; overflow: hidden; transition: transform .5s var(--ease), border-color .4s; }
.ref::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(247,148,29,.16), transparent 45%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.ref:hover { transform: translateY(-4px); border-color: rgba(247,148,29,.5); }
.ref:hover::before { opacity: 1; }
.ref__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ref__period { font-size: 12px; letter-spacing: .1em; color: var(--muted); }
.ref__place { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--grad); color: #0B0F1E; font-weight: 600; }
.ref__client { font-family: var(--f-head); font-size: 22px; line-height: 1.15; }
.ref__title { margin: 0; color: var(--muted); font-size: 15px; flex: 1; }
.ref__meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ref__tag { font-size: 12px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; }
.ref__role { font-size: 12px; color: var(--muted); margin-left: auto; }
.refs__more { display: flex; justify-content: center; margin-top: 40px; }
.refs__more .btn[hidden] { display: none; }
.refs__empty { color: var(--muted); font-size: 18px; text-align: center; padding: 40px 0; }
.refs__empty a { color: var(--sun-2); text-decoration: underline; }

/* ---------- Galerie bento ---------- */
.bento { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 42vw; gap: 12px; grid-auto-flow: dense; }
@media (min-width: 760px) { .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 22vw; gap: 16px; } }
@media (min-width: 1360px) { .bento { grid-auto-rows: 300px; } }
.tile { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.tile--xl { grid-column: span 2; grid-row: span 2; }
.tile--wide { grid-column: span 2; }
.tile--tall { grid-row: span 2; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter .6s; filter: var(--img-filter); }
.tile:hover img { transform: scale(1.07); }
.tile figcaption { position: absolute; left: 14px; bottom: 14px; padding: 8px 14px; border-radius: 999px; background: rgba(7,9,15,.7); color: #fff; font-size: 13px; backdrop-filter: blur(6px); transform: translateY(8px); opacity: .9; transition: transform .5s var(--ease), opacity .5s; }
.tile:hover figcaption { transform: none; opacity: 1; }
.tile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 0 var(--sun-2); transition: box-shadow .4s; pointer-events: none; }
.tile:hover::after { box-shadow: inset 0 0 0 3px var(--sun-2); }

/* ---------- Partenaires ---------- */
.partners { padding: clamp(70px, 9vw, 120px) 0 clamp(50px, 7vw, 90px); border-top: 1px solid var(--line); overflow: hidden; }
.logos { overflow: hidden; padding: 14px 0 24px; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.logos__track { display: inline-flex; gap: 18px; padding-right: 18px; animation: marquee 36s linear infinite; }
.logos:hover .logos__track { animation-play-state: paused; }
.logo-chip { flex: none; width: 170px; height: 110px; border-radius: 18px; background: #fff; display: grid; place-items: center; padding: 14px; transition: transform .5s var(--ease), box-shadow .5s; }
.logo-chip img { max-height: 80px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .4s, opacity .4s; }
.logo-chip:hover { transform: translateY(-6px) rotate(-2deg); box-shadow: 0 18px 40px -16px rgba(247,148,29,.6); }
.logo-chip:hover img { filter: none; opacity: 1; }
.marquee--outline:hover span { -webkit-text-stroke-color: var(--sun-2); }

/* ---------- Actualités ---------- */
.news__grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .news__grid { grid-template-columns: 1fr 1fr; } }
.news-card { border-radius: calc(var(--radius) * 1.2); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transform-style: preserve-3d; transition: transform .2s ease-out, border-color .4s; will-change: transform; }
.news-card:hover { border-color: rgba(247,148,29,.45); }
.news-card__media { aspect-ratio: 16/9; overflow: hidden; background: #fff; }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1s var(--ease); }
.news-card:hover .news-card__media img { transform: scale(1.05); }
.news-card__media--graphic { background: var(--grad); display: grid; place-items: center; position: relative; }
.news-card__media--graphic svg { width: 40%; max-width: 180px; }
.news-card__media--graphic svg path { fill: rgba(11,15,30,.12); stroke: #0B0F1E; stroke-width: 3; }
.news-card__media--graphic svg .bolt { fill: #0B0F1E; stroke: none; }
.news-card__media--graphic span { position: absolute; right: 22px; bottom: 16px; font-family: var(--f-head); font-size: clamp(28px, 3vw, 44px); color: #0B0F1E; }
.news-card__body { padding: clamp(22px, 3vw, 36px); }
.news-card time { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--sun-2); }
.news-card h3 { font-size: clamp(22px, 2.2vw, 32px); margin: 12px 0 14px; line-height: 1.1; }
.news-card p { margin: 0; color: var(--muted); }

/* ---------- Contact ---------- */
.contact { background: var(--bg-2); border-radius: clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px) 0 0; }
.contact__title { font-size: clamp(56px, 12vw, 200px); line-height: .9; letter-spacing: -.04em; margin: 0 0 28px; }
.contact__lead { max-width: 560px; color: var(--muted); font-size: clamp(17px, 1.3vw, 21px); margin: 0 0 clamp(48px, 7vw, 90px); }
.contact__grid { display: grid; gap: clamp(40px, 6vw, 80px); }
@media (min-width: 1000px) { .contact__grid { grid-template-columns: 1.35fr 1fr; } }
.form { display: grid; gap: 26px; }
.form__row { display: grid; gap: 26px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { position: relative; display: block; }
.field input, .field textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line); color: var(--text); font: inherit; font-size: 18px; padding: 24px 0 12px; outline: 0; resize: vertical; border-radius: 0; transition: border-color .3s; }
.field span { position: absolute; left: 0; top: 24px; color: var(--muted); pointer-events: none; transform-origin: 0 0; transition: transform .4s var(--ease), color .3s; }
.field input:focus + span, .field input:not(:placeholder-shown) + span,
.field textarea:focus + span, .field textarea:not(:placeholder-shown) + span { transform: translateY(-24px) scale(.78); color: var(--sun-2); }
.field::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--ease); }
.field:focus-within::after { transform: scaleX(1); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--sun-3); }
.field.is-invalid span { color: var(--sun-3); }
.form__domains { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.form__domains legend { color: var(--muted); margin-bottom: 14px; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }
.form__domains label { position: relative; }
.form__domains input { position: absolute; opacity: 0; pointer-events: none; }
.form__domains span { display: inline-block; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; transition: all .35s var(--ease); }
.form__domains label:hover span { border-color: var(--text); }
.form__domains input:checked + span { background: var(--grad); color: #0B0F1E; border-color: transparent; }
.form__domains input:focus-visible + span { outline: 2px solid var(--sun-2); outline-offset: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__submit { justify-self: start; }
.form__status { margin: 0; min-height: 1.6em; font-size: 15px; }
.form__status.is-ok { color: #2BD96B; }
.form__status.is-err { color: var(--sun-3); }
.contact__info { display: grid; gap: 12px; align-content: start; }
.info-card { display: grid; gap: 6px; padding: 22px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .4s, transform .5s var(--ease); }
.info-card:hover { border-color: var(--sun-2); transform: translateX(6px); }
.info-card__k { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--sun-2); }
.info-card__v { font-family: var(--f-head); font-size: clamp(18px, 1.5vw, 22px); line-height: 1.3; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/10; background: var(--surface); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.1); transition: filter .5s; }
:root:not([data-theme="day"]) .map iframe { filter: grayscale(1) invert(.92) hue-rotate(180deg) contrast(.9); }
.map:hover iframe { filter: none; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-2); padding: clamp(60px, 8vw, 110px) 0 28px; border-top: 1px solid var(--line); overflow: hidden; }
.footer__top { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .footer__top { grid-template-columns: 1.2fr 1fr auto; } }
.footer__logo { width: 240px; height: auto; background: #fff; border-radius: 16px; padding: 10px 14px; }
.footer__motto { font-family: var(--f-head); font-size: 22px; margin: 22px 0 0; }
.footer__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.footer__nav a { color: var(--muted); transition: color .3s, transform .4s var(--ease); display: inline-block; }
.footer__nav a:hover { color: var(--sun-2); transform: translateX(4px); }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: all .4s var(--ease); }
.footer__social svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.footer__social a:hover { background: var(--grad); color: #0B0F1E; border-color: transparent; transform: translateY(-4px); }
.footer__giant { font-family: var(--f-head); font-size: clamp(120px, 34vw, 520px); line-height: .8; letter-spacing: -.06em; text-align: center; margin: clamp(40px, 6vw, 80px) 0 20px; user-select: none; }
.footer__giant span { display: inline-block; padding: .14em .04em 0; color: transparent; -webkit-text-stroke: 1.5px var(--line); background: var(--grad) 0 100% / 100% 0% no-repeat; -webkit-background-clip: text; background-clip: text; transition: background-size 1.2s var(--ease); }
.footer__giant.is-lit span { background-size: 100% 100%; -webkit-text-stroke-color: transparent; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 24px; font-size: 14px; color: var(--muted); }
.footer__bottom p { margin: 0; }
.totop { width: 56px; height: 56px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #0B0F1E; }
.totop svg { width: 22px; height: 22px; fill: currentColor; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 500; background: rgba(5,6,12,.94); backdrop-filter: blur(10px); display: grid; place-items: center; padding: 60px 16px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1200px, 100%); text-align: center; }
.lightbox img { max-height: 78vh; width: auto; margin: 0 auto; border-radius: 14px; }
.lightbox figcaption { color: #EDEFF5; margin-top: 16px; font-size: 15px; }
.lightbox__close { position: absolute; top: 16px; right: 20px; font-size: 40px; color: #fff; width: 56px; height: 56px; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); color: #fff; font-size: 30px; line-height: 1; }
.lightbox__nav:hover { background: var(--grad); color: #0B0F1E; border-color: transparent; }
.lightbox__nav--prev { left: 16px; } .lightbox__nav--next { right: 16px; }
@media (max-width: 640px) { .lightbox__nav { top: auto; bottom: 16px; transform: none; } }

/* ---------- États initiaux d'animation (uniquement si GSAP est actif) ---------- */
html.anim .reveal-img { clip-path: inset(100% 0 0 0); }
html.anim .reveal-img img { transform: scale(1.3); }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .marquee__track, .logos__track { animation: none; }
}

/* ---------- Barre d'admin WordPress (utilisateur connecté) ---------- */
.admin-bar .header { top: 32px; }
.admin-bar .progress { top: 32px; }
@media (max-width: 782px) { .admin-bar .header, .admin-bar .progress { top: 46px; } }
@media (max-width: 600px) { .admin-bar .header.is-scrolled { top: 0; } }
