/* ============================================================
   UNDERCOVER - LA GRANDE FINALE
   Refonte v1
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Backgrounds */
  --bg-dark: #090112;
  --bg-dark-deep: #090112;
  --bg-light: #F9F5FF;

  /* Ink */
  --ink-light: #F9F5FF;
  --ink-dark: #090112;

  /* Brand */
  --violet: #752EF3;
  --violet-bright: #AA49F9;
  --mauve: #DBB4FF;
  --mauve-soft: #F9F5FF;
  --orange: #FF5E1F;

  /* Legacy aliases for any leftover refs */
  --black: var(--bg-dark);
  --black-deep: var(--bg-dark-deep);
  --offwhite: var(--ink-light);
  --offwhite-pure: var(--bg-light);

  --slant: 5vw;
  --slant-min: 50px;
  --slant-max: 100px;

  --container: 1240px;

  --ease-out: cubic-bezier(.16,1,.3,1);
  --ease-soft: cubic-bezier(.25,.46,.45,.94);
}

/* ============================================================
   FONTS
   Real brand fonts are Coolvetica + Articulat CF (proprietary).
   Drop the .woff2 files at assets/fonts/ and they'll be picked up;
   otherwise we fall back to Bebas Neue + Outfit (Google Fonts).
   ============================================================ */
@font-face {
  font-family: 'Coolvetica';
  src: url('../assets/fonts/coolvetica.woff2') format('woff2'),
       url('../assets/fonts/coolvetica.woff')  format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Articulat CF';
  src: url('../assets/fonts/articulat-cf-regular.woff2') format('woff2'),
       url('../assets/fonts/articulat-cf-regular.woff')  format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Articulat CF';
  src: url('../assets/fonts/articulat-cf-medium.woff2') format('woff2'),
       url('../assets/fonts/articulat-cf-medium.woff')  format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Articulat CF';
  src: url('../assets/fonts/articulat-cf-bold.woff2') format('woff2'),
       url('../assets/fonts/articulat-cf-bold.woff')  format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg-dark);
  color: var(--ink-light);
  font-family: 'Articulat CF', 'Outfit', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 2rem; }

/* Section base */
.section {
  position: relative;
  padding: 5rem 0 5rem;
}
.section-dark      { background: var(--bg-dark); }
.section-light     { background: var(--bg-light); color: var(--ink-dark); }

/* OBLIQUE TRANSITION
   Same diagonal direction throughout: lower on left, higher on right.
   Combined with negative margin so the next section appears to slide over. */
.section-slant-top {
  clip-path: polygon(0 var(--slant), 100% 0, 100% calc(100% + 1px), 0 calc(100% + 1px));
  margin-top: calc(var(--slant) * -1);
}

/* ============================================================
   HAMBURGER
   ============================================================ */
.hamburger {
  position: fixed;
  top: 1.5rem; left: 1.5rem;
  z-index: 200;
  width: 44px; height: 44px;
  background: none; border: none;
  cursor: pointer;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  gap: 7px;
  padding: 0;
  mix-blend-mode: difference;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: #FFFFFF;
  transition: transform .3s var(--ease-out), opacity .2s;
}
.hamburger:hover { opacity: 0.7; }

/* ============================================================
   TOPBAR (logo + CTA)
   ============================================================ */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.3rem 2rem 1.3rem 5rem;
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.topbar-logo {
  display: block;
  height: 57px;
  margin: 0 auto;
  position: absolute;
  left: 50%;
  top: 1.4rem;
  transform: translateX(-50%);
}
.topbar-logo img { height: 100%; width: auto; }
.topbar-cta {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.75rem 1.4rem;
  background: var(--violet);
  color: var(--ink-light);
  border-radius: 999px;
  transition: background .25s, transform .25s, color .25s, box-shadow .25s;
}
.topbar-cta:hover {
  background: var(--violet-bright);
  color: var(--ink-light);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(117,46,243,0.35);
}

