/* ============================================================
   OLIVE BILINGUAL SCHOOL — Design system
   Palette : vert olive profond + doré chaud
   ============================================================ */

:root {
  /* Couleurs de marque */
  --olive-900: #12240f;
  --olive-800: #1c3a17;
  --olive-700: #27501f;
  --olive-600: #35682a;
  --olive-500: #4a8236;
  --olive-400: #6ba354;
  --olive-300: #9ac47f;
  --olive-100: #e4f0da;
  --olive-50:  #f3f8ee;

  --gold-700: #a9791d;
  --gold-600: #c9932c;
  --gold-500: #e0ac3f;
  --gold-400: #efc568;
  --gold-100: #fbf0d7;

  --ink-900: #10160f;
  --ink-700: #2c352a;
  --ink-500: #55604f;
  --ink-400: #7c8676;
  --ink-200: #d9ded5;
  --ink-100: #eef1ea;
  --white: #ffffff;
  --cream: #fbfaf6;

  --danger: #c0392b;
  --success: #2e7d4f;
  --info: #2c6fa8;

  /* Typographie */
  --font-title: 'Fraunces', 'Georgia', serif;
  --font-body: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;

  --fs-hero: clamp(2.6rem, 6vw, 4.6rem);
  --fs-h1: clamp(2.1rem, 4.4vw, 3.3rem);
  --fs-h2: clamp(1.7rem, 3.2vw, 2.5rem);
  --fs-h3: clamp(1.25rem, 2vw, 1.55rem);
  --fs-body: clamp(1rem, 1.1vw, 1.06rem);
  --fs-sm: 0.9rem;
  --fs-xs: 0.8rem;

  /* Espacements & formes */
  --sp-section: clamp(4rem, 9vw, 7.5rem);
  --container: 1240px;
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(18, 36, 15, .06);
  --shadow: 0 12px 34px rgba(18, 36, 15, .10);
  --shadow-lg: 0 28px 68px rgba(18, 36, 15, .18);
  --shadow-gold: 0 14px 34px rgba(201, 147, 44, .32);

  --ease: cubic-bezier(.22, .68, 0, 1);
  --t-fast: .2s var(--ease);
  --t: .38s var(--ease);
  --t-slow: .7s var(--ease);

  --header-h: 82px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.72;
  color: var(--ink-700);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }

img, video, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-title);
  color: var(--olive-900);
  line-height: 1.15;
  font-weight: 600;
  margin: 0 0 .6em;
  letter-spacing: -.015em;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 1.1em; }

::selection { background: var(--olive-300); color: var(--olive-900); }

/* Barre de défilement */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--ink-100); }
::-webkit-scrollbar-thumb { background: var(--olive-400); border-radius: 99px; border: 3px solid var(--ink-100); }
::-webkit-scrollbar-thumb:hover { background: var(--olive-600); }

/* ------------------------------------------------------------ Layout */
.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.section { padding-block: var(--sp-section); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--cream { background: var(--cream); }
.section--white { background: var(--white); }
.section--soft { background: linear-gradient(170deg, var(--olive-50), var(--white) 62%); }
.section--dark {
  background: radial-gradient(120% 100% at 12% 0%, var(--olive-700), var(--olive-900) 62%);
  color: var(--olive-100);
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }

.grid { display: grid; gap: clamp(1.4rem, 3vw, 2.4rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(288px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid--news { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .grid--news { grid-template-columns: 1fr; } }

.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mw-680 { max-width: 680px; }
.mw-760 { max-width: 760px; }

/* ------------------------------------------------------------ Titres de section */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-700);
  background: var(--gold-100);
  padding: .45rem 1rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold-600);
  box-shadow: 0 0 0 4px rgba(224, 172, 63, .25);
}
.section--dark .eyebrow { background: rgba(224, 172, 63, .16); color: var(--gold-400); }

.section-head { margin-bottom: clamp(2.2rem, 4vw, 3.4rem); }
.section-head p { color: var(--ink-500); font-size: 1.06rem; }
.section--dark .section-head p { color: rgba(228, 240, 218, .8); }

.title-underline { position: relative; display: inline-block; }
.title-underline::after {
  content: '';
  position: absolute;
  left: 0; bottom: -.18em;
  width: 100%; height: .18em;
  background: linear-gradient(90deg, var(--gold-500), transparent);
  border-radius: 99px;
}

/* ------------------------------------------------------------ Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .95rem 1.85rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: .96rem;
  letter-spacing: .01em;
  position: relative;
  overflow: hidden;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast), color var(--t-fast);
  white-space: nowrap;
  border: 2px solid transparent;
}
.btn i { font-size: 1.05em; }
.btn:active { transform: translateY(1px) scale(.985); }

.btn--primary {
  background: linear-gradient(120deg, var(--olive-600), var(--olive-500));
  color: var(--white);
  box-shadow: 0 12px 28px rgba(53, 104, 42, .32);
}
.btn--primary:hover {
  background: linear-gradient(120deg, var(--olive-700), var(--olive-600));
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(53, 104, 42, .42);
}

.btn--gold {
  background: linear-gradient(120deg, var(--gold-600), var(--gold-500));
  color: var(--olive-900);
  box-shadow: var(--shadow-gold);
}
.btn--gold:hover { transform: translateY(-3px); box-shadow: 0 20px 42px rgba(201, 147, 44, .45); }

.btn--outline {
  border-color: var(--olive-600);
  color: var(--olive-700);
  background: transparent;
}
.btn--outline:hover { background: var(--olive-600); color: var(--white); transform: translateY(-3px); }

.btn--ghost-light {
  border-color: rgba(255, 255, 255, .5);
  color: var(--white);
  backdrop-filter: blur(6px);
  background: rgba(255, 255, 255, .1);
}
.btn--ghost-light:hover { background: var(--white); color: var(--olive-800); transform: translateY(-3px); }

.btn--sm { padding: .62rem 1.25rem; font-size: .85rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }

/* Effet de brillance au survol */
.btn--primary::after, .btn--gold::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 -60%;
  width: 45%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-20deg);
  transition: left .6s var(--ease);
}
.btn--primary:hover::after, .btn--gold:hover::after { left: 115%; }

