/* ==========================================================================
   MAHER WANNES — Site vitrine one-page
   Design system : encre profonde · or · teal — motif « réseau de nœuds »
   Stack : CSS pur, mobile-first, WCAG AA, prefers-reduced-motion respecté
   ========================================================================== */

/* ---------- Polices variables auto-hébergées ---------- */
@font-face {
  font-family: "Space Grotesk";
  src: url("../assets/fonts/space-grotesk-var-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}

/* ---------- Tokens ---------- */
:root {
  --bg:        #0A0E1A;
  --bg-2:      #0D1426;
  --panel:     #141C30;
  --panel-2:   #1A2340;
  --gold:      #F5A623;
  --gold-2:    #FFC65C;
  --gold-soft: rgba(245, 166, 35, 0.12);
  --teal:      #2DD4BF;
  --teal-soft: rgba(45, 212, 191, 0.10);
  --text:      #F5F8FF;
  --body:      #9AA7BD;
  --muted:     #6E7C96;
  --line:      rgba(154, 167, 189, 0.14);
  --line-soft: rgba(154, 167, 189, 0.08);

  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Inter", "Segoe UI", system-ui, sans-serif;

  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);

  --container: min(1200px, 92vw);
  --radius:    18px;
  --header-h:  76px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(1100px 600px at 85% -5%, rgba(45, 212, 191, 0.05), transparent 60%),
    radial-gradient(1200px 700px at 8% 12%, rgba(245, 166, 35, 0.05), transparent 55%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 32%);
  background-color: var(--bg);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  font-weight: 600;
  text-wrap: balance;
}
p { margin: 0; }
ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: var(--text); text-decoration: none; }
strong { color: var(--text); font-weight: 600; }
em { color: var(--body); }
img, svg, canvas { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; }

::selection { background: var(--gold); color: #0A0E1A; }

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

.skip-link {
  position: fixed;
  top: 10px; left: 10px;
  z-index: 3000;
  padding: 0.7rem 1.1rem;
  background: var(--gold);
  color: #0A0E1A;
  font-weight: 600;
  border-radius: 8px;
  transform: translateY(-260%);
  transition: transform 0.25s var(--ease);
}
.skip-link:focus { transform: none; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.container { width: var(--container); margin-inline: auto; }

/* ==========================================================================
   CURSEUR PERSONNALISÉ
   ========================================================================== */
.cursor-dot, .cursor-halo {
  position: fixed;
  top: 0; left: 0;
  z-index: 3500;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--gold);
}
.cursor-halo {
  width: 38px; height: 38px;
  border: 1px solid rgba(245, 166, 35, 0.55);
  transition: width 0.3s var(--ease), height 0.3s var(--ease), border-color 0.3s var(--ease);
}
html.has-cursor .cursor-dot, html.has-cursor .cursor-halo { opacity: 1; }
html.has-cursor .cursor-halo.is-hover {
  width: 62px; height: 62px;
  border-color: var(--teal);
}
/* Le curseur natif reste visible : le halo est un accompagnement, pas un remplacement. */

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 2000;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(10, 14, 26, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}
.header-inner {
  width: var(--container);
  margin-inline: auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand-mono {
  width: 38px; height: 38px;
  flex: none;
}
.brand-mono circle { stroke: rgba(245, 166, 35, 0.45); stroke-width: 5; fill: none; }
.brand-mono path { stroke: var(--gold); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  color: var(--text);
}

.main-nav { display: flex; gap: clamp(1rem, 2.2vw, 1.9rem); }
.main-nav a {
  position: relative;
  font-size: 0.92rem;
  color: var(--body);
  padding: 0.35rem 0;
  transition: color 0.3s var(--ease);
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.main-nav a:hover, .main-nav a.is-active { color: var(--text); }
.main-nav a:hover::after, .main-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-right { display: flex; align-items: center; gap: 1.1rem; }

.lang-switch { display: flex; gap: 0.4rem; }
.lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  text-decoration: none;
  transition: color 0.3s var(--ease);
}
.lang.is-active { color: var(--gold); }
.lang[aria-disabled="true"] { cursor: not-allowed; opacity: 0.55; }
.lang:not([aria-disabled="true"]):hover { color: var(--text); }

.btn-nav { padding: 0.55rem 1.25rem; font-size: 0.9rem; }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 0.4rem;
}
.menu-toggle-label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}
.menu-toggle-bars { display: grid; gap: 5px; width: 26px; }
.menu-toggle-bars i {
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), width 0.35s var(--ease);
}
.menu-toggle-bars i:last-child { width: 70%; justify-self: end; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars i:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars i:last-child { width: 100%; transform: translateY(-3.5px) rotate(-45deg); }

.scroll-progress {
  height: 2px;
  background: transparent;
  pointer-events: none;
}
.scroll-progress i {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  transform: scaleX(0);
  transform-origin: left;
}

/* ---------- Menu plein écran ---------- */
.fullscreen-menu {
  position: fixed;
  inset: 0;
  z-index: 1900;
  background:
    radial-gradient(900px 500px at 80% 10%, rgba(45, 212, 191, 0.07), transparent 60%),
    var(--bg);
  padding: calc(var(--header-h) + 4vh) 0 6vh;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  visibility: hidden; /* retire les liens de l'ordre de tabulation quand fermé */
  transition: opacity 0.45s var(--ease), visibility 0s linear 0.45s;
}
.fullscreen-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition: opacity 0.45s var(--ease);
}
.fs-menu-grid {
  width: var(--container);
  margin-inline: auto;
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
}
.fs-menu-links { display: grid; gap: 0.1rem; }
.fs-menu-links a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5.4vw, 2.4rem);
  font-weight: 600;
  color: var(--text);
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line-soft);
  transform: translateY(18px);
  opacity: 0;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.3s var(--ease);
  transition-delay: calc(var(--d, 0) * 30ms);
}
.fullscreen-menu.is-open .fs-menu-links a { transform: none; opacity: 1; }
.fs-menu-links a span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.fs-menu-links a:hover { color: var(--gold-2); }
.fs-menu-aside { display: grid; gap: 0.6rem; align-content: start; }
.fs-menu-tag { color: var(--muted); font-size: 0.95rem; letter-spacing: 0.04em; }
.fs-menu-mail { color: var(--gold); font-weight: 500; }

