/* =========================================================
   Ad Giaco - Carnet de route
   Identité : troubadour itinérant des fêtes de Wallonie.
   Palette bleu concert (éclairage de scène), grain de papier,
   tampons de carnet.
   ========================================================= */

:root {
  --bg: #0a0e1a;
  --bg-alt: #10182b;
  --panel: #141f38;
  --ink: #eef1fa;
  --muted: #96a3c2;
  --blue: #3d7dfa;
  --blue-dim: #2757b0;
  --sky: #6fc4ff;
  --line: rgba(238, 241, 250, 0.14);
  --line-strong: rgba(238, 241, 250, 0.28);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --radius-sm: 10px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --font-display: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* grain de papier discret, purement décoratif */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; margin: 0 0 .4em; letter-spacing: .01em; }
p { margin: 0 0 1em; color: var(--muted); }
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: max(20px, var(--safe-left));
  padding-right: max(20px, var(--safe-right));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--font-body);
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .8em;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--blue);
}

section { position: relative; z-index: 1; padding: 88px 0; }
section + section { border-top: 1px solid var(--line); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .85em 1.5em;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { border-color: var(--blue); transform: translateY(-1px); }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #071022; }
.btn-primary:hover { background: #5c93fb; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding-top: var(--safe-top);
  background: rgba(10, 14, 26, 0.97);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: .6em;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  transition: transform .15s cubic-bezier(.34,1.5,.5,1);
}
.logo:active { transform: scale(.93); }
.logo-mark-wrap {
  position: relative;
  width: 34px;
  height: 34px;
  flex: none;
}
.logo-mark-wrap::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px solid var(--blue);
  opacity: .45;
  animation: logo-ring-idle 3.2s ease-in-out infinite;
}
.logo-mark { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; display: block; position: relative; z-index: 1; }
.logo strong { color: var(--ink); }
@keyframes logo-ring-idle {
  0%, 100% { transform: scale(.94); opacity: .35; }
  50% { transform: scale(1.08); opacity: .7; }
}
/* En direct : la bague du logo passe en bleu vif et pulse plus vite (donnée réelle du pulse) */
.logo-mark-wrap.is-live::before {
  border-color: var(--sky);
  animation-duration: 1.3s;
}
@media (prefers-reduced-motion: reduce) {
  .logo-mark-wrap::before { animation: none; opacity: .5; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-size: .92rem;
  color: var(--muted);
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--blue); }
.nav-links a[aria-current="page"] { color: var(--blue); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

/* ---------- Bandeau ticker : prochaines dates (toutes les pages) ---------- */
.header-ticker {
  display: block;
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, var(--blue-dim), var(--blue) 50%, var(--blue-dim));
  background-size: 200% 100%;
  animation: ticker-glow 6s ease-in-out infinite;
  text-decoration: none;
  white-space: nowrap;
  border-top: 1px solid rgba(0,0,0,.25);
}
.ticker-track {
  display: inline-flex;
  align-items: center;
  padding: 7px 0;
  animation: ticker-scroll 26s linear infinite;
  will-change: transform;
}
.ticker-track .seg {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 28px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .03em;
  color: #071022;
  text-transform: uppercase;
}
.ticker-track .seg .dot { width: 6px; height: 6px; border-radius: 50%; background: #071022; opacity: .5; flex-shrink: 0; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes ticker-glow { 0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }
@media (prefers-reduced-motion: reduce) {
  .header-ticker { animation: none; }
  .ticker-track { animation: none; }
}

@media (max-width: 760px) {
  .site-header .bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
  }
  .logo { grid-column: 2; justify-self: center; }
  .nav-actions { grid-column: 3; justify-self: end; }
}
#install-btn { display: none; font-size: .85rem; padding: .6em 1.1em; }
#install-btn.show { display: inline-flex; }

/* ---------- Navigation mobile : lanceur en orbite ---------- */
.orbit-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 48;
  background: rgba(5, 7, 14, 0.72);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
#orbit-backdrop.show { opacity: 1; pointer-events: auto; }

.orbit-nav {
  display: none;
  position: fixed;
  left: 50%;
  bottom: calc(24px + var(--safe-bottom));
  width: 66px;
  height: 66px;
  transform: translateX(-50%);
  z-index: 50;
}
.orbit-fab {
  position: relative;
  z-index: 2;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  padding: 4px;
  background: var(--panel);
  border: 2px solid var(--line-strong);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: border-color .25s ease, transform .25s cubic-bezier(.34,1.5,.5,1);
}
.orbit-fab img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.orbit-nav.open .orbit-fab { border-color: var(--blue); transform: rotate(135deg); }