/* ------------------------------------------------------------ En-tête */
.topbar {
  background: var(--olive-900);
  color: var(--olive-100);
  font-size: var(--fs-xs);
  padding: .5rem 0;
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.topbar__contact { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.topbar a { display: inline-flex; align-items: center; gap: .45rem; transition: color var(--t-fast); }
.topbar a:hover { color: var(--gold-400); }
.topbar__social { display: flex; gap: .55rem; }
.topbar__social a {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  justify-content: center;
}
.topbar__social a:hover { background: var(--gold-500); color: var(--olive-900); }

.header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(18, 36, 15, .07);
  transition: box-shadow var(--t), padding var(--t);
}
.header.is-scrolled { box-shadow: 0 8px 30px rgba(18, 36, 15, .1); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: .8rem; }
.brand__logo {
  width: 54px; height: 54px;
  border-radius: 15px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  background: var(--olive-100);
  transition: transform var(--t-fast);
}
.brand:hover .brand__logo { transform: scale(1.05) rotate(-3deg); }
.footer .brand__logo, .mobile-menu .brand__logo { box-shadow: 0 6px 18px rgba(0, 0, 0, .28); }
.brand__text strong {
  display: block;
  font-family: var(--font-title);
  font-size: 1.08rem;
  color: var(--olive-900);
  line-height: 1.2;
}
.brand__text span {
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-400);
}

.nav__menu { display: flex; align-items: center; gap: .3rem; }
.nav__link {
  padding: .6rem .95rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: .93rem;
  color: var(--ink-700);
  position: relative;
  transition: color var(--t-fast), background var(--t-fast);
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 50%; bottom: .3rem;
  width: 0; height: 2px;
  background: var(--gold-500);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width var(--t);
}
.nav__link:hover { color: var(--olive-700); }
.nav__link:hover::after { width: 42%; }
.nav__link.is-active { color: var(--olive-700); background: var(--olive-50); }
.nav__link.is-active::after { width: 42%; }

.nav__actions { display: flex; align-items: center; gap: .7rem; }

/* ------------------------------------------------------------ Sélecteur de langues */
.lang-switch { position: relative; }

.lang-switch__current {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .8rem;
  border-radius: var(--radius-pill);
  background: var(--ink-100);
  font-size: .85rem;
  font-weight: 700;
  color: var(--ink-700);
  transition: background var(--t-fast), color var(--t-fast);
}
.lang-switch__current:hover { background: var(--olive-100); color: var(--olive-800); }
.lang-switch__current i {
  font-size: .62rem;
  opacity: .6;
  transition: transform var(--t-fast);
}
.lang-switch.is-open .lang-switch__current i { transform: rotate(180deg); }

.flag {
  width: 22px; height: 15px;
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
  display: block;
  box-shadow: 0 0 0 1px rgba(18, 36, 15, .14);
  line-height: 0;
}
.flag svg { width: 100%; height: 100%; display: block; }

.lang-switch__menu {
  position: absolute;
  top: calc(100% + .5rem);
  right: 0;
  min-width: 208px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(18, 36, 15, .08);
  padding: .4rem;
  display: grid;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--t-fast), transform var(--t-fast), visibility var(--t-fast);
  z-index: 60;
}
.lang-switch.is-open .lang-switch__menu { opacity: 1; visibility: visible; transform: none; }

.lang-switch__menu button {
  display: flex;
  align-items: center;
  gap: .65rem;
  width: 100%;
  padding: .55rem .7rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink-700);
  text-align: left;
  transition: background var(--t-fast), color var(--t-fast);
}
.lang-switch__menu button:hover { background: var(--olive-50); color: var(--olive-800); }
.lang-switch__menu button .lang-name { flex: 1; }
.lang-switch__menu button .lang-short {
  font-size: .7rem;
  letter-spacing: .08em;
  color: var(--ink-400);
  font-weight: 800;
}
.lang-switch__menu button i { font-size: .78rem; color: var(--olive-600); opacity: 0; }
.lang-switch__menu button.is-active { background: var(--olive-50); color: var(--olive-800); }
.lang-switch__menu button.is-active i { opacity: 1; }
.lang-switch__menu button.is-active .lang-short { display: none; }

