/* English Highway — feuille de style
   Direction : la signalétique des autoroutes marocaines (le logo est lui-même un panneau bleu).
   Bleu panneau, nuit, rouge signal, jaune marquage au sol. Police Overpass (héritière de Highway Gothic). */

:root {
  --sign: #0e4196;
  --sign-deep: #0b2a66;
  --night: #0a1630;
  --asphalt: #1a1e27;
  --red: #d2132e;
  --red-deep: #a90e24;
  --lane: #f2b33d;
  --paper: #f3f5f9;
  --white: #ffffff;
  --ink: #0d1730;
  --ink-soft: #46506a;
  --line: #d9dfea;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --radius: 14px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;

  --fs-h1: clamp(2.3rem, 5.6vw, 4.6rem);
  --fs-h2: clamp(1.8rem, 3.6vw, 3rem);
  --fs-h3: clamp(1.2rem, 1.8vw, 1.45rem);
  --fs-body: 1.0625rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.01em; }
svg { width: 1em; height: 1em; flex: none; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--lane); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 10vw, 140px) 0; }
.h2 { font-size: var(--fs-h2); font-weight: 600; max-width: 22ch; margin-bottom: 0.6em; }
.h3 { font-size: var(--fs-h3); font-weight: 600; margin-bottom: 0.5em; }
.kicker { font-weight: 600; color: var(--sign); margin-bottom: 0.9em; font-size: 0.98rem; display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 28px; height: 4px; border-radius: 2px; background: var(--red); }
.kicker-light { color: var(--lane); }
.muted { color: var(--ink-soft); }
.link { color: var(--sign); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; transition: color 160ms ease; }
.link:hover { color: var(--red); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--white); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px; border-radius: 10px; border: 2px solid transparent;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1; text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-sm { min-height: 42px; padding: 10px 18px; font-size: 0.95rem; }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-deep); }
.btn-blue { background: var(--sign); color: var(--white); }
.btn-blue:hover { background: var(--sign-deep); }
.btn-outline { border-color: var(--sign); color: var(--sign); background: transparent; }
.btn-outline:hover { background: var(--sign); color: var(--white); }
.btn-ghost-light { border-color: rgba(255,255,255,.55); color: var(--white); background: rgba(255,255,255,.06); }
.btn-ghost-light:hover { background: var(--white); color: var(--sign-deep); border-color: var(--white); }

/* ---------- Panneau (composant signature) ---------- */
.sign { background: var(--sign); border-radius: 16px; padding: 7px; color: var(--white); box-shadow: 0 18px 40px -18px rgba(5, 20, 60, .55); }
.sign-inner { border: 3px solid var(--white); border-radius: 11px; padding: 18px 22px; }
.sign-title { font-weight: 600; font-size: 0.95rem; opacity: .9; margin: 0 0 6px; }
.sign-line { margin: 0; font-weight: 600; }

/* ---------- Barre de progression (marquage au sol) ---------- */
.road-progress { position: fixed; inset: 0 0 auto 0; height: 4px; z-index: 60; pointer-events: none; }
.road-progress span {
  display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0);
  background: repeating-linear-gradient(90deg, var(--lane) 0 26px, transparent 26px 40px);
}

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; transition: transform 300ms var(--ease-out); }
.site-header.is-hidden { transform: translateY(-100%); }
.topbar { background: var(--sign-deep); color: #dfe6f5; font-size: 0.86rem; }
.topbar-inner { display: flex; justify-content: flex-end; gap: 22px; min-height: 36px; align-items: center; }
.topbar a { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; transition: color 160ms ease; }
.topbar a:hover { color: var(--white); }
.topbar b { color: var(--white); }
.header-inner {
  display: flex; align-items: center; gap: 20px; min-height: var(--header-h);
  background: rgba(243, 245, 249, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(13, 23, 48, .08);
  max-width: none;
  padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  padding-right: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 52px; height: 52px; object-fit: contain; transition: transform 300ms var(--ease-out); }
.brand:hover img { transform: rotate(-4deg) scale(1.04); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-weight: 500; font-size: 1.1rem; color: var(--sign-deep); }
.brand-text small { color: var(--ink-soft); font-size: 0.8rem; }

.main-nav > ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-group { position: relative; }
.nav-trigger, .nav-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 8px;
  background: none; border: 0; font: inherit; font-weight: 600; font-size: 0.97rem; color: var(--ink);
  cursor: pointer; text-decoration: none; transition: background-color 160ms ease, color 160ms ease;
}
.nav-trigger svg { transition: transform 200ms var(--ease-out); }
.nav-trigger:hover, .nav-link:hover, .nav-group:focus-within > .nav-trigger { background: rgba(14, 65, 150, .08); color: var(--sign); }
.nav-link[aria-current="page"] { color: var(--red); }
.nav-panel {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 270px;
  background: var(--white); border-radius: 14px; padding: 10px; box-shadow: 0 24px 60px -20px rgba(10, 22, 48, .35);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(0.98); transform-origin: top left;
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), visibility 0s linear 180ms;
}
.nav-panel ul { list-style: none; margin: 0; padding: 0; }
.nav-panel a { display: block; padding: 10px 14px; border-radius: 8px; text-decoration: none; font-weight: 600; transition: background-color 140ms ease, color 140ms ease; }
.nav-panel a:hover { background: var(--paper); color: var(--sign); }
.nav-panel a[aria-current="page"] { color: var(--red); }
.nav-group:hover > .nav-panel, .nav-group:focus-within > .nav-panel, .nav-group.is-open > .nav-panel {
  opacity: 1; visibility: visible; transform: none; transition-delay: 0s;
}
.nav-group:hover > .nav-trigger svg, .nav-group.is-open > .nav-trigger svg { transform: rotate(180deg); }

.burger { display: none; width: 48px; height: 48px; border-radius: 10px; border: 0; background: var(--sign); color: var(--white); font-size: 26px; align-items: center; justify-content: center; cursor: pointer; transition: transform 160ms var(--ease-out); }
.burger:active { transform: scale(0.95); }
.mobile-menu { position: fixed; inset: calc(var(--header-h) + 36px) 0 0 0; background: var(--paper); overflow-y: auto; z-index: 49; }
.mobile-menu-inner { padding: 24px var(--gutter) 40px; display: grid; gap: 22px; }
.mm-title { font-weight: 600; color: var(--sign); margin: 0 0 6px; }
.mm-group ul { list-style: none; margin: 0; padding: 0; }
.mm-group a { display: block; padding: 10px 0; font-size: 1.15rem; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }

@media (max-width: 1080px) {
  .main-nav, .header-cta { display: none; }
  .burger { display: inline-flex; }
}
@media (max-width: 640px) {
  .topbar-inner { justify-content: space-between; gap: 10px; }
  .topbar a span { font-size: 0.78rem; }
  .topbar a:last-child { display: none; }
  .brand-text small { display: none; }
}