.orbit-items { position: absolute; inset: 0; pointer-events: none; }
.orbit-items a {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: var(--ink);
  opacity: 0;
  transform: translate(-50%, -50%) scale(.3);
  transition: transform .4s cubic-bezier(.34,1.4,.4,1), opacity .25s ease;
  pointer-events: none;
}
.orbit-thumb {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--line-strong);
  background: var(--panel);
  box-shadow: 0 6px 16px rgba(0,0,0,.5);
}
.orbit-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.orbit-thumb-icon { display: flex; align-items: center; justify-content: center; }
.orbit-thumb-icon svg { width: 22px; height: 22px; color: var(--muted); }
.orbit-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 0;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(10,14,26,.9);
  white-space: nowrap;
}
.orbit-items a.active .orbit-thumb { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(61,125,250,.25); }
.orbit-items a.active .orbit-label { color: var(--blue); }

/* trajectoire en anneau ouvert autour du bouton, façon "@" : un grand
   arc qui part de près du bouton, fait presque tout le tour, et revient
   de l'autre côté - toujours borné à ±146px en largeur (limite vérifiée
   sur écran 375px) */
.orbit-items a:nth-child(1) { --ox: -65px;  --oy: -73px; }
.orbit-items a:nth-child(2) { --ox: -120px; --oy: -155px; }
.orbit-items a:nth-child(3) { --ox: -126px; --oy: -264px; }
.orbit-items a:nth-child(4) { --ox: -79px;  --oy: -355px; }
.orbit-items a:nth-child(5) { --ox: 0px;    --oy: -390px; }
.orbit-items a:nth-child(6) { --ox: 79px;   --oy: -355px; }
.orbit-items a:nth-child(7) { --ox: 126px;  --oy: -264px; }
.orbit-items a:nth-child(8) { --ox: 120px;  --oy: -155px; }
.orbit-items a:nth-child(9) { --ox: 65px;   --oy: -73px; }

