:root {
  /* Bichromie stricte de la charte REC! */
  --blue: #3F12FC;   /* Bleu Glowing */
  --orange: #FF5C00; /* Orange (aplats / visuels / decor, non textuel) */
  /* Variantes accessibles WCAG AA de l'orange, derivees de la charte : */
  --orange-text: #FF5C00; /* Orange plein de la charte pour les boutons (CTA, reafficher) */
  --orange-soft: #FFC2A0; /* Orange accent sur fond bleu : 4.98:1 sur --blue */
  --white: #ffffff;
  --ink: #3F12FC;    /* Encre bleue sur fond clair */
  --paper: #ffffff;
  --paper-soft: #f4f2ff; /* Voile bleute tres leger pour la respiration */
  --mono: "Office Code Pro", "Space Mono", "Courier New", monospace;
  /* Substitut de Gotham, RESERVE au logo REC! (logotype + baseline). */
  --display: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.6;
  color: var(--white);
  background: var(--blue);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums; /* horaires et dates alignes, pas de saut */
}

/* Lien d'evitement clavier / lecteur d'ecran */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--blue);
  color: var(--white);
  padding: 12px 18px;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  font-weight: 700;
}
.skip-link:focus { left: 8px; top: 8px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
  /* Le contenu anime au scroll reste pleinement visible. */
  .reveal { opacity: 1 !important; transform: none !important; }
  .aurora-blob { animation: none !important; }
}

a { color: inherit; }

img { max-width: 100%; display: block; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.measure { max-width: 70ch; }

/* ------------------------------------------------------------------ */
/* Decor : blobs organiques flous + trame de points modulaire          */
/* ------------------------------------------------------------------ */
.decor {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.blob {
  position: absolute;
  width: 46vw;
  height: 46vw;
  max-width: 560px;
  max-height: 560px;
  border-radius: 48% 52% 60% 40% / 50% 44% 56% 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: float 22s ease-in-out infinite;
}
/* Formes organiques orange (couleur opposee au fond bleu), degrade vers transparence. */
.blob-a { top: -8%; right: -6%; background: radial-gradient(circle at 30% 30%, var(--orange) 0%, var(--orange) 22%, transparent 72%); }
.blob-b { bottom: -12%; left: -8%; background: radial-gradient(circle at 60% 40%, var(--orange) 0%, var(--orange) 22%, transparent 72%); animation-delay: -8s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(2%, 3%) scale(1.08); }
}

.dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(currentColor 1.4px, transparent 1.4px);
  background-size: 26px 26px;
  opacity: 0.16;
  color: var(--white);
}

/* ------------------------------------------------------------------ */
/* Fond aurora granuleux facon affiche (duotone bleu / orange + grain) */
/* ------------------------------------------------------------------ */
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; background: var(--blue); }
.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  will-change: transform;
  mix-blend-mode: normal;
}
/* Gros blobs orange et bleus qui derivent lentement, comme l'aplat de l'affiche.
   Le coeur du halo est un aplat plein de l'orange charte #FF5C00 (var --orange). */
