/* =============================================
   CJSCE Events — VERSION 2 « Futur élégant »
   Canvas sombre · typo prestige + moderne
   Architecture volontairement différente de V1
   ============================================= */
:root {
  /* Charcoal chaud — pas de noir absolu (trop dur à l’œil) */
  --bg: #141210;
  --bg-2: #1c1916;
  --bg-3: #26221e;
  --cream: #f3eee6;
  --nude: #d9cbb8;
  --fuchsia: #e91e8c;
  --fuchsia-deep: #c2185b;
  --gold: #d4af37;
  --gold-dim: #a8892a;
  --text: #f3eee6;
  --muted: rgba(243, 238, 230, 0.62);
  --line: rgba(243, 238, 230, 0.12);
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Syne", system-ui, sans-serif;
  --nav-h: 5.25rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --max: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: clip;
}
body.v2-dark { background: var(--bg); color: var(--text); }

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  padding-inline: env(safe-area-inset-left, 0) env(safe-area-inset-right, 0);
}
.main-wrap { min-height: 60vh; padding-bottom: env(safe-area-inset-bottom, 0); }

h1,h2,h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

/* ——— HEADER (toujours sombre, différent de V1 crème) ——— */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 0.35s, backdrop-filter 0.35s, border-color 0.35s;
  border-bottom: 1px solid transparent;
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}
.site-header.is-scrolled,
.site-header.is-solid {
  background: rgba(20, 18, 16, 0.9);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.site-header.is-over-hero:not(.is-scrolled) .logo-dark { display: none; }
.site-header.is-over-hero:not(.is-scrolled) .logo-light { display: block; }
.logo-light { display: none; }
/* Sur V2 sombre : toujours logo clair */
body.v2-dark .logo-dark { display: none !important; }
body.v2-dark .logo-light { display: block !important; }

.header-inner {
  width: min(100% - 1.25rem, 90rem);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}
.brand {
  display: block;
  line-height: 0;
  width: fit-content;
  max-width: min(36vw, 12.5rem);
  z-index: 2;
}
.header-brand {
  position: relative;
  display: block;
  width: fit-content;
  max-width: min(36vw, 12.5rem);
  margin-right: 3.5rem; /* réserve la place de FR|AN */
  z-index: 2;
}
.header-brand .lang-switch {
  position: absolute;
  left: calc(100% + 0.7rem);
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  white-space: nowrap;
  z-index: 3;
}
.brand img {
  height: clamp(2.85rem, 6.5vw, 4.35rem);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.5));
}
.nav { display: flex; align-items: center; gap: 1.25rem; }
.nav-links {
  display: flex; gap: 1.1rem; list-style: none; margin: 0; padding: 0; align-items: center;
}
.nav-link {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(243,238,230,0.78);
  position: relative;
  padding: 0.3rem 0;
  display: inline-block;
  transition: color 0.3s, transform 0.35s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: linear-gradient(90deg, var(--fuchsia), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav-link:hover { color: #fff; transform: scale(1.1); }
.nav-link:hover::after,
.nav-link.is-active::after { transform: scaleX(1); }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}
.lang-switch__btn {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(243,238,230,0.45);
  padding: 0.25rem 0.1rem;
  transition: color 0.25s;
}
.lang-switch__btn:hover { color: var(--gold); }
.lang-switch__btn.is-active { color: var(--cream); }
.lang-switch__sep {
  color: rgba(243,238,230,0.25);
  font-size: 0.65rem;
  user-select: none;
}
.site-header.is-over-hero:not(.is-scrolled) .lang-switch__btn { color: rgba(243,238,230,0.55); }
.site-header.is-over-hero:not(.is-scrolled) .lang-switch__btn.is-active { color: #fff; }
.site-header.is-over-hero:not(.is-scrolled) .lang-switch__sep { color: rgba(243,238,230,0.3); }

.nav-toggle {
  display: none; background: none; border: 0; width: 2.6rem; height: 2.6rem;
  color: var(--cream); cursor: pointer;
}
.nav-toggle span {
  display: block; width: 1.3rem; height: 1.5px; background: currentColor; margin: 0.32rem auto;
}

/* Boutons V2 */
.fx-btn, .btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.9rem; padding: 0.85rem 1.5rem;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.3s, border-color 0.3s, color 0.3s, box-shadow 0.35s;
}
.fx-btn:hover, .btn:hover { transform: translateY(-2px); }
.fx-btn--glow, .btn-primary {
  background: var(--fuchsia-deep);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(233,30,140,0.3), 0 12px 40px rgba(194,24,91,0.35);
}
.fx-btn--glow:hover, .btn-primary:hover {
  background: var(--fuchsia);
  box-shadow: 0 0 24px rgba(233,30,140,0.45);
}
.fx-btn--ghost, .btn-ghost, .btn-outline-light {
  background: transparent; color: var(--cream); border-color: rgba(243,238,230,0.35);
}
.fx-btn--ghost:hover, .btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-light { background: var(--cream); color: #111; }
.fx-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.btn-group { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

.fx-kicker {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--fuchsia); margin: 0 0 1rem;
}
.fx-link {
  display: inline-block; margin-top: 1.25rem;
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); border-bottom: 1px solid rgba(212,175,55,0.4); padding-bottom: 0.2rem;
}
.fx-link:hover { color: var(--fuchsia); border-color: var(--fuchsia); }
.fx-motto {
  margin: 1.25rem 0 0; font-size: 0.72rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold);
}

/* ——— HERO SPLIT (signature V2) ——— */
.fx-hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  padding-top: var(--nav-h);
}
.fx-hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem clamp(1.5rem, 4vw, 4rem);
  background:
    radial-gradient(ellipse at 0% 100%, rgba(194,24,91,0.18), transparent 50%),
    var(--bg);
  position: relative;
  z-index: 2;
}
.fx-hero__title {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  margin: 0 0 1.25rem;
}
.fx-line { display: block; }
.fx-line--accent {
  background: linear-gradient(90deg, var(--fuchsia), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.fx-hero__text {
  max-width: 32rem;
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
}
.fx-hero__stage {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  min-height: 50vh;
}
/* Dégradés latéraux → fond page : transition fluide quelle que soit la couleur de la slide */
.fx-hero__stage::before,
.fx-hero__stage::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  pointer-events: none;
  width: min(28%, 7.5rem);
}
.fx-hero__stage::before {
  left: 0;
  background: linear-gradient(
    90deg,
    var(--bg) 0%,
    rgba(20, 18, 16, 0.72) 28%,
    rgba(20, 18, 16, 0.28) 58%,
    transparent 100%
  );
}
.fx-hero__stage::after {
  right: 0;
  background: linear-gradient(
    270deg,
    var(--bg) 0%,
    rgba(20, 18, 16, 0.72) 28%,
    rgba(20, 18, 16, 0.28) 58%,
    transparent 100%
  );
}
.fx-hero__media, .fx-hero__media .hero-fallback, .hero-slideshow {
  position: absolute; inset: 0;
}
.hero-fallback, .hero-slideshow__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: var(--hero-img);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-slideshow__slide {
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.2s var(--ease), transform 8s linear;
}
.hero-slideshow__slide.is-active { opacity: 1; transform: scale(1); }
.fx-hero__frame {
  position: absolute;
  inset: 1.25rem;
  border: 1px solid rgba(212, 175, 55, 0.35);
  pointer-events: none;
  z-index: 3;
  animation: framePulse 4s ease-in-out infinite;
}
@keyframes framePulse {
  0%, 100% { border-color: rgba(212, 175, 55, 0.25); }
  50% { border-color: rgba(233, 30, 140, 0.45); }
}
.fx-hero__float {
  position: absolute;
  right: -0.05em;
  bottom: 0.12em;
  z-index: 4;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: 0.85;
  color: rgba(243, 238, 230, 0.14);
  -webkit-text-stroke: 1.25px rgba(243, 238, 230, 0.42);
  pointer-events: none;
  user-select: none;
}

/* Rail — mots + logo en boucle */
.fx-rail {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: #151311;
  padding: 2.35rem 0;
  min-height: 8.75rem;
  isolation: isolate;
}

.fx-rail__viewport {
  position: relative;
  z-index: 3;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.fx-rail__track {
  display: flex;
  width: max-content;
  will-change: transform;
  --rail-shift: 50%;
  --rail-duration: 36s;
  animation: fxRailMove var(--rail-duration) linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .fx-rail__track { transform: none !important; animation: none !important; }
}
.fx-rail__set {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 1.35rem;
  padding-inline: 0.85rem;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.7rem);
  color: var(--cream);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.75);
}
.fx-rail__logo {
  height: clamp(4.5rem, 8.5vw, 6.5rem);
  width: auto;
  object-fit: contain;
  opacity: 0.98;
  flex: 0 0 auto;
  margin-inline: 0.65rem 0.45rem;
  filter: drop-shadow(0 2px 14px rgba(0, 0, 0, 0.55));
}
.fx-rail__word {
  letter-spacing: 0.02em;
}
.fx-rail__dot {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--fuchsia);
  box-shadow: 0 0 10px var(--fuchsia);
  flex: 0 0 auto;
}
.fx-rail__set .fx-rail__dot:last-child {
  display: none;
}
@keyframes fxRailMove {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(calc(-1 * var(--rail-shift, 50%)), 0, 0); }
}