/* ==========================================================================
   BOUTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 2rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
  will-change: transform;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: #131008;
  box-shadow: 0 8px 28px -10px rgba(245, 166, 35, 0.55);
}
.btn-gold:hover {
  box-shadow: 0 14px 38px -10px rgba(245, 166, 35, 0.7);
  transform: translateY(-2px);
}
.btn-ghost {
  border: 1px solid rgba(154, 167, 189, 0.35);
  color: var(--text);
  background: rgba(20, 28, 48, 0.35);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-2);
  transform: translateY(-2px);
}

/* ==========================================================================
   SYSTÈME DE RÉVÉLATION AU SCROLL
   (gating html.js : sans JavaScript, tout le contenu reste visible)
   ========================================================================== */
html.js .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
html.js .reveal.in-view {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   SECTIONS — SQUELETTE COMMUN
   ========================================================================== */
.section { padding: clamp(5.5rem, 12vh, 9rem) 0; position: relative; }

.section-head { max-width: 46rem; margin-bottom: clamp(2.6rem, 6vh, 4.2rem); }
.kicker {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
}
.kicker-index {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
}
.kicker-index::after {
  content: "";
  display: inline-block;
  width: 2.2rem;
  height: 1px;
  background: var(--line);
  vertical-align: middle;
  margin-left: 0.8rem;
}
.section-head h2 { font-size: clamp(1.9rem, 4.6vw, 3.3rem); }
.lede {
  margin-top: 1.3rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--body);
  max-width: 40rem;
}

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--body);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.32rem 0.85rem;
  margin-bottom: 1rem;
}
.badge-gold { color: var(--gold); border-color: rgba(245, 166, 35, 0.45); background: var(--gold-soft); }
.badge-teal { color: var(--teal); border-color: rgba(45, 212, 191, 0.45); background: var(--teal-soft); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--header-h) + 4vh) 0 12vh;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      180deg,
      rgba(10, 14, 26, 0.82) 0%,
      rgba(10, 14, 26, 0.68) 45%,
      rgba(10, 14, 26, 0.93) 100%
    ),
    linear-gradient(
      90deg,
      rgba(10, 14, 26, 0.64) 0%,
      rgba(10, 14, 26, 0) 68%
    );
}
.hero-content {
  position: relative;
  z-index: 2;
  width: var(--container);
  margin-inline: auto;
}
.hero-kicker {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2.2rem;
}
.hero-title {
  font-size: clamp(3.4rem, 13vw, 10rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.95;
}
.hero-line { display: block; overflow: hidden; padding-bottom: 0.06em; }
/* Le dégradé est porté par l'élément transformé lui-même :
   background-clip:text ne peint pas à travers des enfants composités. */
.hero-line--accent .line-inner {
  display: inline-block;
  background: linear-gradient(100deg, var(--gold-2) 10%, var(--gold) 55%, #C77E12 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-title .char {
  display: inline-block;
  will-change: transform;
}
html.js .hero-title .char {
  transform: translateY(115%) rotate(4deg);
  transition: transform 0.9s var(--ease);
  transition-delay: calc(var(--c) * 40ms);
}
html.js .hero-line--accent .line-inner {
  transform: translateY(115%);
  transition: transform 1s var(--ease);
  transition-delay: 0.24s;
}
html.js .hero-title.is-in .char,
html.js .hero-title.is-in .line-inner { transform: none; }

.hero-role {
  margin-top: 2rem;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.6vw, 1.5rem);
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.01em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.55);
}
.hero-sub {
  margin-top: 0.9rem;
  max-width: 44rem;
  font-size: clamp(1rem, 2.1vw, 1.15rem);
  color: var(--text);
  min-height: 2.4em;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.55);
}
.hero-places {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0;
  margin-top: 1.8rem;
  color: var(--body);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
}
.hero-places li { display: flex; align-items: center; }
.hero-places li + li::before {
  content: "";
  width: 5px; height: 5px;
  background: var(--gold);
  border-radius: 50%;
  margin-inline: 0.9rem;
  opacity: 0.7;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.6rem; }

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0;
  margin-top: 2rem;
  color: var(--body);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
}
.hero-proof span { display: flex; align-items: center; }
.hero-proof span + span::before {
  content: "";
  width: 5px; height: 5px;
  background: var(--gold);
  border-radius: 50%;
  margin-inline: 0.9rem;
  opacity: 0.7;
}