.aurora-blob.a1 { width: 60vw; height: 60vw; top: -16%; left: -10%; background: radial-gradient(circle at 40% 40%, var(--orange) 0%, var(--orange) 24%, rgba(255,92,0,0) 70%); opacity: 1; animation: drift1 26s ease-in-out infinite; }
.aurora-blob.a2 { width: 52vw; height: 52vw; top: 6%; right: -12%; background: radial-gradient(circle at 50% 50%, var(--orange) 0%, var(--orange) 22%, rgba(255,92,0,0) 68%); opacity: 1; animation: drift2 32s ease-in-out infinite; }
.aurora-blob.a3 { width: 48vw; height: 48vw; bottom: -18%; left: 18%; background: radial-gradient(circle at 50% 50%, var(--orange) 0%, var(--orange) 22%, rgba(255,92,0,0) 66%); opacity: 1; animation: drift3 29s ease-in-out infinite; }
.aurora-blob.a4 { width: 40vw; height: 40vw; top: 32%; left: 30%; background: radial-gradient(circle at 50% 50%, #5a2bff 0%, rgba(90,43,255,0) 66%); opacity: 0.8; animation: drift2 36s ease-in-out infinite reverse; }
.aurora-blob.a5 { width: 44vw; height: 44vw; bottom: -10%; right: 8%; background: radial-gradient(circle at 50% 50%, #2c0bb8 0%, rgba(44,11,184,0) 66%); opacity: 0.75; animation: drift1 34s ease-in-out infinite reverse; }
.aurora-grain {
  position: absolute;
  inset: -20%;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScyMDAnIGhlaWdodD0nMjAwJz48ZmlsdGVyIGlkPSduJz48ZmVUdXJidWxlbmNlIHR5cGU9J2ZyYWN0YWxOb2lzZScgYmFzZUZyZXF1ZW5jeT0nMC44MicgbnVtT2N0YXZlcz0nMicgc3RpdGNoVGlsZXM9J3N0aXRjaCcvPjxmZUNvbG9yTWF0cml4IHR5cGU9J3NhdHVyYXRlJyB2YWx1ZXM9JzAnLz48L2ZpbHRlcj48cmVjdCB3aWR0aD0nMTAwJScgaGVpZ2h0PScxMDAlJyBmaWx0ZXI9J3VybCgjbiknLz48L3N2Zz4=");
  background-repeat: repeat;
  opacity: 0.38;
  mix-blend-mode: soft-light;
  animation: grain 6s steps(6) infinite;
}
@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(6%, 5%) scale(1.12); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-7%, 4%) scale(1.1); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0) scale(1.05); } 50% { transform: translate(5%, -6%) scale(0.95); } }
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -4%); }
  60% { transform: translate(-3%, -3%); }
  80% { transform: translate(4%, 2%); }
  100% { transform: translate(0, 0); }
}

/* Variante douce de l'aurora : meme style granuleux que le hero, applique aux
   sections (a propos, programme, infos) et au footer. Halos orange peripheriques
   et attenues + grain statique : le texte blanc reste lisible, sans cout de perf. */
.aurora-soft .aurora-blob { animation: none; opacity: 0.34; }
.aurora-soft .aurora-blob.a1 { background: radial-gradient(circle at 40% 40%, var(--orange) 0%, rgba(255,92,0,0) 60%); }
.aurora-soft .aurora-blob.a3 { background: radial-gradient(circle at 50% 50%, var(--orange) 0%, rgba(255,92,0,0) 58%); }
.aurora-soft .aurora-blob.a4 { opacity: 0.5; }
.aurora-soft .aurora-grain { animation: none; opacity: 0.3; }

/* ------------------------------------------------------------------ */
/* Revelations au scroll (motion UX) : opacite + glissement                */
/* ------------------------------------------------------------------ */
/* L'etat masque ne s'applique que si JavaScript est actif (classe .js sur
   <html>), pour que le contenu reste visible sans JS. */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ */
/* Logo                                                                 */
/* ------------------------------------------------------------------ */
.logo { text-decoration: none; display: inline-flex; flex-direction: column; line-height: 1; flex: none; }
/* Logo ACCRO (image blanche) dans l'en-tete. */
.logo-accro { height: clamp(26px, 4vw, 36px); width: auto; display: block; }
.site-header.scrolled .logo-accro { height: clamp(24px, 3.4vw, 30px); transition: height 0.3s var(--ease-out); }
/* Logo REC! : principalement en blanc (charte). Substitut Gotham. */
.logo-mark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--white);
}
.logo-mark.big { font-size: clamp(2.4rem, 8vw, 4rem); color: var(--white); }
.logo-bang { color: var(--orange); }
.logo-base {
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 5px;
  max-width: 24ch;
  color: var(--white);
  opacity: 0.9;
}

/* ------------------------------------------------------------------ */
/* En-tete sticky                                                       */
/* ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--blue);
  border-bottom: 2px solid var(--orange);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
/* Au defilement : ombre portee discrete et logo legerement reduit. */
.site-header.scrolled { box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
  transition: min-height 0.3s var(--ease-out);
}
.site-header.scrolled .header-inner { min-height: 62px; }
.site-header.scrolled .logo-mark { font-size: 1.35rem; transition: font-size 0.3s var(--ease-out); }
.site-header.scrolled .logo-base { opacity: 0; max-height: 0; margin-top: 0; overflow: hidden; transition: opacity 0.2s ease; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); }
.nav a {
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--white);
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.nav a:hover, .nav a:focus-visible { border-color: var(--orange); }
.nav a[aria-current="true"] { border-color: var(--orange); font-weight: 700; }
.nav-cta {
  background: var(--orange);
  color: var(--white) !important;
  padding: 10px 18px !important;
  border: 0 !important;
  font-weight: 700;
}
.nav-cta:hover { background: var(--white); color: var(--blue) !important; }