/* ---------- Héros (accueil) ---------- */
.hero {
  position: relative; isolation: isolate; color: var(--white); overflow: hidden;
  min-height: min(880px, calc(100svh - var(--header-h) - 36px));
  display: flex; align-items: center; padding: 72px 0 120px;
  background: var(--night);
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 115%; object-fit: cover; object-position: 30% 40%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(10, 22, 48, .94) 0%, rgba(11, 42, 102, .84) 45%, rgba(11, 42, 102, .35) 100%);
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-since { display: inline-block; font-weight: 600; background: var(--red); padding: 6px 12px; border-radius: 6px; font-size: 0.92rem; margin-bottom: 22px; }
.hero-title { font-size: var(--fs-h1); font-weight: 500; line-height: 1.02; letter-spacing: -0.02em; margin-bottom: 26px; }
.hero-title em { font-style: normal; color: var(--lane); }
.hero-lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); max-width: 54ch; color: #dbe3f3; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* césure des mots pour l'animation d'entrée */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.w > span { display: inline-block; will-change: transform; }

.hero-sign { justify-self: center; display: flex; flex-direction: column; align-items: center; transform-origin: 50% 0; }
.sign-big { width: min(360px, 80vw); }
.sign-big .sign-inner { padding: 22px 26px 18px; }
.sign-big .sign-title { font-size: 1.05rem; }
.sign-dest {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; text-decoration: none;
  font-size: clamp(2rem, 3.4vw, 2.7rem); font-weight: 500; padding: 8px 0; border-bottom: 2px solid rgba(255,255,255,.28);
}
.sign-dest:last-of-type { border-bottom: 0; }
.sign-arrow { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--white); color: var(--sign); font-size: 30px; transition: transform 300ms var(--ease-out); }
.sign-dest:hover .sign-arrow { transform: translateX(4px); }
.sign-dest:hover .sign-arrow:not(.r) { transform: translateY(-4px); }
.sign-foot { margin: 10px 0 0; font-size: 0.9rem; font-weight: 600; opacity: .85; }
.sign-pole { width: 18px; height: 110px; background: linear-gradient(90deg, #8d97a8, #c8cfdb 45%, #7d879a); border-radius: 0 0 4px 4px; }

.hero-road { position: absolute; left: 0; right: 0; bottom: 0; height: 64px; background: var(--asphalt); overflow: hidden; }
.hero-road::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--white); opacity: .85; }
.hero-road span {
  position: absolute; left: 0; right: 0; top: 50%; height: 6px; margin-top: -1px;
  background: repeating-linear-gradient(90deg, var(--lane) 0 70px, transparent 70px 130px);
  animation: lane 2.4s linear infinite;
}
@keyframes lane { to { background-position: -130px 0; } }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-sign { justify-self: start; }
  .sign-pole { height: 50px; }
}