.hero-scroll {
  position: absolute;
  bottom: 4vh;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.hero-scroll i {
  width: 1px;
  height: 44px;
  background: linear-gradient(180deg, var(--gold), transparent);
  overflow: hidden;
}
html.js .hero-scroll i { animation: scroll-pulse 2.2s var(--ease-soft) infinite; }
@keyframes scroll-pulse {
  0%   { clip-path: inset(0 0 100% 0); }
  45%  { clip-path: inset(0 0 0 0); }
  100% { clip-path: inset(100% 0 0 0); }
}

/* ==========================================================================
   01 — LA THÈSE / TIMELINE
   ========================================================================== */
.section--these {
  background: linear-gradient(180deg, transparent, rgba(13, 20, 38, 0.7) 18%, rgba(13, 20, 38, 0.7) 82%, transparent);
}

/* Repli par défaut (mobile, no-JS, reduced-motion) : grille verticale */
.timeline-track {
  width: var(--container);
  margin-inline: auto;
  display: grid;
  gap: 1.4rem;
  counter-reset: era;
}
.timeline-item {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 2rem 2.1rem 2.2rem;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.timeline-item:hover { border-color: rgba(245, 166, 35, 0.4); }
.timeline-item::before {
  content: "";
  position: absolute;
  top: 2.35rem;
  inset-inline-end: 2rem;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px var(--gold-soft);
}
.timeline-item--now::before { background: var(--teal); box-shadow: 0 0 0 5px var(--teal-soft); }
.timeline-era {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}
.timeline-item--now .timeline-era { color: var(--teal); }
.timeline-item h3 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); margin-bottom: 0.8rem; }
.timeline-item p:last-child { color: var(--body); font-size: 1rem; }

/* Mode épinglé (activé par JS sur desktop) : défilement horizontal scrubbé */
.timeline-pin.pin-active { height: 330vh; }
.timeline-pin.pin-active .timeline-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.timeline-pin.pin-active .timeline-track {
  width: max-content;
  margin: 0;
  display: flex;
  gap: 2.4rem;
  padding-inline: max(4vw, calc((100vw - var(--container)) / 2)) 8vw;
  will-change: transform;
}
.timeline-pin.pin-active .timeline-item {
  width: min(460px, 72vw);
  flex: none;
  padding: 2.6rem 2.6rem 2.8rem;
}

.these-signature {
  margin-top: clamp(3rem, 8vh, 5rem);
  text-align: center;
}
.these-signature p {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.35rem, 3.4vw, 2.15rem);
  line-height: 1.35;
  color: var(--text);
  max-width: 30ch;
  margin-inline: auto;
}

/* ==========================================================================
   02 — PORTRAIT
   ========================================================================== */
.portrait-body {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
  align-items: center;
}
.portrait-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 420px;
  border-radius: var(--radius);
  background:
    radial-gradient(70% 60% at 50% 30%, rgba(245, 166, 35, 0.10), transparent 70%),
    linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-soft);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.portrait-photo picture { position: absolute; inset: 0; }
.portrait-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.portrait-photo figcaption {
  position: absolute;
  bottom: 0.9rem;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 1.6rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(10, 14, 26, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
}
.portrait-text { display: grid; gap: 1.2rem; max-width: 40rem; }
.portrait-roles {
  margin-top: 0.6rem;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.05em;
  font-size: 0.95rem;
  text-transform: uppercase;
}

.stats {
  margin-top: clamp(3rem, 7vh, 4.5rem);
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  padding-top: 2.2rem;
}
.stat { display: flex; flex-direction: column-reverse; gap: 0.4rem; }
.stat dd {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat dd sup { color: var(--gold); font-size: 0.5em; }
.stat dt { font-size: 0.9rem; color: var(--muted); max-width: 16ch; }

/* ==========================================================================
   03 — EXPERTISES
   ========================================================================== */
.expertise-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.expertise-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.8rem 1.7rem 1.9rem;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  transform-style: preserve-3d;
}
.expertise-card::before {
  content: "";
  position: absolute;
  top: 1.5rem; inset-inline-end: 1.5rem;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(245, 166, 35, 0.6);
}
.expertise-card--ai::before { background: var(--teal); box-shadow: 0 0 12px rgba(45, 212, 191, 0.6); }
.expertise-card:hover {
  border-color: rgba(245, 166, 35, 0.4);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.6);
}
.expertise-card--ai:hover { border-color: rgba(45, 212, 191, 0.4); }
.expertise-card h3 { font-size: 1.18rem; margin-bottom: 0.6rem; padding-right: 1.4rem; }
.expertise-card p { font-size: 1rem; color: var(--body); }