.nav-toggle {
  display: none;
  width: 48px; height: 48px;
  background: none; border: 2px solid var(--white);
  cursor: pointer; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--white); transition: transform 0.2s ease, opacity 0.2s ease; }

/* Groupe de droite : navigation + selecteur de langue + bouton menu. */
.header-end { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 26px); margin-left: auto; }
/* Selecteur de langue FR / EN / DE. */
.lang-switch { display: flex; border: 2px solid var(--white); flex: none; }
.lang-btn {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--white);
  background: transparent;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.4);
  padding: 8px 9px;
  min-width: 36px;
  min-height: 38px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.lang-btn:last-child { border-right: 0; }
.lang-btn:hover { background: rgba(255, 255, 255, 0.14); }
.lang-btn.is-active { background: var(--orange); color: var(--white); }

/* Masquage du bandeau et des artefacts Google Translate (widget custom). */
#google_translate_element, .goog-te-gadget, .goog-te-banner-frame,
.goog-te-balloon-frame, #goog-gt-tt, .goog-tooltip { display: none !important; }
.goog-te-banner-frame.skiptranslate, iframe.skiptranslate { display: none !important; }
body { top: 0 !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
font[style] { background: transparent !important; box-shadow: none !important; }

/* ------------------------------------------------------------------ */
/* Bouton Sommaire (recap de navigation) + panneau lateral              */
/* ------------------------------------------------------------------ */
.summary-toggle {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
  width: 44px; height: 40px; padding: 0; cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.summary-toggle:hover, .summary-toggle:focus-visible { background: var(--orange); border-color: var(--orange); }
.summary-ic { flex: none; }

.summary-panel { position: fixed; inset: 0; z-index: 200; }
.summary-panel[hidden] { display: none; }
.summary-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); opacity: 0; transition: opacity 0.3s ease; }
body.summary-open .summary-scrim { opacity: 1; }
.summary-inner {
  position: absolute; top: 0; left: 0; bottom: 0;
  width: min(440px, 90vw);
  background: var(--blue);
  border-right: 2px solid var(--orange);
  padding: clamp(22px, 4vw, 40px);
  display: flex; flex-direction: column; gap: 22px;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.34s var(--ease-out);
  box-shadow: 14px 0 44px rgba(0, 0, 0, 0.32);
}
body.summary-open .summary-inner { transform: none; }
.summary-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.summary-title { font-family: var(--mono); text-transform: uppercase; font-weight: 700; letter-spacing: 0.08em; font-size: 0.9rem; color: var(--orange-soft); margin: 0; }
.summary-close { background: transparent; border: 2px solid var(--white); color: var(--white); font-family: var(--mono); text-transform: uppercase; font-weight: 700; font-size: 0.72rem; letter-spacing: 0.04em; padding: 8px 14px; cursor: pointer; transition: background 0.2s ease, border-color 0.2s ease; }
.summary-close:hover, .summary-close:focus-visible { background: var(--orange); border-color: var(--orange); }
.summary-nav { display: flex; flex-direction: column; }
.summary-link { display: flex; align-items: baseline; gap: 14px; text-decoration: none; color: var(--white); font-family: var(--mono); text-transform: uppercase; font-weight: 700; font-size: clamp(1.15rem, 3vw, 1.5rem); letter-spacing: 0.01em; padding: 15px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.16); transition: color 0.2s ease, padding-left 0.25s var(--ease-out); }
.summary-link:hover, .summary-link:focus-visible { color: var(--orange-soft); padding-left: 8px; }
.summary-num { font-size: 0.8rem; color: var(--orange-soft); }
.summary-subs { display: flex; flex-direction: column; padding: 4px 0 8px 34px; }
.summary-sub { text-decoration: none; color: var(--white); opacity: 0.88; font-size: 0.88rem; padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); transition: color 0.2s ease, opacity 0.2s ease, padding-left 0.2s ease; }
.summary-sub:hover, .summary-sub:focus-visible { color: var(--orange-soft); opacity: 1; padding-left: 6px; }
.summary-foot { margin-top: auto; }
.summary-foot .btn { width: 100%; text-align: center; }