/* Version pleine largeur dans le menu mobile */
.lang-switch--block .lang-switch__current { width: 100%; justify-content: center; padding: .8rem; }
.lang-switch--block .lang-switch__menu { right: auto; left: 0; width: 100%; bottom: calc(100% + .5rem); top: auto; }

.burger {
  display: none;
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--olive-50);
  place-items: center;
  color: var(--olive-800);
  font-size: 1.2rem;
  transition: background var(--t-fast);
}
.burger:hover { background: var(--olive-100); }

/* Menu mobile */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--white);
  transform: translateX(100%);
  transition: transform var(--t) ;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  overflow-y: auto;
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.mobile-menu__close {
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--olive-50);
  display: grid; place-items: center;
  font-size: 1.3rem;
  color: var(--olive-800);
}
.mobile-menu nav { display: flex; flex-direction: column; gap: .3rem; }
.mobile-menu nav a {
  padding: 1rem .9rem;
  border-radius: var(--radius);
  font-family: var(--font-title);
  font-size: 1.35rem;
  color: var(--olive-900);
  border-bottom: 1px solid var(--ink-100);
  transition: background var(--t-fast), padding-left var(--t-fast);
}
.mobile-menu nav a:hover { background: var(--olive-50); padding-left: 1.4rem; }
.mobile-menu__footer { margin-top: auto; padding-top: 2rem; display: grid; gap: .8rem; }

/* ------------------------------------------------------------ Hero */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  background: var(--olive-900);
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
}
.hero__bg img.is-active {
  opacity: 1;
  animation: heroZoom 9s ease-out forwards;
}
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.09); } }

.hero__dots {
  position: absolute;
  left: 50%; bottom: 4.6rem;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: .5rem;
}
.hero__dots button {
  width: 30px; height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .35);
  transition: background var(--t-fast), width var(--t-fast);
}
.hero__dots button.is-active { background: var(--gold-400); width: 46px; }
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(18, 36, 15, .93) 8%, rgba(28, 58, 23, .78) 45%, rgba(18, 36, 15, .5) 100%);
}
.hero__inner { position: relative; z-index: 2; padding-block: clamp(4rem, 10vw, 7rem); }
.hero__content { max-width: 720px; }
.hero h1 {
  font-size: var(--fs-hero);
  color: var(--white);
  margin-bottom: .5em;
}
.hero h1 .accent {
  background: linear-gradient(100deg, var(--gold-400), var(--gold-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: rgba(255, 255, 255, .87);
  max-width: 58ch;
  margin-bottom: 2.2rem;
}
.hero__cta { display: flex; gap: .9rem; flex-wrap: wrap; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(10px);
  padding: .55rem 1.1rem .55rem .6rem;
  border-radius: var(--radius-pill);
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 1.6rem;
}
.hero__badge .dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--gold-400);
  box-shadow: 0 0 0 0 rgba(239, 197, 104, .7);
  animation: pulse 2s infinite;
  margin-left: .5rem;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 197, 104, .7); }
  70% { box-shadow: 0 0 0 12px rgba(239, 197, 104, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 197, 104, 0); }
}

.hero__scroll {
  position: absolute;
  left: 50%; bottom: 1.8rem;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255, 255, 255, .7);
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 9px); } }

/* Vague décorative */
.wave { display: block; width: 100%; height: auto; margin-bottom: -6px; }

/* ------------------------------------------------------------ Compte à rebours */
.countdown-band {
  background: linear-gradient(125deg, var(--olive-800), var(--olive-600) 55%, var(--olive-700));
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.countdown-band::before {
  content: '';
  position: absolute;
  inset: -40% -10% auto auto;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(224, 172, 63, .3), transparent 68%);
  filter: blur(10px);
}

.countdown-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(1.6rem, 4vw, 3.2rem);
  align-items: center;
  position: relative;
  z-index: 2;
}

/* Image du compte à rebours : format fixe 16:9 imposé */
.countdown-card__media {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.countdown-card__media img { width: 100%; height: 100%; object-fit: cover; }
.countdown-card__media .placeholder {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  color: rgba(255, 255, 255, .35);
  font-size: 3rem;
}

.countdown-card h2 { color: var(--white); margin-bottom: .35em; }
.countdown-card p { color: rgba(255, 255, 255, .82); }

.countdown-timer {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .7rem;
  margin: 1.6rem 0;
  max-width: 480px;
}
.cd-unit {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  padding: 1rem .4rem .8rem;
  text-align: center;
  transition: transform var(--t-fast), background var(--t-fast);
}
.cd-unit:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .16); }
.cd-unit__value {
  display: block;
  font-family: var(--font-title);
  font-size: clamp(1.9rem, 4.6vw, 2.9rem);
  font-weight: 700;
  line-height: 1;
  color: var(--gold-400);
  font-variant-numeric: tabular-nums;
}
.cd-unit__value.is-tick { animation: tick .45s var(--ease); }
@keyframes tick {
  0% { transform: translateY(-40%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cd-unit__label {
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .68);
  margin-top: .45rem;
  display: block;
}

.countdown-dots { display: flex; gap: .5rem; margin-top: 1.4rem; }
.countdown-dots button {
  width: 34px; height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .28);
  transition: background var(--t-fast), width var(--t-fast);
}
.countdown-dots button.is-active { background: var(--gold-400); width: 52px; }

.countdown-expired {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: rgba(224, 172, 63, .18);
  border: 1px solid rgba(239, 197, 104, .4);
  color: var(--gold-400);
  padding: .8rem 1.4rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  margin: 1.4rem 0;
}

/* ------------------------------------------------------------ Cartes */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(18, 36, 15, .06);
  transition: transform var(--t), box-shadow var(--t);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--olive-100); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.card:hover .card__media img { transform: scale(1.09); }