/* ============================================================
   MENU OVERLAY (slides in from left)
   ============================================================ */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: var(--black-deep);
  transform: translateX(-100%);
  transition: transform .55s var(--ease-out);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.menu-overlay.open { transform: translateX(0); }
.menu-overlay::before {
  content: '';
  position: absolute;
  top: 0; left: -10%;
  width: 60%; height: 100%;
  background: radial-gradient(ellipse at left center, rgba(130,76,255,0.18) 0%, transparent 70%);
  pointer-events: none;
}
/* When menu is open, hamburger must not capture clicks meant for the close button */
body.menu-open .hamburger { display: none; }

.menu-close {
  position: absolute;
  top: 1.5rem; left: 1.5rem;
  z-index: 10;
  width: 44px; height: 44px;
  background: none; border: none;
  color: var(--offwhite);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform .3s, color .3s;
}
.menu-close:hover { color: var(--mauve); transform: rotate(90deg); }
.menu-inner {
  position: relative;
  padding: 7rem 3rem 3rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  max-width: 1400px;
}
.menu-list {
  margin: auto 0;
}
.menu-list li {
  overflow: hidden;
  border-bottom: 1px solid rgba(245,243,240,0.08);
}
.menu-list a {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.1rem 0;
  font-family: 'Coolvetica', 'Bebas Neue', sans-serif;
  font-size: clamp(0.95rem, 2.25vw, 1.9rem);
  letter-spacing: 0.04em;
  color: var(--offwhite);
  line-height: 1;
  transition: color .3s, transform .4s var(--ease-out), padding-left .4s var(--ease-out);
  text-transform: uppercase;
}
.menu-list a::before {
  content: attr(data-num);
  font-family: 'Outfit', sans-serif;
  font-size: 2.25rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: rgba(245,243,240,0.3);
  width: 3.5rem;
  flex-shrink: 0;
  transition: color .3s;
  line-height: 1;
}
.menu-list a:hover {
  color: var(--mauve);
  padding-left: 1rem;
}
.menu-list a:hover::before { color: var(--violet); }

.menu-foot {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(245,243,240,0.08);
}
.menu-foot-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(245,243,240,0.4);
  margin-bottom: 0.6rem;
}
.menu-foot-value {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--offwhite);
  line-height: 1.5;
}
.menu-foot-link { transition: color .3s; }
.menu-foot-link:hover { color: var(--mauve); }
.menu-foot-socials { display: flex; gap: 1.5rem; }
.menu-foot-socials a {
  font-size: 0.9rem;
  position: relative;
  transition: color .3s;
}
.menu-foot-socials a:hover { color: var(--mauve); }