/* ------------------------------------------------------------------ */
/* Boutons                                                              */
/* ------------------------------------------------------------------ */
.btn {
  position: relative;
  display: inline-block;
  overflow: hidden;
  z-index: 0;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  padding: 15px 26px;
  border: 2px solid currentColor;
  transition: transform 0.18s var(--ease-out), color 0.25s ease, box-shadow 0.25s ease;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s var(--ease-out);
  z-index: -1;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 10px 0 -4px rgba(0,0,0,0.18); }
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); }
.btn-accent { background: var(--orange-text); color: var(--white); border-color: var(--orange-text); }
.btn-accent:hover, .btn-accent:focus-visible { color: var(--orange-text); }
.btn-ghost { background: transparent; color: var(--white); border-color: var(--white); }
.btn-ghost:hover, .btn-ghost:focus-visible { color: var(--blue); }

/* ------------------------------------------------------------------ */
/* Hero facon affiche (masthead REC!, duotone granuleux)                */
/* ------------------------------------------------------------------ */
.hero {
  position: relative;
  background: var(--blue);
  color: var(--white);
  overflow: hidden;
}
.hero-inner {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Gouttiere horizontale conservee (sinon le contenu colle aux bords < 1180px). */
  padding: clamp(96px, 16vh, 200px) var(--gutter) clamp(72px, 12vh, 140px);
}
.hero-presente { display: flex; align-items: baseline; gap: 12px; margin: 0 0 clamp(20px, 4vw, 40px); }
.accro-mark { font-family: var(--display); font-weight: 700; font-size: 1.4rem; text-transform: lowercase; letter-spacing: -0.01em; }
.hero-presente-txt { font-style: italic; font-size: 0.95rem; opacity: 0.92; }
/* Logo officiel REC! blanc (remplace le texte du masthead). */
.hero-logo-wrap { margin: 0; max-width: min(720px, 92%); }
.hero-logo { width: 100%; height: auto; display: block; }
.hero-punch {
  font-size: clamp(1.05rem, 2.6vw, 1.7rem);
  margin: clamp(26px, 5vw, 52px) 0 0;
  max-width: 38ch;
}
/* Les 3 temps forts en timeline : progression transfrontalier > europeen > grand public. */
.hero-temps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 26px);
  margin: clamp(32px, 5vw, 64px) 0 0;
  counter-reset: temps;
}
.temps-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 7px;
  text-decoration: none;
  color: var(--white);
  border-top: 3px solid var(--orange);
  padding: 16px 4px 14px;
  transition: background 0.3s ease, padding 0.3s var(--ease-out), border-color 0.3s ease;
}
/* Fleche de progression entre les etapes (cache sur la derniere). */
.temps-step::after {
  content: "";
  position: absolute;
  top: -3px;
  right: -1px;
  width: 0; height: 0;
  opacity: 0;
}
.temps-step:hover, .temps-step:focus-visible { background: rgba(255, 255, 255, 0.08); padding-left: 12px; }
.temps-num { font-family: var(--display); font-weight: 800; font-size: 1.1rem; color: var(--orange-soft); }
.temps-name { font-family: var(--mono); font-weight: 700; text-transform: uppercase; font-size: clamp(1.05rem, 2.4vw, 1.45rem); letter-spacing: 0.01em; line-height: 1.05; }
.temps-dates { font-weight: 700; font-size: clamp(0.95rem, 1.8vw, 1.15rem); }
.temps-desc { font-size: 0.84rem; line-height: 1.5; opacity: 0.92; }
.temps-go { margin-top: 4px; text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.06em; font-weight: 700; color: var(--orange-soft); }
/* Frise des lieux dans le hero (contenue, au-dessus des boutons). */
.hero-frise-label { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.78rem; font-weight: 700; color: var(--orange-soft); margin: clamp(28px, 4vw, 48px) 0 12px; }
.hero-frise { margin: 0; }
.hero-frise .marquee-track { animation-duration: 42s; }
/* Seconde frise : defilement en sens inverse de la premiere. */
.hero-frise-rev .marquee-track { animation-direction: reverse; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: clamp(26px, 4vw, 48px) 0 0; }
.hero-scroll {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(20px, 4vh, 40px);
  width: 22px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  display: block;
}
.hero-scroll-dot { position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; background: var(--white); border-radius: 2px; animation: scrolldot 1.8s var(--ease-out) infinite; }
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 70% { opacity: 1; transform: translateY(12px); } 100% { opacity: 0; transform: translateY(14px); } }