/* Vision */
.fx-vision {
  position: relative;
  padding: clamp(4rem, 10vw, 7rem) 0;
  overflow: hidden;
}
.fx-watermark {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(5rem, 22vw, 16rem);
  line-height: 0.8;
  color: rgba(243, 238, 230, 0.028);
  -webkit-text-stroke: 1px rgba(243, 238, 230, 0.08);
  pointer-events: none;
  white-space: nowrap;
}
.fx-vision__grid {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  position: relative;
  z-index: 1;
}
.fx-vision__left h2 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
.fx-vision__right { color: var(--muted); align-self: end; }
.fx-vision__right p + p { margin-top: 1rem; }

/* Éditions track */
.fx-editions { padding: 2rem 0 4rem; }
.fx-editions__head {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto 1.5rem;
}
.fx-editions__head h2 { font-size: clamp(2rem, 4vw, 3rem); }
.fx-editions__track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.5rem max(1rem, calc((100% - var(--max)) / 2)) 1.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(233,30,140,0.45) transparent;
  overscroll-behavior-x: contain;
}
.fx-editions__track::-webkit-scrollbar { height: 4px; }
.fx-editions__track::-webkit-scrollbar-thumb {
  background: rgba(233,30,140,0.45);
  border-radius: 999px;
}
.fx-ed-card {
  flex: 0 0 min(82vw, 22rem);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--bg-3);
  border: 1px solid var(--line);
  padding: 1.75rem 1.5rem;
  min-height: 16rem;
  transition: border-color 0.35s, transform 0.35s var(--ease);
  text-align: left;
  font: inherit;
  color: inherit;
  width: auto;
}
button.fx-ed-card {
  cursor: pointer;
  appearance: none;
}
.fx-ed-card:hover,
.fx-ed-card:focus-visible {
  border-color: rgba(233,30,140,0.45);
  transform: translateY(-4px);
  outline: none;
}
.fx-ed-card--past:hover .fx-ed-card__cta,
.fx-ed-card--past:focus-visible .fx-ed-card__cta {
  color: var(--fuchsia);
}
.fx-ed-card.is-next {
  border-color: rgba(212,175,55,0.45);
  background: linear-gradient(160deg, #1a1610, #121212);
}
.fx-ed-card__num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--fuchsia);
  line-height: 1;
  margin-bottom: 1rem;
}
.fx-ed-card.is-next .fx-ed-card__num { color: var(--gold); }
.fx-ed-card h3 { font-size: 1.4rem; margin-bottom: 0.75rem; }
.fx-ed-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
  flex: 1 1 auto;
  padding-bottom: 1.25rem;
}
.fx-pill {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.35rem 0.6rem;
  margin-top: auto;
  align-self: flex-start;
  border: 1px solid var(--line);
  color: var(--muted);
}
.fx-ed-card__cta {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  transition: color 0.25s;
}