/* ==========================================================================
   04 — AUTEUR
   ========================================================================== */
.books-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1fr;
}
.book-card {
  display: grid;
  gap: 1.8rem;
  grid-template-columns: 1fr;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  transform-style: preserve-3d;
}
.book-card:hover { border-color: rgba(245, 166, 35, 0.35); }
.book-cover {
  /* La hauteur suit le ratio propre de chaque couverture : aucun recadrage */
  max-width: 240px;
  align-self: start;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(90% 60% at 80% 0%, rgba(45, 212, 191, 0.18), transparent 60%),
    linear-gradient(165deg, #17203A, #0D1426);
  border: 1px solid rgba(45, 212, 191, 0.25);
  box-shadow: 0 24px 44px -20px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}
.book-cover:not(:has(img)) {
  padding: 1.4rem 1.2rem;
}
.book-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: inherit;
}
.book-cover--war {
  background:
    radial-gradient(90% 60% at 20% 0%, rgba(245, 166, 35, 0.22), transparent 60%),
    linear-gradient(165deg, #1D2137, #10101E);
  border-color: rgba(245, 166, 35, 0.3);
}
.book-info h3 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin-bottom: 0.5rem; }
.book-meta {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.book-info > p:last-child { color: var(--body); max-width: 46ch; }

.whitepapers {
  margin-top: 2.6rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(20, 28, 48, 0.5);
  padding: 1.9rem 2rem;
}
.whitepapers-title {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.4rem;
}
.whitepapers ul { display: grid; gap: 1.4rem; }
.whitepapers h4 { font-size: 1.12rem; margin-bottom: 0.3rem; }
.whitepapers li p { font-size: 0.95rem; color: var(--body); }

/* ==========================================================================
   05 — ORATEUR
   ========================================================================== */
.micro-dor {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  align-items: center;
  background:
    radial-gradient(80% 120% at 15% 20%, rgba(245, 166, 35, 0.12), transparent 55%),
    linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid rgba(245, 166, 35, 0.28);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 2.4rem;
  transform-style: preserve-3d;
}
.micro-dor-medal {
  display: grid;
  justify-items: center;
  gap: 0.9rem;
}
.micro-dor-medal picture { width: min(220px, 100%); }
.micro-dor-medal img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid rgba(245, 166, 35, 0.35);
  box-shadow: 0 20px 44px -20px rgba(0, 0, 0, 0.65);
}
.micro-dor-medal figcaption {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.85rem;
}
.micro-dor-body h3 { font-size: clamp(1.4rem, 3.2vw, 1.9rem); margin-bottom: 1rem; }
.micro-dor-body p + p { margin-top: 0.9rem; }

/* Preuve sociale du Micro d'Or (publication GDG Nantes) */
.micro-dor-proof {
  width: 100%;
  max-width: 380px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: rgba(10, 14, 26, 0.5);
}
.micro-dor-proof img { width: 100%; height: auto; }
.micro-dor-proof figcaption {
  font-size: 0.78rem;
  color: var(--body);
  padding: 0.65rem 0.95rem;
  border-top: 1px solid var(--line-soft);
}

.stages-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.stage-card {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.6rem 1.7rem;
  background: rgba(20, 28, 48, 0.45);
  transition: border-color 0.4s var(--ease);
}
.stage-card:hover { border-color: rgba(245, 166, 35, 0.35); }
.stage-card h3 { font-size: 1.12rem; margin-bottom: 0.5rem; }
.stage-card h3 span {
  display: block;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.3rem;
}
.stage-card p { font-size: 1rem; color: var(--body); }

/* ---------- Marquee ---------- */
.marquee {
  margin-top: clamp(2.6rem, 6vh, 4rem);
  overflow: hidden;
  border-block: 1px solid var(--line-soft);
  padding-block: 1.15rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 2.6rem;
  white-space: nowrap;
  width: max-content;
}
html.js .marquee-track { animation: marquee 30s linear infinite; }
html.js .marquee-track--reverse { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-track span {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.6vw, 1.7rem);
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
  transition: color 0.3s var(--ease);
}
.marquee:hover .marquee-track span { color: var(--body); }
.marquee-track i {
  width: 7px; height: 7px;
  flex: none;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  opacity: 0.7;
}
.marquee--stack .marquee-track i { border-color: var(--teal); }

/* Boucle sans couture : le JS regroupe le contenu en deux moitiés identiques */
.marquee-track.is-cloned { gap: 0; }
.marquee-half {
  display: inline-flex;
  align-items: center;
  gap: 2.6rem;
  padding-right: 2.6rem;
  flex: none;
}

/* ==========================================================================
   06 — STRUCTURES  ·  09 — R&D  ·  12 — VALEUR (rangées éditoriales)
   ========================================================================== */
.structures-list, .rd-list, .valeur-list { border-top: 1px solid var(--line); counter-reset: rows; }
.structure-row, .rd-row, .valeur-row {
  display: grid;
  gap: 0.5rem 2.5rem;
  grid-template-columns: 1fr;
  padding: 1.9rem 0.2rem;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.35s var(--ease);
}
.structure-row:hover, .rd-row:hover, .valeur-row:hover { background: rgba(20, 28, 48, 0.4); }