/* ------------------------------------------------------------------ */
/* Sections generiques                                                  */
/* ------------------------------------------------------------------ */
/* Bichromie stricte : toutes les sections sont bleues, texte blanc. Une
   bordure orange superieure marque la separation (forme = couleur opposee). */
.section { position: relative; padding: clamp(56px, 9vw, 120px) 0; overflow: hidden; }
.section-light, .section-dark { background: var(--blue); color: var(--white); }
.section + .section { border-top: 2px solid var(--orange); }
.section > .wrap { position: relative; z-index: 1; }

.eyebrow { text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.76rem; margin: 0 0 14px; color: var(--orange-soft); font-weight: 700; }
.eyebrow.on-dark { color: var(--orange-soft); }
.section-title { font-family: var(--mono); font-weight: 700; text-transform: uppercase; font-size: clamp(1.6rem, 4.2vw, 2.7rem); line-height: 1.1; margin: 0 0 24px; letter-spacing: 0.01em; color: var(--white); }
.section-title.on-dark, .section-intro.on-dark { color: var(--white); }
.section-intro { max-width: 56ch; margin: 0 0 40px; }
.on-dark { color: var(--white); }
.institutional { font-weight: 700; color: var(--orange-soft); margin-top: 32px; }

/* ------------------------------------------------------------------ */
/* Frises defilantes (parcours, lieux) : pastilles aux couleurs REC!    */
/* ------------------------------------------------------------------ */
.frise {
  position: relative;
  z-index: 1;
  overflow: hidden;
  /* Fondu des bords pour un defile elegant. */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
/* En bandeau pleine largeur (frise des parcours). */
.frise-band {
  background: var(--blue);
  border-top: 2px solid var(--orange);
  border-bottom: 2px solid var(--orange);
  padding: 16px 0;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 14px;
  width: max-content;
  animation: marquee 52s linear infinite;
}
.frise:hover .marquee-track,
.frise:focus-within .marquee-track { animation-play-state: paused; }
/* Pastille REC! : contour orange, texte blanc (les boutons se remplissent au survol). */
.m-chip {
  flex: none;
  font-family: var(--mono);
  text-transform: uppercase;
  font-weight: 700;
  font-size: clamp(0.78rem, 1.5vw, 0.98rem);
  letter-spacing: 0.04em;
  color: var(--white);
  background: transparent;
  border: 2px solid var(--orange);
  padding: 8px 16px;
  white-space: nowrap;
}
.m-chip-btn { cursor: pointer; transition: background 0.2s ease, color 0.2s ease; }
.m-chip-btn:hover, .m-chip-btn:focus-visible { background: var(--orange); color: var(--white); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ------------------------------------------------------------------ */
/* Navigation du programme : onglets temps forts + descripteur + affinage */
/* ------------------------------------------------------------------ */
.temps-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 2px solid var(--white);
  margin: 0 0 0;
}
.temps-tab {
  flex: 1 1 0;
  min-width: 150px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  font-family: var(--mono);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(0.8rem, 1.5vw, 0.96rem);
  letter-spacing: 0.03em;
  color: var(--white);
  background: transparent;
  border: 0;
  border-right: 2px solid rgba(255, 255, 255, 0.4);
  padding: 16px 14px;
  min-height: 56px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.temps-tab:last-child { border-right: 0; }
.temps-tab:hover { background: rgba(255, 255, 255, 0.1); }
.temps-tab.is-active { background: var(--orange); color: var(--white); }
.tab-count { font-size: 0.74rem; opacity: 0.85; font-weight: 700; }
.temps-tab.is-active .tab-count { opacity: 1; }
/* Descripteur du temps fort actif : dates + public concerne. */
.temps-descriptor {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
  border: 2px solid var(--white);
  border-top: 0;
  padding: 14px 20px;
  margin: 0 0 22px;
}
.td-dates { font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.9rem; color: var(--orange-soft); }
.td-public { font-size: 0.9rem; opacity: 0.95; }
.refine {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto auto;
  gap: 16px;
  align-items: end;
  margin-bottom: 30px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.08em; }

/* Menu deroulant personnalise (charte REC!) : bouton + liste stylee + scrollbar. */
.cselect { position: relative; }
.cselect-btn {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-family: var(--mono); font-size: 0.92rem; text-align: left;
  background: var(--white); color: var(--blue);
  border: 2px solid var(--white);
  padding: 12px 14px; min-height: 48px; cursor: pointer;
}
.cselect-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cselect-caret { flex: none; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid var(--blue); transition: transform 0.2s ease; }
.cselect.open .cselect-caret { transform: rotate(180deg); }
.cselect-list {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 60;
  margin: 0; padding: 0; list-style: none;
  background: var(--blue); border: 2px solid var(--orange);
  max-height: 320px; overflow-y: auto;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38);
  scrollbar-width: thin; scrollbar-color: var(--orange) var(--blue);
}
.cselect-list[hidden] { display: none; }
.cselect-opt {
  font-family: var(--mono); font-size: 0.88rem; color: var(--white);
  padding: 11px 14px; cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.15s ease, color 0.15s ease;
}
.cselect-opt:last-child { border-bottom: 0; }
.cselect-opt:hover { background: var(--orange); color: var(--white); }
.cselect-opt.is-active { background: rgba(255, 255, 255, 0.12); color: var(--orange-soft); }
/* Barre de defilement de la liste, aux couleurs REC! */
.cselect-list::-webkit-scrollbar { width: 10px; }
.cselect-list::-webkit-scrollbar-track { background: var(--blue); }
.cselect-list::-webkit-scrollbar-thumb { background: var(--orange); border: 2px solid var(--blue); }
.cselect-btn:focus-visible { outline: 3px solid var(--orange-soft); outline-offset: 2px; }
.btn-reset {
  font-family: var(--mono);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  font-weight: 700;
  padding: 13px 20px;
  min-height: 48px;
  background: var(--orange-text);
  color: var(--white);
  border: 2px solid var(--orange-text);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn-reset:hover { background: var(--white); color: var(--orange-text); }
.result-count { align-self: center; text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.06em; margin: 0; font-weight: 700; color: var(--orange-soft); }
.no-result {
  border: 2px solid var(--orange);
  padding: 28px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.92rem;
}

/* ------------------------------------------------------------------ */
/* Agenda : le programme groupe jour par jour                           */
/* ------------------------------------------------------------------ */
.agenda { display: flex; flex-direction: column; gap: clamp(36px, 5vw, 60px); }
.day-group[hidden] { display: none; }
.day-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 14px;
  padding-bottom: 14px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--orange);
}
.day-head-name { font-family: var(--mono); font-weight: 700; text-transform: uppercase; font-size: clamp(1.15rem, 2.6vw, 1.7rem); letter-spacing: 0.01em; margin: 0; }
.day-head-temps { text-transform: uppercase; font-size: 0.7rem; letter-spacing: 0.08em; font-weight: 700; color: var(--blue); background: var(--orange-soft); padding: 4px 10px; }
.day-head-count { margin-left: auto; font-size: 0.78rem; font-weight: 700; opacity: 0.85; }