/* Edition detail modal (Trajectoire) */
.fx-ed-modal[hidden] { display: none !important; }
.fx-ed-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.fx-ed-modal__veil {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 8, 0.82);
  backdrop-filter: blur(6px);
}
.fx-ed-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 46rem);
  max-height: min(92vh, 52rem);
  overflow: auto;
  background: linear-gradient(165deg, #1a1816 0%, #101010 55%, #0d0d0f 100%);
  border: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  padding: clamp(1.25rem, 3vw, 2rem);
}
.fx-ed-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--cream);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 999px;
}
.fx-ed-modal__close:hover { border-color: var(--fuchsia); color: var(--fuchsia); }
.fx-ed-modal__head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0.35rem 0 1rem;
  padding-right: 2rem;
}
.fx-ed-modal__meta {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.fx-ed-modal__meta li {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.92rem;
  color: var(--muted);
}
.fx-ed-modal__meta span {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
  color: var(--gold);
}
.fx-ed-modal__meta strong { color: var(--cream); font-weight: 600; }
.fx-ed-modal__body {
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  white-space: pre-line;
}
.fx-ed-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 0.25rem;
}
.fx-ed-modal__actions .fx-btn {
  min-height: 2.75rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.72rem;
}
.fx-ed-modal__view[hidden] { display: none !important; }
.fx-ed-modal__back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1rem;
  padding: 0.35rem 0;
  border: 0;
  background: none;
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.fx-ed-modal__back:hover { color: var(--fuchsia); }
.fx-ed-modal__gallery-title {
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  margin: 0.25rem 0 1rem;
}
.fx-ed-modal.is-gallery .fx-ed-modal__panel {
  width: min(100%, 58rem);
  max-height: min(92vh, 60rem);
}
.fx-ed-modal__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  gap: 0.75rem;
}
.fx-ed-modal__grid button {
  position: relative;
  padding: 0;
  border: 1px solid var(--line);
  background: #0a0a0a;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.fx-ed-modal__grid button.is-video {
  cursor: pointer;
  background: linear-gradient(145deg, #1a1a1a 0%, #0a0a0a 100%);
}
.fx-video-badge,
.fx-ed-play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  pointer-events: none;
}
.fx-ed-modal__grid img,
.fx-ed-modal__grid video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #0a0a0a;
  display: block;
  transition: transform 0.35s var(--ease);
}
.fx-ed-modal__grid button:hover img,
.fx-ed-modal__grid button:hover video { transform: scale(1.05); }
.fx-ed-modal__empty {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}
.fx-ed-lightbox[hidden] { display: none !important; }
.fx-ed-lightbox {
  position: fixed;
  inset: 0;
  z-index: 13000;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.fx-ed-lightbox__veil {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
}
.fx-ed-lightbox__img,
.fx-ed-lightbox video.fx-ed-lightbox__img {
  position: relative;
  z-index: 1;
  max-width: min(96vw, 64rem);
  max-height: 90vh;
  object-fit: contain;
}
.fx-ed-lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 999px;
}

/* Media lightbox — défilement accueil & galerie */
.fx-media-lightbox[hidden] { display: none !important; }
.fx-media-lightbox {
  position: fixed;
  inset: 0;
  z-index: 12500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  gap: 0.5rem;
}
.fx-media-lightbox__veil {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(4px);
}
.fx-media-lightbox__stage {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: min(96vw, 64rem);
  max-height: 88vh;
}
.fx-media-lightbox__img,
.fx-media-lightbox__video {
  display: block;
  max-width: min(96vw, 64rem);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}