.card__media .ph { width: 100%; height: 100%; }

.card__tag {
  position: absolute;
  top: .9rem; left: .9rem;
  background: rgba(255, 255, 255, .93);
  color: var(--olive-800);
  padding: .35rem .85rem;
  border-radius: var(--radius-pill);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.card__body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.card__body h3 { margin-bottom: .5rem; }
.card__body p { color: var(--ink-500); font-size: .96rem; margin-bottom: 1rem; }
.card__footer { margin-top: auto; }

.card__link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--olive-600);
  font-weight: 700;
  font-size: .9rem;
  transition: gap var(--t-fast), color var(--t-fast);
}
.card__link:hover { gap: .85rem; color: var(--gold-600); }

/* Article (détail dans la modale) */
.actu-detail__media { border-radius: 14px; overflow: hidden; margin-bottom: 1rem; }
.actu-detail__media img { width: 100%; display: block; }
.actu-detail__meta { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: .6rem; }
.actu-detail__content { margin-top: 1rem; color: var(--ink-500); line-height: 1.75; }
.actu-detail__content p { margin-bottom: 1rem; }

/* Carte icône */
.icard {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.7rem;
  border: 1px solid rgba(18, 36, 15, .06);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  position: relative;
  overflow: hidden;
  height: 100%;
}
.icard::before {
  content: '';
  position: absolute;
  inset: auto auto -40% -25%;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: var(--olive-50);
  transition: transform var(--t-slow);
  z-index: 0;
}
.icard:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--olive-300); }
.icard:hover::before { transform: scale(3.4); }
.icard > * { position: relative; z-index: 1; }
.icard__icon {
  width: 58px; height: 58px;
  border-radius: 17px;
  display: grid; place-items: center;
  font-size: 1.5rem;
  color: var(--white);
  background: linear-gradient(140deg, var(--olive-500), var(--olive-700));
  box-shadow: 0 10px 24px rgba(53, 104, 42, .3);
  margin-bottom: 1.15rem;
  transition: transform var(--t);
}
.icard:hover .icard__icon { transform: rotate(-8deg) scale(1.08); }
.icard--gold .icard__icon { background: linear-gradient(140deg, var(--gold-500), var(--gold-700)); box-shadow: var(--shadow-gold); }
.icard h3 { font-size: 1.2rem; margin-bottom: .45rem; }
.icard p { color: var(--ink-500); font-size: .94rem; margin: 0; }

/* ------------------------------------------------------------ Statistiques */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}
.stat { text-align: center; padding: 1.6rem 1rem; position: relative; }
.stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 22%;
  height: 56%;
  width: 1px;
  background: rgba(255, 255, 255, .18);
}
.stat__value {
  font-family: var(--font-title);
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--gold-400);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(228, 240, 218, .78);
  margin-top: .7rem;
}
.stats--light .stat__value { color: var(--olive-600); }
.stats--light .stat__label { color: var(--ink-400); }
.stats--light .stat:not(:last-child)::after { background: var(--ink-200); }

/* ------------------------------------------------------------ Section image + texte */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split__media { position: relative; }
.split__media img, .split__media .ph {
  width: 100%;
  aspect-ratio: 4 / 3.2;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.split__media::before {
  content: '';
  position: absolute;
  inset: -18px -18px auto auto;
  width: 130px; height: 130px;
  border-radius: var(--radius);
  border: 3px solid var(--gold-500);
  z-index: -1;
}
.split__badge {
  position: absolute;
  right: -14px; bottom: -22px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.1rem 1.5rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
  min-width: 150px;
}
.split__badge strong {
  display: block;
  font-family: var(--font-title);
  font-size: 2rem;
  color: var(--olive-700);
  line-height: 1;
}
.split__badge span { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-400); }

.checklist { display: grid; gap: .85rem; margin: 1.6rem 0; }
.checklist li { display: flex; align-items: flex-start; gap: .8rem; font-weight: 500; }
.checklist i {
  color: var(--olive-600);
  background: var(--olive-100);
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: .75rem;
  flex-shrink: 0;
  margin-top: .28rem;
}
.section--dark .checklist i { background: rgba(224, 172, 63, .2); color: var(--gold-400); }

/* ------------------------------------------------------------ Citation */
.quote {
  background: var(--white);
  border-left: 5px solid var(--gold-500);
  border-radius: var(--radius);
  padding: 1.8rem 2rem;
  box-shadow: var(--shadow-sm);
  font-family: var(--font-title);
  font-size: 1.12rem;
  font-style: italic;
  color: var(--olive-800);
  position: relative;
}
.quote::before {
  content: '\201C';
  position: absolute;
  top: -.1em; right: .4em;
  font-size: 5rem;
  color: var(--olive-100);
  font-family: var(--font-title);
  line-height: 1;
}
.quote cite {
  display: block;
  margin-top: 1rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-400);
}