/* ---------- Bandeau défilant ---------- */
.marquee { background: var(--lane); color: var(--night); overflow: hidden; padding: 14px 0; border-block: 4px solid var(--night); }
.marquee-track { display: flex; width: max-content; gap: 48px; font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 500; line-height: 1; will-change: transform; animation: marquee 30s linear infinite; }
.marquee-track span { white-space: nowrap; }
.marquee-track .o { color: transparent; -webkit-text-stroke: 2px var(--night); }
.js .marquee-track { animation: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Chiffres ---------- */
.stats { padding: clamp(56px, 7vw, 96px) 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.stat { border-top: 4px solid var(--sign); padding-top: 18px; }
.stat b { display: block; font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 500; color: var(--sign-deep); line-height: 1; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.stat > span { color: var(--ink-soft); font-size: 0.98rem; display: block; max-width: 26ch; }
@media (max-width: 860px) { .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- La route des programmes (section signature) ---------- */
.road-section { background: var(--night); color: var(--white); overflow: hidden; }
.road-pin { padding: clamp(72px, 9vw, 120px) 0 clamp(56px, 7vw, 90px); min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.road-head .h2 { max-width: 20ch; }
.road-viewport { position: relative; margin-top: 28px; }
.road-track {
  position: relative; display: flex; gap: clamp(28px, 4vw, 56px); width: max-content;
  padding: 0 max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 0;
  padding-bottom: 120px;
}
.road-asphalt { position: absolute; left: 0; right: 0; bottom: 0; height: 96px; background: var(--asphalt); border-top: 4px solid #e9edf5; border-bottom: 4px solid #e9edf5; }
.road-asphalt .lane { position: absolute; left: 0; right: 0; top: 50%; height: 6px; margin-top: -3px; background: repeating-linear-gradient(90deg, var(--lane) 0 70px, transparent 70px 130px); }
.exit { position: relative; width: clamp(270px, 28vw, 350px); flex: none; text-decoration: none; display: flex; flex-direction: column; align-items: flex-start; }
.exit-tag { display: inline-block; background: var(--lane); color: var(--night); font-weight: 600; font-size: 0.88rem; padding: 6px 12px; border-radius: 6px 6px 0 0; margin-left: 14px; }
.exit-board {
  display: flex; flex-direction: column; gap: 10px; width: 100%; min-height: 250px;
  background: var(--sign); border-radius: 16px; padding: 7px; position: relative; z-index: 1;
  transition: transform 300ms var(--ease-out), background-color 300ms ease;
}
.exit-board::before { content: ""; position: absolute; inset: 7px; border: 3px solid var(--white); border-radius: 11px; pointer-events: none; }
.exit-name { font-size: clamp(1.6rem, 2.4vw, 2.1rem); font-weight: 500; padding: 22px 24px 0; line-height: 1.05; }
.exit-text { padding: 0 24px; color: #dbe4f6; font-size: 1rem; }
.exit-go { margin-top: auto; padding: 0 24px 22px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--lane); }
.exit-go svg { transition: transform 300ms var(--ease-out); }
.exit:hover .exit-board { transform: translateY(-8px); background: #1550b3; }
.exit:hover .exit-go svg { transform: translateX(5px); }
.exit-post { width: 12px; height: 120px; margin-left: 40px; background: linear-gradient(90deg, #7d879a, #c8cfdb 45%, #6f798c); margin-bottom: -120px; }

@media (max-width: 900px) {
  .road-pin { min-height: 0; }
  .road-viewport { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .road-viewport::-webkit-scrollbar { display: none; }
  .exit { scroll-snap-align: start; scroll-margin-left: var(--gutter); }
}

/* ---------- À propos ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.clip { overflow: hidden; border-radius: var(--radius); position: relative; }
.clip img { width: 100%; height: 100%; object-fit: cover; }
.about-media { margin: 0; position: relative; }
.about-media .clip { aspect-ratio: 4 / 5; }
.about-media .clip img { height: 118%; }
.about-badge { position: absolute; right: -14px; bottom: 28px; background: var(--red); color: var(--white); padding: 16px 20px; border-radius: 12px; font-weight: 600; max-width: 210px; line-height: 1.3; box-shadow: 0 18px 40px -18px rgba(120, 10, 30, .6); }
.about-badge b { display: block; font-size: 2.6rem; font-weight: 500; line-height: 1; }
.pillars { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 4px; }
.pillars li { display: grid; gap: 2px; padding: 16px 0 16px 22px; border-left: 4px solid var(--line); transition: border-color 200ms ease; }
.pillars li:hover { border-color: var(--red); }
.pillars b { font-weight: 600; }
.pillars span { color: var(--ink-soft); }
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-media .clip { aspect-ratio: 4 / 3; }
  .about-badge { right: 12px; }
}

/* ---------- Citation ---------- */
.quote-section { background: var(--sign); color: var(--white); padding: clamp(80px, 11vw, 150px) 0; }
.quote-inner { display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.quote-photo { width: clamp(110px, 14vw, 180px); aspect-ratio: 1; object-fit: cover; border-radius: 16px; border: 4px solid var(--white); }
blockquote { margin: 0; }
.quote-text { font-size: clamp(1.6rem, 3.3vw, 2.8rem); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 28px; max-width: 30ch; }
.quote-text .qw { opacity: 0.22; transition: none; }
.no-anim .quote-text .qw { opacity: 1; }
blockquote footer { display: flex; flex-direction: column; color: #cfdaf0; }
blockquote footer b { color: var(--white); font-size: 1.1rem; }
@media (max-width: 640px) { .quote-inner { grid-template-columns: 1fr; } }

/* ---------- Ailleurs ---------- */
.world-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); margin-top: 12px; }
.world-card { background: var(--white); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.world-card .clip { border-radius: 0; aspect-ratio: 16 / 10; }
.world-card .clip img { height: 120%; }
.world-body { padding: 26px 28px 30px; }
.tag { display: inline-block; font-weight: 600; font-size: 0.85rem; color: var(--red); margin-bottom: 8px; }
@media (max-width: 820px) { .world-grid { grid-template-columns: 1fr; } }

/* ---------- Services ---------- */
.services { background: var(--white); }
.services-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 12px; }
.service { display: flex; flex-direction: column; text-decoration: none; border-radius: 16px; overflow: hidden; background: var(--paper); transition: transform 300ms var(--ease-out); }
.service img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; transition: transform 500ms var(--ease-out); }
.service:hover { transform: translateY(-6px); }
.service:hover img { transform: scale(1.05); }
.service-body { padding: 20px 22px 24px; display: grid; gap: 6px; }
.service-body b { font-size: 1.2rem; font-weight: 600; color: var(--sign-deep); }
.service-body span { color: var(--ink-soft); font-size: 0.97rem; }
@media (max-width: 1000px) { .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }

/* ---------- Galerie en colonnes ---------- */
.gallery-cols { background: var(--night); color: var(--white); padding: clamp(80px, 10vw, 130px) 0 0; overflow: hidden; }
.gallery-head { margin-bottom: 40px; }
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 0 18px; height: clamp(520px, 70vw, 820px); overflow: hidden; }
.col { display: grid; gap: 18px; align-content: start; will-change: transform; }
.col:nth-child(2) { margin-top: 90px; }
.col img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; }
@media (max-width: 700px) { .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .col:nth-child(3) { display: none; } }

/* ---------- Centres ---------- */
.centres-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); margin-top: 16px; }
.centre-card { background: var(--white); border-radius: 18px; padding: 14px; display: grid; gap: 4px; transition: transform 300ms var(--ease-out); }
.sign-centre .sign-inner { padding: 20px 24px; }
.sign-city { display: flex; justify-content: space-between; align-items: center; font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 500; line-height: 1; margin: 0; }
.sign-city svg { width: 54px; height: 54px; padding: 10px; border-radius: 50%; background: var(--white); color: var(--sign); }
.centre-body { padding: 18px 14px 12px; }
.centre-line { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 10px; }
.centre-line svg { font-size: 1.25rem; color: var(--red); margin-top: 3px; }
.centre-line a { text-decoration: none; font-weight: 600; }
.centre-line a:hover { color: var(--sign); }
.centre-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
@media (max-width: 820px) { .centres-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { background: var(--white); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 90px); }
.faq-list { border-top: 2px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; cursor: pointer; font-weight: 600; font-size: 1.12rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--paper); transition: background-color 200ms ease, transform 250ms var(--ease-out); }
.faq-item summary i::before, .faq-item summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2.5px; margin: -1.25px 0 0 -6px; background: var(--sign); border-radius: 2px; transition: transform 250ms var(--ease-out); }
.faq-item summary i::after { transform: rotate(90deg); }
.faq-item[open] summary i { background: var(--red); transform: rotate(180deg); }
.faq-item[open] summary i::before, .faq-item[open] summary i::after { background: var(--white); }
.faq-item[open] summary i::after { transform: rotate(0deg); }
.faq-a { display: grid; grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { color: var(--ink-soft); padding-bottom: 22px; margin: 0; max-width: 60ch; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }

/* ---------- Bandeau d'appel ---------- */
.cta-band { background: var(--sign-deep); color: var(--white); padding: clamp(64px, 8vw, 110px) 0; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: repeating-linear-gradient(90deg, var(--lane) 0 70px, transparent 70px 130px); }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 36px; flex-wrap: wrap; }
.cta-inner .h2 { margin-bottom: 0.3em; }
.cta-inner p { color: #cfdaf0; margin: 0; max-width: 52ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Pages programme ---------- */
.p-hero { position: relative; padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 100px); background: var(--white); overflow: hidden; }
.p-hero-inner { position: relative; z-index: 1; }
.p-hero-media { position: absolute; top: clamp(48px, 7vw, 96px); bottom: clamp(56px, 7vw, 100px); right: var(--gutter); width: min(40vw, 540px); border-radius: 20px; }
.p-hero-media img { height: 116%; }
.p-hero:not(.p-hero-plain) .p-hero-inner > * { max-width: min(640px, calc(100% - min(40vw, 540px) - 48px)); }
.crumbs { display: flex; gap: 10px; font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 24px; }
.crumbs a { text-decoration: none; font-weight: 600; color: var(--sign); }
.p-hero-signs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.chip { display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 999px; background: var(--paper); font-weight: 600; font-size: 0.92rem; }
.chip-blue { background: var(--sign); color: var(--white); }
.p-title { font-size: clamp(2rem, 4.4vw, 3.6rem); font-weight: 500; line-height: 1.04; letter-spacing: -0.02em; margin-bottom: 24px; color: var(--sign-deep); }
.p-lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-soft); margin-bottom: 32px; }
.p-hero-plain { background: var(--white); }
.p-hero-plain .p-title { max-width: 20ch; }
.p-hero-plain .p-lead { max-width: 60ch; }
@media (max-width: 900px) {
  .p-hero-media { position: relative; top: auto; bottom: auto; right: auto; width: auto; margin: 0 var(--gutter) 32px; aspect-ratio: 16 / 10; }
  .p-hero { display: flex; flex-direction: column-reverse; padding-top: 32px; }
  .p-hero:not(.p-hero-plain) .p-hero-inner > * { max-width: none; }
  .p-hero-plain { display: block; }
}

.intro-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 90px); align-items: center; }
.intro-copy p { color: var(--ink-soft); max-width: 60ch; }
.intro-media { margin: 0; }
.intro-media .clip { aspect-ratio: 5 / 4; }
.intro-media .clip img { height: 118%; }
@media (max-width: 860px) { .intro-grid { grid-template-columns: 1fr; } }