.fx-media-lightbox__video { background: #000; }
.fx-media-lightbox__caption {
  position: relative;
  z-index: 1;
  margin: 0.75rem 0 0;
  padding: 0 1rem;
  max-width: 42rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  text-align: center;
  line-height: 1.45;
}
.fx-media-lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 999px;
}
.fx-media-lightbox__close:hover {
  background: rgba(233, 30, 140, 0.35);
}

/* Now panel */
.fx-now {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto 4rem;
}
.fx-now__panel {
  padding: clamp(2rem, 5vw, 3rem);
  border: 1px solid rgba(233,30,140,0.35);
  background:
    radial-gradient(ellipse at 100% 0%, rgba(233,30,140,0.15), transparent 45%),
    var(--bg-2);
}
.fx-now__panel h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
.fx-meta {
  list-style: none; padding: 0; margin: 1.5rem 0;
  display: grid; gap: 0.75rem;
}
.fx-meta li {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}
.fx-meta span {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Values grid — 7 pastilles alignées sur une ligne */
.fx-values {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto 4rem;
  padding: 2rem 0;
}
.fx-values__title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 2rem; }
.fx-values__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: clamp(0.35rem, 0.8vw, 0.65rem);
  align-items: stretch;
}
.fx-val {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 1 / 1;
  min-width: 0;
  min-height: 0;
  padding: clamp(0.45rem, 1.1vw, 0.9rem);
  border: 1px solid var(--line);
  background: var(--bg-2);
  transition: border-color 0.35s, background 0.35s, transform 0.35s var(--ease);
}
.fx-val span {
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 1.8vw, 1.25rem);
  color: var(--gold);
  line-height: 1;
  flex-shrink: 0;
}
.fx-val strong {
  display: block;
  margin-top: auto;
  font-size: clamp(0.48rem, 0.85vw, 0.72rem);
  letter-spacing: 0.03em;
  line-height: 1.15;
  text-transform: uppercase;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fx-val:hover {
  border-color: var(--fuchsia);
  background: #1a1016;
  transform: translateY(-3px);
}

/* Galerie — marquee auto (pas de barre de scroll) */
.fx-film { padding: 2rem 0 4rem; }
.fx-film__head {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  flex-wrap: wrap;
}
.fx-film__head h2 { margin: 0; font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
.fx-film__viewport {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.fx-film__strip {
  display: flex;
  gap: 0.75rem;
  width: max-content;
  animation: fxFilmMarquee 45s linear infinite;
  will-change: transform;
}
.fx-film__viewport:hover .fx-film__strip {
  animation-play-state: paused;
}
.fx-film__shot {
  flex: 0 0 min(68vw, 17rem);
  margin: 0;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #222;
  cursor: zoom-in;
  border: 0;
  padding: 0;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.fx-film__shot:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
.fx-film__shot:focus-visible {
  outline: 2px solid var(--fuchsia);
  outline-offset: 3px;
}
.fx-film__shot.is-video {
  position: relative;
  background: linear-gradient(145deg, #1a1a1a 0%, #0a0a0a 100%);
}
.fx-film__shot img,
.fx-film__shot video {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(1.05);
  user-select: none;
}
.fx-empty { color: var(--muted); text-align: center; padding: 3rem; }

@keyframes fxFilmMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* CTA */
.fx-cta {
  text-align: center;
  padding: clamp(4rem, 10vw, 7rem) 1.5rem;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(194,24,91,0.25), transparent 55%),
    var(--bg-2);
  border-top: 1px solid var(--line);
}
.fx-cta h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  max-width: 14ch;
  margin-inline: auto;
}
.fx-cta p { color: var(--gold); letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.78rem; }
.fx-cta .fx-actions { justify-content: center; }

/* ——— Pages intérieures (sombre aussi) ——— */
.page-hero {
  padding: calc(var(--nav-h) + 4rem) 0 3rem;
  background:
    linear-gradient(120deg, rgba(20,18,16,0.78), rgba(20,18,16,0.42)),
    url("../img/backgrounds/texture.png") center/cover;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { color: var(--cream); max-width: 16ch; font-size: clamp(2.4rem, 6vw, 4.5rem); }
.page-hero .lede, .lede { color: var(--muted); max-width: 38rem; }
.eyebrow {
  display: inline-block;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--fuchsia); margin-bottom: 0.85rem;
}
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem); align-items: center;
}
.media-frame {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #1a1a1a;
  isolation: isolate;
}
/* Paysage — Concours et autres listes */
.media-frame--landscape { aspect-ratio: 16 / 11; }
/* Portrait — vignette Événements (photo édition, sans recadrage) */
.media-frame--event {
  aspect-ratio: 3 / 4;
  width: 100%;
  max-width: 16.5rem;
  border: 1px solid var(--line);
  background: #111;
}
.media-frame > img,
.media-frame > video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: center;
}
/* Photo entière — jamais recadrée ni déformée */
.media-frame--event > img,
.media-frame--event > video,
.media-frame--fit > img,
.media-frame--fit > video {
  object-fit: contain;
  object-position: center;
  background: #111;
}
/* Hero page détail édition */
.edition-hero {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
}
.media-frame--edition-hero {
  aspect-ratio: 3 / 4;
  width: 100%;
  max-width: min(100%, 22rem);
  border: 1px solid var(--line);
  background: #111;
}
.media-frame--logo {
  aspect-ratio: 1;
  background: var(--cream);
  display: grid;
  place-items: center;
  padding: 1.75rem;
  overflow: hidden;
}
.media-frame--logo img {
  width: min(100%, 24rem);
  height: auto;
  max-height: 24rem;
  object-fit: contain;
}
.media-placeholder {
  height: 100%; display: grid; place-items: center;
  background: #1a1a1a; color: var(--nude); font-family: var(--font-display);
  text-align: center; padding: 2rem;
}
.media-frame > .media-placeholder {
  position: absolute;
  inset: 0;
  height: auto;
}
.values {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem;
  list-style: none; padding: 0; margin: 1.5rem 0 0;
}
.values li {
  font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
  border-bottom: 1px solid var(--fuchsia); padding-bottom: 0.15rem; font-weight: 700;
}
/* Cycle « Ce qui nous guide » — apparition puis effacement élégant */
.values[data-values-cycle] li {
  opacity: 0;
  transform: translateY(0.45em);
  filter: blur(0);
  transition:
    opacity 0.5s var(--ease),
    transform 0.5s var(--ease),
    filter 0.55s ease;
}
.values[data-values-cycle] li.is-on {
  opacity: 1;
  transform: none;
}
.values[data-values-cycle].is-clearing li.is-on {
  opacity: 0;
  transform: translateY(-0.3em);
  filter: blur(5px);
}
@media (prefers-reduced-motion: reduce) {
  .values[data-values-cycle] li {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}
.gallery-grid {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 0.5rem;
}
.gallery-item {
  grid-column: span 4; aspect-ratio: 1; overflow: hidden; background: #222;
}
.gallery-item:nth-child(5n+1) { grid-column: span 6; aspect-ratio: 16/10; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.gallery-item:hover img { transform: scale(1.05); }

/* Galerie page — carrousel flèches */
.gal-slider {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "prev stage next"
    "meta meta meta";
  align-items: center;
  gap: 0.85rem 0.6rem;
  max-width: 56rem;
  margin-inline: auto;
}
.gal-slider__stage {
  grid-area: stage;
  position: relative;
  overflow: hidden;
  background: #1a1714;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10;
  min-height: 16rem;
}
.gal-slider__track {
  position: absolute;
  inset: 0;
}
.gal-slider__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(4%);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease), visibility 0.55s;
  pointer-events: none;
}
.gal-slider__slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
  z-index: 1;
}
.gal-slider__slide.is-out-left {
  transform: translateX(-4%);
}
.gal-slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gal-slider__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 1.5rem 1.1rem 1rem;
  background: linear-gradient(transparent, rgba(20, 18, 16, 0.88));
  color: var(--cream);
  font-size: 0.9rem;
}
.gal-slider__btn {
  width: 2.9rem;
  height: 2.9rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--cream);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  line-height: 1;
  transition: border-color 0.3s, background 0.3s, color 0.3s, transform 0.3s var(--ease);
}
.gal-slider__btn:hover:not(:disabled) {
  border-color: var(--fuchsia);
  color: var(--fuchsia);
  transform: scale(1.05);
}
.gal-slider__btn:disabled {
  opacity: 0.28;
  cursor: default;
}
.gal-slider__btn--prev { grid-area: prev; }
.gal-slider__btn--next { grid-area: next; }
.gal-slider__meta {
  grid-area: meta;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.35rem;
}
.gal-slider__counter {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.gal-slider__dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  max-width: 100%;
}
.gal-slider__dot {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(243, 238, 230, 0.28);
  cursor: pointer;
  transition: background 0.25s, transform 0.25s var(--ease);
}
.gal-slider__dot.is-active {
  background: var(--fuchsia);
  transform: scale(1.25);
  box-shadow: 0 0 10px rgba(233, 30, 140, 0.45);
}
.gal-slider__dot[hidden] { display: none; }
.gal-slider.is-empty .gal-slider__stage::after {
  content: "Aucune image dans cette catégorie";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 1.15rem;
  z-index: 2;
}