/* ------------------------------------------------------------ Épreuves */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  align-items: center;
  background: var(--white);
  padding: 1.1rem 1.3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(18, 36, 15, .06);
  margin-bottom: 2rem;
}
.filters__search {
  flex: 1 1 250px;
  position: relative;
}
.filters__search i {
  position: absolute;
  left: 1rem; top: 50%;
  transform: translateY(-50%);
  color: var(--ink-400);
  font-size: .9rem;
}
.filters__search input { padding-left: 2.6rem !important; }

.field, .filters select, .filters input {
  width: 100%;
  padding: .82rem 1.05rem;
  border: 1.5px solid var(--ink-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  font-size: .94rem;
}
.filters select { width: auto; min-width: 150px; cursor: pointer; }
.field:focus, .filters select:focus, .filters input:focus {
  outline: none;
  border-color: var(--olive-500);
  box-shadow: 0 0 0 4px rgba(74, 130, 54, .14);
}

.epreuve-card {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid rgba(18, 36, 15, .07);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.epreuve-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--olive-300); }
.epreuve-card__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  background: var(--olive-100);
  color: var(--olive-700);
}
.epreuve-card__icon.pdf { background: #fdeaea; color: #c0392b; }
.epreuve-card__icon.doc { background: #e8f0fb; color: #2c6fa8; }
.epreuve-card__icon.img { background: var(--gold-100); color: var(--gold-700); }
.epreuve-card__body { flex: 1; min-width: 0; }
.epreuve-card h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.epreuve-card p { font-size: .88rem; color: var(--ink-500); margin-bottom: .7rem; }

.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .9rem; }
.chip {
  font-size: .72rem;
  font-weight: 700;
  padding: .25rem .7rem;
  border-radius: var(--radius-pill);
  background: var(--olive-50);
  color: var(--olive-700);
  letter-spacing: .03em;
}
.chip--gold { background: var(--gold-100); color: var(--gold-700); }
.chip--grey { background: var(--ink-100); color: var(--ink-500); }

.epreuve-card__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: .78rem;
  color: var(--ink-400);
  flex-wrap: wrap;
}

.empty-state {
  text-align: center;
  padding: 4rem 1.5rem;
  color: var(--ink-400);
}
.empty-state i { font-size: 3rem; color: var(--ink-200); margin-bottom: 1rem; display: block; }

/* ------------------------------------------------------------ Galerie */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 1rem;
}
.gallery__item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--olive-100);
}
.gallery__item:nth-child(6n + 1) { grid-column: span 2; aspect-ratio: 2 / 1; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.gallery__item:hover img { transform: scale(1.12); }
.gallery__item::after {
  content: '\f00e';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 1.6rem;
  background: linear-gradient(0deg, rgba(18, 36, 15, .7), rgba(18, 36, 15, .15));
  opacity: 0;
  transition: opacity var(--t);
}
.gallery__item:hover::after { opacity: 1; }

/* ------------------------------------------------------------ Modales */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t), visibility var(--t);
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 24, 10, .72);
  backdrop-filter: blur(5px);
}
.modal__dialog {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  width: min(100%, 640px);
  max-height: min(92vh, 900px);
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(28px) scale(.97);
  transition: transform var(--t);
}
.modal.is-open .modal__dialog { transform: translateY(0) scale(1); }
.modal__dialog--lg { width: min(100%, 880px); }

.modal__head {
  padding: 1.6rem 1.8rem 1.2rem;
  background: linear-gradient(130deg, var(--olive-700), var(--olive-500));
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 3;
}
.modal__head h3 { color: var(--white); margin-bottom: .2rem; }
.modal__head p { color: rgba(255, 255, 255, .82); font-size: .9rem; margin: 0; }
.modal__close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  color: var(--white);
  display: grid; place-items: center;
  transition: background var(--t-fast), transform var(--t-fast);
}
.modal__close:hover { background: rgba(255, 255, 255, .32); transform: rotate(90deg); }
.modal__body { padding: 1.7rem 1.8rem 2rem; }