.orbit-nav.open .orbit-items a {
  opacity: 1;
  pointer-events: auto;
  transform: translate(calc(-50% + var(--ox)), calc(-50% + var(--oy))) scale(1);
}
.orbit-nav.open .orbit-items a:nth-child(1) { transition-delay: .02s; }
.orbit-nav.open .orbit-items a:nth-child(2) { transition-delay: .05s; }
.orbit-nav.open .orbit-items a:nth-child(3) { transition-delay: .08s; }
.orbit-nav.open .orbit-items a:nth-child(4) { transition-delay: .11s; }
.orbit-nav.open .orbit-items a:nth-child(5) { transition-delay: .14s; }
.orbit-nav.open .orbit-items a:nth-child(6) { transition-delay: .17s; }
.orbit-nav.open .orbit-items a:nth-child(7) { transition-delay: .2s; }
.orbit-nav.open .orbit-items a:nth-child(8) { transition-delay: .23s; }
.orbit-nav.open .orbit-items a:nth-child(9) { transition-delay: .26s; }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .orbit-nav { display: block; }
  #orbit-backdrop { display: block; }
  body { padding-bottom: calc(90px + var(--safe-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .orbit-fab, .orbit-items a, #orbit-backdrop { transition: opacity .15s linear; }
  .orbit-nav.open .orbit-fab { transform: none; }
}

/* ---------- Retour en haut ---------- */
.to-top {
  position: fixed;
  right: max(18px, var(--safe-right));
  bottom: calc(18px + var(--safe-bottom));
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: #071022;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  z-index: 38;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, bottom .2s ease;
}
.to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }

@media (max-width: 760px) {
  .to-top { bottom: calc(76px + var(--safe-bottom)); }
}

/* ---------- Pastille de lecture persistante (musique lancée depuis l'accueil,
   continue sur tout le site sauf Radio et Vidéos qui ont leur propre lecteur) ---------- */
.global-audio-host-wrap {
  position: fixed;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  pointer-events: none;
}
.global-audio-bar {
  position: fixed;
  left: max(18px, var(--safe-left));
  bottom: calc(18px + var(--safe-bottom));
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: #071022;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  z-index: 38;
}
.global-audio-bar.is-playing { animation: play-btn-pulse 2s ease-in-out infinite; }
@media (max-width: 760px) {
  .global-audio-bar { bottom: calc(76px + var(--safe-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .global-audio-bar.is-playing { animation: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding-top: 64px;
  padding-bottom: 64px;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  line-height: 1.04;
  margin-bottom: .3em;
}
.hero h1 em {
  font-style: normal;
  color: var(--blue);
}
.hero .lede { font-size: 1.1rem; max-width: 46ch; }

.hero-art {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.hero-illustration {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 20%;
  animation: hero-develop 1.8s cubic-bezier(.2,.7,.3,1) both;
}
/* Lueur animée sur le vrai logo néon visible dans la photo (position mesurée
   sur l'image recadrée : cercle centré vers 28%/75%, ~58% de large) */
.hero-logo-glow {
  position: absolute;
  left: 28%;
  top: 75%;
  width: 60%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.6) 0%, rgba(173,210,255,.4) 32%, rgba(61,125,250,.22) 58%, transparent 76%);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: hero-logo-pulse 3.6s ease-in-out 1.8s infinite;
  opacity: 0;
}
@keyframes hero-logo-pulse {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.9); }
  15%, 45% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
  30% { opacity: .55; transform: translate(-50%, -50%) scale(.95); }
  70% { opacity: .8; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: .8; transform: translate(-50%, -50%) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-logo-glow { animation: none; opacity: .6; }
}

/* Grain halftone repris de la texture du vrai logo, "développé" comme une photo de presse */
.hero-art::after, .about-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(10, 14, 26, .9) 1px, transparent 1.3px);
  background-size: 5px 5px;
  mix-blend-mode: multiply;
  opacity: 0;
  animation: hero-halftone-in 1.8s cubic-bezier(.2,.7,.3,1) .15s both;
  pointer-events: none;
}
@keyframes hero-develop {
  0% { filter: grayscale(1) contrast(.75) brightness(.35) blur(3px); opacity: 0; }
  55% { opacity: 1; }
  100% { filter: grayscale(.3) contrast(1.18) brightness(1.02) blur(0); opacity: 1; }
}
@keyframes hero-halftone-in {
  0% { opacity: 0; }
  55% { opacity: .7; }
  100% { opacity: .35; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-illustration, .hero-art::after, .about-portrait img, .about-portrait::after { animation: none; opacity: 1; }
  .hero-art::after, .about-portrait::after { opacity: .35; }
}
.hero-stamp {
  position: absolute;
  bottom: 18px;
  right: 18px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 2px solid var(--blue);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
  transform: rotate(-6deg);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.stat-row .num { font-family: var(--font-display); font-size: 1.8rem; color: var(--blue); }
.stat-row .lbl { font-size: .82rem; color: var(--muted); }
a.stat { text-decoration: none; display: block; transition: transform .15s ease; }
a.stat:hover { transform: translateY(-2px); }
a.stat:hover .num { color: var(--sky); }

@media (max-width: 820px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 360px; margin: 0 auto; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Mini-lecteur (lecture automatique, accueil) ---------- */
.mini-player {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 1.4em;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  max-width: 340px;
  background: var(--panel);
}
.mini-player-toggle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
}
.mini-player-info { display: flex; flex-direction: column; min-width: 0; }
.mini-player-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--sky); }
.mini-player-title { font-size: .88rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Teaser (accueil) ---------- */
#home-teaser { padding: 64px 0; }
.teaser-wrap { max-width: 640px; }
.teaser-text { font-size: 1.15rem; color: var(--ink); line-height: 1.6; }
.teaser-link { display: inline-block; margin-top: .3em; color: var(--blue); text-decoration: none; font-weight: 600; }
.teaser-link:hover { color: var(--sky); }

/* ---------- Presse ---------- */
.press-grid { display: flex; flex-direction: column; gap: 16px; margin-bottom: 48px; }
.press-card {
  display: flex;
  gap: 20px;
  align-items: stretch;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}
.press-card:hover { border-color: var(--blue); transform: translateY(-2px); }
.press-photo {
  flex: 0 0 140px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.press-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.press-body { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.press-outlet { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--sky); }
.press-card h3 { margin: .4em 0; font-size: 1.05rem; }
.press-card p { font-size: .88rem; margin-bottom: .6em; }
.press-link { font-size: .82rem; color: var(--blue); }
@media (max-width: 600px) {
  .press-card { flex-direction: column; }
  .press-photo { flex-basis: auto; aspect-ratio: 16/9; }
}

.press-kit {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--panel);
}
.press-kit h3 { margin-bottom: .4em; }
.press-kit-assets { display: flex; gap: 10px; flex-wrap: wrap; margin: 1em 0; }
.press-kit-assets a {
  font-size: .84rem;
  padding: .5em 1em;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
}
.press-kit-assets a:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- Galerie ---------- */
.gallery-section { margin-bottom: 48px; }
.gallery-section h3 { font-size: 1.15rem; margin-bottom: 18px; color: var(--ink); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.gallery-thumb {
  display: block;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery-thumb:hover img { transform: scale(1.06); }
@media (max-width: 760px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; } }
@media (max-width: 480px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Section headers ---------- */
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }

/* ---------- Radio ---------- */
.radio-player {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.radio-stage {
  position: relative;
  background: #000 url("/assets/img/radio-cover.jpg") center 22% / cover no-repeat;
  aspect-ratio: 16/9;
  overflow: hidden;
}
/* Lecteur audio, pas vidéo : l'iframe YouTube joue le son hors champ, la
   vraie photo reste affichée comme pochette en permanence. */
.radio-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; pointer-events: none; }
.radio-stage .radio-placeholder {
  position: absolute; inset: 0;
  z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; color: var(--ink); text-align: center; padding: 20px;
  background: linear-gradient(180deg, rgba(10,14,26,.3) 0%, rgba(10,14,26,.5) 55%, rgba(10,14,26,.8) 100%);
  cursor: pointer;
}
.radio-placeholder .pulse {
  width: 64px; height: 64px; border-radius: 50%;
  border: 2px solid var(--blue);
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s ease;
}
.radio-placeholder:hover .pulse { transform: scale(1.06); }
.radio-placeholder.is-playing .pulse {
  animation: play-btn-pulse 2s ease-in-out infinite;
}
.radio-controls {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 22px;
  border-top: 1px solid var(--line);
  background: rgba(10, 14, 26, .5);
  backdrop-filter: blur(12px);
}
.play-btn {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--blue); border: none; color: #071022;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(61, 125, 250, .5);
  transition: box-shadow .3s ease;
}
.play-btn.is-playing { animation: play-btn-pulse 2s ease-in-out infinite; }
@keyframes play-btn-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(61, 125, 250, .45); }
  50% { box-shadow: 0 0 0 10px rgba(61, 125, 250, 0); }
}
.now-playing { flex: 1; min-width: 0; }
.now-playing .track { font-weight: 600; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now-playing .sub { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.radio-skip { background: none; border: 1px solid var(--line-strong); color: var(--ink); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; }

.radio-queue { max-height: 480px; overflow-y: auto; }
.queue-item {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  background: transparent;
  transition: background .15s ease;
}
.queue-item:hover { background: rgba(61,125,250,.1); }
.queue-item.active { background: rgba(61,125,250,.16); }
.queue-thumb {
  position: relative;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg);
}
.queue-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.queue-thumb .eq {
  display: none;
  position: absolute; inset: 0;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  padding-bottom: 8px;
  background: rgba(10, 14, 26, .55);
}
.queue-thumb .eq i {
  width: 3px;
  background: var(--sky);
  border-radius: 2px;
  animation: eq-bounce 1s ease-in-out infinite;
}
.queue-thumb .eq i:nth-child(1) { height: 6px; animation-delay: -.6s; }
.queue-thumb .eq i:nth-child(2) { height: 14px; animation-delay: -.3s; }
.queue-thumb .eq i:nth-child(3) { height: 9px; animation-delay: -.9s; }
@keyframes eq-bounce {
  0%, 100% { transform: scaleY(.4); }
  50% { transform: scaleY(1); }
}
.radio-queue.is-playing .queue-item.active .queue-thumb .eq { display: flex; }
.queue-item .meta { min-width: 0; flex: 1; }
.queue-item .meta .t { font-size: .92rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue-item .meta .k { font-size: .74rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag {
  font-size: .68rem;
  padding: .2em .6em;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  flex-shrink: 0;
}
.tag.original { color: var(--blue); border-color: var(--blue-dim); }
@media (prefers-reduced-motion: reduce) {
  .play-btn.is-playing { animation: none; }
  .queue-thumb .eq i { animation: none; transform: scaleY(.7); }
}

@media (max-width: 820px) {
  .radio-player { grid-template-columns: 1fr; }
  .radio-queue { max-height: 320px; }
}

/* ---------- Écoute en direct (carte pulse) ---------- */
.pulse-panel {
  margin-top: 28px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.pulse-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: .85rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--ink); }
.pulse-live-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--sky);
  box-shadow: 0 0 0 0 rgba(111,196,255,.7);
  animation: pulse-live 1.8s ease-out infinite;
  flex-shrink: 0;
}
@keyframes pulse-live {
  0% { box-shadow: 0 0 0 0 rgba(111,196,255,.6); }
  70% { box-shadow: 0 0 0 8px rgba(111,196,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(111,196,255,0); }
}
.pulse-radar {
  position: relative;
  aspect-ratio: 2.4 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background:
    linear-gradient(rgba(238,241,250,.06) 1px, transparent 1px) 0 0 / 100% 16.6%,
    linear-gradient(90deg, rgba(238,241,250,.06) 1px, transparent 1px) 0 0 / 8.3% 100%,
    var(--bg);
  border: 1px solid var(--line);
}
.pulse-dot {
  position: absolute;
  width: 8px; height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 8px 2px rgba(61,125,250,.7);
  animation: pulse-dot-in .6s cubic-bezier(.2,.8,.3,1) both;
}
.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--blue);
  opacity: .6;
  animation: pulse-ring 1.6s ease-out infinite;
}
@keyframes pulse-dot-in { 0% { transform: scale(0); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes pulse-ring { 0% { transform: scale(.4); opacity: .7; } 100% { transform: scale(2.4); opacity: 0; } }
.pulse-caption { font-size: .82rem; margin: 12px 0 0; }
@media (prefers-reduced-motion: reduce) {
  .pulse-live-dot, .pulse-dot, .pulse-dot::after { animation: none; }
}

/* ---------- Carnet de tournée ---------- */
.agenda-poster {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 44px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  text-decoration: none;
  max-width: 520px;
  transition: border-color .15s ease, transform .15s ease;
}
.agenda-poster:hover { border-color: var(--blue); transform: translateY(-2px); }
.agenda-poster img { width: 92px; height: 92px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.agenda-poster-cap { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.agenda-poster-cap strong { color: var(--ink); font-size: 1rem; }
.agenda-poster-cap span { font-size: .84rem; color: var(--muted); }

.tour-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.tour-map {
  height: 460px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--panel);
}
/* Pastilles de lieu façon carte réelle, dessinées en HTML (Leaflet divIcon) */
.tour-pin { position: relative; display: block; width: 22px; height: 22px; cursor: pointer; }
.tour-pin .dot {
  position: absolute; top: 50%; left: 50%;
  width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 2px rgba(10,14,26,.8);
  transition: background .15s ease;
}
.tour-pin .ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--blue);
  opacity: .5;
  animation: tour-pin-pulse 2.4s ease-in-out infinite;
}
.tour-pin.active .dot, .tour-pin:hover .dot { background: var(--sky); }
.tour-pin.is-past .dot { background: var(--muted); }
.tour-pin.is-past .ring { border-color: var(--muted); opacity: .25; animation: none; }
@keyframes tour-pin-pulse {
  0%, 100% { transform: scale(.85); opacity: .5; }
  50% { transform: scale(1.15); opacity: .15; }
}
@media (prefers-reduced-motion: reduce) { .tour-pin .ring { animation: none; } }

/* Habillage sombre des popups Leaflet pour matcher le site */
.leaflet-container { background: var(--panel); font-family: var(--font-body); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--panel); color: var(--ink); box-shadow: var(--shadow); }
.leaflet-popup-content { font-size: .85rem; margin: 10px 14px; }
.leaflet-popup-content strong { color: var(--ink); }
.leaflet-popup-close-button { color: var(--muted) !important; }
.leaflet-control-attribution { background: rgba(10,14,26,.7) !important; color: var(--muted) !important; font-size: .68rem !important; }
.leaflet-control-attribution a { color: var(--muted) !important; }
.leaflet-control-zoom a { background: var(--panel) !important; color: var(--ink) !important; border-color: var(--line-strong) !important; }