.filters { display: flex; gap: 0.4rem; overflow-x: auto; margin-bottom: 1.5rem; }
.filter-btn {
  background: transparent; border: 1px solid var(--line); color: var(--muted);
  padding: 0.5rem 0.85rem; font-size: 0.68rem; letter-spacing: 0.1em;
  text-transform: uppercase; cursor: pointer; flex: 0 0 auto;
}
.filter-btn.is-active, .filter-btn:hover { border-color: var(--fuchsia); color: var(--fuchsia); }
.stack-list { display: grid; gap: 2rem; }
.stack-item {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 1.5rem;
  padding-bottom: 2rem; border-bottom: 1px solid var(--line); align-items: center;
}
.stack-media {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
/* Cartes page Événements */
.stack-item--event {
  grid-template-columns: minmax(0, 16.5rem) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
}
.stack-item__body {
  min-width: 0;
}
.stack-item--event .stack-item__body h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.stack-item--event .stack-item__body p {
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 1rem;
}
.stack-item--event .meta-row span {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  line-height: 1.35;
}
.stack-item--event .event-theme {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin: -0.35rem 0 0.75rem;
}
.stack-item--event .event-place {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: -0.5rem 0 0.85rem;
}
.meta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.meta-row .event-status { color: var(--accent); font-weight: 600; }
.info-table { border-top: 1px solid var(--line); }
.info-table div {
  display: grid; grid-template-columns: 10rem 1fr; gap: 1rem;
  padding: 0.9rem 0; border-bottom: 1px solid var(--line);
}
.info-table dt { margin: 0; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.info-table dd { margin: 0; }
.badge { font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.3rem 0.55rem; border: 1px solid var(--line); color: var(--muted); }
.badge-live { border-color: var(--fuchsia); color: var(--fuchsia); }
.feature-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.feature-list li {
  display: grid; grid-template-columns: 2.5rem 1fr; gap: 0.75rem;
  padding: 1rem 0; border-bottom: 1px solid var(--line);
}
.feature-num { font-family: var(--font-display); color: var(--fuchsia); }
.form-grid { display: grid; gap: 1rem; max-width: 36rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { display: grid; gap: 0.35rem; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; }
input, textarea, select {
  width: 100%; padding: 0.85rem 1rem; border: 1px solid var(--line);
  background: rgba(255,255,255,0.04); color: var(--cream); outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--fuchsia); }
textarea { min-height: 8rem; resize: vertical; }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.empty-state, .gallery-empty {
  padding: 3rem 1.5rem; text-align: center; border: 1px dashed var(--line);
  color: var(--muted); font-family: var(--font-display);
}
.cta-band {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
  background: radial-gradient(ellipse at 80% 0%, rgba(194,24,91,0.25), transparent 50%), var(--bg-2);
  border-top: 1px solid var(--line);
}
.partners-row { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.partner-logo { height: 2.2rem; opacity: 0.7; filter: grayscale(1); }
.history-frise {
  --frise-gap: 1.25rem;
  --dot: 0.7rem;
  --dot-gap: 0.75rem; /* espace point ↔ trait */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--frise-gap);
}
.history-frise__edition {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fuchsia);
}
.history-frise__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
}
.history-frise__meta,
.history-frise__text {
  color: var(--muted);
  font-size: 0.9rem;
}
.history-frise__marker {
  position: relative;
  width: 100%;
  height: var(--dot);
  margin-bottom: 0.85rem;
}
.history-frise__dot {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  width: var(--dot);
  height: var(--dot);
  border-radius: 50%;
  background: var(--fuchsia);
  box-shadow: 0 0 16px rgba(233, 30, 140, 0.5);
}
.history-frise__step.is-next .history-frise__dot {
  background: transparent;
  border: 2px solid var(--fuchsia);
  box-shadow: 0 0 14px rgba(233, 30, 140, 0.35);
  box-sizing: border-box;
}
/* Trait horizontal : gap de chaque côté, traverse le gutter de grille */
.history-frise__line {
  position: absolute;
  top: 50%;
  left: calc(var(--dot) + var(--dot-gap));
  right: calc(-1 * var(--frise-gap) + var(--dot-gap));
  height: 1px;
  transform: translateY(-50%);
  background: linear-gradient(
    90deg,
    rgba(233, 30, 140, 0.55),
    rgba(243, 238, 230, 0.22)
  );
  pointer-events: none;
}
.timeline { display: grid; }
.timeline-item { display: grid; grid-template-columns: 1.2rem 1fr; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.timeline-dot { width: 0.65rem; height: 0.65rem; border-radius: 50%; background: var(--fuchsia); margin-top: 0.4rem; }
.timeline-meta { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fuchsia); }