.form-grid { display: grid; gap: 1.05rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.form-group { display: flex; flex-direction: column; gap: .38rem; }
.form-group--full { grid-column: 1 / -1; }
.form-group label { font-size: .85rem; font-weight: 700; color: var(--olive-800); }
.form-group label .req { color: var(--danger); }
.form-group small { font-size: .76rem; color: var(--ink-400); }
textarea.field { resize: vertical; min-height: 110px; }
.hp { position: absolute; left: -9999px; opacity: 0; }

/* Étapes du formulaire */
.steps { display: flex; gap: .5rem; margin-bottom: 1.5rem; }
.step-dot {
  flex: 1;
  height: 5px;
  border-radius: 99px;
  background: var(--ink-200);
  transition: background var(--t);
}
.step-dot.is-done { background: var(--olive-500); }
.step-pane { display: none; }
.step-pane.is-active { display: block; animation: fadeUp .4s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.form-actions { display: flex; gap: .7rem; justify-content: flex-end; margin-top: 1.6rem; flex-wrap: wrap; }

.form-success { text-align: center; padding: 2rem 1rem; }
.form-success i {
  font-size: 3.4rem;
  color: var(--success);
  background: #e7f5ec;
  width: 92px; height: 92px;
  border-radius: 50%;
  display: grid; place-items: center;
  margin: 0 auto 1.2rem;
  animation: pop .5s var(--ease);
}
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ------------------------------------------------------------ Modale des résultats */
.modal--results { overflow: hidden; padding: 0; }
.modal__close--float {
  position: absolute;
  top: .9rem; right: .9rem;
  z-index: 5;
  background: rgba(18, 36, 15, .55);
  backdrop-filter: blur(6px);
}

.results-modal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 0;
}
.results-modal__poster {
  position: relative;
  background: var(--olive-900);
  max-height: 88vh;
  overflow: hidden;
}
.results-modal__poster img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  cursor: zoom-in;
  transition: transform var(--t-slow);
}
.results-modal__poster:hover img { transform: scale(1.03); }
.results-modal__zoom {
  position: absolute;
  left: 50%; bottom: 1rem;
  transform: translateX(-50%);
  background: rgba(18, 36, 15, .75);
  backdrop-filter: blur(6px);
  color: var(--white);
  font-size: .76rem;
  font-weight: 600;
  padding: .45rem 1rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  pointer-events: none;
}

.results-modal__body {
  padding: clamp(1.6rem, 4vw, 2.6rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(160deg, var(--white), var(--olive-50));
}
.results-modal__body h3 { font-size: clamp(1.3rem, 2.4vw, 1.85rem); margin-bottom: .5rem; }
.results-modal__body p { color: var(--ink-500); }
.results-modal__mentions {
  background: var(--gold-100);
  color: var(--gold-700);
  font-weight: 700;
  font-size: .88rem;
  padding: .7rem 1rem;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--gold-500);
}
.results-modal__actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.2rem; }

.btn--wa {
  background: #25d366;
  color: #06331a;
  box-shadow: 0 12px 28px rgba(37, 211, 102, .35);
}
.btn--wa:hover { background: #1fbb5a; transform: translateY(-3px); }

.btn--ghost-dark {
  border-color: var(--ink-200);
  color: var(--olive-800);
  background: var(--white);
}
.btn--ghost-dark:hover { background: var(--olive-50); border-color: var(--olive-400); }

.fab--results { background: linear-gradient(135deg, var(--gold-600), var(--gold-500)); color: var(--olive-900); }

/* Encart des résultats dans la page */
.results-figure { position: relative; }
.results-figure img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  cursor: zoom-in;
  transition: transform var(--t);
}
.results-figure:hover img { transform: translateY(-6px); }
.results-figure__badge {
  position: absolute;
  top: 1rem; left: 1rem;
  background: linear-gradient(135deg, var(--gold-600), var(--gold-400));
  color: var(--olive-900);
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .04em;
  padding: .45rem 1rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-gold);
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}
.results-figure figcaption {
  margin-top: .9rem;
  font-size: .82rem;
  color: var(--ink-400);
  text-align: center;
}

/* Visionneuse d'image */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(10, 18, 8, .93);
  display: grid;
  place-items: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t), visibility var(--t);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: 86vh; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox__close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  color: var(--white);
  font-size: 1.6rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  display: grid; place-items: center;
}

/* ------------------------------------------------------------ Notifications */
.toasts {
  position: fixed;
  bottom: 1.4rem; right: 1.4rem;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  max-width: min(92vw, 380px);
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  background: var(--white);
  border-left: 4px solid var(--olive-500);
  border-radius: var(--radius-sm);
  padding: .95rem 1.15rem;
  box-shadow: var(--shadow-lg);
  animation: slideIn .35s var(--ease);
  font-size: .9rem;
}
.toast.is-out { animation: slideOut .3s var(--ease) forwards; }
.toast--error { border-left-color: var(--danger); }
.toast--error i { color: var(--danger); }
.toast--success i { color: var(--success); }
.toast i { font-size: 1.1rem; margin-top: .12rem; }
@keyframes slideIn { from { opacity: 0; transform: translateX(120%); } to { opacity: 1; transform: none; } }
@keyframes slideOut { to { opacity: 0; transform: translateX(120%); } }

/* ------------------------------------------------------------ Boutons flottants */
.fab-stack {
  position: fixed;
  right: 1.3rem; bottom: 1.3rem;
  z-index: 880;
  display: flex;
  flex-direction: column;
  gap: .7rem;
}
.fab {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  color: var(--white);
  box-shadow: var(--shadow);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
  position: relative;
}
.fab:hover { transform: translateY(-4px) scale(1.06); box-shadow: var(--shadow-lg); }
.fab--wa { background: #25d366; }
.fab--wa::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: ring 2.2s infinite;
}
@keyframes ring {
  0% { transform: scale(1); opacity: .8; }
  100% { transform: scale(1.65); opacity: 0; }
}
.fab--top { background: var(--olive-700); opacity: 0; pointer-events: none; }
.fab--top.is-visible { opacity: 1; pointer-events: auto; }