.tour-list { display: flex; flex-direction: column; gap: 14px; }
.tour-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
  position: relative;
}
.tour-card:hover, .tour-card.active { border-color: var(--blue); background: rgba(61,125,250,.08); }
.tour-card .date-stamp {
  display: inline-block;
  font-family: var(--font-display);
  color: var(--sky);
  border: 1.5px solid var(--sky);
  border-radius: 6px;
  padding: .15em .6em;
  font-size: .8rem;
  transform: rotate(-3deg);
  margin-bottom: .5em;
}
.tour-card h3 { font-size: 1.1rem; margin-bottom: .15em; }
.tour-card .place { color: var(--muted); font-size: .85rem; margin-bottom: .5em; }
.tour-card p { margin: 0; font-size: .88rem; }
.tour-card a.src { font-size: .74rem; color: var(--blue); text-decoration: none; }
.tour-card.is-past { opacity: .55; }
.tour-card.is-past .date-stamp, .tour-card.is-past h3 { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.tour-card.is-past:hover, .tour-card.is-past.active { opacity: .8; }

@media (max-width: 820px) { .tour-wrap { grid-template-columns: 1fr; } .tour-map { height: 320px; } }

/* ---------- Videos ---------- */
.video-filters { display: flex; gap: 10px; margin-bottom: 28px; flex-wrap: wrap; }
.filter-btn {
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--muted);
  padding: .5em 1.1em;
  border-radius: 999px;
  font-size: .85rem;
  cursor: pointer;
}
.filter-btn.active { background: var(--blue); border-color: var(--blue); color: #071022; }

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.video-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--panel);
}
.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  cursor: pointer;
}
.video-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.55) 100%); }
.video-thumb .playbadge {
  position: absolute; inset: 0; margin: auto; width: 52px; height: 52px;
  background: rgba(21,16,11,.7); border: 1.5px solid var(--blue); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; z-index: 2;
}
.video-thumb iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }
.video-info { padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.video-info .t { font-size: .88rem; font-weight: 600; }
.video-info .v { font-size: .74rem; color: var(--muted); }

@media (max-width: 900px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .video-grid { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.about-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; }
.about-portrait {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero-develop 1.8s cubic-bezier(.2,.7,.3,1) both;
}
.about-text p { font-size: 1.02rem; color: var(--ink); }
.about-links { display: flex; gap: 12px; margin-top: 1.4em; flex-wrap: wrap; }
.about-links a {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .6em 1.1em; border: 1px solid var(--line-strong); border-radius: 999px;
  text-decoration: none; font-size: .85rem;
}
.about-links a:hover { border-color: var(--blue); color: var(--blue); }

@media (max-width: 820px) { .about-wrap { grid-template-columns: 1fr; } .about-portrait { max-width: 300px; margin: 0 auto; } }

.about-sections {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}
.about-sections .card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 22px 24px;
}
.about-sections .card h3 {
  font-size: 1.05rem;
  color: var(--blue);
  margin-bottom: .5em;
}
.about-sections .card p { font-size: .92rem; margin: 0; }

@media (max-width: 900px) { .about-sections { grid-template-columns: 1fr; } }

/* ---------- Réseaux sociaux ---------- */
.social-live { display: grid; grid-template-columns: 500px 1fr; gap: 24px; align-items: start; margin-top: 32px; }
.fb-embed {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  max-width: 500px;
}
.fb-embed iframe { display: block; width: 100%; }
.social-side { display: flex; flex-direction: column; gap: 16px; }
.social-side .card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 22px;
}
.social-side .card h3 { font-size: 1rem; margin-bottom: .3em; }
.social-side .card p { font-size: .88rem; margin-bottom: .8em; color: var(--muted); }
@media (max-width: 900px) {
  .social-live { grid-template-columns: 1fr; }
  .fb-embed { max-width: 100%; }
}