.structure-place {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.structure-row h3 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
.structure-row--now h3 { color: var(--gold-2); }
.structure-row p:last-child { color: var(--body); max-width: 52ch; }

.rd-row h3 { font-size: 1.25rem; }
.rd-row h3 span {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-top: 0.35rem;
}
.rd-row p { color: var(--body); max-width: 56ch; }

.valeur-row { counter-increment: rows; }
.valeur-row h3 {
  font-size: clamp(1.25rem, 2.8vw, 1.7rem);
  display: flex;
  gap: 1.1rem;
  align-items: baseline;
}
.valeur-row h3::before {
  content: counter(rows, decimal-leading-zero);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  flex: none;
}
.valeur-row p { color: var(--body); max-width: 56ch; padding-inline-start: 2.55rem; }

/* ==========================================================================
   07 — TRACK RECORD
   ========================================================================== */
.track-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.track-card {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  background: rgba(20, 28, 48, 0.4);
  transition: border-color 0.4s var(--ease), background-color 0.4s var(--ease);
}
.track-card:hover { border-color: rgba(245, 166, 35, 0.35); background: var(--panel); }
.track-card h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.track-card p { font-size: 1rem; color: var(--body); }

/* ==========================================================================
   08 — PORTEFEUILLE / KEYNOTE LLMRANKY
   ========================================================================== */
.section--produits {
  background: linear-gradient(180deg, transparent, rgba(13, 20, 38, 0.75) 15%, rgba(13, 20, 38, 0.75) 85%, transparent);
}
.keynote {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 10px);
  border: 1px solid rgba(45, 212, 191, 0.25);
  background: linear-gradient(165deg, #12203A, #0C1222 60%);
  padding: clamp(2.2rem, 5vw, 4rem);
  display: grid;
  gap: 2.2rem;
  margin-bottom: 1.6rem;
}
.keynote-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 55% at 82% 8%, rgba(45, 212, 191, 0.16), transparent 60%),
    radial-gradient(50% 60% at 8% 95%, rgba(245, 166, 35, 0.12), transparent 60%);
  pointer-events: none;
}
.keynote-head, .keynote-body, .keynote-visual { position: relative; }
.keynote-head h3 {
  font-size: clamp(2.8rem, 9vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(95deg, var(--text) 30%, var(--teal) 75%, var(--gold) 105%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.keynote-tagline {
  margin-top: 0.9rem;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.6vw, 1.45rem);
  font-weight: 500;
  color: var(--text);
}
.keynote-body > p { max-width: 62ch; }
.keynote-features {
  margin-top: 1.6rem;
  display: grid;
  gap: 0.75rem;
}
.keynote-features li {
  position: relative;
  padding-inline-start: 1.7rem;
  color: var(--text);
  font-weight: 500;
}
.keynote-features li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0; top: 0.52em;
  width: 8px; height: 8px;
  border: 1px solid var(--teal);
  transform: rotate(45deg);
  box-shadow: 0 0 10px rgba(45, 212, 191, 0.5);
}
.kv-panel {
  border: 1px solid var(--line-soft);
  background: rgba(10, 14, 26, 0.65);
  border-radius: var(--radius);
  padding: 1.6rem 1.7rem;
  max-width: 560px;
}
.kv-title {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.2rem;
}
.kv-bar {
  display: grid;
  grid-template-columns: 7.5rem 1fr 3rem;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.85rem;
}
.kv-bar span { font-size: 0.85rem; color: var(--body); }
.kv-bar b { font-size: 0.85rem; color: var(--text); font-variant-numeric: tabular-nums; text-align: right; }
.kv-bar i {
  display: block;
  height: 7px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  width: 0;
  transition: width 1.3s var(--ease);
}
html.js .keynote.in-view .kv-bar i, html.no-js .kv-bar i { width: var(--w); }
html:not(.js) .kv-bar i { width: var(--w); }
.kv-caption { font-size: 0.75rem; color: var(--body); margin-top: 0.5rem; }

.products-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
  margin-top: 1.6rem;
}
.product-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.9rem 1.8rem;
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  transform-style: preserve-3d;
}
.product-card:hover {
  border-color: rgba(245, 166, 35, 0.4);
  box-shadow: 0 18px 44px -18px rgba(0, 0, 0, 0.65);
}
.product-index {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  margin-bottom: 1.1rem;
}
.product-card h3 { font-size: 1.35rem; margin-bottom: 0.6rem; }
.product-card p { font-size: 1rem; color: var(--body); }

/* ==========================================================================
   10 — CULTURE  ·  11 — MÉDIA
   ========================================================================== */
