/* =========================================================
   GEW 2026 — UNIVERSITÉ DE CHLEF
   Refonte · palette tricolore vert émeraude / rouge / blanc
   ========================================================= */

:root {
  --g-950: #032a19;
  --g-900: #04361f;
  --g-800: #064b2b;
  --g-700: #0a6038;
  --g-600: #0e7a47;
  --g-100: #dcefe3;
  --g-50: #f0f7f2;
  --r-700: #a30d26;
  --r-600: #c8102e;
  --r-500: #e0213f;
  --r-50: #fdeef0;
  --white: #ffffff;
  --paper: #f6f9f7;

  --ink: #0e2218;
  --ink-soft: #33463b;
  --muted: #5f7066;

  --bg: var(--white);
  --bg-alt: var(--paper);
  --surface: #ffffff;
  --line: rgba(6, 75, 43, .12);
  --line-strong: rgba(6, 75, 43, .26);
  --text: var(--ink);
  --accent: var(--g-700);
  --accent-2: var(--r-600);
  --on-dark: #f3f9f5;

  --display: "Readex Pro", "IBM Plex Sans Arabic", "Inter", sans-serif;
  --sans: "IBM Plex Sans Arabic", "Inter", -apple-system, "Segoe UI", sans-serif;
  --sans-lat: "Inter", -apple-system, "Segoe UI", sans-serif;

  --shadow: 0 24px 56px rgba(4, 54, 31, .12);
  --shadow-sm: 0 10px 28px rgba(4, 54, 31, .09);
  --r: 20px;
  --r-md: 16px;
  --r-sm: 10px;
  --header-h: 76px;
  --wrap: 1200px;
}