.fab__tip {
  position: absolute;
  right: calc(100% + .7rem);
  top: 50%;
  transform: translateY(-50%);
  background: var(--olive-900);
  color: var(--white);
  padding: .4rem .8rem;
  border-radius: var(--radius-sm);
  font-size: .78rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-fast);
}
.fab:hover .fab__tip { opacity: 1; }
.fab-stack--left { right: auto; left: 1.3rem; align-items: flex-start; }
.fab-stack--left .fab__tip { right: auto; left: calc(100% + .7rem); }
.fab--exams { background: linear-gradient(135deg, var(--olive-600), var(--olive-800)); }

/* Barre de progression du défilement */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--olive-500), var(--gold-500));
  z-index: 950;
  transition: width .1s linear;
}

/* ------------------------------------------------------------ Bandeau CTA */
.cta-band {
  background: linear-gradient(120deg, var(--gold-600), var(--gold-500));
  color: var(--olive-900);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-gold);
}
.cta-band::after {
  content: '';
  position: absolute;
  inset: auto -60px -90px auto;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
}
.cta-band h2 { color: var(--olive-900); margin-bottom: .3em; position: relative; }
.cta-band p { margin: 0; color: rgba(18, 36, 15, .78); position: relative; }
.cta-band__actions { display: flex; gap: .8rem; flex-wrap: wrap; position: relative; }
.cta-band .btn--dark {
  background: var(--olive-900);
  color: var(--white);
}
.cta-band .btn--dark:hover { background: var(--olive-800); transform: translateY(-3px); }

/* ------------------------------------------------------------ Pied de page */
.footer {
  background: radial-gradient(110% 90% at 10% 0%, var(--olive-800), var(--olive-900) 60%);
  color: rgba(228, 240, 218, .78);
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
  font-size: .94rem;
}
.footer h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: .85rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 1.3rem;
  position: relative;
  padding-bottom: .7rem;
}
.footer h4::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 34px; height: 2px;
  background: var(--gold-500);
  border-radius: 2px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: clamp(1.8rem, 4vw, 3rem);
  padding-bottom: 3rem;
}
.footer a { transition: color var(--t-fast), padding-left var(--t-fast); }
.footer a:hover { color: var(--gold-400); }
.footer__links li { margin-bottom: .7rem; }
.footer__links a { display: inline-flex; align-items: center; gap: .5rem; }
.footer__links a::before { content: '\203A'; color: var(--gold-500); font-size: 1.1rem; }
.footer__links a:hover { padding-left: .4rem; }

.footer__contact li { display: flex; gap: .8rem; margin-bottom: 1rem; align-items: flex-start; }
.footer__contact i { color: var(--gold-500); margin-top: .32rem; width: 16px; flex-shrink: 0; }

.footer__social { display: flex; gap: .6rem; margin-top: 1.3rem; }
.footer__social a {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  display: grid; place-items: center;
  font-size: 1.05rem;
  transition: all var(--t-fast);
}
.footer__social a:hover { background: var(--gold-500); color: var(--olive-900); transform: translateY(-4px); }

.footer__newsletter { display: flex; gap: .5rem; margin-top: 1rem; }
.footer__newsletter input {
  flex: 1;
  min-width: 0;
  padding: .8rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .07);
  color: var(--white);
}
.footer__newsletter input::placeholder { color: rgba(255, 255, 255, .45); }
.footer__newsletter button {
  padding: 0 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--gold-500);
  color: var(--olive-900);
  font-weight: 700;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .84rem;
  color: rgba(228, 240, 218, .55);
}

/* ------------------------------------------------------------ Bannière de page */
.page-hero {
  background-color: var(--olive-800);
  background-image: var(--hero-img, linear-gradient(120deg, var(--olive-800), var(--olive-600)));
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding-block: clamp(3.5rem, 8vw, 6rem);
  position: relative;
  overflow: hidden;
  text-align: center;
  isolation: isolate;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: -50% auto auto 60%;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 172, 63, .28), transparent 70%);
  z-index: 1;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(18, 36, 15, .93) 20%, rgba(28, 58, 23, .72) 60%, rgba(18, 36, 15, .55));
  z-index: 1;
}
.page-hero > .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); position: relative; }
.page-hero p { color: rgba(255, 255, 255, .82); max-width: 620px; margin-inline: auto; position: relative; }
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: .6rem;
  font-size: .85rem;
  color: rgba(255, 255, 255, .68);
  position: relative;
  margin-top: 1rem;
}
.breadcrumb a:hover { color: var(--gold-400); }
.breadcrumb span::before { content: '/'; margin-right: .6rem; opacity: .5; }

/* ------------------------------------------------------------ Accordéon */
.accordion { display: grid; gap: .8rem; }
.acc-item {
  background: var(--white);
  border: 1px solid rgba(18, 36, 15, .08);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--t), border-color var(--t);
}
.acc-item.is-open { box-shadow: var(--shadow); border-color: var(--olive-300); }
.acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  font-weight: 700;
  color: var(--olive-800);
  text-align: left;
}
.acc-head i { color: var(--olive-500); transition: transform var(--t); flex-shrink: 0; }
.acc-item.is-open .acc-head i { transform: rotate(180deg); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height var(--t); }
.acc-body > div { padding: 0 1.4rem 1.3rem; color: var(--ink-500); font-size: .95rem; }