.stages { background: var(--white); }
.stages-title { max-width: 24ch; }
.stages-road { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin-top: 30px; padding-top: 40px; }
.stages-line { position: absolute; left: 0; right: 0; top: 13px; height: 6px; background: var(--line); border-radius: 3px; }
.stages-line span { position: absolute; inset: 0; border-radius: 3px; background: repeating-linear-gradient(90deg, var(--sign) 0 40px, var(--red) 40px 52px); transform-origin: 0 50%; transform: scaleX(var(--p, 1)); }
.stage { position: relative; background: var(--paper); border-radius: 16px; padding: 28px 26px 26px; }
.stage-dot { position: absolute; top: -40px; left: 26px; width: 32px; height: 32px; border-radius: 50%; background: var(--white); border: 6px solid var(--sign); }
.stage-tag { font-weight: 500; color: var(--red); font-size: 1.35rem; margin-bottom: 8px; }
.stage p:last-child { color: var(--ink-soft); margin: 0; }
@media (max-width: 860px) {
  .stages-road { grid-template-columns: 1fr; padding-top: 0; padding-left: 44px; }
  .stages-line { left: 13px; right: auto; top: 0; bottom: 0; width: 6px; height: auto; }
  .stages-line span { transform-origin: 50% 0; transform: scaleY(var(--p, 1)); background: repeating-linear-gradient(180deg, var(--sign) 0 40px, var(--red) 40px 52px); }
  .stage-dot { top: 28px; left: -46px; }
}

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.feature { border-left: 6px solid var(--sign); padding: 6px 0 6px 26px; }
.feature p { color: var(--ink-soft); margin: 0; max-width: 58ch; }

.p-gallery { overflow: hidden; }
.strip { display: flex; gap: 18px; width: max-content; padding: 0 var(--gutter); will-change: transform; }
.strip-item { margin: 0; width: clamp(260px, 34vw, 480px); }
.strip-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; }
@media (max-width: 760px) {
  .p-gallery { overflow: visible; }
  .strip { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .strip-item { scroll-snap-align: start; flex: none; width: 80vw; }
}

.more-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 18px; margin-top: 8px; }
.more-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-decoration: none; background: var(--white); border-radius: 16px; padding: 0 22px 24px; border-top: 6px solid var(--sign); transition: transform 300ms var(--ease-out), border-color 200ms ease; }
.more-card .exit-tag { margin: 0 0 8px; border-radius: 0 0 6px 6px; }
.more-card b { font-size: 1.3rem; font-weight: 500; color: var(--sign-deep); }
.more-card span:last-child { color: var(--ink-soft); font-size: 0.97rem; }
.more-card:hover { transform: translateY(-6px); border-color: var(--red); }

/* ---------- Accueil : la porte d'entrée du centre virtuel ---------- */
/* Un mur bleu nuit orné d'un motif d'étoiles (zellige), une porte en arc qui s'ouvre en 3D,
   puis on « entre » : l'arc grandit jusqu'à remplir l'écran. */
.door { position: relative; background: var(--night); color: var(--white); }
.door-stage { position: relative; height: max(640px, 100svh); overflow: hidden; display: flex; align-items: center; isolation: isolate; padding-bottom: calc(var(--header-h) + 36px); }
.door-wall {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 45% 60% at 72% 46%, rgba(242, 179, 61, .16), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.07' stroke-width='1.2'%3E%3Cpath d='M36 8l8 20 20 8-20 8-8 20-8-20-20-8 20-8z'/%3E%3Crect x='22' y='22' width='28' height='28' transform='rotate(45 36 36)'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 72px 72px,
    radial-gradient(ellipse 90% 80% at 70% 40%, #12306b 0%, #0b1f4a 55%, #081530 100%);
}
.door-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 22%; background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,0) 60%), linear-gradient(180deg, #0a1a3d, #06102a); border-top: 1px solid rgba(255,255,255,.12); }
.door-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; gap: clamp(28px, 5vw, 80px); position: relative; }