/* ------------------------------------------------------------------ */
/* Grille de cartes                                                     */
/* ------------------------------------------------------------------ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(16px, 1.6vw, 22px);
}
/* Cartes : panneaux bleus bordes, texte blanc, accent orange (bichromie). */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.22);
  min-height: 100%;
  overflow: hidden;
  transition: transform 0.22s var(--ease-out), background 0.22s ease, border-color 0.22s ease;
}
.card:hover, .card:focus-visible {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--orange);
}
/* Visuel portrait (4:5, format Instagram). aspect-ratio reserve l'espace, pas de saut de mise en page. */
.card-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--blue);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s var(--ease-out); }
.card:hover .card-media img, .card:focus-visible .card-media img { transform: scale(1.06); }
/* Categorie en pastille orange, posee en bas du visuel. */
.card-cat {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: var(--orange);
  color: var(--white);
  text-transform: uppercase;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  font-weight: 700;
  padding: 5px 10px;
}
.card-body { display: flex; flex-direction: column; gap: 10px; padding: 20px; flex-grow: 1; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-time { display: inline-flex; align-items: center; gap: 7px; font-size: 0.82rem; font-weight: 700; color: var(--orange-soft); }
.card-parcours { text-transform: uppercase; font-size: 0.64rem; letter-spacing: 0.06em; font-weight: 700; opacity: 0.78; text-align: right; }
.ic { flex: none; }
.card-title {
  font-size: 1.08rem; line-height: 1.22; margin: 0; text-transform: uppercase; letter-spacing: 0.005em;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card-hook {
  font-size: 0.88rem; line-height: 1.5; margin: 0; flex-grow: 1; opacity: 0.92;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 4px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.card-place { display: inline-flex; align-items: center; gap: 7px; font-size: 0.78rem; font-weight: 700; min-width: 0; }
.card-place > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-arrow { flex: none; font-size: 1.25rem; line-height: 1; color: var(--orange-soft); transition: transform 0.25s var(--ease-out); }
.card:hover .card-arrow, .card:focus-visible .card-arrow { transform: translateX(5px); color: var(--orange); }

/* ------------------------------------------------------------------ */
/* Infos pratiques                                                      */
/* ------------------------------------------------------------------ */
.infos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.info-block { background: rgba(255, 255, 255, 0.05); border: 2px solid rgba(255, 255, 255, 0.28); padding: 26px; }
.info-block h3 { text-transform: uppercase; font-size: 0.86rem; letter-spacing: 0.05em; margin: 0 0 10px; color: var(--orange-soft); }
.info-block p { margin: 0; font-size: 0.92rem; }

/* ------------------------------------------------------------------ */
/* Page evenement                                                       */
/* ------------------------------------------------------------------ */
.event-hero { position: relative; background: var(--blue); color: var(--white); overflow: hidden; padding: clamp(40px, 7vw, 84px) 0 clamp(36px, 6vw, 68px); }
.event-hero > .wrap { position: relative; z-index: 1; }
.event-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) clamp(280px, 36%, 420px); gap: clamp(28px, 5vw, 56px); align-items: center; }
.event-hero-text { min-width: 0; }
/* Visuel portrait (4:5, format Instagram) de la fiche evenement. */
.event-hero-media { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border: 2px solid var(--white); background: rgba(255, 255, 255, 0.08); }
.event-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.crumb { text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.06em; margin: 0 0 22px; }
.crumb a { color: var(--white); text-decoration: none; border-bottom: 1px solid var(--orange); }
.event-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.event-title { font-family: var(--mono); font-weight: 700; text-transform: uppercase; font-size: clamp(1.8rem, 4.6vw, 3.1rem); line-height: 1.08; margin: 0 0 18px; letter-spacing: 0.01em; }
.event-hook { font-size: clamp(1rem, 2.2vw, 1.25rem); max-width: 56ch; margin: 0 0 26px; }
.event-quick { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 26px; padding: 0; margin: 0; }
.event-quick li { text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.04em; font-weight: 700; border-left: 3px solid var(--orange); padding-left: 12px; }

.event-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.event-main { min-width: 0; }
.event-block { margin-bottom: 44px; }
.event-block h2 { text-transform: uppercase; font-size: 1.15rem; letter-spacing: 0.03em; margin: 0 0 18px; padding-bottom: 12px; border-bottom: 2px solid var(--orange); }
.event-block p { margin: 0 0 16px; max-width: 70ch; }
.discover-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.discover-list li { position: relative; padding-left: 30px; max-width: 68ch; }
.discover-list li::before { content: "!"; position: absolute; left: 0; top: 0; font-weight: 700; color: var(--orange-soft); }
.audience { background: rgba(255, 255, 255, 0.05); border-left: 4px solid var(--orange); padding: 24px; }
.audience h2 { border-color: var(--orange); }
.audience p { margin: 0; }

/* Fiche pratique laterale */
.event-aside { position: sticky; top: 96px; }
.fiche { border: 2px solid rgba(255, 255, 255, 0.3); padding: 26px; background: rgba(255, 255, 255, 0.05); }
.fiche-title { text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.08em; font-weight: 700; color: var(--orange-soft); margin: 0 0 18px; }
.fiche-facts { margin: 0 0 22px; }
.fact { padding: 12px 0; border-top: 1.5px solid rgba(255, 255, 255, 0.2); }
.fact:first-child { border-top: 0; padding-top: 0; }
.fact dt { text-transform: uppercase; font-size: 0.68rem; letter-spacing: 0.07em; opacity: 0.75; }
.fact dd { margin: 5px 0 0; font-weight: 700; font-size: 0.92rem; }
.fiche-cta { width: 100%; text-align: center; }

/* Navigation precedent / suivant */
.event-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 12px; }
.event-nav-link { display: flex; flex-direction: column; gap: 6px; text-decoration: none; border: 2px solid rgba(255, 255, 255, 0.3); padding: 18px; color: var(--white); transition: background 0.2s ease, border-color 0.2s ease; min-height: 44px; }
.event-nav-link.next { text-align: right; }
.event-nav-link:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--orange); }
.event-nav-link.disabled { border-color: rgba(255, 255, 255, 0.12); pointer-events: none; }
.event-nav-dir { text-transform: uppercase; font-size: 0.7rem; letter-spacing: 0.08em; font-weight: 700; color: var(--orange-soft); }
.event-nav-title { font-size: 0.92rem; line-height: 1.25; }