body.menu-open { overflow: hidden; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-dark);
  padding: 7rem 2rem 8rem;
}
.hero-eclipse {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
}
.hero-eclipse img {
  width: min(95vh, 95vw);
  height: min(95vh, 95vw);
  max-width: 1100px;
  max-height: 1100px;
  object-fit: cover;
  filter: brightness(1.1) contrast(1.05);
  mix-blend-mode: lighten;
}
.hero-eclipse::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, var(--bg-dark) 75%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
    transform: translateY(1rem);
}
.hero-title {
  font-family: 'Coolvetica', 'Bebas Neue', sans-serif;
  /* Scale so each line fits without wrapping. nowrap on lines below. */
  font-size: clamp(2.8rem, 5.5vw, 5.06rem);
  letter-spacing: 0.005em;
  line-height: 0.95;
  color: #F9F5FF;
  font-weight: 400;
  margin-bottom: 2rem;
  text-transform: uppercase;
}
.hero-title-line { display: block; color: #F9F5FF; white-space: nowrap; }
.hero-meta {
  position: absolute;
  left: 50%;
  bottom: calc(5vw + 4rem);
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  font-size: clamp(0.78rem, 1.1vw, 0.95rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #F9F5FF;
  white-space: nowrap;
}
.hero-meta strong { color: #F9F5FF; font-weight: 700; }
.hero-meta-sep {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--violet-bright);
}
.hero-scroll {
  position: absolute;
  bottom: calc(3vw + 0.5rem);
  left: 50%;
  z-index: 5;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(249,245,255,0.5);
  z-index: 3;
  transition: color .3s;
}
.hero-scroll:hover { color: var(--mauve); }
.hero-scroll svg { animation: bobble 2.4s ease-in-out infinite; }
@keyframes bobble {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ============================================================
   BUTTONS
   Default = dark-bg context (white bg / black text).
   .btn-primary inside .section-light or .on-light = violet bg / white text.
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: 'Articulat CF', 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 1.1rem 2.4rem;
  background: #FFFFFF;
  color: var(--ink-dark);
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background .25s, color .25s, transform .25s, box-shadow .25s;
}
.btn-primary:hover {
  background: var(--violet-bright);
  color: var(--ink-light);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(170,73,249,0.4);
}
.btn-primary svg { transition: transform .3s; }
.btn-primary:hover svg { transform: translateX(3px); }


/* Light-bg variant */
.section-light .btn-primary,
.btn-primary.on-light {
  background: var(--violet);
  color: var(--ink-light);
}
.section-light .btn-primary:hover,
.btn-primary.on-light:hover {
  background: var(--mauve);
  color: var(--ink-dark);
  box-shadow: 0 14px 40px rgba(219,180,255,0.5);
}

/* ============================================================
   COMMON TYPOGRAPHY
   ============================================================ */
.eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mauve);
  margin-bottom: 1.5rem;
  padding-left: 2.5rem;
  position: relative;
}
.eyebrow::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 1.8rem; height: 1px;
  background: var(--violet);
}
.eyebrow-dark { color: var(--violet); }
.eyebrow-dark::before { background: var(--violet); }
.eyebrow-orange { color: var(--orange); }
.eyebrow-orange::before { background: var(--orange); }

.title-display {
  font-family: 'Coolvetica', 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 5.5vw, 5rem);
  letter-spacing: 0.02em;
  line-height: 1.02;
  font-weight: 400;
  margin-bottom: 2rem;
  padding-bottom: 0.15em;
  text-wrap: balance;
}
.title-display em {
  font-style: normal;
  color: var(--violet);
  position: relative;
}
.title-italic {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-style: italic;
  color: var(--mauve);
  font-size: 0.7em;
  letter-spacing: -0.01em;
}
.section-light .title-italic { color: var(--violet); }

/* Violet rectangle behind title — the highlighter effect */
.title-highlight {
  position: relative;
  display: inline-block;
  isolation: isolate;
}
.title-highlight::before {
  content: '';
  position: absolute;
  left: -0.2em;
  right: -0.2em;
  top: 40%;
  bottom: 10%;
  /* On light bg: translucent violet so the highlighter pops against #F9F5FF */
  background: rgba(117, 46, 243, 0.32);
  z-index: -1;
}
.section-dark .title-highlight::before,
.section-dark-deep .title-highlight::before {
  background: var(--violet);
  opacity: 0.85;
}

.section-intro {
  font-size: 1.1rem;
  font-weight: 300;
  color: rgba(245,243,240,0.7);
  margin-bottom: 1.5rem;
  max-width: 50ch;
  line-height: 1.6;
}
.section-light .section-intro,
.section-intro-dark {
  color: rgba(13,13,18,0.7);
}
.section-intro-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head {
  text-align: center;
  margin-bottom: 5rem;
}
.section-head .title-display { margin-bottom: 1.5rem; }
.section-head .eyebrow { padding-left: 0; }
.section-head .eyebrow::before { display: none; }

/* ============================================================
   PROJET — UNDERCOVER C'EST QUOI
   ============================================================ */
.grid-2-projet {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 5rem;
  align-items: center;
}
.projet-text .title-display {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.2;
}
.video-frame {
  position: relative;
  z-index: 2;
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--black);
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 0 30px rgba(170, 73, 249, 0.5),
    0 0 70px rgba(170, 73, 249, 0.25),
    0 30px 80px rgba(0,0,0,0.15),
    0 0 0 1px rgba(130,76,255,0.25);
  transform: rotate(-1.5deg);
  transition: transform .5s var(--ease-out);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.projet-video:hover .video-frame { transform: rotate(0deg); }