/* ---------- Réservation ---------- */
.booking-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 32px 0; }
.booking-types .card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 24px;
  transition: transform .18s ease, border-color .18s ease;
}
.booking-types .card:hover { transform: translateY(-3px); border-color: var(--blue); }
.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(61, 125, 250, .12);
  color: var(--blue);
  margin-bottom: 1em;
}
.card-icon svg { width: 22px; height: 22px; }
.booking-types .card h3 { font-size: 1rem; margin-bottom: .4em; }
.booking-types .card p { font-size: .88rem; color: var(--muted); margin: 0; }

.booking-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}
.booking-steps::before {
  content: "";
  position: absolute;
  top: 15px;
  left: calc(100% / 6);
  right: calc(100% / 6);
  height: 2px;
  background: var(--line-strong);
  z-index: 0;
}
.step { position: relative; z-index: 1; display: flex; gap: 12px; align-items: flex-start; }
.step-num {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--blue);
  color: #071022;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  box-shadow: 0 0 0 4px var(--bg);
}
.step h4 { font-size: .95rem; margin-bottom: .2em; }
.step p { font-size: .85rem; color: var(--muted); margin: 0; }
@media (max-width: 820px) {
  .booking-types, .booking-steps { grid-template-columns: 1fr; }
  .booking-steps::before { display: none; }
}