/* ------------------------------------------------------------------ */
/* Pied de page                                                         */
/* ------------------------------------------------------------------ */
.site-footer { position: relative; background: var(--blue); color: var(--white); overflow: hidden; padding: clamp(56px, 8vw, 96px) 0 40px; }
.site-footer > .wrap { position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(28px, 5vw, 56px); }
/* Bloc ACCRO du footer : logo + phrase + lien. */
.footer-accro { height: clamp(34px, 6vw, 48px); width: auto; display: block; }
.footer-base { font-size: 0.92rem; line-height: 1.55; margin: 18px 0 12px; max-width: 32ch; }
.footer-link { display: inline-block; text-decoration: none; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.05em; font-weight: 700; color: var(--orange-soft); border-bottom: 2px solid var(--orange); padding-bottom: 2px; transition: color 0.2s ease; }
.footer-link:hover, .footer-link:focus-visible { color: var(--white); }
.footer-meta { font-weight: 700; }
.footer-title { text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.08em; color: var(--orange-soft); font-weight: 700; margin: 0 0 12px; }
.footer-col p { font-size: 0.9rem; margin: 0 0 12px; max-width: 36ch; }
.footer-nav { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a { text-decoration: none; text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.05em; border-bottom: 1px solid var(--orange); width: fit-content; padding-bottom: 2px; }
/* Bandeau partenaires institutionnels : panneau blanc (logos en couleurs
   officielles), pose sobrement au-dessus de la mention legale. */
/* Bandeau partenaires : image transparente fournie, posee directement (sans panneau). */
.footer-partners {
  background: transparent;
  margin-top: clamp(40px, 6vw, 64px);
  display: flex;
  justify-content: center;
}
.footer-partners img { width: 100%; max-width: 820px; height: auto; display: block; }
.footer-bottom { margin-top: clamp(24px, 4vw, 36px); padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.25); }
.footer-bottom p { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.05em; margin: 0; opacity: 0.8; }