/* ------------------------------------------------------------ Onglets */
.tabs { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; margin-bottom: 2.2rem; }
.tab {
  padding: .65rem 1.4rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: .9rem;
  color: var(--ink-500);
  background: var(--white);
  border: 1.5px solid var(--ink-200);
  transition: all var(--t-fast);
}
.tab:hover { border-color: var(--olive-400); color: var(--olive-700); }
.tab.is-active {
  background: var(--olive-600);
  border-color: var(--olive-600);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(53, 104, 42, .28);
}

/* ------------------------------------------------------------ Images de remplacement */
.ph {
  background:
    linear-gradient(135deg, var(--olive-100), var(--olive-50)),
    var(--olive-100);
  display: grid;
  place-items: center;
  color: var(--olive-300);
  font-size: 2.4rem;
}

/* ------------------------------------------------------------ Animations d'apparition */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal='left'] { transform: translateX(-38px); }
[data-reveal='right'] { transform: translateX(38px); }
[data-reveal='zoom'] { transform: scale(.93); }

/* ------------------------------------------------------------ Arabe : droite à gauche */
html.is-rtl body { direction: rtl; }
html.is-rtl .quote { border-left: 0; border-right: 5px solid var(--gold-500); }
html.is-rtl .quote::before { right: auto; left: .4em; }
html.is-rtl .title-underline::after { background: linear-gradient(270deg, var(--gold-500), transparent); }
html.is-rtl .footer h4::after { left: auto; right: 0; }
html.is-rtl .footer__links a::before { content: '\2039'; }
html.is-rtl .footer__links a:hover { padding-left: 0; padding-right: .4rem; }
html.is-rtl .lang-switch__menu { right: auto; left: 0; }
html.is-rtl .fab-stack { right: auto; left: 1.3rem; }
html.is-rtl .fab__tip { right: auto; left: calc(100% + .7rem); }
html.is-rtl .toasts { right: auto; left: 1.4rem; }
html.is-rtl .toast { border-left: 0; border-right: 4px solid var(--olive-500); }
html.is-rtl .toast--error { border-right-color: var(--danger); }
html.is-rtl .modal__close { right: auto; left: 1rem; }
html.is-rtl .modal__close--float { right: auto; left: .9rem; }
html.is-rtl .results-modal__mentions { border-left: 0; border-right: 4px solid var(--gold-500); }
html.is-rtl .results-figure__badge { left: auto; right: 1rem; }
html.is-rtl .card__tag { left: auto; right: .9rem; }
html.is-rtl .split__media::before { right: auto; left: -18px; }
html.is-rtl .filters__search i { left: auto; right: 1rem; }
html.is-rtl .filters__search input { padding-left: 1.05rem !important; padding-right: 2.6rem !important; }
html.is-rtl .form-actions { justify-content: flex-start; }
html.is-rtl .mobile-menu { transform: translateX(-100%); }
html.is-rtl .mobile-menu.is-open { transform: translateX(0); }
html.is-rtl .mobile-menu nav a:hover { padding-left: .9rem; padding-right: 1.4rem; }
html.is-rtl .stat:not(:last-child)::after { right: auto; left: 0; }
html.is-rtl .fa-arrow-right::before { content: '\f060'; }
html.is-rtl .fa-arrow-left::before { content: '\f061'; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------ Responsive */
@media (max-width: 1080px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .nav__menu { display: none; }
  .burger { display: grid; }
  .countdown-card { grid-template-columns: 1fr; }
  .countdown-card__media { order: -1; }
  .topbar__contact { gap: 1rem; }
}

@media (max-width: 860px) {
  .results-modal { grid-template-columns: 1fr; }
  .results-modal__poster { max-height: 44vh; }
  .results-modal__poster img { object-position: top center; }
}

@media (max-width: 640px) {
  :root { --header-h: 70px; }
  .container { width: min(100% - 2rem, var(--container)); }
  .topbar { display: none; }
  .brand__logo { width: 44px; height: 44px; border-radius: 12px; }
  .brand__text span { display: none; }
  .nav__actions .lang-switch__current .lang-name { display: none; }
  .hero__dots { bottom: 4rem; }
  .results-modal__actions .btn { flex: 1; }
  .countdown-timer { grid-template-columns: repeat(2, 1fr); }
  .gallery__item:nth-child(6n + 1) { grid-column: span 1; aspect-ratio: 1; }
  .footer__grid { grid-template-columns: 1fr; }
  .stat:not(:last-child)::after { display: none; }
  .cta-band { flex-direction: column; align-items: flex-start; text-align: left; }
  .modal__body { padding: 1.4rem 1.2rem 1.6rem; }
  .modal__head { padding: 1.3rem 1.3rem 1rem; }
  .form-actions .btn { flex: 1; }
  .split__badge { position: static; margin-top: 1rem; }
  .filters { flex-direction: column; align-items: stretch; }
  .filters select { width: 100%; }
  .fab { width: 50px; height: 50px; font-size: 1.2rem; }
}

@media print {
  .header, .topbar, .fab-stack, .footer, .modal, .scroll-progress { display: none !important; }
}