/* Footer */
.site-footer {
  background: #030303;
  color: var(--muted);
  padding: 3.5rem 0 1.75rem;
  border-top: 1px solid var(--line);
}
.footer-logo img {
  height: 7.5rem;
  max-width: 22rem;
  object-fit: contain;
  margin-bottom: 1rem;
}
.footer-grid {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto 2.5rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: auto auto;
  grid-template-areas:
    "brand  explore contact"
    "social galerie admin";
  column-gap: 2rem;
  row-gap: 0.5rem;
  align-items: end;
}
.footer-brand { grid-area: brand; align-self: start; }
.footer-explore { grid-area: explore; align-self: start; }
.footer-contact { grid-area: contact; align-self: start; }
.footer-social { grid-area: social; }
.footer-explore-last { grid-area: galerie; }
.footer-contact-last { grid-area: admin; }

.footer-motto {
  margin-top: 0.5rem;
  margin-bottom: 0;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: rgba(247, 243, 238, 0.55);
}
.site-footer h3 {
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 0.85rem;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-links a:hover { color: var(--fuchsia); }

/* Rangée basse : RS / Galerie / Administration — même ligne */
.footer-social,
.footer-explore-last,
.footer-contact-last {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-height: 1.35rem;
}
.footer-social { gap: 1rem; }
.footer-explore-last a,
.footer-contact-last a,
.social-links a {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  line-height: 1.25;
  text-transform: uppercase;
}
.social-links a {
  border-bottom: 1px solid var(--fuchsia);
}
.footer-explore-last a:hover,
.footer-contact-last a:hover {
  color: var(--fuchsia);
}
.footer-bottom {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
}
.footer-bottom__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}
.footer-admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(212, 175, 55, 0.45);
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.footer-admin-btn:hover {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
  color: var(--cream);
}
.footer-top-link {
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Back top */
.back-top {
  position: fixed !important; right: 1.2rem; bottom: 1.2rem; z-index: 9999;
  width: 3.2rem; height: 3.2rem; border: 1px solid rgba(212,175,55,0.5);
  background: #0a0a0a; color: #fff; cursor: pointer; display: grid; place-items: center;
  opacity: 0; visibility: hidden; pointer-events: none; transition: 0.35s; padding: 0;
}
.back-top.is-visible { opacity: 1 !important; visibility: visible !important; pointer-events: auto !important; }
.back-top__arrow {
  width: 0.55rem; height: 0.55rem;
  border-top: 2px solid var(--gold); border-right: 2px solid var(--gold);
  transform: translateY(2px) rotate(-45deg);
}
.back-top__ring { position: absolute; inset: 5px; border: 1px solid rgba(233,30,140,0.4); }
.back-top__label {
  position: absolute; bottom: calc(100% + 0.4rem); left: 50%; transform: translateX(-50%);
  font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0;
}
.back-top:hover { background: var(--fuchsia-deep); }
.back-top:hover .back-top__label { opacity: 1; }

.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

.page-hero--atelier,
.page-hero--editorial,
.page-hero--runway,
.page-hero--fabric,
.section--values,
.section--history,
.section--mood { background: var(--bg-2); }
.section--values::before,
.section--history::before,
.section--mood::before { display: none; }

.nav-cta { white-space: nowrap; }

/* ——— Responsive ——— */

/* Tablette large / petit desktop */
@media (max-width: 1200px) {
  .nav-links { gap: 0.7rem; }
  .nav-link { font-size: 0.64rem; letter-spacing: 0.1em; }
  .fx-values__grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}

/* Menu burger */
@media (max-width: 1100px) {
  .site-header {
    height: auto;
    min-height: var(--nav-h);
    padding-block: 0.35rem;
    padding-top: max(0.35rem, env(safe-area-inset-top, 0));
  }
  .nav-toggle {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    z-index: 2;
  }
  .nav {
    position: fixed;
    inset: var(--nav-h) 0 0;
    top: max(var(--nav-h), calc(var(--nav-h) + env(safe-area-inset-top, 0px) - 0.35rem));
    background: rgba(20,18,16,0.97);
    backdrop-filter: blur(14px);
    padding: 1.25rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom, 0));
    flex-direction: column;
    align-items: stretch;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: 0.4s var(--ease);
    overflow: auto;
    max-height: calc(100dvh - var(--nav-h));
    z-index: 90;
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-link {
    display: block;
    padding: 1rem 0;
    font-size: 0.85rem;
    letter-spacing: 0.14em;
  }
  .nav-link:hover { transform: none; }
  .nav-cta { width: 100%; text-align: center; margin-top: 1rem; min-height: 3rem; }
}