/* ---------- Contact ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; min-width: 0; }
.contact-wrap > * { min-width: 0; }
.contact-form { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.field { min-width: 0; }
.field label { display: block; font-size: .8rem; color: var(--muted); margin-bottom: .4em; text-transform: uppercase; letter-spacing: .06em; }
.field input, .field textarea, .field select {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: .8em .9em;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: .95rem;
}
.field input[type="date"], .field input[type="time"] {
  /* Safari/WebKit impose une largeur minimale interne à ces contrôles
     natifs qui ignore width:100% dans un conteneur étroit, d'où le
     débordement sur iPhone - width:1px + min-width:100% force le
     contrôle à suivre la largeur du conteneur plutôt que la sienne. */
  -webkit-min-logical-width: 0;
  min-width: 100%;
  width: 1px;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue); }
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; cursor: pointer; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; min-width: 0; }
.field-row .field { min-width: 0; }
.form-status { min-height: 1.4em; font-size: .88rem; margin: 0; }
.form-status.ok { color: var(--sky); }
.form-status.error { color: #ff8a8a; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }

.contact-side .card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 22px;
  margin-bottom: 16px;
}
.contact-side .card h3 { font-size: 1rem; margin-bottom: .3em; }
.contact-side .card p { font-size: .88rem; margin-bottom: .6em; }