/* Tout le site est sur fond bleu : anneau de focus orange clair (4.98:1 sur --blue) */
:focus-visible { outline: 3px solid var(--orange-soft); outline-offset: 3px; }
/* Menu mobile (nav sur fond bleu) : anneau de focus orange clair */
@media (max-width: 720px) { .nav a:focus-visible { outline-color: var(--orange-soft); } }

/* ------------------------------------------------------------------ */
/* Responsive                                                           */
/* ------------------------------------------------------------------ */
@media (max-width: 920px) {
  .event-layout { grid-template-columns: 1fr; }
  .event-hero-grid { grid-template-columns: 1fr; }
  .event-hero-media { order: -1; max-width: 420px; }
  .event-aside { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .refine { grid-template-columns: 1fr 1fr; }
  .refine .btn-reset { grid-column: 1 / -1; }
  .hero-temps { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--blue);
    padding: 8px var(--gutter) 24px;
    transform: translateY(-120%);
    transition: transform 0.25s ease;
    border-bottom: 2px solid var(--orange);
  }
  body.nav-open .nav { transform: translateY(0); }
  .nav a { color: var(--white); padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.2); }
  .nav a:hover { border-color: var(--orange); }
  .nav-cta { text-align: center; margin-top: 12px; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero-temps { grid-template-columns: 1fr; }
  /* Header de hauteur stable sur mobile : le menu fixe reste aligne. */
  .site-header.scrolled .header-inner { min-height: 76px; }
  .site-header.scrolled .logo-base { opacity: 0.85; max-height: none; }
  .header-inner { gap: 10px; }
  .refine { grid-template-columns: 1fr; }
  /* Onglets temps forts : empiles en pleine largeur sur mobile. */
  .temps-tabs { flex-direction: column; }
  .temps-tab { border-right: 0; border-bottom: 2px solid rgba(255, 255, 255, 0.4); justify-content: space-between; }
  .temps-tab:last-child { border-bottom: 0; }
  .event-nav { grid-template-columns: 1fr; }
  .event-nav-link.next { text-align: left; }
  .footer-grid { grid-template-columns: 1fr; }
}