html[data-theme="dark"] {
  --bg: #06150d;
  --bg-alt: #09201a;
  --surface: #0d2a1d;
  --line: rgba(243, 249, 245, .12);
  --line-strong: rgba(243, 249, 245, .28);
  --text: #eef6f1;
  --ink-soft: #cddad2;
  --muted: #9db3a5;
  --accent: #3ecf8e;
  --accent-2: #ff5671;
  --shadow: 0 24px 56px rgba(0, 0, 0, .45);
  --shadow-sm: 0 10px 26px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .4s, color .4s;
}
html[lang="en"] body { font-family: var(--sans-lat); line-height: 1.7; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
:focus-visible { outline: 2px solid var(--r-500); outline-offset: 3px; }
::selection { background: var(--r-600); color: #fff; }

.wrap { width: min(var(--wrap), calc(100% - 52px)); margin-inline: auto; }
.skip-link { position: fixed; inset-block-start: -70px; inset-inline-start: 16px; z-index: 300; background: var(--g-800); color: #fff; padding: 10px 18px; font-weight: 600; border-radius: 8px; }
.skip-link:focus { inset-block-start: 10px; }

/* tricolor rule */
.tricolor { display: flex; height: 5px; width: 100%; }
.tricolor span { flex: 1; }
.tricolor span:nth-child(1) { background: var(--g-700); }
.tricolor span:nth-child(2) { background: #fff; }
.tricolor span:nth-child(3) { background: var(--r-600); }

/* ---------- progress ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 210; background: transparent; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--g-600), var(--r-600)); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 200;
  height: var(--header-h);
  display: flex; align-items: center;
  background: transparent; color: #fff;
  transition: background .35s, box-shadow .35s, color .35s;
  border-block-end: 1px solid transparent;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(16px) saturate(1.4);
  color: var(--text);
  border-block-end-color: var(--line);
  box-shadow: 0 8px 30px rgba(4, 54, 31, .07);
}
.header-inner { display: flex; align-items: center; gap: 26px; width: min(var(--wrap), calc(100% - 52px)); margin-inline: auto; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  font-family: var(--sans-lat); font-size: 16px; font-weight: 800; letter-spacing: .6px;
  background: var(--r-600); color: #fff; padding: 6px 12px; line-height: 1.2; border-radius: 10px;
  box-shadow: 0 6px 16px rgba(200, 16, 46, .35); direction: ltr;
}
.brand-mark em { font-style: normal; font-weight: 800; opacity: .92; }
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-text strong { font-family: var(--display); font-size: 14px; font-weight: 600; }
.brand-text small { font-size: 10.5px; opacity: .72; }

.nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav a {
  font-size: 13px; font-weight: 500; opacity: .86;
  padding: 8px 14px; position: relative; border-radius: 999px; transition: background .25s, opacity .25s, color .25s;
}
.nav a:first-child { font-family: var(--sans-lat); font-weight: 700; letter-spacing: .4px; }
.nav a:hover { opacity: 1; background: rgba(255, 255, 255, .12); }
.site-header.scrolled .nav a:hover { background: var(--g-50); }
html[data-theme="dark"] .site-header.scrolled .nav a:hover { background: rgba(255,255,255,.07); }
.nav a.is-active { opacity: 1; background: rgba(255, 255, 255, .18); }
.site-header.scrolled .nav a.is-active { background: var(--g-700); color: #fff; }
html[data-theme="dark"] .site-header.scrolled .nav a.is-active { background: var(--g-600); }

.header-tools { display: flex; align-items: center; gap: 8px; }
.lang-switch { display: flex; align-items: center; border: 1px solid currentColor; border-radius: 999px; overflow: hidden; opacity: .92; }
.lang-switch a, .lang-switch button { font-size: 11.5px; font-weight: 700; padding: 4px 11px; line-height: 1.5; color: inherit; }
.lang-switch a.is-on, .lang-switch button.is-on { background: var(--r-600); color: #fff; }
.icon-btn {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid currentColor; font-size: 15px; opacity: .92; transition: .2s;
}
.icon-btn:hover { background: var(--r-600); border-color: var(--r-600); color: #fff; opacity: 1; }
.nav-toggle { display: none; width: 38px; height: 36px; border: 1px solid currentColor; border-radius: 10px; place-items: center; align-content: center; }
.nav-toggle span { display: block; width: 17px; height: 1.5px; background: currentColor; margin: 2.5px 0; transition: .3s; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; font-size: 13.5px; font-weight: 600;
  border: 1px solid transparent; border-radius: 999px; transition: .25s;
}
.btn svg { width: 15px; height: 15px; }
html[dir="rtl"] .btn svg { transform: scaleX(-1); }
.btn-red { background: var(--r-600); color: #fff; box-shadow: 0 10px 24px rgba(200, 16, 46, .32); }
.btn-red:hover { background: var(--r-700); transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--g-800); }
.btn-white:hover { background: var(--g-100); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn-line { border-color: var(--line-strong); color: var(--text); }
.btn-line:hover { border-color: var(--accent); background: var(--g-50); }
html[data-theme="dark"] .btn-line:hover { background: rgba(255,255,255,.06); }

/* ---------- hero ---------- */
.masthead {
  position: relative; overflow: hidden; color: #fff;
  padding: calc(var(--header-h) + 70px) 0 0;
  background:
    radial-gradient(ellipse at 6% 100%, rgba(200, 16, 46, .30), transparent 46%),
    radial-gradient(ellipse at 92% 0%, rgba(14, 122, 71, .55), transparent 52%),
    linear-gradient(160deg, var(--g-950), var(--g-800) 70%, var(--g-900));
}
.masthead::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1.4px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse at 75% 35%, #000, transparent 72%);
}
.masthead-inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.masthead-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 500; letter-spacing: .6px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
  padding: 6px 16px; border-radius: 999px; margin-block-end: 26px; backdrop-filter: blur(6px);
}
.masthead-label .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--r-500); box-shadow: 0 0 0 4px rgba(224, 33, 63, .3); }
.masthead h1 {
  font-family: var(--display); font-weight: 700; letter-spacing: -.5px;
  font-size: clamp(42px, 6vw, 80px); line-height: 1.12; margin: 0 0 24px;
}
html[lang="en"] .masthead h1 { font-size: clamp(38px, 5.2vw, 70px); line-height: 1.08; letter-spacing: -1.5px; }
.masthead h1 em { font-style: normal; color: #fff; position: relative; display: inline-block; }
.masthead h1 em::after {
  content: ""; position: absolute; inset-inline: 0; inset-block-end: .04em; height: .16em;
  background: var(--r-600); border-radius: 99px; z-index: -1;
}
.masthead h1 .thin { display: block; font-size: .36em; font-weight: 400; color: rgba(255,255,255,.8); margin-block-start: 14px; letter-spacing: 0; }
.masthead-date { font-family: var(--sans-lat); font-size: clamp(22px, 2.6vw, 32px); font-weight: 700; color: #fff; margin: 0 0 14px; display: inline-block; padding-block-end: 10px; border-block-end: 4px solid var(--r-600); }
html[lang="ar"] .masthead-date { font-family: var(--display); }
.masthead-lead { max-width: 600px; font-size: 16px; line-height: 2; color: rgba(255,255,255,.82); margin: 0 0 26px; }
.masthead-meta { display: flex; flex-wrap: wrap; gap: 8px 10px; font-size: 12px; margin-block-end: 32px; }
.masthead-meta span { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); padding: 5px 14px; border-radius: 999px; color: rgba(255,255,255,.88); }
.masthead-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ring graphic */
.hero-ring { position: relative; justify-self: center; width: min(430px, 100%); aspect-ratio: 1; }
.hero-ring svg { width: 100%; height: 100%; overflow: visible; }
.ring-seg { cursor: pointer; transition: opacity .25s, stroke-width .25s; }
.ring-seg:hover { opacity: .85; stroke-width: 44; }
.ring-lbl { font-family: var(--sans-lat); font-size: 12.5px; font-weight: 600; fill: rgba(255,255,255,.72); text-anchor: middle; dominant-baseline: middle; pointer-events: none; }
.ring-gew { font-family: var(--sans-lat); font-size: 17px; font-weight: 700; letter-spacing: 6px; fill: rgba(255,255,255,.7); text-anchor: middle; }
.ring-26 { font-family: var(--sans-lat); font-size: 96px; font-weight: 800; letter-spacing: -4px; fill: #fff; text-anchor: middle; }
.ring-sub { font-size: 12.5px; fill: rgba(255,255,255,.75); text-anchor: middle; }
.ring-legend { position: absolute; inset-inline: 0; inset-block-end: -6px; display: flex; justify-content: center; gap: 18px; font-size: 11px; color: rgba(255,255,255,.78); }
.ring-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-inline-end: 6px; vertical-align: -1px; }

/* fact strip */
.fact-strip {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin-block-start: 60px;
}
.fact {
  padding: 22px 16px; text-align: center; border-radius: var(--r-md);
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(8px);
  transition: transform .3s, background .3s;
}
.fact:hover { transform: translateY(-4px); background: rgba(255,255,255,.12); }
.fact strong { display: block; font-family: var(--sans-lat); font-size: 40px; line-height: 1.15; font-weight: 700; color: #fff; }
.fact:nth-child(2) strong { color: #fff; }
.fact span { font-size: 12.5px; color: rgba(255,255,255,.72); }
.trust-strip {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 10px;
  padding: 24px 0 34px; font-size: 12px;
}
.trust-strip b { font-weight: 500; color: rgba(255,255,255,.9); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); padding: 4px 14px; border-radius: 999px; }
.trust-label { color: rgba(255,255,255,.6); margin-inline-end: 8px; }
.masthead .tricolor { position: relative; }

/* ---------- slider ---------- */
.slider { position: relative; height: clamp(460px, 52vw, 640px); overflow: hidden; background: var(--g-950); }
.slider-stage { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s; }
.slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.07); transition: transform 7.5s linear; }
.slide.is-active img { transform: scale(1); }
.slide-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(to left, rgba(3,42,25,.94) 0%, rgba(3,42,25,.76) 32%, rgba(3,42,25,.14) 68%, rgba(3,42,25,0) 100%),
    linear-gradient(to top, rgba(3,42,25,.75), transparent 46%);
}
html[dir="ltr"] .slide-veil {
  background:
    linear-gradient(to right, rgba(3,42,25,.94) 0%, rgba(3,42,25,.76) 32%, rgba(3,42,25,.14) 68%, rgba(3,42,25,0) 100%),
    linear-gradient(to top, rgba(3,42,25,.75), transparent 46%);
}
.slide-copy {
  position: absolute; z-index: 2; inset-block-end: 100px;
  inset-inline-start: max(26px, calc((100% - var(--wrap)) / 2));
  width: min(560px, calc(100% - 52px)); color: #fff;
}
.slide-kicker {
  display: inline-block; font-size: 12px; font-weight: 500; color: #fff;
  background: var(--r-600); padding: 3px 14px; border-radius: 999px; margin-block-end: 16px;
}
.slide-copy h2 { font-family: var(--display); font-size: clamp(28px, 3.8vw, 50px); font-weight: 700; line-height: 1.25; margin: 0 0 14px; }
html[lang="en"] .slide-copy h2 { font-size: clamp(26px, 3.3vw, 44px); letter-spacing: -.8px; line-height: 1.15; }
.slide-copy p { font-size: 15px; line-height: 1.95; color: rgba(255,255,255,.84); margin: 0 0 24px; max-width: 500px; }
.slide-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.slide-link {
  display: inline-flex; align-items: center; gap: 9px; background: #fff; color: var(--g-800);
  padding: 11px 22px; font-size: 13px; font-weight: 600; border-radius: 999px; transition: .2s;
}
.slide-link:hover { background: var(--r-600); color: #fff; }
.slide-count-label { font-family: var(--sans-lat); font-size: 12px; letter-spacing: 2px; color: rgba(255,255,255,.7); direction: ltr; unicode-bidi: isolate; }


.slider-ui {
  position: absolute; z-index: 4; inset-block-end: 26px; inset-inline: 0;
  display: flex; align-items: center; justify-content: space-between; pointer-events: none;
  width: min(var(--wrap), calc(100% - 52px)); margin-inline: auto;
}
.slider-ui > * { pointer-events: auto; }
.slider-nav-group { display: flex; align-items: center; gap: 14px; }
.slider-nav {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.5); color: #fff; font-size: 18px; line-height: 1; background: rgba(255,255,255,.08);
  backdrop-filter: blur(6px); transition: .2s;
}
.slider-nav:hover { background: var(--r-600); border-color: var(--r-600); }
.slider-dots { display: flex; align-items: center; gap: 8px; }
.slider-dot { width: 22px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.4); transition: .3s; padding: 0; }
.slider-dot.active { width: 46px; background: #fff; }
.slider-progress { position: absolute; inset-block-end: 0; inset-inline: 0; height: 4px; background: rgba(255,255,255,.14); z-index: 3; }
.slider-progress span { display: block; height: 100%; width: 0; background: var(--r-600); }

/* ---------- sections ---------- */
.section { padding: 100px 0; position: relative; }
.section-paper { background: var(--bg); }
.section-alt { background: var(--bg-alt); }
.section-dark { background: linear-gradient(165deg, var(--g-950), var(--g-800)); color: var(--on-dark); }
.section-dark .h2 { color: #fff; }
.section-head { max-width: 720px; margin-block-end: 48px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px;
  font-size: 12.5px; font-weight: 600; color: var(--accent-2); letter-spacing: .4px;
}
html[lang="en"] .eyebrow { letter-spacing: 1.6px; text-transform: uppercase; font-size: 11.5px; }
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--accent-2); }
.section-dark .eyebrow { color: #ff8da0; }
.section-dark .eyebrow::before { background: #ff8da0; }
.h2 { font-family: var(--display); font-size: clamp(28px, 3.4vw, 44px); font-weight: 700; line-height: 1.3; margin: 0 0 16px; letter-spacing: -.3px; color: var(--g-800); }
html[data-theme="dark"] .h2 { color: #fff; }
html[lang="en"] .h2 { font-size: clamp(27px, 3vw, 40px); letter-spacing: -1px; line-height: 1.18; }
.section-note { font-size: 15px; line-height: 1.95; color: var(--muted); margin: 0; max-width: 620px; }
.section-dark .section-note { color: rgba(243,249,245,.72); }

/* ---------- GEW26 (à propos) ---------- */
.dossier-grid { display: grid; grid-template-columns: 1.55fr .9fr; gap: 56px; align-items: start; }
.dossier-copy p { font-size: 16px; line-height: 2.05; margin: 0 0 22px; color: var(--ink-soft); }
.dossier-copy .lede { font-size: 18px; color: var(--text); font-weight: 400; }
.pullquote {
  position: relative; margin: 34px 0 0; padding: 28px 30px; border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--g-800), var(--g-700)); color: #fff;
  font-family: var(--display); font-size: 19px; line-height: 1.85; font-weight: 400;
  border-inline-start: 6px solid var(--r-600);
}
html[lang="en"] .pullquote { font-size: 17.5px; line-height: 1.7; }
.dossier-side { position: sticky; top: calc(var(--header-h) + 24px); }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 26px 14px; box-shadow: var(--shadow-sm); border-block-start: 5px solid var(--g-700); }
.side-title { font-size: 12.5px; font-weight: 600; color: var(--muted); margin: 0 0 8px; }
.fact-line { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 0; border-block-end: 1px solid var(--line); font-size: 14px; }
.fact-line:last-child { border-block-end: 0; }
.fact-line strong { font-family: var(--sans-lat); font-size: 28px; font-weight: 700; color: var(--g-700); }
.fact-line:nth-of-type(3) strong { color: var(--r-600); }
html[data-theme="dark"] .fact-line strong { color: var(--accent); }
html[data-theme="dark"] .fact-line:nth-of-type(3) strong { color: var(--accent-2); }