@media (max-width: 820px) { .contact-wrap { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  padding: 48px 0 calc(24px + var(--safe-bottom));
  border-top: 1px solid var(--line);
  overflow: hidden;
}
/* Grain halftone repris du logo, en très léger, pour rattacher le pied de page à l'identité */
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .05) 1px, transparent 1.3px);
  background-size: 6px 6px;
  mask-image: radial-gradient(ellipse 60% 100% at 15% 0%, #000 0%, transparent 75%);
  pointer-events: none;
}
.footer-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 28px;
  margin-bottom: 40px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--panel), rgba(61, 125, 250, .1));
}
.footer-cta-text h3 { font-size: clamp(1.3rem, 3vw, 1.7rem); margin: .1em 0 0; }
.footer-cta .btn-primary { flex: none; white-space: nowrap; }

.footer-links-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  padding-bottom: 32px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.footer-nav-inline { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-nav-inline a {
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.footer-nav-inline a:hover { color: var(--blue); }
.footer-social-wrap { display: flex; align-items: center; gap: 10px; }
.footer-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  transition: background .6s ease;
}
.footer-live-dot.is-live {
  background: var(--sky);
  box-shadow: 0 0 0 0 rgba(111, 196, 255, .6);
  animation: footer-dot-pulse 1.6s ease-in-out infinite;
}
@keyframes footer-dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(111, 196, 255, .55); }
  50% { box-shadow: 0 0 0 5px rgba(111, 196, 255, 0); }
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  transition: color .15s ease, border-color .15s ease, transform .15s ease;
}
.footer-social a:hover { color: var(--blue); border-color: var(--blue); transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; }

.footer-wordmark {
  display: block;
  position: relative;
  text-align: center;
  font-family: var(--font-body);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(3rem, 15vw, 8rem);
  line-height: 1;
  letter-spacing: -.01em;
  color: var(--sky);
  text-decoration: none;
  margin: 8px 0 20px;
  text-shadow:
    0 0 3px rgba(111, 196, 255, .55),
    0 0 10px rgba(61, 125, 250, .3),
    0 0 20px rgba(61, 125, 250, .15);
  /* Éteint jusqu'à ce que la pastille entre dans l'écran, comme un néon
     qu'on allume : voir la classe .in-view posée par app.js */
  clip-path: inset(0 100% 0 0);
  -webkit-clip-path: inset(0 100% 0 0);
}
.footer-wordmark:hover { color: var(--blue); }
.footer-wordmark-wrap.in-view .footer-wordmark {
  animation: neon-draw 1.8s cubic-bezier(.25,.7,.3,1) forwards,
             neon-flicker 6s linear 1.8s infinite;
}
/* Pendant la lecture (moteur audio persistant ou lecteur radio), le halo
   respire au lieu du scintillement au repos - voir setFooterAudioReactive() */