.culture-grid, .media-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}
.culture-card, .media-card {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.9rem 1.8rem;
  transition: border-color 0.4s var(--ease);
  transform-style: preserve-3d;
}
.culture-card:hover, .media-card:hover { border-color: rgba(245, 166, 35, 0.35); }
.culture-tag, .media-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.culture-card h3, .media-card h3 { font-size: 1.25rem; margin-bottom: 0.7rem; }
.culture-card h3 span {
  display: inline-block;
  margin-left: 0.5rem;
  color: var(--gold-2);
  font-weight: 500;
}
.culture-card p:last-child, .media-card p:last-child { font-size: 1rem; color: var(--body); }
.media-figure {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 600;
  color: var(--gold-2);
  margin-top: 1.4rem;
  margin-bottom: 0.4rem;
}
.culture-note {
  margin-top: 2.4rem;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--body);
  max-width: 52ch;
}

.orateur-note {
  margin-top: 2.6rem;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--body);
  max-width: 56ch;
}

.inst-cta {
  margin-top: 2.8rem;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--body);
  max-width: 56ch;
}
.inst-cta a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   FAQ — accordéon natif (details/summary), signal GEO
   ========================================================================== */
.faq-list {
  margin-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.6rem 0.2rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  font-weight: 500;
  color: var(--text);
  transition: color 0.3s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--gold-2); }
.faq-item summary::after {
  content: "+";
  flex: none;
  font-size: 1.4em;
  line-height: 1;
  color: var(--gold);
  transition: transform 0.3s var(--ease);
}
.faq-item[open] summary { color: var(--gold-2); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-answer {
  padding: 0 0.2rem 1.9rem;
  max-width: 70ch;
}
.faq-answer p {
  color: var(--body);
  font-size: clamp(1rem, 2vw, 1.1rem);
  line-height: 1.75;
}

/* ==========================================================================
   11bis — LE MUR CINÉMA (replays de conférences, lives & webinaires)
   ========================================================================== */
.cinema-head { margin-top: clamp(2.6rem, 6vh, 4rem); max-width: 46rem; }
.cinema-head h3 { font-size: clamp(1.4rem, 3.2vw, 2rem); margin-bottom: 0.6rem; }
.cinema-head p { color: var(--body); }

.cinema {
  margin-top: 2rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.cinema-stage {
  display: grid;
  gap: 1.2rem;
  transform: perspective(1400px) rotateX(5deg);
  transform-origin: 50% 100%;
}

/* Par défaut (mobile, no-JS, reduced-motion) : bandes défilables au doigt */
.cinema-strip {
  display: flex;
  gap: 1.2rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 0.4rem 4vw 0.6rem;
  scrollbar-width: none;
}
.cinema-strip::-webkit-scrollbar { display: none; }

/* Mode marquee (activé par JS : pointeur fin + motion autorisé) */
.cinema-strip.is-cloned {
  overflow: visible;
  width: max-content;
  scroll-snap-type: none;
  padding-inline: 0;
  animation: cinema-scroll 75s linear infinite;
}
.cinema-strip--reverse.is-cloned {
  animation-direction: reverse;
  animation-duration: 92s;
}
.cinema:hover .cinema-strip.is-cloned,
.cinema:focus-within .cinema-strip.is-cloned { animation-play-state: paused; }
@keyframes cinema-scroll { to { transform: translateX(-50%); } }
.cinema-half { display: flex; gap: 1.2rem; padding-right: 1.2rem; flex: none; }

.cinema-card {
  position: relative;
  flex: none;
  width: min(340px, 74vw);
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background:
    radial-gradient(90% 90% at 85% 0%, rgba(245, 166, 35, 0.13), transparent 60%),
    linear-gradient(165deg, var(--panel-2), var(--panel));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem 1.15rem;
  scroll-snap-align: start;
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.cinema-card--teal {
  background:
    radial-gradient(90% 90% at 85% 0%, rgba(45, 212, 191, 0.14), transparent 60%),
    linear-gradient(165deg, #12203A, var(--panel));
}
.cinema-card--ink {
  background:
    radial-gradient(110% 90% at 15% 0%, rgba(154, 167, 189, 0.10), transparent 60%),
    linear-gradient(165deg, var(--panel), var(--bg-2));
}
.cinema-card:hover, .cinema-card:focus-visible {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(245, 166, 35, 0.55);
  box-shadow: 0 26px 54px -22px rgba(0, 0, 0, 0.75), 0 0 44px -20px rgba(245, 166, 35, 0.55);
  z-index: 2;
}
.cinema-card--teal:hover, .cinema-card--teal:focus-visible {
  border-color: rgba(45, 212, 191, 0.55);
  box-shadow: 0 26px 54px -22px rgba(0, 0, 0, 0.75), 0 0 44px -20px rgba(45, 212, 191, 0.5);
}
.cinema-card.is-soon { cursor: default; }

.cc-bg { position: absolute; inset: 0; }
.cc-bg img { width: 100%; height: 100%; object-fit: cover; }
.cinema-card--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 26, 0.12), rgba(10, 14, 26, 0.9) 82%);
  z-index: 1;
}
.cc-title, .cc-venue { position: relative; z-index: 2; }
.cinema-card .cc-tag, .cinema-card .cc-play, .cinema-card .cc-soon { z-index: 2; }

.cc-tag {
  position: absolute;
  top: 0.85rem;
  inset-inline-start: 0.95rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(10, 14, 26, 0.62);
  border: 1px solid rgba(245, 166, 35, 0.35);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
}
.cinema-card--teal .cc-tag { color: var(--teal); border-color: rgba(45, 212, 191, 0.4); }
.cc-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.25;
  color: var(--text);
}
.cc-venue { font-size: 0.78rem; color: var(--body); margin-top: 0.25rem; }