.door-since { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.92rem; color: #dbe4f6; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); padding: 7px 14px; border-radius: 999px; margin-bottom: 22px; }
.door-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lane); box-shadow: 0 0 0 4px rgba(242, 179, 61, .2); }
.door-title { font-size: clamp(1.9rem, 3.4vw, 3.05rem); font-weight: 500; line-height: 1.06; letter-spacing: -0.02em; margin-bottom: 20px; max-width: 18ch; }
.door-title em { font-style: normal; color: var(--lane); }
.door-lead { font-size: clamp(1rem, 1.3vw, 1.15rem); color: #d5def0; max-width: 46ch; margin-bottom: 28px; }
.btn-lane { background: var(--lane); color: var(--night); }
.btn-lane:hover { background: #ffc85a; }

/* La porte */
.doorway { position: relative; justify-self: center; display: flex; flex-direction: column; align-items: center; transform-origin: 50% 62%; will-change: transform; }
.doorway-plaque { display: flex; align-items: center; gap: 10px; background: var(--white); color: var(--sign-deep); padding: 6px 14px 6px 6px; border-radius: 10px; margin-bottom: 16px; box-shadow: 0 14px 30px -14px rgba(0,0,0,.6); }
.doorway-plaque img { width: 40px; height: 40px; }
.doorway-plaque span { display: flex; flex-direction: column; font-weight: 500; font-size: 0.95rem; line-height: 1.1; }
.doorway-plaque small { font-weight: 600; font-size: 0.75rem; color: var(--ink-soft); }
.doorway-frame {
  --w: clamp(240px, 24vw, 360px);
  width: var(--w); aspect-ratio: 0.66; padding: 12px; border-radius: calc(var(--w) / 2) calc(var(--w) / 2) 10px 10px;
  background: linear-gradient(145deg, #f4f6fb, #c9d2e3);
  box-shadow: 0 0 0 6px var(--sign), 0 0 0 9px rgba(255,255,255,.85), 0 40px 80px -24px rgba(0,0,0,.75), 0 0 120px rgba(242, 179, 61, .18);
}
.doorway-arch { position: relative; width: 100%; height: 100%; border-radius: calc(var(--w) / 2 - 12px) calc(var(--w) / 2 - 12px) 4px 4px; overflow: hidden; perspective: 1100px; background: #0a1630; }
.doorway-inside { position: absolute; inset: 0; }
.doorway-inside .door-poster, .doorway-inside .door-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.doorway-light { position: absolute; inset: 0; background: radial-gradient(ellipse 60% 50% at 50% 55%, rgba(255, 214, 140, .35), transparent 70%); mix-blend-mode: screen; pointer-events: none; }
.door-leaf {
  position: absolute; top: 0; bottom: 0; width: 50%; transform-style: preserve-3d; backface-visibility: hidden;
  background: linear-gradient(90deg, rgba(255,255,255,.06), transparent 40%, rgba(0,0,0,.18)), var(--sign);
}
.door-left { left: 0; transform-origin: 0 50%; box-shadow: inset -2px 0 0 rgba(0,0,0,.35); }
.door-right { right: 0; transform-origin: 100% 50%; box-shadow: inset 2px 0 0 rgba(255,255,255,.14); }
.door-panel { position: absolute; left: 16%; right: 16%; border: 2.5px solid rgba(255,255,255,.85); border-radius: 6px; box-shadow: inset 0 0 0 5px rgba(0,0,0,.12); }
.door-panel.p1 { top: 22%; height: 34%; border-radius: 999px 999px 6px 6px; }
.door-panel.p2 { top: 62%; height: 28%; }
.door-handle { position: absolute; top: 56%; width: 9px; height: 54px; border-radius: 6px; background: linear-gradient(90deg, #b88a2c, #f5d27a 45%, #a67a22); box-shadow: 0 4px 10px rgba(0,0,0,.45); }
.door-left .door-handle { right: 10px; }
.door-right .door-handle { left: 10px; }
.doorway-mat { margin-top: 14px; padding: 6px 26px; border-radius: 6px; background: repeating-linear-gradient(90deg, #8a2a1f 0 6px, #7a2318 6px 12px); color: #f7dcae; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.8rem; box-shadow: 0 10px 20px -10px rgba(0,0,0,.6); transform: perspective(300px) rotateX(35deg); }

/* Au repos, la porte « respire » : un filet de lumière passe entre les battants */
.doorway-arch::after { content: ""; position: absolute; top: 6%; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px; background: linear-gradient(transparent, rgba(255, 214, 140, .9), transparent); filter: blur(1px); animation: gap 3.2s ease-in-out infinite; }
@keyframes gap { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.is-opening .doorway-arch::after { opacity: 0; animation: none; }

.door-hint { position: absolute; left: 50%; bottom: calc(var(--header-h) + 50px); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 0; font-weight: 600; font-size: 0.86rem; color: #c9d4ea; }
.door-hint span { width: 2px; height: 30px; background: linear-gradient(var(--lane), transparent); animation: hint 1.8s var(--ease-in-out) infinite; transform-origin: top; }
@keyframes hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

@media (max-width: 900px) {
  .door-stage { height: auto; min-height: 100svh; padding: 36px 0 calc(var(--header-h) + 60px); }
  .door-hint { display: none; }
  .door-layout { grid-template-columns: 1fr; gap: 0; }
  /* Mobile : titre et texte, puis la porte, puis les boutons */
  .door-copy { display: contents; }
  .door-since { order: 1; justify-self: start; }
  .door-title { order: 2; }
  .door-lead { order: 3; margin-bottom: 22px; }
  .doorway { order: 4; margin-bottom: 26px; }
  .door-copy .hero-actions { order: 5; }
  .doorway-frame { --w: min(44vw, 190px); padding: 8px; }
  .doorway-plaque { margin-bottom: 10px; padding: 4px 10px 4px 4px; }
  .doorway-plaque img { width: 30px; height: 30px; }
  .doorway-mat { display: none; }
  .door-handle { height: 34px; width: 7px; }
  .door-title { max-width: none; }
}

/* ---------- Visite virtuelle : salle par salle ---------- */
.tour { background: var(--night); color: var(--white); position: relative; }
.tour-pin { height: 100svh; display: flex; flex-direction: column; overflow: hidden; }
.tour-head { padding-top: clamp(20px, 4vh, 40px); }
.tour-head .h2 { margin-bottom: 0; font-size: clamp(1.6rem, 2.6vw, 2.3rem); max-width: none; }
.tour-viewport { position: relative; flex: 1; min-height: 0; }
.tour-track { display: flex; height: 100%; width: max-content; will-change: transform; }
.room {
  position: relative; width: 100vw; height: 100%; flex: none; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); align-items: center; gap: clamp(24px, 4vw, 64px);
  padding: 0 max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
}
.room::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--room-bg); }
.room-night { --room-bg: radial-gradient(ellipse 70% 80% at 70% 50%, #1b3f86 0%, #0b2152 50%, #081530 100%); }
.room-blue { --room-bg: radial-gradient(ellipse 70% 80% at 70% 50%, #1d5cc6 0%, #0e3f93 50%, #0a2a66 100%); }
.room-deep { --room-bg: radial-gradient(ellipse 70% 80% at 70% 50%, #1a4a6e 0%, #0d2740 55%, #06121f 100%); }
.room-red { --room-bg: radial-gradient(ellipse 70% 80% at 70% 50%, #e2384f 0%, #b30f27 50%, #6d0816 100%); }
.room-copy { max-width: 520px; }
.room-plaque { display: inline-flex; align-items: stretch; margin: 0 0 18px; border-radius: 10px; overflow: hidden; background: var(--white); color: var(--sign-deep); font-weight: 600; box-shadow: 0 10px 24px -12px rgba(0,0,0,.5); }
.room-plaque span { background: var(--lane); color: var(--night); padding: 8px 12px; }
.room-plaque { padding-right: 14px; gap: 12px; align-items: center; }
.room-title { font-size: clamp(1.9rem, 3.4vw, 3.1rem); font-weight: 500; line-height: 1.04; letter-spacing: -0.015em; margin-bottom: 18px; }
.room-text { color: rgba(255,255,255,.82); font-size: clamp(1rem, 1.3vw, 1.15rem); max-width: 46ch; }
.room-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.room-stage { position: relative; height: 100%; display: grid; place-items: center; }
.room-frame { position: relative; margin: 0; height: min(62vh, 600px); aspect-ratio: 0.72; border-radius: 22px; overflow: hidden; border: 6px solid var(--white); box-shadow: 0 40px 80px -30px rgba(0,0,0,.65); background: #0a1630; z-index: 1; }
.room-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.room-live { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 8px; background: rgba(10, 22, 48, .72); backdrop-filter: blur(6px); color: var(--white); font-size: 0.78rem; font-weight: 600; padding: 6px 10px; border-radius: 999px; }
.room-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ff3b4f; box-shadow: 0 0 0 0 rgba(255, 59, 79, .6); animation: live 1.6s ease-out infinite; }
@keyframes live { to { box-shadow: 0 0 0 10px rgba(255, 59, 79, 0); } }
.room-float { position: absolute; width: clamp(150px, 15vw, 230px); aspect-ratio: 4 / 3; object-fit: cover; border: 6px solid var(--white); border-radius: 10px; box-shadow: 0 24px 50px -20px rgba(0,0,0,.6); z-index: 2; }
.rf1 { left: 2%; top: 12%; rotate: -6deg; }
.rf2 { right: 0; bottom: 10%; rotate: 5deg; }
.tour-map { position: relative; z-index: 3; padding: 12px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 18px; background: linear-gradient(transparent, rgba(5, 12, 28, .6)); }
.tour-map ol { list-style: none; margin: 0 0 10px; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.tour-map a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border-radius: 999px; text-decoration: none; font-size: 0.85rem; font-weight: 600; color: rgba(255,255,255,.66); transition: background-color 200ms ease, color 200ms ease; }
.tour-map a b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.12); font-size: 0.78rem; transition: background-color 200ms ease, color 200ms ease; }
.tour-map a:hover, .tour-map a.is-active { color: var(--white); background: rgba(255,255,255,.1); }
.tour-map a.is-active b { background: var(--lane); color: var(--night); }
.tour-progress { height: 4px; border-radius: 2px; background: rgba(255,255,255,.14); overflow: hidden; }
.tour-progress span { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0); background: repeating-linear-gradient(90deg, var(--lane) 0 26px, transparent 26px 40px); }

@media (max-width: 900px) {
  .tour-pin { height: auto; overflow: visible; }
  .tour-head { padding: 64px var(--gutter) 8px; }
  .tour-track { flex-direction: column; width: auto; height: auto; }
  .room { width: auto; height: auto; grid-template-columns: 1fr; padding: 48px var(--gutter) 56px; gap: 28px; }
  .room-stage { height: auto; padding: 10px 0; }
  .room-frame { height: auto; width: min(78vw, 360px); }
  .room-float { width: 34vw; max-width: 170px; border-width: 4px; }
  .rf1 { left: -2%; top: 4%; } .rf2 { right: -2%; bottom: 2%; }
  .tour-map { display: none; }
}

/* Programmes : panneaux de sortie (version sans épinglage) */
.road-static { padding: clamp(72px, 9vw, 120px) 0 0; }
.exits-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 28px 24px; margin-top: 36px; padding-bottom: 40px; }
.exits-grid .exit { width: auto; }
.exits-grid .exit-post { display: none; }
.road-asphalt-static { position: relative; height: 70px; }

/* ---------- Tableau d'affichage ---------- */
.board { background: var(--white); overflow: hidden; }
.board-wall {
  margin-top: 16px; padding: clamp(24px, 4vw, 48px); border-radius: 22px;
  background: radial-gradient(circle at 1px 1px, rgba(255,255,255,.08) 1px, transparent 0) 0 0 / 14px 14px, var(--sign-deep);
  box-shadow: inset 0 0 0 10px #0a2257, inset 0 0 0 13px rgba(255,255,255,.85);
  columns: 4 220px; column-gap: clamp(18px, 2.4vw, 32px);
}
.poster { position: relative; display: block; width: 100%; margin: 0 0 clamp(18px, 2.4vw, 32px); padding: 8px; border: 0; background: var(--white); border-radius: 4px; cursor: zoom-in; break-inside: avoid; rotate: var(--r); box-shadow: 0 18px 30px -16px rgba(0,0,0,.6); transition: rotate 300ms var(--ease-out), transform 300ms var(--ease-out), box-shadow 300ms ease; }
.poster img { width: 100%; height: auto; border-radius: 2px; }
.poster:hover, .poster:focus-visible { rotate: 0deg; transform: translateY(-6px) scale(1.03); box-shadow: 0 30px 50px -20px rgba(0,0,0,.7); }
.poster:active { transform: scale(0.98); }
.pin { position: absolute; left: 50%; top: -8px; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff7b8a, var(--red) 55%, #7d0a1a); box-shadow: 0 4px 6px rgba(0,0,0,.45); z-index: 1; }
@media (max-width: 600px) {
  .board-wall { columns: 2; column-gap: 12px; padding: 16px; box-shadow: inset 0 0 0 6px #0a2257, inset 0 0 0 8px rgba(255,255,255,.85); }
  .poster { padding: 4px; margin-bottom: 14px; }
  .pin { width: 14px; height: 14px; margin-left: -7px; top: -6px; }
}
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 720px); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(6, 12, 28, .82); backdrop-filter: blur(4px); }
.lightbox img { max-height: 88vh; width: auto; max-width: 100%; border-radius: 10px; box-shadow: 0 40px 80px -20px rgba(0,0,0,.8); }
.lightbox-close { position: absolute; top: -18px; right: -18px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--white); color: var(--ink); font-size: 22px; display: grid; place-items: center; cursor: pointer; z-index: 1; }
.lightbox[open] { animation: pop 260ms var(--ease-out); }
@keyframes pop { from { opacity: 0; transform: scale(0.96); } }

/* ---------- Salle 1 = haut de page (titre principal) ---------- */
.room-hero { max-width: 600px; }
.room-kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); font-weight: 600; font-size: 0.9rem; color: #e2e9f7; }
.room-h1 { font-size: clamp(2.1rem, 3.7vw, 3.4rem); font-weight: 500; line-height: 1.04; letter-spacing: -0.02em; margin-bottom: 20px; text-wrap: balance; }
.room-h1 em { font-style: normal; color: var(--lane); }
.room-hero .room-text { font-size: clamp(1.02rem, 1.3vw, 1.18rem); }
.room-hero .room-actions { margin-top: 26px; }
.room-scroll { display: flex; align-items: center; gap: 12px; margin: 30px 0 0; font-size: 0.86rem; font-weight: 600; color: rgba(255,255,255,.7); }
.room-scroll span { width: 46px; height: 2px; background: linear-gradient(90deg, var(--lane), transparent); transform-origin: left; animation: scrollhint 1.8s var(--ease-in-out) infinite; }
@keyframes scrollhint { 0% { transform: scaleX(0); } 60% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
@media (max-width: 900px) {
  .room-scroll { display: none; }
  .tour-first .room:first-child { padding-top: 36px; }
}

/* ---------- Chiffres illustrés ---------- */
.stats-grid { gap: 22px; }
.stat { margin: 0; border-top: 0; padding: 0; background: var(--white); border-radius: 18px; overflow: hidden; box-shadow: 0 20px 40px -28px rgba(10, 22, 48, .45); transition: transform 300ms var(--ease-out); }
.stat:hover { transform: translateY(-6px); }
.stat-img { aspect-ratio: 4 / 3; overflow: hidden; position: relative; }
.stat-img img { width: 100%; height: 118%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.stat:hover .stat-img img { transform: scale(1.05); }
.stat figcaption { position: relative; padding: 0 20px 22px; }
.stat figcaption > b { display: inline-block; margin-top: -34px; margin-bottom: 14px; position: relative; background: var(--sign); color: var(--white); padding: 10px 16px; border-radius: 12px; box-shadow: 0 0 0 4px var(--white), 0 14px 24px -12px rgba(5, 20, 60, .6); font-size: clamp(2rem, 3.4vw, 2.8rem); }
.stat figcaption > span { display: block; color: var(--ink-soft); font-size: 0.97rem; }

/* ---------- Panneaux de sortie avec photo ---------- */
.exit-img { display: block; margin: 12px 12px 0; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; position: relative; z-index: 0; }
.exit-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
.exit:hover .exit-img img { transform: scale(1.06); }
.exit-board { min-height: 0; }
.exit-name { padding-top: 14px; }

/* ---------- Mot du directeur, grande photo ---------- */
.quote-big { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.quote-figure { margin: 0; position: relative; }
.quote-figure .clip { aspect-ratio: 3 / 2; border-radius: 20px; border: 6px solid var(--white); box-shadow: 0 40px 80px -30px rgba(0,0,0,.55); }
.quote-figure .clip img { height: 116%; }
.quote-badge { position: absolute; left: 24px; bottom: -22px; display: flex; flex-direction: column; background: var(--white); color: var(--ink-soft); padding: 12px 18px; border-radius: 12px; font-size: 0.9rem; box-shadow: 0 18px 30px -16px rgba(0,0,0,.5); }
.quote-badge b { color: var(--sign-deep); font-size: 1.05rem; }
.quote-big .quote-text { font-size: clamp(1.4rem, 2.5vw, 2.2rem); }
.quote-big blockquote footer { display: none; }
@media (max-width: 860px) { .quote-big { grid-template-columns: 1fr; } .quote-badge { left: 14px; } }

/* ---------- Pages d'information ---------- */
.info { background: var(--white); }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; margin-top: 12px; }
.info-card { background: var(--paper); border-radius: 16px; padding: 28px 26px; border-top: 6px solid var(--sign); transition: border-color 200ms ease, transform 300ms var(--ease-out); }
.info-card:hover { border-color: var(--red); transform: translateY(-4px); }
.info-card p { color: var(--ink-soft); margin: 0; }

.stat-band { background: var(--sign); color: var(--white); padding: clamp(56px, 7vw, 96px) 0; }
.stat-band-inner { display: flex; align-items: center; gap: clamp(20px, 4vw, 48px); flex-wrap: wrap; }
.stat-band b { font-size: clamp(4rem, 10vw, 8rem); font-weight: 500; line-height: 0.9; color: var(--lane); font-variant-numeric: tabular-nums; }
.stat-band p { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 600; max-width: 26ch; margin: 0; }

.club-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 20px; margin-top: 12px; }
.club-card { background: var(--paper); border-radius: 16px; overflow: hidden; transition: transform 300ms var(--ease-out); }
.club-card:hover { transform: translateY(-6px) rotate(-0.6deg); }
.club-img { aspect-ratio: 1; overflow: hidden; background: var(--sign-deep); }
.club-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
.club-card:hover .club-img img { transform: scale(1.05); }
.club-body { padding: 20px 20px 24px; }
.club-body p { color: var(--ink-soft); margin: 0; font-size: 0.97rem; }

.team-group + .team-group { margin-top: 44px; }
.team-title { font-size: 1.1rem; font-weight: 600; color: var(--sign); margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid var(--line); }
.team-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 18px; }
.person { background: var(--white); border-radius: 16px; padding: 22px 18px; display: grid; justify-items: center; text-align: center; gap: 4px; }
.person img, .person-initials { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; margin-bottom: 10px; border: 4px solid var(--paper); }
.person-initials { display: grid; place-items: center; background: var(--sign); color: var(--white); font-weight: 500; font-size: 1.6rem; }
.person b { font-weight: 600; line-height: 1.25; }
.person span { color: var(--ink-soft); font-size: 0.9rem; line-height: 1.35; }

.legal-section { background: var(--white); padding-top: 24px; }
.legal { max-width: 74ch; }
.legal h2 { font-size: 1.35rem; font-weight: 600; margin: 2em 0 0.6em; color: var(--sign-deep); }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--ink-soft); overflow-wrap: anywhere; }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }

/* ---------- Formulaire ---------- */
.form-section { background: var(--white); }
.form-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 90px); align-items: start; }
.form-grid > div p { color: var(--ink-soft); max-width: 50ch; }
.form { display: grid; gap: 16px; background: var(--paper); padding: clamp(22px, 3vw, 36px); border-radius: 18px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; padding: 13px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--white); color: var(--ink);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--sign); box-shadow: 0 0 0 4px rgba(14, 65, 150, .14); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { font-size: 0.86rem; color: var(--ink-soft); margin: 0; }
.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; padding: 12px 14px; border-radius: 10px; font-weight: 600; }
.form-status.is-ok { background: #e3f4ea; color: #1f6f42; }
.form-status.is-error { background: #fdecea; color: #a1261c; }
.form button[disabled] { opacity: .7; cursor: progress; }
@media (max-width: 860px) { .form-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--night); color: #c6d0e4; padding: 0 0 28px; position: relative; }
.footer-road { height: 14px; background: var(--asphalt); border-bottom: 3px solid #e9edf5; position: relative; overflow: hidden; }
.footer-road::after { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 4px; background: repeating-linear-gradient(90deg, var(--lane) 0 40px, transparent 40px 76px); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 0.9fr; gap: 36px; padding-top: 64px; padding-bottom: 48px; }
.footer-brand img { width: 64px; height: 64px; margin-bottom: 16px; }
.footer-brand p { max-width: 34ch; }
.footer-title { color: var(--white); font-weight: 600; margin-bottom: 12px; }
.footer-centre { display: flex; flex-direction: column; gap: 6px; }
.footer-centre a, .footer-links a, .footer-bottom a { text-decoration: none; transition: color 160ms ease; }
.footer-centre a:hover, .footer-links a:hover, .footer-bottom a:hover { color: var(--lane); }
.footer-links ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; font-size: 0.88rem; }
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 16px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- États d'animation ---------- */
/* Masqué uniquement pendant le chargement de GSAP (2,5 s max) : sans JavaScript, tout reste visible. */
.anim-pending [data-reveal],
.anim-pending [data-hero-item],
.anim-pending [data-hero-sign],
.anim-pending [data-split] .w > span { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .quote-text .qw { opacity: 1 !important; }
}

/* ==========================================================================
   Typographie (v2) : Fraunces pour les titres (serif douce, élégante, poids moyen)
   + Figtree pour le texte (sans-serif claire et lisible). Titres plus petits, moins de gras.
   ========================================================================== */
:root {
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-h1: clamp(1.9rem, 3.4vw, 2.7rem);
  --fs-h2: clamp(1.55rem, 2.5vw, 2.1rem);
  --fs-h3: clamp(1.1rem, 1.5vw, 1.28rem);
}
body { font-family: var(--font-body); font-size: 1.04rem; line-height: 1.7; }

h1, h2, .h2, .hero-title, .p-title, .room-h1, .room-title, .door-title,
.exit-name, .stat figcaption > b, .stat-band b, .quote-text, .sign-city,
.about-badge b, .more-card b, .stage-tag, .team-title, .legal h2 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.012em;
  font-variation-settings: "opsz" 72;
}
h3, .h3, .service-body b, .club-body .h3, .info-card .h3, .faq-item summary, .person b, .footer-title, .brand-text b {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: -0.005em;
}

/* Tailles des titres, plus mesurées */
.h2 { font-size: var(--fs-h2); line-height: 1.15; }
.h3 { font-size: var(--fs-h3); }
.room-h1 { font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.12; }
.room-title { font-size: clamp(1.5rem, 2.3vw, 2.05rem); line-height: 1.15; }
.p-title { font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.12; }
.p-hero-plain .p-title { max-width: 24ch; }
.quote-text, .quote-big .quote-text { font-size: clamp(1.3rem, 2vw, 1.75rem); line-height: 1.35; font-weight: 400; }
.exit-name { font-size: clamp(1.35rem, 1.8vw, 1.6rem); }
.stat figcaption > b { font-size: clamp(1.7rem, 2.6vw, 2.2rem); }
.stat-band b { font-size: clamp(3.2rem, 7vw, 5.5rem); }
.sign-city { font-size: clamp(1.9rem, 3vw, 2.4rem); }
.about-badge b { font-size: 2.1rem; }
.more-card b { font-size: 1.2rem; }
.stage-tag { font-size: 1.2rem; }
.faq-item summary { font-size: 1.05rem; }
.marquee-track { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem, 3.2vw, 2.4rem); }
.legal h2 { font-size: 1.25rem; }

/* Interface : demi-gras plutôt que gras */
.btn { font-weight: 600; letter-spacing: 0.005em; }
.nav-trigger, .nav-link { font-weight: 500; }
.kicker { font-weight: 600; letter-spacing: 0.01em; }

/* Plan de la visite : un point par étape (sans numéro de salle) */
.tour-map a b { width: 10px; height: 10px; }
.tour-map a.is-active b { background: var(--lane); box-shadow: 0 0 0 4px rgba(242, 179, 61, .25); }

/* Section « Un parcours pour chaque ambition » : photo de fond atténuée */
.road-static { position: relative; isolation: isolate; }
.road-static::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: url("/images/english-highway-classroom.jpg") center 35% / cover no-repeat;
  opacity: .22;
}
.road-static::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10, 22, 48, .55) 0%, rgba(10, 22, 48, .78) 55%, var(--night) 100%);
}
/* ---------- Icônes des cartes de contenu ---------- */
.card-icon {
  display: inline-grid; place-items: center; flex: none;
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 16px;
  background: linear-gradient(145deg, rgba(14, 65, 150, .1), rgba(14, 65, 150, .04));
  color: var(--sign); box-shadow: inset 0 0 0 1px rgba(14, 65, 150, .12);
  transition: background-color 250ms ease, color 250ms ease, transform 300ms var(--ease-out);
}
.card-icon svg { width: 26px; height: 26px; }
.info-card:hover .card-icon, .stage:hover .card-icon, .feature:hover .card-icon {
  background: var(--sign); color: var(--white); transform: rotate(-6deg) scale(1.06);
}
.info-card { display: flex; flex-direction: column; }
.stage .card-icon { margin-bottom: 12px; }
.feature { display: flex; gap: 18px; align-items: flex-start; border-left: 0; padding: 24px; background: var(--paper); border-radius: 16px; }
.feature .card-icon { margin-bottom: 0; background: var(--white); }
.feature .h3 { margin-bottom: 6px; }