.video-caption {
  margin-top: 1.5rem;
  font-size: 0.78rem;
  font-style: italic;
  color: rgba(13,13,18,0.55);
  text-align: center;
  letter-spacing: 0.02em;
}
.projet-paragraphs p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(13,13,18,0.78);
  margin-bottom: 1.2rem;
}
.projet-paragraphs p strong {
  color: var(--black);
  font-weight: 600;
}

/* ============================================================
   PROGRAMME
   ============================================================ */
.grid-2-programme {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 5rem;
  align-items: center;
}
.programme-text .title-display,
.finalistes-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.2;
  text-transform: uppercase;
  color: #F9F5FF;
}
#programme .title-highlight::before,
#finalistes .title-highlight::before {
  background: #AA49F9;
  opacity: 1;
}
#programme { padding-bottom: 2rem; }
#finalistes { padding-top: 3rem; }
#finalistes .section-head { margin-bottom: 3rem; }
#finalistes .section-head .title-display { margin-bottom: 0.5rem; }

/* JURY + ÉQUIPE — même traitement de titre (fond clair, texte sombre) */
.jury-equipe-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--ink-dark);
}
#jury .title-highlight::before,
#equipe .title-highlight::before {
  background: rgba(170, 73, 249, 0.32);
  opacity: 1;
}
#jury .section-head,
#equipe .section-head { margin-bottom: 3rem; }
#jury { padding-bottom: 2rem; }
#equipe { padding-top: 2rem; }
#jury .section-head .title-display,
#equipe .section-head .title-display { margin-bottom: 0.5rem; }



/* Section partenaires autonome — supprime la bordure top du bloc */
#partners .partners-block {
  border-top: none;
  padding-top: 0;
}
#equipe { padding-bottom: 3rem; }
#partners { padding-top: 3rem; }
.programme-text .title-display {
  margin-bottom: 0.5rem;   /* ← espace AVANT le sous-titre (sous le gros titre) */
}
.programme-text .timeline {
  margin-top: 0.5rem;    /* ← espace APRÈS le sous-titre */
}
.programme-text .timeline-item {
  padding: 1rem 0;       /* ← hauteur des cellules (était 1.8rem) */
}
.timeline { margin-top: 2.5rem; }
.timeline-item {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 2rem;
  padding: 1.8rem 0;
  border-bottom: 1px solid rgba(130,76,255,0.18);
  position: relative;
}
.timeline-item:last-child { border-bottom: none; }
.timeline-time {
  font-family: 'Coolvetica', 'Bebas Neue', sans-serif;
  font-size: 2.4rem;
  color: var(--mauve);
  letter-spacing: 0.04em;
  line-height: 1;
  align-self: center;
}
.timeline-item-final .timeline-time { color: #DBB4FF; }
#programme .timeline-time .title-highlight {
  color: #F9F5FF;
}
#programme .timeline-time .title-highlight::before {
  background: #752EF3;
  opacity: 1;
}

/* ── 18:30 SPOTLIGHT ── */
.timeline-item-spotlight {
  position: relative;
}
/* Barre verticale violette à gauche */
.timeline-item-spotlight::before {
  content: '';
  position: absolute;
  left: -1rem;
  top: 0.6rem;
  bottom: 0.6rem;
  width: 4px;
  background: #752EF3;
  border-radius: 2px;
}
/* 18:30 en 2× plus gros */
.timeline-item-spotlight .timeline-time {
  font-size: 2.4rem;
  line-height: 1;
}
/* Pastille de surlignage plus serrée pour éviter le débordement avec une grosse police */
#programme .timeline-item-spotlight .timeline-time .title-highlight::before {
  left: -0.05em;
  right: -0.05em;
  top: 45%;
  bottom: 5%;
}
/* Point violet entre "Lever de rideau" et "À ne pas rater" */
.alert-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  background: #DBB4FF;
  border-radius: 50%;
  margin: 0 0.5rem;
  vertical-align: middle;
}
/* "À NE PAS RATER" en blanc surligné violet, style cohérent avec 18:30 */
#programme .timeline-item-spotlight .timeline-title .title-highlight {
  color: #F9F5FF;
  text-transform: uppercase;
  font-size: 0.85em;
  letter-spacing: 0.08em;
}
#programme .timeline-item-spotlight .timeline-title .title-highlight::before {
  background: #752EF3;
  opacity: 1;
  left: -0.3em;
  right: -0.3em;
  top: 40%;
  bottom: 20%;
}
.timeline-title {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--offwhite);
  margin-bottom: 0.3rem;
}
.timeline-desc {
  font-size: 0.9rem;
  color: rgba(245,243,240,0.55);
}