.cc-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -60%);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(10, 14, 26, 0.66);
  border: 1px solid var(--gold);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  display: none;
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease);
}
.cc-play::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-38%, -50%);
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent var(--gold-2);
}
.cinema-card.has-video .cc-play { display: block; }
.cinema-card.has-video:hover .cc-play { transform: translate(-50%, -60%) scale(1.12); background: rgba(10, 14, 26, 0.85); }
.cc-soon {
  position: absolute;
  top: 0.85rem;
  inset-inline-end: 0.95rem;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  background: rgba(10, 14, 26, 0.55);
}
.cinema-card.has-video .cc-soon { display: none; }

/* ---------- Lightbox cinéma ---------- */
.cinema-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2600;
  display: grid;
  place-items: center;
  padding: 4vh 4vw;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
/* Indispensable : display:grid ci-dessus écraserait le [hidden] natif du
   navigateur — sans cette règle, la lightbox invisible bloque tous les clics. */
.cinema-lightbox[hidden] { display: none; }
.cinema-lightbox.is-open { opacity: 1; }
.cl-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 16, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  cursor: zoom-out;
}
.cl-frame {
  position: relative;
  width: min(1080px, 100%);
  transform: scale(0.96) translateY(10px);
  transition: transform 0.35s var(--ease);
}
.cinema-lightbox.is-open .cl-frame { transform: none; }
.cl-player {
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(245, 166, 35, 0.4);
  box-shadow: 0 50px 140px -40px rgba(0, 0, 0, 0.9);
}
.cl-player iframe, .cl-player video { width: 100%; height: 100%; border: 0; display: block; background: #000; }
.cl-frame figcaption { margin-top: 0.9rem; color: var(--body); font-size: 0.95rem; }
.cl-close {
  position: absolute;
  top: -2.8rem;
  inset-inline-end: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  padding: 0.4rem 0.6rem;
  transition: color 0.3s var(--ease);
}
.cl-close:hover { color: var(--gold-2); }
.cl-close span { color: var(--gold); margin-left: 0.3rem; }

/* ==========================================================================
   13 — INSTITUTIONS
   ========================================================================== */
.inst-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
}
.inst-card {
  background: linear-gradient(165deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.9rem 1.8rem;
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  transform-style: preserve-3d;
}
.inst-card:hover {
  border-color: rgba(45, 212, 191, 0.4);
  box-shadow: 0 18px 44px -18px rgba(0, 0, 0, 0.65);
}
.inst-card h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.inst-card p { font-size: 1rem; color: var(--body); }

/* ==========================================================================
   15 — CONTACT
   ========================================================================== */
.section--contact {
  background: linear-gradient(180deg, transparent, rgba(13, 20, 38, 0.85) 30%);
}
.contact-grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  grid-template-columns: 1fr;
  align-items: start;
}
.contact-grid .section-head { margin-bottom: 0; }
.contact-links { margin-top: 2.2rem; display: grid; gap: 0.55rem; }
.contact-links a {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.6vw, 1.4rem);
  font-weight: 500;
  color: var(--text);
  transition: color 0.3s var(--ease);
}
.contact-links a:hover { color: var(--gold-2); }
.contact-links a[data-placeholder] { color: var(--muted); }
.contact-socials { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 0.7rem; }
.contact-socials a {
  font-size: 0.88rem;
  color: var(--body);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.contact-socials a:hover { border-color: var(--gold); color: var(--gold-2); }

.contact-form {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(1.8rem, 4vw, 2.6rem);
  display: grid;
  gap: 1.3rem;
}
.form-2col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.3rem 1rem;
}
.form-row { display: grid; gap: 0.5rem; min-width: 0; }
.form-row label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--body);
}
.form-row input, .form-row textarea {
  width: 100%;
  min-width: 0;
  background: rgba(10, 14, 26, 0.7);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  padding: 0.85rem 1rem;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  resize: vertical;
}
.form-row input::placeholder, .form-row textarea::placeholder { color: var(--body); opacity: 1; }
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}
.btn-submit { justify-self: start; }
.wa-icon { width: 1.2em; height: 1.2em; flex: none; }
.form-hint { font-size: 0.82rem; color: var(--body); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 3.2rem 0 2.6rem;
  background: var(--bg);
}
.footer-grid {
  display: grid;
  gap: 2.2rem;
  grid-template-columns: 1fr;
}
.footer-brand { display: flex; gap: 1rem; align-items: center; }
.footer-brand .brand-mono { width: 46px; height: 46px; }
.footer-brand p {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
}
.footer-brand p span { font-weight: 400; font-size: 0.88rem; color: var(--muted); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.8rem 1.5rem; align-content: center; }
.footer-nav a { font-size: 0.95rem; color: var(--body); padding: 0.35rem 0; transition: color 0.3s var(--ease); }
.footer-nav a:hover { color: var(--gold-2); }
.footer-meta { display: grid; gap: 0.5rem; align-content: center; }
.footer-langs { font-size: 0.85rem; letter-spacing: 0.18em; color: var(--gold); }
.footer-meta a { font-size: 0.88rem; color: var(--muted); }
.footer-meta a:hover { color: var(--body); }
.footer-copy { font-size: 0.85rem; color: var(--muted); }