/* Tablette */
@media (max-width: 960px) {
  :root { --nav-h: 4.5rem; }

  .fx-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .fx-hero__stage {
    min-height: min(58vh, 28rem);
    order: -1;
  }
  .fx-hero__copy {
    padding: 2.25rem 1.25rem 3rem;
    justify-content: flex-start;
  }
  .fx-hero__title { font-size: clamp(2.4rem, 11vw, 3.8rem); }
  .fx-hero__frame { inset: 0.85rem; }
  .fx-hero__float { font-size: clamp(3.5rem, 18vw, 6rem); }

  .fx-vision__grid,
  .split,
  .stack-item--event {
    grid-template-columns: 1fr;
  }
  .stack-item--event .media-frame--event {
    max-width: 100%;
  }
  .stack-item,
  .contact-layout,
  .footer-grid,
  .form-row,
  .info-table div,
  .history-frise {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "social"
      "explore"
      "galerie"
      "contact"
      "admin";
    grid-template-rows: none;
    row-gap: 1.25rem;
    align-items: start;
  }
  .footer-explore-last,
  .footer-contact-last {
    margin-top: -0.5rem;
  }

  /* Frise verticale : trait sous le point, non collé */
  .history-frise {
    gap: 0;
  }
  .history-frise__step {
    position: relative;
    padding-left: 1.55rem;
    padding-bottom: 1.85rem;
  }
  .history-frise__step:last-child {
    padding-bottom: 0;
  }
  .history-frise__marker {
    position: absolute;
    left: 0;
    top: 0.15rem;
    bottom: 0;
    width: var(--dot);
    height: auto;
    margin-bottom: 0;
  }
  .history-frise__line {
    top: calc(var(--dot) + var(--dot-gap));
    left: 50%;
    right: auto;
    bottom: var(--dot-gap);
    width: 1px;
    height: auto;
    transform: translateX(-50%);
    background: linear-gradient(
      180deg,
      rgba(233, 30, 140, 0.55),
      rgba(243, 238, 230, 0.18)
    );
  }

  .fx-ed-card { flex: 0 0 min(78vw, 20rem); min-height: 14rem; }
  .fx-meta li { grid-template-columns: 5.5rem 1fr; }
  .fx-values__grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.35rem;
  }
  .fx-val { padding: 0.45rem; }
  .fx-val span { font-size: 0.95rem; }
  .fx-val strong { font-size: 0.52rem; letter-spacing: 0.02em; }
  .fx-film__shot { flex: 0 0 min(55vw, 14rem); }
  .fx-film__strip { animation-duration: 36s; }

  .gallery-item,
  .gallery-item:nth-child(5n+1) {
    grid-column: span 6;
    aspect-ratio: 1;
  }

  .page-hero { padding: calc(var(--nav-h) + 2.5rem) 0 2.25rem; }
  .footer-grid { gap: 1.75rem; }
  .filters {
    margin-inline: -0.25rem;
    padding-bottom: 0.35rem;
    -webkit-overflow-scrolling: touch;
  }
}