/* tracks */
.tracks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-block-start: 60px; }
.track {
  position: relative; background: var(--surface); padding: 28px 24px 26px; border: 1px solid var(--line);
  border-radius: var(--r-md); transition: transform .3s, box-shadow .3s, border-color .3s; overflow: hidden;
}
.track::before { content: ""; position: absolute; inset-inline: 0; inset-block-start: 0; height: 4px; background: var(--g-700); }
.track:nth-child(2)::before { background: var(--r-600); }
.track:nth-child(3)::before { background: var(--g-600); }
.track:nth-child(4)::before { background: var(--r-600); }
.track:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); }
.track-num { font-family: var(--sans-lat); font-size: 13px; font-weight: 700; color: var(--accent-2); letter-spacing: 1px; }
.track h3 { font-family: var(--display); font-size: 19px; font-weight: 600; margin: 12px 0 8px; line-height: 1.45; }
html[lang="en"] .track h3 { font-size: 18px; }
.track p { font-size: 13.5px; line-height: 1.9; color: var(--muted); margin: 0; }

/* ---------- programme ---------- */
.toolbar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; margin-block-end: 34px; box-shadow: var(--shadow-sm); }
.search-box { position: relative; display: flex; align-items: center; gap: 10px; background: var(--bg-alt); border-radius: 999px; padding: 4px 20px; border: 1px solid var(--line); }
.search-box:focus-within { border-color: var(--g-600); box-shadow: 0 0 0 4px rgba(14,122,71,.14); }
.search-box span { font-size: 17px; color: var(--muted); }
.search-box input { flex: 1; border: 0; background: transparent; font-size: 15px; padding: 10px 0; outline: none; }
.search-box input::placeholder { color: var(--muted); opacity: .75; }
.search-box button { font-size: 13px; color: var(--muted); padding: 4px 6px; }
.toolbar-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-block-start: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 12.5px; font-weight: 500; padding: 7px 16px; border: 1px solid var(--line-strong); border-radius: 999px;
  color: var(--ink-soft); transition: .2s; white-space: nowrap;
}
.chip:hover { border-color: var(--g-700); color: var(--accent); background: var(--g-50); }
html[data-theme="dark"] .chip:hover { background: rgba(255,255,255,.06); }
.chip.is-active { background: var(--g-700); border-color: var(--g-700); color: #fff; }
html[data-theme="dark"] .chip.is-active { background: var(--g-600); border-color: var(--g-600); }
.section-dark .chip { color: rgba(255,255,255,.82); border-color: rgba(255,255,255,.28); }
.section-dark .chip:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }
.section-dark .chip.is-active { background: #fff; border-color: #fff; color: var(--g-800); }
.chip em { font-style: normal; opacity: .6; font-size: 11px; margin-inline-start: 4px; font-family: var(--sans-lat); }
.selects { display: flex; flex-wrap: wrap; gap: 14px; margin-inline-start: auto; }
.select-wrap { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.select-wrap select {
  border: 1px solid var(--line-strong); background: var(--surface); padding: 7px 12px; font-size: 12.5px;
  border-radius: 10px; color: var(--text); max-width: 200px;
}
.toolbar-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-block-start: 18px; padding-block-start: 16px; border-block-start: 1px solid var(--line); }
.result-count { font-size: 12.5px; color: var(--muted); }
.result-count strong { color: var(--r-600); font-weight: 700; font-family: var(--sans-lat); font-size: 15px; }
html[data-theme="dark"] .result-count strong { color: var(--accent-2); }
.view-switch { display: flex; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.view-btn { font-size: 12px; padding: 6px 15px; color: var(--muted); border-radius: 999px; transition: .2s; }
.view-btn.is-active { background: var(--g-700); color: #fff; }
html[data-theme="dark"] .view-btn.is-active { background: var(--g-600); }

/* cards view */
.ev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ev-card {
  position: relative; display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px 24px 20px;
  transition: transform .3s, box-shadow .3s, border-color .3s; text-align: start; cursor: pointer; overflow: hidden;
}
.ev-card::before { content: ""; position: absolute; inset-inline-start: 0; inset-block: 0; width: 4px; background: var(--g-700); transition: width .3s, background .3s; }
.ev-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.ev-card:hover::before { width: 7px; background: var(--r-600); }
.ev-date { display: flex; align-items: center; gap: 10px; margin-block-end: 16px; }
.ev-day {
  font-family: var(--sans-lat); font-size: 22px; line-height: 1; font-weight: 700; color: #fff;
  background: var(--g-700); border-radius: 12px; padding: 10px 11px; min-width: 46px; text-align: center;
}
.ev-mon { font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.ev-time { margin-inline-start: auto; font-family: var(--sans-lat); font-size: 11.5px; font-weight: 600; color: var(--r-700); background: var(--r-50); padding: 2px 10px; border-radius: 999px; }
html[data-theme="dark"] .ev-time { background: rgba(255,86,113,.14); color: #ff8da0; }
.ev-card h3 { font-family: var(--display); font-size: 17.5px; font-weight: 600; line-height: 1.6; margin: 0 0 10px; }
html[lang="en"] .ev-card h3 { font-size: 16.5px; line-height: 1.4; }
.ev-card p { font-size: 13px; line-height: 1.95; color: var(--muted); margin: 0 0 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ev-foot { margin-block-start: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-block-start: 14px; border-block-start: 1px solid var(--line); }
.ev-org { font-size: 11.5px; color: var(--ink-soft); font-weight: 500; }
.ev-more { font-size: 11.5px; color: var(--accent-2); font-weight: 600; white-space: nowrap; }

/* timeline view */
.ev-timeline { position: relative; }
.tl-group { display: grid; grid-template-columns: 112px 1fr; gap: 30px; padding-block-end: 6px; }
.tl-date-col { position: relative; text-align: end; padding-block-start: 4px; }
.tl-date-col .d { display: block; font-family: var(--sans-lat); font-size: 30px; line-height: 1.1; color: var(--g-700); font-weight: 700; }
html[data-theme="dark"] .tl-date-col .d { color: var(--accent); }
.tl-date-col .m { font-size: 11.5px; color: var(--muted); }
.tl-date-col::after { content: ""; position: absolute; inset-block-start: 12px; inset-inline-end: -19px; width: 12px; height: 12px; border-radius: 50%; background: var(--r-600); box-shadow: 0 0 0 4px var(--r-50); }
html[data-theme="dark"] .tl-date-col::after { box-shadow: 0 0 0 4px rgba(255,86,113,.2); }
.tl-date-col::before { content: ""; position: absolute; inset-block: 24px -26px; inset-inline-end: -14px; width: 2px; background: var(--line); }
.tl-group:last-child .tl-date-col::before { display: none; }
.tl-items { padding-block: 0 22px; display: grid; gap: 10px; }
.tl-row {
  display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 16px 20px; align-items: center; text-align: start; width: 100%;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; transition: .25s;
}
.tl-row:hover { border-color: var(--g-600); transform: translateX(-4px); box-shadow: var(--shadow-sm); }
html[dir="ltr"] .tl-row:hover { transform: translateX(4px); }
.tl-row h3 { font-family: var(--display); font-size: 16px; font-weight: 600; margin: 0 0 3px; line-height: 1.55; }
html[lang="en"] .tl-row h3 { font-size: 15.5px; }
.tl-row small { font-size: 12px; color: var(--muted); }
.tl-row .tag { font-size: 11px; font-weight: 600; color: var(--g-700); background: var(--g-50); padding: 3px 12px; border-radius: 999px; white-space: nowrap; }
html[data-theme="dark"] .tl-row .tag { background: rgba(62,207,142,.12); color: var(--accent); }

/* table view */
.ev-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
table.ev-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 680px; }
.ev-table th { text-align: start; font-size: 11.5px; color: #fff; padding: 14px 16px; font-weight: 600; background: var(--g-800); }
.ev-table td { padding: 14px 16px; border-block-end: 1px solid var(--line); vertical-align: top; }
.ev-table tr:last-child td { border-block-end: 0; }
.ev-table tbody tr { transition: background .2s; cursor: pointer; }
.ev-table tbody tr:hover { background: var(--g-50); }
html[data-theme="dark"] .ev-table tbody tr:hover { background: rgba(255,255,255,.05); }
.ev-table .t-title { font-weight: 600; }
.ev-table .t-day { font-family: var(--sans-lat); font-size: 14px; font-weight: 700; color: var(--r-600); white-space: nowrap; }

.empty-state { text-align: center; padding: 60px 20px; border: 2px dashed var(--line-strong); border-radius: var(--r); }
.empty-state h3 { font-family: var(--display); font-size: 21px; margin: 0 0 8px; }
.empty-state p { color: var(--muted); font-size: 14px; margin: 0 0 18px; }

/* ---------- chronicle ---------- */
.day-strip { display: grid; grid-template-columns: repeat(13, 1fr); gap: 10px; }
.day-cell {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 4px 14px; text-align: center; transition: .25s;
}
.day-cell .dn { font-family: var(--sans-lat); font-size: 24px; font-weight: 700; line-height: 1.1; display: block; color: var(--g-700); }
html[data-theme="dark"] .day-cell .dn { color: var(--accent); }
.day-cell .dc { font-size: 11px; color: var(--muted); }
.day-cell:not(.is-empty)::after { content: ""; position: absolute; inset-inline: 30%; inset-block-end: 0; height: 4px; border-radius: 4px 4px 0 0; background: var(--g-700); }
.day-cell.hot::after { background: var(--r-600); }
.day-cell:not(.is-empty):hover { background: var(--g-700); border-color: var(--g-700); transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.day-cell:not(.is-empty):hover .dn, .day-cell:not(.is-empty):hover .dc { color: #fff; }
.day-cell.is-empty { opacity: .45; background: var(--bg-alt); }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 214px; grid-auto-flow: dense; gap: 12px; }
.g-item { position: relative; overflow: hidden; border-radius: var(--r-md); background: var(--g-900); cursor: pointer; margin: 0; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.g-item:hover img { transform: scale(1.07); }
.g-item.wide { grid-column: span 2; }
.g-item.tall { grid-row: span 2; }
.g-cap {
  position: absolute; inset: auto 0 0; padding: 30px 16px 14px;
  background: linear-gradient(to top, rgba(3,42,25,.95), rgba(3,42,25,.4) 62%, transparent);
  color: #fff; opacity: 0; transform: translateY(8px); transition: .35s;
}
.g-item:hover .g-cap, .g-item:focus-visible .g-cap { opacity: 1; transform: none; }
.g-item::after { content: ""; position: absolute; inset-inline: 0; inset-block-end: 0; height: 4px; background: var(--r-600); transform: scaleX(0); transition: transform .4s; transform-origin: center; }
.g-item:hover::after { transform: scaleX(1); }
.g-cap strong { display: block; font-size: 12.5px; font-weight: 600; line-height: 1.5; }
.g-cap small { font-size: 10.5px; opacity: .75; }

/* ---------- videos ---------- */
.section-head.with-action { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; max-width: none; }
.section-head.with-action > div { max-width: 640px; }
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.video-card { display: block; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); transition: .3s; }
.video-card:hover { box-shadow: var(--shadow); transform: translateY(-5px); }
.video-thumb { position: relative; display: block; aspect-ratio: 16/9; overflow: hidden; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.video-card:hover img { transform: scale(1.05); }
.play-btn {
  position: absolute; inset-block-start: 50%; inset-inline-start: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%; background: var(--r-600); color: #fff;
  display: grid; place-items: center; font-size: 20px; padding-inline-start: 3px;
  box-shadow: 0 0 0 10px rgba(255,255,255,.25); transition: .3s;
}
.video-card:hover .play-btn { transform: translate(-50%, -50%) scale(1.1); }
.video-body { display: block; padding: 20px 24px 24px; }
.video-body h3 { font-family: var(--display); font-size: 17.5px; margin: 0 0 6px; font-weight: 600; line-height: 1.55; }
html[lang="en"] .video-body h3 { font-size: 16.5px; }
.video-body p { font-size: 13px; color: var(--muted); margin: 0; }

/* ---------- voices ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote-card { padding: 34px 28px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); position: relative; margin: 0; box-shadow: var(--shadow-sm); }
.quote-card::before { content: "“"; position: absolute; inset-block-start: 8px; inset-inline-end: 22px; font-family: Georgia, serif; font-size: 80px; color: var(--r-600); opacity: .22; line-height: 1; }
.quote-card:nth-child(2)::before { color: var(--g-700); opacity: .3; }
.quote-card p { font-family: var(--display); font-weight: 300; font-size: 16.5px; line-height: 2; margin: 0 0 20px; color: var(--ink-soft); }
html[lang="en"] .quote-card p { font-size: 15.5px; line-height: 1.75; }
.quote-card footer { font-size: 12px; color: var(--muted); padding-block-start: 16px; border-block-start: 1px solid var(--line); }
.quote-card footer strong { display: block; font-size: 13px; color: var(--accent); }

/* ---------- impact ---------- */
.impact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.impact-cell { padding: 30px 24px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-md); transition: .3s; }
.impact-cell:hover { background: rgba(255,255,255,.12); transform: translateY(-4px); }
.impact-cell .n { font-family: var(--sans-lat); font-size: 56px; line-height: 1; color: #fff; font-weight: 800; letter-spacing: -2px; }
.impact-cell:nth-child(odd) .n::after, .impact-cell:nth-child(even) .n::after { content: ""; display: block; width: 36px; height: 4px; border-radius: 4px; margin-block-start: 12px; background: var(--r-500); }
.impact-cell:nth-child(even) .n::after { background: #fff; }
.impact-cell .l { display: block; margin-block-start: 14px; font-family: var(--display); font-size: 15px; font-weight: 500; color: #fff; }
.impact-cell p { font-size: 12.5px; color: rgba(255,255,255,.62); margin: 8px 0 0; line-height: 1.85; }
.impact-lines { margin-block-start: 48px; padding: 28px 30px; border-radius: var(--r-md); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.impact-lines h3 { font-family: var(--display); font-size: 15px; font-weight: 600; margin: 0 0 20px; color: #fff; }
.impact-lines .rows { display: grid; gap: 14px; }
.impact-line { display: grid; grid-template-columns: 150px 1fr 56px; gap: 18px; align-items: center; font-size: 13px; color: rgba(255,255,255,.82); }
.bar { height: 8px; background: rgba(255,255,255,.14); border-radius: 8px; overflow: hidden; }
.bar span { display: block; height: 100%; background: #fff; border-radius: 8px; width: 0; transition: width 1.2s ease; }
.impact-line:nth-child(3n+1) .bar span { background: var(--r-500); }
.impact-line:nth-child(3n+2) .bar span { background: #fff; }
.impact-line:nth-child(3n) .bar span { background: #43d792; }
.impact-line .val { font-family: var(--sans-lat); font-size: 14px; font-weight: 700; color: #fff; text-align: end; direction: ltr; }

/* ---------- history ---------- */
.history-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.hist { padding: 30px 28px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); transition: .3s; position: relative; overflow: hidden; }
.hist:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.hist .yr { font-family: var(--sans-lat); font-size: 40px; font-weight: 800; letter-spacing: -1.5px; color: var(--g-100); line-height: 1; display: block; }
html[data-theme="dark"] .hist .yr { color: rgba(255,255,255,.14); }
.hist h3 { font-family: var(--display); font-size: 19px; font-weight: 600; margin: 12px 0 8px; line-height: 1.5; }
html[lang="en"] .hist h3 { font-size: 18px; }
.hist p { font-size: 13.5px; line-height: 1.95; color: var(--muted); margin: 0; }
.hist.is-now { background: linear-gradient(150deg, var(--g-800), var(--g-700)); border-color: transparent; color: #fff; }
.hist.is-now .yr { color: var(--r-500); }
.hist.is-now p { color: rgba(255,255,255,.82); }
.hist.is-now::after { content: ""; position: absolute; inset-inline: 0; inset-block-end: 0; height: 5px; background: var(--r-600); }

/* ---------- cta ---------- */
.cta { position: relative; overflow: hidden; background: var(--r-600); color: #fff; padding: 80px 0; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 90% 0%, rgba(255,255,255,.2), transparent 55%), radial-gradient(ellipse at 0% 100%, rgba(163,13,38,.9), transparent 55%); }
.cta-inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 30px; }
.cta h2 { font-family: var(--display); font-size: clamp(26px, 3.2vw, 42px); margin: 0 0 10px; line-height: 1.3; font-weight: 700; }
html[lang="en"] .cta h2 { letter-spacing: -1px; }
.cta p { font-size: 15px; color: rgba(255,255,255,.88); margin: 0; max-width: 560px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta .btn-white { color: var(--r-700); }
.cta .btn-white:hover { background: #fff0f2; }

/* ---------- footer ---------- */
.footer { position: relative; overflow: hidden; background: var(--g-950); color: #fff; padding: 64px 0 0; }
.footer-wordmark {
  position: absolute; inset-block-end: -30px; inset-inline-start: 50%; transform: translateX(-50%);
  font-family: var(--sans-lat); font-weight: 800; font-size: clamp(80px, 15vw, 210px); line-height: 1; letter-spacing: -6px;
  color: rgba(255,255,255,.035); pointer-events: none; white-space: nowrap;
}
.footer-inner { position: relative; display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 40px; align-items: start; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 50px; height: 50px; object-fit: cover; border-radius: 14px; border: 2px solid rgba(255,255,255,.3); }
.footer-brand strong { display: block; font-family: var(--display); font-size: 14.5px; font-weight: 600; }
.footer-brand span { font-size: 12px; color: rgba(255,255,255,.6); }
.footer p { font-size: 12.5px; line-height: 2; color: rgba(255,255,255,.6); margin: 0; }
.footer-links { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.footer-links a { color: rgba(255,255,255,.82); transition: color .2s; }
.footer-links a:hover { color: #ff8da0; }
.footer-base { position: relative; margin-block-start: 44px; padding-block: 20px 26px; border-block-start: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 11.5px; color: rgba(255,255,255,.5); }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(3, 30, 18, .75); backdrop-filter: blur(6px); animation: fade .25s; }
.modal-panel {
  position: relative; width: min(680px, 100%); max-height: min(86vh, 780px); overflow-y: auto;
  background: var(--bg); color: var(--text); border-radius: 24px; padding: 42px 42px 36px;
  box-shadow: 0 30px 80px rgba(0,0,0,.45); animation: rise .32s ease; border-block-start: 6px solid var(--r-600);
}
.modal-close { position: absolute; inset-block-start: 16px; inset-inline-end: 18px; font-size: 16px; color: var(--muted); width: 34px; height: 34px; border-radius: 50%; transition: .2s; }
.modal-close:hover { background: var(--r-600); color: #fff; }
.modal-kicker { display: inline-block; font-size: 12px; font-weight: 600; color: var(--g-700); background: var(--g-50); padding: 3px 14px; border-radius: 999px; margin-block-end: 16px; }
html[data-theme="dark"] .modal-kicker { background: rgba(62,207,142,.14); color: var(--accent); }
.modal-panel h2 { font-family: var(--display); font-size: clamp(22px, 2.6vw, 30px); line-height: 1.5; margin: 0 0 14px; font-weight: 700; color: var(--g-800); }
html[data-theme="dark"] .modal-panel h2 { color: #fff; }
html[lang="en"] .modal-panel h2 { font-size: clamp(21px, 2.3vw, 27px); line-height: 1.3; }
.modal-panel .m-date { font-size: 13px; font-weight: 600; color: var(--r-600); margin-block-end: 18px; padding-block-end: 16px; border-block-end: 1px solid var(--line); }
.modal-panel .m-desc { font-size: 15px; line-height: 2.05; color: var(--ink-soft); margin: 0 0 22px; }
.meta-list { display: grid; gap: 4px; margin: 0; background: var(--bg-alt); border-radius: var(--r-md); padding: 8px 20px; }
.meta-row { display: grid; grid-template-columns: 100px 1fr; gap: 12px; font-size: 13.5px; padding: 12px 0; border-block-end: 1px solid var(--line); }
.meta-row:last-child { border-block-end: 0; }
.meta-row dt { color: var(--muted); font-size: 12px; font-weight: 600; }
.meta-row dd { margin: 0; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 450; background: rgba(2, 22, 13, .96); display: flex; align-items: center; justify-content: center; padding: 40px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); text-align: center; }
.lightbox img { max-height: 78vh; max-width: 100%; margin-inline: auto; object-fit: contain; border-radius: 14px; animation: fade .3s; }
.lightbox figcaption { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; margin-block-start: 18px; color: rgba(255,255,255,.88); font-size: 13px; }
.lightbox figcaption span:last-child { color: rgba(255,255,255,.55); font-family: var(--sans-lat); letter-spacing: 1px; }
.lb-close, .lb-nav {
  position: absolute; color: #fff; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.35); display: grid; place-items: center; font-size: 19px; transition: .2s;
}
.lb-close:hover, .lb-nav:hover { background: var(--r-600); border-color: var(--r-600); }
.lb-close { inset-block-start: 22px; inset-inline-end: 26px; }
.lb-nav { inset-block-start: 50%; transform: translateY(-50%); }
.lb-prev { inset-inline-start: 22px; }
.lb-next { inset-inline-end: 22px; }

/* ---------- reveal / animations ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .masthead-inner { grid-template-columns: 1fr; gap: 20px; }
  .hero-ring { width: min(340px, 80%); margin-block-start: 16px; }
  .dossier-grid { grid-template-columns: 1fr; gap: 40px; }
  .dossier-side { position: static; }
  .tracks { grid-template-columns: repeat(2, 1fr); }
  .ev-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 190px; }
  .quotes, .history-grid { grid-template-columns: 1fr 1fr; }
  .impact-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .nav a { padding: 7px 10px; font-size: 12.5px; }
  .day-strip { grid-template-columns: repeat(7, 1fr); }
}

@media (max-width: 880px) {
  .nav {
    position: fixed; inset-block-start: var(--header-h); inset-inline: 12px;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 12px;
    background: var(--bg); border: 1px solid var(--line); border-radius: 20px;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .28s;
    box-shadow: var(--shadow); color: var(--text);
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 12px 16px; font-size: 14.5px; border-radius: 12px; opacity: 1; }
  .nav a:hover { background: var(--g-50); }
  .nav a.is-active { background: var(--g-700); color: #fff; }
  .nav-toggle { display: grid; }
  .header-inner { gap: 12px; }
  .brand-text small { display: none; }
  .section { padding: 72px 0; }
  .video-grid { grid-template-columns: 1fr; }
  .quotes, .history-grid { grid-template-columns: 1fr; }
  .slide-copy { inset-block-end: 90px; }
  .slider-ui { inset-block-end: 16px; }
  .modal-panel { padding: 36px 24px 28px; }
  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 700px) {
  .brand-text { display: none; }
}

@media (max-width: 620px) {
  .wrap, .header-inner, .slider-ui { width: calc(100% - 32px); }
  .masthead { padding-block-start: calc(var(--header-h) + 30px); }
  .masthead h1 { font-size: clamp(36px, 10vw, 50px); }
  html[lang="en"] .masthead h1 { font-size: clamp(34px, 9.4vw, 44px); }
  .fact-strip { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-block-start: 44px; }
  .fact strong { font-size: 32px; }
  .tracks { grid-template-columns: 1fr; }
  .ev-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 8px; }
  .impact-grid { grid-template-columns: 1fr; }
  .impact-line { grid-template-columns: 1fr 50px; gap: 8px 12px; }
  .impact-line .bar { grid-column: span 2; order: 3; }
  .day-strip { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .tl-group { grid-template-columns: 1fr; gap: 8px; }
  .tl-date-col { text-align: start; display: flex; align-items: baseline; gap: 8px; }
  .tl-date-col::before, .tl-date-col::after { display: none; }
  .tl-row { grid-template-columns: 1fr; }
  .tl-row .tag { justify-self: start; }
  .slide-copy p { display: none; }
  .slide-copy { inset-block-end: 80px; }
  .slide-copy h2 { font-size: 26px; }
  .selects { margin-inline-start: 0; }
  .toolbar { padding: 16px; }
  .modal { padding: 0; }
  .modal-panel { max-height: 100vh; border-radius: 0; padding: 34px 20px 24px; }
  .meta-row { grid-template-columns: 1fr; gap: 2px; }
  .lightbox { padding: 18px; }
  .lb-nav { width: 38px; height: 38px; }
  .lb-prev { inset-inline-start: 8px; }
  .lb-next { inset-inline-end: 8px; }
  .lb-close { inset-block-start: 12px; inset-inline-end: 12px; }
}

/* ---------- hero : triangle (slider à gauche, texte à droite), image affichée en entier ---------- */
:root { --cut-top: 57%; --cut-bot: 48%; }
.masthead { min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 0; }
.masthead::after {
  content: ""; position: absolute; inset: 0; z-index: 1; background: var(--r-600); pointer-events: none;
  clip-path: polygon(0 0, calc(var(--cut-top) + .9%) 0, calc(var(--cut-bot) + .9%) 100%, 0 100%);
}
html[dir="ltr"] .masthead::after {
  clip-path: polygon(100% 0, calc(100% - var(--cut-top) - .9%) 0, calc(100% - var(--cut-bot) - .9%) 100%, 100% 100%);
}
.masthead .slider {
  position: absolute; inset: 0; z-index: 2; height: auto; width: 100%; border: 0; border-radius: 0; box-shadow: none;
  display: flex; flex-direction: column; background: var(--g-950);
  padding-block: calc(var(--header-h) + 12px) 18px;
  clip-path: polygon(0 0, var(--cut-top) 0, var(--cut-bot) 100%, 0 100%);
}
html[dir="ltr"] .masthead .slider {
  clip-path: polygon(100% 0, calc(100% - var(--cut-top)) 0, calc(100% - var(--cut-bot)) 100%, 100% 100%);
}
.masthead .slider-stage { position: relative; inset: auto; flex: 1; min-height: 0; display: grid; }
.masthead .slide { position: relative; inset: auto; grid-area: 1 / 1; display: flex; flex-direction: column; min-height: 0; }
.slide-media {
  position: relative; flex: 1; min-height: 0; width: var(--cut-bot); overflow: hidden;
  margin-right: auto; margin-left: 0; background: #021f13;
}
html[dir="ltr"] .slide-media { margin-left: auto; margin-right: 0; }
.masthead .slide .slide-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: blur(22px) brightness(.5); transform: scale(1.15); transition: none;
}
.masthead .slide .slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transform: none; transition: none; }
.masthead .slide-copy, html[dir="ltr"] .masthead .slide-copy {
  position: static; inset: auto; text-align: start; width: calc(var(--cut-bot) - 60px); max-width: 480px;
  margin-right: auto; margin-left: max(26px, calc((100% - var(--wrap)) / 2)); padding: 14px 0 0;
}
html[dir="ltr"] .masthead .slide-copy { margin-left: auto; margin-right: max(26px, calc((100% - var(--wrap)) / 2)); }
.masthead .slide-kicker { font-size: 11.5px; margin-block-end: 8px; }
.masthead .slide-copy h2 { font-size: clamp(18px, 1.8vw, 24px); margin: 0 0 6px; }
.masthead .slide-copy p { font-size: 13px; line-height: 1.8; margin: 0 0 10px; max-width: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.masthead .slide-link { padding: 7px 16px; font-size: 12px; }
.masthead .slide-actions .slide-count-label { display: none; }
.masthead .slider-ui, html[dir="ltr"] .masthead .slider-ui {
  position: static; inset: auto; width: calc(var(--cut-bot) - 60px); max-width: 480px; justify-content: flex-start; gap: 18px;
  margin-right: auto; margin-left: max(26px, calc((100% - var(--wrap)) / 2)); padding-top: 12px;
}
html[dir="ltr"] .masthead .slider-ui { margin-left: auto; margin-right: max(26px, calc((100% - var(--wrap)) / 2)); }
.masthead .slider-nav { width: 36px; height: 36px; }
.masthead .slider-dot.active { width: 34px; }
.masthead .slider-progress { display: none; }

.masthead-inner, .masthead > .wrap { position: relative; z-index: 3; }
.masthead-inner { display: block; padding-block: calc(var(--header-h) + 34px) 10px; }
.masthead-copy { max-width: 40%; }
.masthead h1 { font-size: clamp(34px, 3.8vw, 54px); }
html[lang="en"] .masthead h1 { font-size: clamp(32px, 3.5vw, 50px); }
.masthead .trust-strip { max-width: 40%; padding: 16px 0 26px; }

@media (max-width: 720px) {
  .masthead { display: block; }
  .masthead::after { display: none; }
  .masthead .slider, html[dir="ltr"] .masthead .slider { position: relative; inset: auto; clip-path: polygon(0 0, 100% 0, 100% 94%, 0 100%); padding-block: calc(var(--header-h) + 8px) 26px; }
  .masthead .slider-stage { flex: none; }
  .slide-media, html[dir="ltr"] .slide-media { width: 100%; aspect-ratio: 3 / 2; flex: none; margin: 0; }
  .masthead .slide-copy, html[dir="ltr"] .masthead .slide-copy,
  .masthead .slider-ui, html[dir="ltr"] .masthead .slider-ui { width: calc(100% - 52px); max-width: none; margin-inline: 26px; }
  .masthead .slide-copy { min-height: 130px; }
  .masthead-inner { padding-block: 28px 0; }
  .masthead-copy, .masthead .trust-strip { max-width: none; }
}
@media (max-width: 620px) {
  .masthead .slide-copy, html[dir="ltr"] .masthead .slide-copy,
  .masthead .slider-ui, html[dir="ltr"] .masthead .slider-ui { width: calc(100% - 32px); margin-inline: 16px; }
}
.masthead .wrap { pointer-events: none; }
.masthead-copy, .masthead .trust-strip { pointer-events: auto; }

@media (min-width: 721px) and (max-width: 1080px) {
  :root { --cut-top: 60%; --cut-bot: 52%; }
  .masthead-copy, .masthead .trust-strip { max-width: 37%; }
  .masthead h1 { font-size: clamp(28px, 4.2vw, 40px); }
  .masthead-lead { font-size: 14px; line-height: 1.9; }
  .masthead .slide-copy p { display: none; }
}

/* le triangle entier est rempli par l'image (fond flou), l'image nette reste affichée en entier */
.masthead .slider-stage { position: static; }
.masthead .slide { position: static; }
.masthead .slide .slide-bg { z-index: 0; filter: blur(16px) brightness(.8) saturate(1.1); transform: scale(1.12); }
.masthead .slide::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(3,42,25,.55), transparent 22%), linear-gradient(to top, rgba(3,42,25,.92) 0%, rgba(3,42,25,.6) 28%, transparent 55%);
}
.masthead .slide-media { background: transparent; z-index: 1; }
.masthead .slide-copy, .masthead .slider-ui { position: relative; z-index: 2; background: none; }
.masthead .slide-copy { text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.masthead .slider { background: var(--g-950); }

/* la photo remplit tout le triangle */
.masthead .slide .slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: 0; transform: none; transition: none; }
.masthead .slide-media { background: transparent; width: 100%; }
.masthead .slide::after { background: linear-gradient(to bottom, rgba(3,42,25,.5), transparent 20%), linear-gradient(to top, rgba(3,42,25,.9) 0%, rgba(3,42,25,.55) 26%, transparent 50%); }

/* partie haute plus compacte */
.masthead-inner { padding-block: calc(var(--header-h) + 8px) 0; }
.masthead h1 { font-size: clamp(32px, 3.4vw, 50px); }
html[lang="en"] .masthead h1 { font-size: clamp(30px, 3.1vw, 46px); }
.masthead h1 .thin { margin-block-start: 8px; }
.masthead-date { font-size: clamp(20px, 2.1vw, 28px); margin-bottom: 10px; padding-block-end: 8px; }
.masthead-lead { font-size: 15px; line-height: 1.85; margin-bottom: 20px; }
.masthead .trust-strip { padding: 12px 0 18px; }
@media (min-width: 721px) {
  .masthead .slide-copy, .masthead .slider-ui { margin-bottom: 0; }
  .masthead .slider { padding-block-end: 14px; }
}
@media (max-width: 720px) {
  .slide-media { aspect-ratio: 4 / 3 !important; }
}
/* image calée sur la largeur réelle du triangle (pas sur toute la largeur de la page) */
.masthead .slide .slide-img { inset: 0 auto 0 0; width: var(--cut-top); height: 100%; }
html[dir="ltr"] .masthead .slide .slide-img { inset: 0 0 0 auto; }
@media (max-width: 720px) { .masthead .slide .slide-img, html[dir="ltr"] .masthead .slide .slide-img { inset: 0; width: 100%; } }

.footer-brand img.univ-logo { width: auto; height: 64px; max-width: 120px; object-fit: contain; border: 0; border-radius: 0; background: #fff; padding: 4px; border-radius: 10px; }
.trust-strip .chip-link { font-weight: 500; color: rgba(255,255,255,.9); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); padding: 4px 14px; border-radius: 999px; transition: .2s; }
.trust-strip .chip-link:hover { background: var(--r-600); border-color: var(--r-600); }