/* ==========================================================================
   RESPONSIVE — élargissements progressifs
   ========================================================================== */
@media (min-width: 640px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .book-card { grid-template-columns: 240px 1fr; }
  .whitepapers ul { grid-template-columns: 1fr 1fr; gap: 1.6rem 2.4rem; }
}

@media (min-width: 860px) {
  .portrait-body { grid-template-columns: minmax(300px, 420px) 1fr; }
  .books-grid { grid-template-columns: 1fr 1fr; }
  .books-grid--single { grid-template-columns: 1fr; }
  .book-card { grid-template-columns: minmax(150px, 200px) 1fr; }
  .books-grid--single .book-card { grid-template-columns: 240px 1fr; }
  .micro-dor { grid-template-columns: 220px 1fr; }
  .micro-dor-proof { grid-column: 2; }
  .structure-row { grid-template-columns: 11rem 16rem 1fr; align-items: baseline; }
  .rd-row { grid-template-columns: minmax(20rem, 26rem) 1fr; align-items: start; }
  .valeur-row { grid-template-columns: minmax(22rem, 30rem) 1fr; align-items: start; }
  .valeur-row p { padding-inline-start: 0; }
  .keynote {
    grid-template-columns: 1.1fr 0.9fr;
    grid-template-areas: "head head" "body visual";
    align-items: center;
  }
  .keynote-head { grid-area: head; }
  .keynote-body { grid-area: body; }
  .keynote-visual { grid-area: visual; justify-self: end; width: 100%; }
  .contact-grid { grid-template-columns: 1.05fr 0.95fr; }
  .footer-grid { grid-template-columns: 1.2fr 1.6fr 0.9fr; }
  .fs-menu-grid { grid-template-columns: 1.5fr 1fr; }
}

@media (min-width: 1100px) {
  .micro-dor { grid-template-columns: 220px 1fr 340px; }
  .micro-dor-proof { grid-column: auto; justify-self: end; }
}

/* Navigation compacte sous 1080px */
@media (max-width: 1080px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .btn-nav { display: none; }
  /* Sur mobile, le choix de langue passe dans le menu plein écran (header allégé) */
  .site-header .lang-switch { display: none; }
}
@media (max-width: 520px) {
  .brand-name { display: none; }
  .hero-cta .btn { width: 100%; }
}

/* ==========================================================================
   ACCESSIBILITÉ DU MOUVEMENT — repli statique élégant
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  html.js .hero-title .char,
  html.js .hero-line--accent .line-inner { transform: none; transition: none; }
  html.js .marquee-track { animation: none; flex-wrap: wrap; white-space: normal; width: 100%; justify-content: center; row-gap: 0.8rem; }
  html.js .hero-scroll i { animation: none; clip-path: none; }
  .kv-bar i { transition: none; width: var(--w); }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}

/* ==========================================================================
   RTL — VERSION ARABE (html[dir="rtl"])
   La base est déjà largement logique (flex/grid + inset-inline-*) et
   s'inverse seule ; on ne corrige ici que les rares propriétés PHYSIQUES
   (margin-left/right, padding-left/right, text-align) restées figées.
   Portée strictement scopée : n'affecte jamais FR / EN / ES.
   ========================================================================== */
html[dir="rtl"] .skip-link { left: auto; right: 10px; }

/* Trait décoratif après le kicker de section */
html[dir="rtl"] .kicker-index::after { margin-left: 0; margin-right: 0.8rem; }

/* Soulignement de nav : origine de l'animation inversée */
html[dir="rtl"] .main-nav a::after { transform-origin: left; }
html[dir="rtl"] .main-nav a:hover::after,
html[dir="rtl"] .main-nav a.is-active::after { transform-origin: right; }

/* Badge numéroté des cartes d'expertise (passe à gauche en RTL) */
html[dir="rtl"] .expertise-card h3 { padding-right: 0; padding-left: 1.4rem; }

/* NB : les bandeaux défilants (.marquee-half / .cinema-half) NE sont PAS
   inversés ici : la page AR force localement direction:ltr sur les pistes
   pour préserver la boucle translateX, avec direction:rtl sur chaque carte. */

/* Valeur des barres clé/valeur : alignée sur le bord de fin (gauche en RTL) */
html[dir="rtl"] .kv-bar b { text-align: left; }

/* Petits espacements d'icônes/labels */
html[dir="rtl"] .culture-card h3 span { margin-left: 0; margin-right: 0.5rem; }
html[dir="rtl"] .cl-close span { margin-left: 0; margin-right: 0.3rem; }