.programme-poster {
  position: relative;
  max-width: 460px;
  margin: 0 auto;
}
.poster-frame {
  position: relative;
  transform: rotate(2deg);
  transition: transform .6s var(--ease-out);
}

.poster-frame img {
  width: 100%;
  display: block;
  border-radius: 6px;
  box-shadow:
    0 0 30px rgba(170, 73, 249, 0.50),
    0 0 50px rgba(170, 73, 249, 0.25),
    0 30px 80px rgba(0,0,0,0.4),
    0 0 0 1px rgba(130,76,255,0.25);
}
.programme-poster:hover .poster-frame { transform: rotate(0deg); }
.poster-stamp {
  position: absolute;
  top: -1.5rem; right: -1.5rem;
  width: 110px; height: 110px;
  background: #752EF3;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--offwhite);
  font-family: 'Coolvetica', 'Bebas Neue', sans-serif;
  transform: rotate(-8deg);
  box-shadow: 0 10px 30px rgba(117,46,243,0.4);
  line-height: 1;
}
.poster-stamp-day {
  font-size: 2.4rem;
  letter-spacing: 0.02em;
}
.poster-stamp-month {
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.poster-stamp-year {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  margin-top: 0.15rem;
  opacity: 0.8;
}

/* ============================================================
   FINALISTES
   ============================================================ */
.candidates-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}
.candidate-card {
  position: relative;
  aspect-ratio: 9/16;
  border-radius: 4px;
  cursor: pointer;
  perspective: 1500px;
  background: transparent;
}
.candidate-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform .8s cubic-bezier(.16,1,.3,1);
  transform-style: preserve-3d;
}
.candidate-card.is-flipped .candidate-card-inner {
  transform: rotateY(180deg);
}
@media (hover: hover) and (pointer: fine) {
  .candidate-card:hover .candidate-card-inner {
    transform: rotateY(180deg);
  }
}
.candidate-face {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 4px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow:
    0 0 20px rgba(170, 73, 249, 0.25),
    0 0 40px rgba(170, 73, 249, 0.12),
    0 0 0 1px rgba(170, 73, 249, 0.18);
}
.candidate-face-back {
  transform: rotateY(180deg);
}


.candidates-note {
  text-align: center;
  margin-top: 3rem;
  font-size: 0.75rem;
  font-style: italic;
  color: rgba(245,243,240,0.4);
  letter-spacing: 0.05em;
}

/* ============================================================
   JURY
   ============================================================ */
.jury-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.jury-card {
  position: relative;
  text-align: center;
}
.jury-photo-wrap {
  position: relative;
  aspect-ratio: 1/1;
  width: 80%;
  max-width: 232px;
  margin: 0 auto 1.5rem;
  background: transparent;
  display: block;
  cursor: pointer;
  transition: transform .3s ease;
}
a.jury-photo-wrap:hover { transform: translateY(-3px); }
.jury-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  border-radius: 50%;
  box-shadow:
    0 0 0 2px #F9F5FF,
    -4px 0 12px rgba(170, 73, 249, 0.75),
    -10px 0 22px rgba(170, 73, 249, 0.4),
    -18px 0 32px rgba(170, 73, 249, 0.18);
}