body.audio-playing .footer-wordmark-wrap.in-view .footer-wordmark {
  animation: neon-draw 1.8s cubic-bezier(.25,.7,.3,1) forwards,
             footer-audio-pulse 1.1s ease-in-out 1.8s infinite;
}
/* Le néon se dessine de gauche à droite, puis scintille façon vraie enseigne */
@keyframes neon-draw {
  to { clip-path: inset(0 0% 0 0); -webkit-clip-path: inset(0 0% 0 0); }
}
@keyframes neon-flicker {
  0%, 3%, 6%, 9%, 82%, 85%, 100% { opacity: 1; }
  4%, 8%, 83% { opacity: .8; }
  4.5% { opacity: .92; }
}
@keyframes footer-audio-pulse {
  0%, 100% {
    text-shadow:
      0 0 3px rgba(111, 196, 255, .55),
      0 0 10px rgba(61, 125, 250, .3),
      0 0 20px rgba(61, 125, 250, .15);
  }
  50% {
    text-shadow:
      0 0 5px rgba(111, 196, 255, .85),
      0 0 16px rgba(61, 125, 250, .55),
      0 0 32px rgba(61, 125, 250, .3);
  }
}
@media (prefers-reduced-motion: reduce) {
  .footer-wordmark { clip-path: none; -webkit-clip-path: none; }
  .footer-wordmark-wrap.in-view .footer-wordmark,
  body.audio-playing .footer-wordmark-wrap.in-view .footer-wordmark { animation: none; }
}

.footer-row {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px;
  font-size: .82rem; color: var(--muted);
}
.footer-row a { color: var(--muted); text-decoration: none; }
.footer-row a:hover { color: var(--blue); }
.credit { display: flex; align-items: center; gap: .5em; }
@media (max-width: 600px) {
  .footer-cta { flex-direction: column; align-items: flex-start; }
  .footer-cta .btn-primary { width: 100%; justify-content: center; }
}

/* ---------- Install toast (iOS gesture) ---------- */
.install-sheet {
  position: fixed;
  left: 16px; right: 16px;
  bottom: calc(16px + var(--safe-bottom));
  z-index: 60;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 18px;
  box-shadow: var(--shadow);
  display: none;
  max-width: 420px;
  margin: 0 auto;
}
.install-sheet.show { display: block; }
.install-sheet h4 { margin-bottom: .4em; font-size: 1rem; }
.install-sheet p { font-size: .86rem; margin-bottom: .8em; }
.install-sheet .steps { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--ink); }
.install-steps-list { margin: 0 0 .8em; padding-left: 1.2em; font-size: .85rem; color: var(--ink); display: flex; flex-direction: column; gap: .5em; }
.install-steps-list li { padding-left: .2em; }
.install-sheet button.close { position: absolute; top: 10px; right: 10px; background: none; border: none; color: var(--muted); font-size: 1.1rem; cursor: pointer; }

/* ---------- Visionneuse plein écran ---------- */
body.lightbox-open { overflow: hidden; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: max(20px, var(--safe-top)) max(20px, var(--safe-right)) max(20px, var(--safe-bottom)) max(20px, var(--safe-left));
  background: rgba(5, 7, 14, 0.94);
  backdrop-filter: blur(6px);
}
.lightbox.show { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  animation: lightbox-in .25s cubic-bezier(.2,.8,.3,1) both;
}
.lightbox-close {
  position: fixed;
  top: max(16px, var(--safe-top));
  right: max(16px, var(--safe-right));
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(19, 28, 51, .9);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 91;
}
.lightbox-close:hover { border-color: var(--blue); color: var(--blue); }
.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(19, 28, 51, .9);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 91;
}
.lightbox-nav:hover { border-color: var(--blue); color: var(--blue); }
.lightbox-prev { left: max(16px, var(--safe-left)); }
.lightbox-next { right: max(16px, var(--safe-right)); }
@media (max-width: 640px) {
  .lightbox-nav { width: 40px; height: 40px; }
}
@keyframes lightbox-in {
  0% { opacity: 0; transform: scale(.96); }
  100% { opacity: 1; transform: scale(1); }
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.visually-loading { opacity: 0; }