/* Mobile */
@media (max-width: 640px) {
  :root { --nav-h: 4.1rem; }

  .gal-band__shot { flex-basis: min(48vw, 12rem); }

  body { font-size: 1rem; }

  .header-inner {
    width: min(100% - 0.85rem, 90rem);
    gap: 0.5rem;
  }
  .brand { max-width: min(42vw, 9rem); }
  .header-brand { max-width: min(42vw, 9rem); margin-right: 3.1rem; }
  .header-brand .lang-switch { left: calc(100% + 0.5rem); }
  .brand img { max-width: 100%; }

  .fx-hero__stage { min-height: min(48vh, 22rem); }
  .fx-hero__copy { padding: 1.75rem 1.1rem 2.5rem; }
  .fx-hero__text { font-size: 0.98rem; }
  .fx-hero__frame { inset: 0.65rem; }
  .fx-kicker { letter-spacing: 0.18em; font-size: 0.64rem; }
  .fx-motto { letter-spacing: 0.14em; font-size: 0.66rem; }

  .fx-actions,
  .btn-group {
    flex-direction: column;
    align-items: stretch;
  }
  .fx-actions .fx-btn,
  .fx-actions .btn,
  .btn-group .btn {
    width: 100%;
  }

  .fx-watermark { font-size: clamp(4rem, 28vw, 8rem); }
  .fx-vision__left h2 { font-size: clamp(1.85rem, 8vw, 2.6rem); }
  .fx-editions__head h2,
  .fx-values__title,
  .fx-film__head h2 {
    font-size: clamp(1.7rem, 7.5vw, 2.4rem);
  }
  .fx-ed-card {
    flex: 0 0 min(86vw, 19rem);
    padding: 1.35rem 1.15rem;
  }
  .fx-meta li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
  .fx-values__grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.28rem;
  }
  .fx-val { padding: 0.35rem 0.28rem; }
  .fx-val span { font-size: 0.8rem; }
  .fx-val strong { font-size: 0.45rem; letter-spacing: 0.01em; }
  .fx-film__shot { flex: 0 0 62vw; }
  .fx-film__strip { animation-duration: 32s; }
  .fx-cta h2 { font-size: clamp(1.85rem, 9vw, 2.6rem); }
  .fx-cta .fx-actions { width: min(100%, 22rem); margin-inline: auto; }

  .gallery-item,
  .gallery-item:nth-child(5n+1) {
    grid-column: span 12;
  }
  .gallery-grid { gap: 0.4rem; }

  .info-table div { grid-template-columns: 1fr; gap: 0.35rem; }
  .stack-item { gap: 1rem; }
  .feature-list li { grid-template-columns: 2rem 1fr; }

  .footer-logo img { height: 6rem; max-width: 17rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.75rem; }

  .back-top {
    right: max(0.85rem, env(safe-area-inset-right));
    bottom: max(0.85rem, env(safe-area-inset-bottom));
    width: 2.9rem;
    height: 2.9rem;
  }
  .back-top__label { display: none; }

  .page-hero h1 { max-width: none; }
}

/* Très petit mobile */
@media (max-width: 380px) {
  .fx-values__grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.22rem;
  }
  .fx-val strong { font-size: 0.4rem; }
  .fx-hero__title { font-size: clamp(2.1rem, 12vw, 2.8rem); }
  .brand img { max-width: 100%; }
}

/* Paysage court (téléphone horizontal) */
@media (max-height: 520px) and (orientation: landscape) {
  .fx-hero { min-height: auto; }
  .fx-hero__stage { min-height: 100vh; min-height: 100dvh; }
  .fx-hero__copy { padding-block: 1.5rem 2rem; }
  .nav { max-height: calc(100dvh - 3.5rem); }
}

/* Grand écran */
@media (min-width: 1440px) {
  .fx-hero__copy { padding-inline: clamp(3rem, 6vw, 5.5rem); }
  .fx-hero__title { font-size: clamp(4.5rem, 5.5vw, 6rem); }
}

@media (prefers-reduced-motion: reduce) {
  .fx-rail__track, .hero-slideshow__slide, .fx-hero__frame, .fx-film__strip { animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

body.nav-open { overflow: hidden; }

/* Touch : moins de hover « collant » */
@media (hover: none) {
  .fx-ed-card:hover,
  .fx-val:hover,
  .nav-link:hover { transform: none; }
  .fx-film__viewport:hover .fx-film__strip { animation-play-state: running; }
}