/* Vignettes photo des cartes « autres programmes » et « à découvrir aussi » */
.more-card { overflow: hidden; padding-top: 0; }
.more-img { display: block; margin: 0 -22px 14px; aspect-ratio: 16 / 9; overflow: hidden; }
.more-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
.more-card:hover .more-img img { transform: scale(1.06); }
.more-card .exit-tag { border-radius: 6px; }.feature { background: var(--white); box-shadow: 0 16px 34px -28px rgba(10, 22, 48, .45); }
.feature .card-icon { background: linear-gradient(145deg, rgba(14, 65, 150, .1), rgba(14, 65, 150, .04)); }

/* ---------- Bouton « Revenir en haut » ---------- */
.to-top {
  position: fixed; right: clamp(14px, 2.5vw, 28px); bottom: clamp(14px, 2.5vw, 28px); z-index: 55;
  width: 52px; height: 52px; border: 0; border-radius: 50%; padding: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--sign-deep); color: var(--lane);
  box-shadow: 0 14px 30px -12px rgba(5, 15, 40, .55);
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(0.9);
  transition: opacity 250ms var(--ease-out), transform 250ms var(--ease-out), visibility 0s linear 250ms, background-color 200ms ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top:hover { background: var(--sign); }
.to-top:active { transform: scale(0.94); }
.to-top > svg:not(.to-top-ring) { width: 22px; height: 22px; position: relative; transition: transform 250ms var(--ease-out); }
.to-top:hover > svg:not(.to-top-ring) { transform: translateY(-3px); }
.to-top-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top-ring circle { fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: 3; }
.to-top-ring .to-top-progress { stroke: var(--lane); stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--scroll, 0) * 100); stroke-linecap: round; }
/* Logo de l'en-tête : version recadrée (sans marges) et plus grande */
.brand img { width: auto; height: 62px; object-fit: contain; border-radius: 6px; }
@media (max-width: 640px) { .brand img { height: 50px; } }