.jury-photo-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(13,13,18,0.4);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  letter-spacing: 0.05em;
  border-radius: 50%;
}
.jury-badge {
  position: absolute;
  bottom: 7%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  white-space: nowrap;
}
.jury-badge-jury {
  background: #752EF3;
  color: #F9F5FF;
}
.jury-badge-founder {
  background: #DBB4FF;
  color: #090112;
}
.jury-name {
  font-family: 'Coolvetica', 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.03em;
  color: var(--black);
  line-height: 1;
}
.jury-name-last {
  font-family: 'Articulat CF', 'Outfit', sans-serif;
  font-weight: 400;
  font-style: italic;
  font-size: 1.4rem;
  letter-spacing: 0;
  color: var(--ink-dark);
  line-height: 1;
  margin-top: 0.2rem;
  margin-bottom: 0.8rem;
}
.jury-bar {
  width: 1.5rem; height: 2px;
  background: var(--violet);
  margin: 0.5rem auto 0.8rem;
}
.jury-title {
  font-size: 0.85rem;
  color: rgba(13,13,18,0.6);
  line-height: 1.45;
}
.jury-title strong { color: var(--black); font-weight: 600; }

/* ============================================================
   EQUIPE
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 0;
}
#equipe { padding-bottom: calc(var(--slant) + 1rem); }
#billetterie { padding-bottom: 2rem; }
#partners { padding-top: 4rem; }

/* CTA title — 2 lignes décalées (gauche / droite), F9F5FF, mix Coolvetica + Articulat italic */
.cta-title { color: #F9F5FF; }
.cta-line { display: block; }
.cta-line-left { margin-bottom: 1rem; }
.cta-line-left { text-align: left; }
.cta-line-right { text-align: right; }

.cta-italic {
  font-family: 'Articulat CF', 'Outfit', sans-serif;
  font-style: italic;
  font-weight: 400;
  font-size: 0.6em;
  color: #F9F5FF;
  letter-spacing: 0;
}

#billetterie .title-highlight {
  color: #F9F5FF;
}
#billetterie .title-highlight::before {
  background: #AA49F9;
  opacity: 1;
  position: absolute;
  left: -0.1em;
  right: -0.1em;
  top: 50%;
  bottom: 5%;
}

.finalistes-cta { text-align: center; margin-top: 3rem; }
.btn-soutenir {
  background: #F9F5FF;
  color: #090112;
}
.btn-soutenir:hover {
  background: #AA49F9;
  color: #F9F5FF;
}


/* PARTNERS */
.partners-block {
  border-top: 1px solid rgba(245,243,240,0.1);
  padding-top: 3.5rem;
  text-align: center;
}
.partners-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #F9F5FF;
  margin-bottom: 0.2rem;
}
.partners-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
  align-items: center;
  justify-items: center;
}
.partner-logo {
  width: 100%;
  max-width: 232px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  filter: grayscale(1) brightness(2);
  transition: opacity .3s, filter .3s;
  font-family: 'Articulat CF', 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--ink-light);
}
.partner-logo:hover {
  opacity: 1;
  filter: grayscale(0) brightness(1.2);
}
.partner-logo.has-image {
  filter: none;
  opacity: 0.85;
}
.partner-logo.has-image:hover { opacity: 1; }
.partner-logo.has-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ============================================================
   BILLETTERIE / FINAL CTA
   ============================================================ */
.section-final {
  background: var(--black-deep);
  padding: 5rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.cta-bg {
  display: none;
}
.cta-content {
  position: relative;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  z-index: 1;
}
.cta-title {
  font-family: 'Coolvetica', 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 8vw, 5rem);
  letter-spacing: 0.02em;
  line-height: 0.92;
  color: var(--offwhite);
  margin-bottom: 3rem;
  font-weight: 400;
  text-wrap: balance;
}
.cta-title em {
  font-style: normal;
  color: var(--mauve);
  position: relative;
  isolation: isolate;
}
.cta-title em::after {
  content: '';
  position: absolute;
  left: -0.1em; right: -0.1em;
  bottom: 0.1em;
  height: 0.1em;
  background: var(--violet);
  z-index: -1;
}
.cta-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.cta-info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}
.cta-info-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(245,243,240,0.4);
}
.cta-info-value {
  font-family: 'Coolvetica', 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.03em;
  color: var(--offwhite);
  }
  
.cta-disclaimer {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 0.75rem;
  color: #F9F5FF;
  letter-spacing: 0.05em;
  font-style: italic;
}
.cta-content .btn-primary {
  margin-top: 1rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #050508;
  padding: 5rem 0 2rem;
  color: rgba(245,243,240,0.6);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}
.footer-logo {
  height: 40px;
  width: auto;
  margin-bottom: 1rem;
}
.footer-tagline {
  font-style: italic;
  color: rgba(245,243,240,0.5);
  font-size: 0.95rem;
}
.footer-col-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mauve);
  margin-bottom: 0.6rem;
}
.footer-col ul li { margin-bottom: 0.25rem; }
.footer-col a { line-height: 1.3; }
.footer-col a {
  font-size: 0.9rem;
  color: rgba(245,243,240,0.55);
  transition: color .3s;
}
.footer-col a:hover { color: var(--offwhite); }
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(245,243,240,0.08);
  text-align: center;
  font-size: 0.75rem;
  color: rgba(245,243,240,0.3);
  letter-spacing: 0.05em;
}

/* ============================================================
   ANIMATIONS - section enter / scroll-over feel
   ============================================================ */
.section.in-view .section-head,
.section.in-view .grid-2-projet > *,
.section.in-view .grid-2-programme > *,
.section.in-view .candidate-card,
.section.in-view .jury-card,
.section.in-view .cta-content > *,
.section.in-view .partners-row > * {
  animation: enterUp .9s var(--ease-out) both;
}
.section .candidate-card,
.section .jury-card {
  opacity: 0;
}
.section.in-view .candidate-card { animation-delay: calc(var(--i, 0) * 60ms); }
.section.in-view .jury-card { animation-delay: calc(var(--i, 0) * 100ms); }

@keyframes enterUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .grid-2-projet,
  .grid-2-programme,
  .footer-grid { grid-template-columns: 1fr; gap: 3rem; }
  .candidates-grid { grid-template-columns: repeat(3, 1fr); }
  .jury-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .menu-foot { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-grid { gap: 2rem; }
}
@media (max-width: 640px) {
  .container { padding: 0 1.2rem; }
  .section { padding: 8rem 0 6rem; }
  .topbar { padding: 1rem 1rem 1rem 4.5rem; }
  .topbar-logo { height: 45px; top: 1.1rem; }
  .topbar-cta { padding: 0.55rem 1rem; font-size: 0.62rem; }
  .menu-inner { padding: 6rem 1.5rem 2rem; }
  .menu-list a { font-size: clamp(2rem, 9vw, 3.5rem); gap: 0.8rem; }
  .menu-list a::before { width: 1.8rem; font-size: 0.65rem; }
  .candidates-grid { grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
  .jury-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .team-grid { grid-template-columns: 1fr; }
  .cta-info { gap: 1.5rem; }
  .poster-stamp { width: 80px; height: 80px; top: -1rem; right: -1rem; }
  .poster-stamp-day { font-size: 1.6rem; }
  .poster-stamp-month { font-size: 0.7rem; }
  .poster-stamp-year { font-size: 0.55rem; }
  .hero {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
    min-height: 80vh;
  }
  .hero-meta { font-size: 0.65rem; gap: 0.6rem; }
  .hero-meta-sep { width: 4px; height: 4px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .partners-row { gap: 1.5rem; }
  .cta-info-value { font-size: 1rem; }
  .cta-info-label { font-size: 0.55rem; }
  .cta-info { gap: 1.2rem; flex-direction: column; }
    .partners-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .partner-logo { height: 70px; }
    .partners-row .partner-logo:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 50%;
  }
    .hero-title { font-size: clamp(2rem, 8vw, 2.8rem); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html { scroll-behavior: auto; }
}
