/* ═══════════════════════════════════════════════════════════
   LONG WAH · HUB D'ACCUEIL
   Charte BMTCA — vert sombre / or
   ═══════════════════════════════════════════════════════════ */

:root {
  --dark:       #0f2318;
  --dark-bg:    #0a1a11;
  --green:      #1a4d2e;
  --mid:        #2c7a4b;
  --light:      #4caf74;
  --panel:      #142e1e;
  --panel-2:    #16331f;
  --gold:       #c4943a;
  --gold2:      #e8b84b;
  --cream:      #f5f0e8;
  --white:      #fefdfb;
  --shadow:     rgba(0, 0, 0, .45);
}

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

/* Pas de défilement horizontal (mobile) : clip ne crée pas de conteneur de scroll */
html, body { overflow-x: hidden; overflow-x: clip; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', 'DM Sans', sans-serif;
  font-weight: 400;
  background: var(--dark-bg);
  color: var(--cream);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  display: flex;
}

/* ── Fond ── */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(70% 55% at 50% -5%, rgba(26, 77, 46, .55) 0%, transparent 60%),
    radial-gradient(45% 45% at 15% 100%, rgba(196, 148, 58, .10) 0%, transparent 60%),
    radial-gradient(45% 45% at 85% 110%, rgba(44, 122, 75, .18) 0%, transparent 60%),
    linear-gradient(180deg, #0a1a11 0%, #0f2318 55%, #0a1a11 100%);
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .35;
  background-image:
    linear-gradient(rgba(196, 148, 58, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196, 148, 58, .05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 75%);
}

/* ── Conteneur ── */
.hub {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  overflow-x: clip;   /* contient les ondes du logo (jusqu'à 880px) */
  padding: clamp(3rem, 7vh, 6rem) 1.5rem clamp(2rem, 5vh, 4rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ═══ EN-TÊTE ═══ */
.hero { max-width: 640px; }

/* Logo repris de longwah.fr (splash) : dragon flottant, ondes, hanzis 龍瓦 */
.emblem {
  position: relative;
  width: 200px;
  margin: 0 auto 1.75rem;
  display: flex;
  justify-content: center;
}

.emblem-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 0;
}
.emblem-ring {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 1px solid rgba(196, 148, 58, .08);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: ripple 4s ease-out infinite;
}
.emblem-ring:nth-child(2) { animation-delay: 1.3s; }
.emblem-ring:nth-child(3) { animation-delay: 2.6s; }

.emblem-dragon-wrap {
  position: relative;
  z-index: 2;
  animation: dragonFloat 5s ease-in-out infinite;
}

.emblem-dragon {
  display: block;
  width: 200px;
  height: 200px;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(44, 122, 75, .6)) drop-shadow(0 0 40px rgba(196, 148, 58, .2));
}

.emblem-chars {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -52%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  z-index: 3;
}
.emblem-chi, .emblem-wa {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.9rem, 1.62rem + 1.2vw, 2.75rem);
  font-weight: 400;
  line-height: 1;
}
.emblem-chi {
  color: var(--gold);
  text-shadow: 0 2px 12px rgba(0, 0, 0, .7), 0 0 20px rgba(196, 148, 58, .5);
}
.emblem-wa {
  color: rgba(196, 148, 58, .85);
  text-shadow: 0 2px 8px rgba(0, 0, 0, .6);
  margin-top: 2px;
}

.eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: .95rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(232, 184, 75, .95);
  margin-bottom: 1.1rem;
  white-space: nowrap;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(3rem, 9vw, 5.2rem);
  line-height: .96;
  letter-spacing: .01em;
  color: var(--white);
  white-space: nowrap;
}
.hero-title em {
  font-style: italic;
  color: var(--gold2);
}
.hero-title span {
  display: inline-block;
  background: linear-gradient(120deg, var(--light), var(--gold2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  margin: 1.4rem auto 0;
  max-width: 480px;
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.7;
  color: rgba(245, 240, 232, .82);
}

.gold-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2.4rem auto 0;
  width: 220px;
}
.rule-line {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, rgba(196, 148, 58, .6));
}
.rule-line:last-child {
  background: linear-gradient(90deg, rgba(196, 148, 58, .6), transparent);
}
.rule-diamond { color: var(--gold2); font-size: .8rem; }

/* ═══ LES DEUX PORTES ═══ */
.gates {
  margin-top: clamp(2.6rem, 6vh, 4.2rem);
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
}

.gate {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 2.4rem 2.2rem;
  border-radius: 18px;
  text-decoration: none;
  color: var(--cream);
  background: var(--panel);
  border: 1px solid rgba(196, 148, 58, .18);
  box-shadow: 0 20px 45px -20px var(--shadow);
  transition: transform .45s cubic-bezier(.2, .8, .2, 1),
              border-color .45s, box-shadow .45s;
}
.gate:hover {
  transform: translateY(-8px);
  border-color: rgba(196, 148, 58, .55);
  box-shadow: 0 32px 60px -22px rgba(0, 0, 0, .6);
}

/* Photo de fond + voile */
.gate-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 1.1s cubic-bezier(.2, .8, .2, 1), filter .6s;
  filter: saturate(1.05);
}
.gate:hover .gate-photo { transform: scale(1.12); }

.gate-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  transition: opacity .6s;
  background:
    linear-gradient(160deg, rgba(10, 26, 17, .62) 0%, rgba(10, 26, 17, .80) 45%, rgba(10, 26, 17, .96) 100%);
}
.gate--academy .gate-veil {
  background:
    linear-gradient(160deg, rgba(14, 24, 12, .60) 0%, rgba(12, 22, 14, .80) 45%, rgba(10, 20, 12, .96) 100%);
}
.gate:hover .gate-veil { opacity: .82; }

/* Idéogramme filigrane */
.gate-kanji {
  position: absolute;
  z-index: -1;
  right: -.15em;
  bottom: -.28em;
  font-family: 'Cinzel', serif;
  font-size: 15rem;
  line-height: 1;
  color: rgba(245, 240, 232, .05);
  pointer-events: none;
  transition: color .6s;
}
.gate--academy .gate-kanji { color: rgba(232, 184, 75, .06); }
.gate:hover .gate-kanji { color: rgba(245, 240, 232, .09); }
.gate--academy:hover .gate-kanji { color: rgba(232, 184, 75, .10); }

.gate-glow {
  position: absolute;
  top: -40%; right: -30%;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(76, 175, 116, .30), transparent 65%);
  opacity: .55;
  transition: opacity .45s, transform .45s;
  pointer-events: none;
}
.gate--academy .gate-glow {
  background: radial-gradient(circle, rgba(196, 148, 58, .30), transparent 65%);
}
.gate:hover .gate-glow { opacity: 1; transform: scale(1.15); }

.gate-seal {
  font-family: 'Cinzel', serif;
  font-size: 1.6rem;
  width: 58px; height: 58px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--gold2);
  background: rgba(10, 26, 17, .6);
  border: 1px solid rgba(196, 148, 58, .35);
  margin-bottom: 1.5rem;
}
.gate--academy .gate-seal { color: var(--light); }

.gate-kicker {
  font-family: 'DM Mono', monospace;
  font-size: .74rem;
  letter-spacing: .16em;
  color: rgba(196, 148, 58, .85);
  margin-bottom: .55rem;
}

.gate-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 1.4rem;
  line-height: 1.05;
  color: rgba(245, 240, 232, .65);
  margin-bottom: .35rem;
}
.gate-word {
  display: block;
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 2.5rem;
  letter-spacing: .01em;
  color: var(--white);
  text-transform: uppercase;
}
.gate--clinic .gate-word {
  background: linear-gradient(120deg, var(--light), #a9dfc0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.gate--academy .gate-word {
  background: linear-gradient(120deg, var(--gold2), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gate-brand {
  font-family: 'DM Mono', monospace;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(196, 148, 58, .70);
  margin-bottom: 1rem;
}

.gate-desc {
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--cream);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .55);
  margin-bottom: 1.4rem;
}

.gate-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.8rem;
}
.gate-tags li {
  font-family: 'DM Mono', monospace;
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .04em;
  padding: .4rem .8rem;
  border-radius: 40px;
  color: var(--cream);
  background: rgba(76, 175, 116, .22);
  border: 1px solid rgba(76, 175, 116, .40);
}
.gate--academy .gate-tags li {
  background: rgba(196, 148, 58, .22);
  border-color: rgba(196, 148, 58, .45);
}

.gate-cta {
  margin-top: auto;
  align-self: stretch;
  justify-content: center;
  font-family: 'Jost', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: .03em;
  color: var(--dark-bg);
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: 1.25rem 1.6rem;
  border-radius: 14px;
  background: linear-gradient(120deg, var(--light), #7fd0a4);
  box-shadow: 0 12px 26px -12px rgba(76, 175, 116, .8);
  transition: transform .35s, box-shadow .35s, filter .35s;
}
.gate--academy .gate-cta {
  background: linear-gradient(120deg, var(--gold2), var(--gold));
  box-shadow: 0 12px 26px -12px rgba(196, 148, 58, .8);
}
.gate:hover .gate-cta {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 18px 32px -12px rgba(76, 175, 116, .9);
}
.gate--academy:hover .gate-cta {
  box-shadow: 0 18px 32px -12px rgba(196, 148, 58, .9);
}
.gate .arrow { font-size: 1.3rem; transition: transform .35s; }
.gate:hover .arrow { transform: translateX(6px); }

/* ── Accent AGENDA (or/ambre) ── */
.gate--agenda .gate-word {
  background: linear-gradient(120deg, var(--gold2), #d98f3a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.gate--agenda .gate-seal { color: var(--gold2); }

/* ── Accent BAOYUANHE (jade) ── */
.gate--baoyuanhe .gate-word {
  background: linear-gradient(120deg, var(--light), #7fe0d0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.gate--baoyuanhe .gate-seal { color: var(--light); }
.gate--baoyuanhe .gate-glow {
  background: radial-gradient(circle, rgba(127, 224, 208, .30), transparent 65%);
}
.gate--baoyuanhe .gate-kanji { color: rgba(127, 224, 208, .06); }
.gate--baoyuanhe .gate-tags li {
  background: rgba(127, 224, 208, .18);
  border-color: rgba(127, 224, 208, .40);
}

/* ── État EN CONSTRUCTION ── */
.gate--soon {
  cursor: default;
}
.gate--soon .gate-photo {
  filter: grayscale(.45) brightness(.62);
  transform: scale(1.04);
}
.gate--soon .gate-veil {
  background:
    linear-gradient(160deg, rgba(10, 22, 14, .74) 0%, rgba(10, 22, 14, .86) 45%, rgba(8, 18, 11, .97) 100%);
}
.gate--soon:hover {
  transform: none;
  border-color: rgba(196, 148, 58, .30);
  box-shadow: 0 20px 45px -20px var(--shadow);
}
.gate--soon:hover .gate-photo { transform: scale(1.04); }
.gate--soon:hover .gate-veil { opacity: 1; }

/* Pseudo-élément « À venir » */
.gate--soon::after {
  content: "À venir";
  position: absolute;
  z-index: 3;
  top: 1.3rem;
  right: 1.3rem;
  font-family: 'DM Mono', monospace;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dark-bg);
  padding: .45rem .85rem;
  border-radius: 40px;
  background: linear-gradient(120deg, var(--gold2), var(--gold));
  box-shadow: 0 8px 20px -8px rgba(196, 148, 58, .8);
}

/* CTA désactivé (bientôt disponible) */
.gate-cta--soon {
  color: rgba(245, 240, 232, .78);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(196, 148, 58, .35);
  box-shadow: none;
  cursor: default;
}
.gate--soon:hover .gate-cta--soon {
  transform: none;
  filter: none;
  box-shadow: none;
}

/* ═══ PIED ═══ */
.hub-footer {
  margin-top: clamp(2.8rem, 6vh, 4.5rem);
}
.footer-brand {
  font-family: 'Cinzel', serif;
  font-size: .78rem;
  letter-spacing: .18em;
  color: rgba(245, 240, 232, .55);
}
.footer-line {
  margin-top: .5rem;
  font-family: 'DM Mono', monospace;
  font-size: .68rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(196, 148, 58, .55);
}

/* ═══ RÉVÉLATION ═══ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2, .8, .2, 1);
}
.reveal.is-in { opacity: 1; transform: none; }

@keyframes dragonFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-12px) rotate(2deg); }
}
@keyframes ripple {
  0%   { transform: translate(-50%, -50%) scale(.8); opacity: .6; }
  100% { transform: translate(-50%, -50%) scale(2.2); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .emblem-ring, .emblem-dragon-wrap, .absences-bg { animation: none; }
  .reveal { transition: opacity .4s ease; transform: none; }
}

/* ═══ ABSENCES PRÉVUES (repris de longwah.fr) ═══ */
.absences-block {
  width: 100%;
  margin-top: clamp(2.6rem, 6vh, 4.2rem);
  text-align: left;
  background: linear-gradient(135deg, rgba(196,148,58,.18), rgba(196,148,58,.06)), var(--panel);
  border: 1px solid var(--gold);
  border-left: 5px solid var(--gold2);
  padding: 2.5rem 2.8rem;
  box-shadow: 0 0 0 1px rgba(232,184,75,.08), 0 12px 32px rgba(0,0,0,.25);
}
.absences-head { display: flex; align-items: center; gap: .9rem; margin-bottom: .6rem; }
.absences-icon { font-size: clamp(1.25rem, 1.16rem + .4vw, 1.5rem); line-height: 1; }
.absences-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.9rem, 1.62rem + 1.2vw, 2.75rem);
  font-weight: 400;
  color: var(--gold2);
  line-height: 1.2;
}
.absences-intro {
  font-family: 'Lato', sans-serif;
  font-size: clamp(1.0625rem, 1.02rem + .2vw, 1.1875rem);
  color: var(--cream);
  margin-bottom: 1.2rem;
}
.absences-list { list-style: none; display: flex; flex-direction: column; gap: .95rem; }
.absences-list li {
  font-family: 'Lato', sans-serif;
  font-size: clamp(1.0625rem, 1.02rem + .2vw, 1.1875rem);
  line-height: 1.6;
  color: var(--cream);
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(196,148,58,.3);
  padding: .9rem 1.2rem;
  display: grid;
  grid-template-columns: 16rem 1fr;
  gap: 1rem;
  align-items: baseline;
}
.absences-date { color: var(--gold2); font-weight: 700; letter-spacing: .03em; }

/* Événement passé : ajouter class="is-past" sur le <li> */
/* Atténuation par la couleur (pas d'opacity) pour garder la vidéo nette */
.absences-list li.is-past { color: rgba(245, 240, 232, .6); }
.absences-list li.is-past .absences-date { color: rgba(232, 184, 75, .65); }
.absences-list li.is-past .absences-date::after {
  content: 'Terminé';
  display: block;
  width: fit-content;
  margin-top: .35rem;
  padding: .15rem .55rem;
  font-family: 'DM Mono', monospace;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cream);
  border: 1px solid rgba(245, 240, 232, .45);
}

/* Prochain événement : ajouter class="is-upcoming" sur le <li> */
.absences-list li.is-upcoming .absences-date::after {
  content: 'À venir';
  display: block;
  width: fit-content;
  margin-top: .35rem;
  padding: .15rem .55rem;
  font-family: 'DM Mono', monospace;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dark-bg);
  background: var(--gold2);
  border: 1px solid var(--gold2);
}

/* Vidéo en fond de ligne : floutée, assombrie, voile dégradé (masque la qualité / le portrait) */
.absences-list li.has-bg-video {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 11rem;
  align-items: center;
  align-content: center;
  color: rgba(245, 240, 232, .88);
  border-color: rgba(196,148,58,.45);
}
.absences-list li.has-bg-video .absences-date { color: var(--gold2); }
/* Panneau vidéo à droite, jamais agrandi au-delà de sa résolution (576px de large) → reste net */
.absences-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  width: 40%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: brightness(.82) saturate(.9);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 40%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 40%);
  animation: bgDrift 24s ease-in-out infinite alternate;
}
.absences-list li.has-bg-video::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(10,26,17,.55) 0%, rgba(10,26,17,.2) 55%, transparent 100%),
    linear-gradient(0deg, rgba(196,148,58,.12), transparent 60%);
  box-shadow: inset 0 0 50px rgba(0,0,0,.5);
}
/* Photo (369px de large) : panneau plafonné à sa taille réelle */
.absences-bg--photo { animation: none; object-position: center 38%; }
/* Kayak (portrait) : seule une bande ~24 % est visible → cadrage fixe sur les kayakistes (au-delà de ~45 % les têtes sont coupées) */
.absences-bg--kayak { animation: none; object-position: center 38%; }
/* Légende discrète sur la photo (bas droite) */
.absences-caption { position: absolute; right: .9rem; bottom: .6rem; z-index: 1; font-family: 'DM Mono', monospace; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(245, 240, 232, .7); text-shadow: 0 1px 6px rgba(0,0,0,.8); pointer-events: none; }
/* Ligne double : deux images à parts égales (40 % chacune, la photo de Pékin ne fait que 369px), fondu vers le centre */
.absences-list li.has-bg-duo .absences-bg { width: 40%; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 40%); mask-image: linear-gradient(90deg, transparent 0%, #000 40%); }
.absences-list li.has-bg-duo .absences-bg--left { left: 0; right: auto; object-position: center 45%; animation: none; -webkit-mask-image: linear-gradient(90deg, #000 60%, transparent 100%); mask-image: linear-gradient(90deg, #000 60%, transparent 100%); }
/* Crédit photo (licence CC BY-SA) : bas gauche */
.absences-credit { position: absolute; left: .9rem; bottom: .6rem; z-index: 1; font-family: 'DM Mono', monospace; font-size: .58rem; letter-spacing: .08em; color: rgba(245, 240, 232, .55); text-shadow: 0 1px 6px rgba(0,0,0,.8); }
.absences-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.absences-list li.has-bg-duo { text-shadow: 0 1px 8px rgba(0,0,0,.85), 0 0 2px rgba(0,0,0,.6); }
@keyframes bgDrift {
  from { object-position: center 30%; }
  to   { object-position: center 55%; }
}

@media (max-width: 900px) {
  .absences-block { padding: 2rem 1.8rem; }
  .absences-list li { grid-template-columns: 1fr; gap: .2rem; }
}
@media (max-width: 560px) {
  .absences-block { padding: 1.6rem 1.15rem; border-left-width: 4px; }
  .absences-title { font-size: clamp(1.25rem, 1.16rem + .4vw, 1.5rem); }
  .absences-list li { padding: .8rem .9rem; }
  /* Mobile : la ligne est plus étroite que la vidéo → plein fond sans agrandissement */
  .absences-bg, .absences-bg--photo { width: 100%; -webkit-mask-image: none; mask-image: none; }
  .absences-caption { position: static; justify-self: end; margin-top: .3rem; }
  .absences-credit { position: static; justify-self: end; }
  /* Mobile : ligne étroite → deux moitiés (55 %) qui se chevauchent au milieu */
  .absences-list li.has-bg-duo .absences-bg { width: 55%; }
  .absences-list li.has-bg-video::after {
    background: linear-gradient(0deg, rgba(10,26,17,.85) 0%, rgba(10,26,17,.55) 100%);
  }
}


/* Trajet France → Chine façon carte de vol (remplace une vidéo de fond) */
.absences-route { animation: none; filter: none; }
.absences-route .route-todo { fill: none; stroke: rgba(245, 240, 232, .35); stroke-width: 1.6; stroke-dasharray: 2 6; stroke-linecap: round; }
.absences-route .route-done { fill: none; stroke: var(--gold2); stroke-width: 2.2; stroke-dasharray: 5 5; stroke-linecap: round; }
.absences-route .route-pin { fill: var(--gold2); }
.absences-route .route-ping { fill: none; stroke: var(--gold2); stroke-width: 1.2; }
.absences-route .route-plane { fill: #f5f0e8; }
.absences-route .route-label { font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: .18em; fill: rgba(245, 240, 232, .8); }
.absences-route .route-sub { font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: .18em; fill: rgba(232, 184, 75, .75); }

/* ═══ NOS CLINIQUES, PAR VILLE ═══ */
.cities {
  margin-top: clamp(2.6rem, 6vh, 4.2rem);
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2.6rem;
}
.city {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .45rem;
  padding: .45rem;
  border-radius: 28px;
  border: 1px solid rgba(196, 148, 58, .5);
  background:
    linear-gradient(160deg, rgba(196, 148, 58, .13) 0%, rgba(20, 46, 30, .35) 55%, rgba(10, 26, 17, .5) 100%);
  box-shadow: inset 0 0 0 1px rgba(232, 184, 75, .06), 0 30px 60px -30px var(--shadow);
}
.city--grenoble {
  border-color: rgba(127, 224, 208, .5);
  background:
    linear-gradient(160deg, rgba(127, 224, 208, .12) 0%, rgba(20, 46, 30, .35) 55%, rgba(10, 26, 17, .5) 100%);
}

/* En-tête de ville : occupe la première case de la grille */
.city-head {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem 1.8rem;
  text-align: left;
}
.city-pin {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(232, 184, 75, .55);
  background: rgba(196, 148, 58, .12);
  color: var(--gold2);
  margin-bottom: 1.4rem;
}
.city-pin svg { width: 26px; height: 26px; }
.city-kicker {
  font-family: 'DM Mono', monospace;
  font-size: .82rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(232, 184, 75, .9);
  margin-bottom: .5rem;
}
.city-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(3rem, 6vw, 4.6rem);
  line-height: 1;
  color: var(--cream);
  margin-bottom: 1.1rem;
}
.city-lead {
  font-size: 1.08rem;
  line-height: 1.6;
  color: rgba(245, 240, 232, .85);
  max-width: 26em;
}
.city-addr {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(196, 148, 58, .3);
  font-family: 'DM Mono', monospace;
  font-size: .8rem;
  letter-spacing: .08em;
  color: rgba(245, 240, 232, .65);
}
/* Saint-Lô et Grenoble : l'en-tête occupe toute la largeur, les cartes suivent dessous */
.city--stlo .city-head,
.city--grenoble .city-head,
.city--pharma .city-head {
  grid-column: 1 / -1;
  align-items: center;
  text-align: center;
  padding: 2.4rem 1.8rem 3rem;
}
.city--stlo .city-addr,
.city--grenoble .city-addr,
.city--pharma .city-addr { padding: 1rem 2.4rem 0; }

/* Vidéo de Saint-Lô : même case qu'une carte */
.city-video {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  border-radius: var(--cut);
  background: #000;
}
.city-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Case ~3:4 (hauteur de deux cartes) → ~75 % de la hauteur visible ; visage entre ~24 % et ~54 % */
  object-position: center 40%;
}
.city-video-sound {
  position: absolute;
  z-index: 3;
  top: .95rem;
  right: 1rem;
  font-family: 'DM Mono', monospace;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold2);
  padding: .5rem .9rem;
  border-radius: 40px;
  border: 1px solid rgba(232, 184, 75, .55);
  background: rgba(10, 26, 17, .8);
  cursor: pointer;
}
.city-video-sound:hover { background: rgba(10, 26, 17, .95); }
.city--grenoble .city-pin { color: #7fe0d0; border-color: rgba(127, 224, 208, .55); background: rgba(127, 224, 208, .12); }
.city--grenoble .city-kicker { color: rgba(127, 224, 208, .9); }

/* Pharmacopée : commune aux deux villes, accent vert herbe */
.city--pharma {
  border-color: rgba(176, 201, 122, .5);
  background:
    linear-gradient(160deg, rgba(176, 201, 122, .12) 0%, rgba(20, 46, 30, .35) 55%, rgba(10, 26, 17, .5) 100%);
}
.city--pharma .city-pin { color: #b9d27f; border-color: rgba(176, 201, 122, .55); background: rgba(176, 201, 122, .12); }
.city--pharma .city-kicker { color: rgba(185, 210, 127, .95); }
.city--pharma .city-lead { max-width: 36em; }
/* Carte seule : toute la largeur du cadre */
.city--pharma .gate { grid-column: 1 / -1; }

/* Découpe « gâteau » : dans un cadre de ville, seuls les angles de carte
   voisins d'un coin du cadre sont arrondis ; les autres sont francs. */
.city { --cut: 4px; --round: 22px; }
.city .gate { border-radius: var(--cut); }
/* Saint-Lô (en-tête pleine largeur) : vidéo portrait à gauche sur deux rangées,
   Clinique et Académie empilées à droite, Agenda en pleine largeur en bas.
   La vidéo prend la hauteur des deux cartes (~3:4) : pas de case plus haute que les autres. */
.city--stlo .city-video { grid-column: 1; grid-row: span 2; min-height: 0; }
.city--stlo .gate--clinic,
.city--stlo .gate--academy { grid-column: 2; }
.city--stlo .gate--agenda  { grid-column: 1 / -1; }
.city--stlo .gate--clinic  { border-radius: var(--cut); }
.city--stlo .gate--academy { border-radius: var(--cut); }
.city--stlo .gate--agenda  { border-radius: var(--cut) var(--cut) var(--round) var(--round); }
/* Grenoble (en-tête pleine largeur, deux cartes dessous) */
.city--grenoble .gate:nth-of-type(1) { border-radius: var(--cut) var(--cut) var(--cut) var(--round); }
.city--grenoble .gate:nth-of-type(2) { border-radius: var(--cut) var(--cut) var(--round) var(--cut); }
/* Pharmacopée (carte pleine largeur, en bas) */
.city--pharma .gate { border-radius: var(--cut) var(--cut) var(--round) var(--round); }

/* Cartes compactes dans les cadres de ville */
.city .gate { min-height: 0; padding: 1.3rem 1.6rem 1.25rem; }
.city .gate-seal { width: 38px; height: 38px; font-size: 1.1rem; border-radius: 10px; margin-bottom: .8rem; }
.city .gate-kicker { margin-bottom: .4rem; }
.city .gate-word { font-size: 1.8rem; }
.city .gate-brand { margin-bottom: .6rem; }
.city .gate-desc { font-size: .98rem; line-height: 1.5; margin-bottom: .85rem; }
.city .gate-tags { margin-bottom: 1rem; }
.city .gate-tags li { font-size: .68rem; }
.city .gate-cta { font-size: 1rem; padding: .7rem 1.3rem; border-radius: 10px; }
.city .gate-city { top: .95rem; right: 1rem; }
.city .gate-kanji { font-size: 11rem; }

/* Pastille de ville sur chaque carte */
.gate-city {
  position: absolute;
  z-index: 3;
  top: 1.3rem;
  right: 1.3rem;
  font-family: 'DM Mono', monospace;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold2);
  padding: .45rem .85rem;
  border-radius: 40px;
  border: 1px solid rgba(232, 184, 75, .55);
  background: rgba(10, 26, 17, .75);
}
.city--grenoble .gate-city { color: #7fe0d0; border-color: rgba(127, 224, 208, .55); }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 480px) {
  .city .gate { padding: 1.4rem 1.1rem 1.3rem; }
  .city .gate-word { font-size: clamp(1.55rem, 8vw, 2rem); }
}
@media (max-width: 720px) {
  .gates { grid-template-columns: 1fr; gap: 1.2rem; }
  .city { grid-template-columns: 1fr; gap: .45rem; padding: .45rem; border-radius: 22px; }
  .city-head { padding: 1.2rem .8rem .4rem; }
  .city-head { min-width: 0; }
  /* Une colonne : seule la dernière carte touche les coins du bas */
  .city { --round: 15px; }
  .city .gate,
  .city--stlo .gate--clinic,
  .city--stlo .gate--academy,
  .city--grenoble .gate:nth-of-type(1) { border-radius: var(--cut); }
  .city .gate:last-child { border-radius: var(--cut) var(--cut) var(--round) var(--round); }
  .city--stlo .city-head,
  .city--grenoble .city-head,
  .city--pharma .city-head { padding: 1.8rem .9rem 1.6rem; }
  .city-video { min-height: 0; aspect-ratio: 9 / 16; max-height: 80vh; }
  /* Une colonne : tout reprend sa place dans le flux */
  .city--stlo .city-video,
  .city--stlo .gate--clinic,
  .city--stlo .gate--academy,
  .city--stlo .gate--agenda { grid-column: auto; grid-row: auto; }
  .city--stlo .city-addr,
  .city--grenoble .city-addr,
  .city--pharma .city-addr { padding: 1rem .6rem 0; }
  .city-name { font-size: clamp(2.3rem, 11vw, 3rem); overflow-wrap: anywhere; }
  .gate { padding: 2rem 1.6rem; }
  .hero-sub { font-size: .96rem; }
}

@media (max-width: 560px) {
  .hero-title,
  .eyebrow { white-space: normal; }
  .eyebrow { font-size: .82rem; }
}

/* ═══ SOUTIEN LUDIVINE (couleurs de son affiche : magenta / violet) ═══ */
.support {
  --pink: #e05aa8;
  --pink-deep: #c2187a;
  margin-top: clamp(2.2rem, 5vh, 3.4rem);
  width: 100%;
  display: grid;
  grid-template-columns: 210px 1fr auto;
  align-items: center;
  gap: 1.8rem;
  padding: .45rem 1.8rem .45rem .45rem;
  border-radius: 28px;
  border: 1px solid rgba(224, 90, 168, .55);
  background:
    linear-gradient(160deg, rgba(194, 24, 122, .2) 0%, rgba(40, 20, 60, .45) 55%, rgba(10, 26, 17, .55) 100%);
  box-shadow: 0 30px 60px -30px var(--shadow);
  text-align: left;
}
.support-photo {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 22px 4px 4px 22px;
}
.support-body { padding: 1.4rem 0; }
.support-kicker {
  font-family: 'DM Mono', monospace;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: .4rem;
}
.support-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2.3rem, 4.5vw, 3.4rem);
  line-height: 1;
  color: var(--cream);
  margin-bottom: .7rem;
}
.support-goal {
  display: inline-block;
  font-weight: 600;
  font-size: .95rem;
  color: var(--white);
  background: var(--pink-deep);
  padding: .35rem .8rem;
  border-radius: 6px;
  margin-bottom: .9rem;
}
.support-text {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(245, 240, 232, .85);
  max-width: 40em;
  margin-bottom: 1.1rem;
}
.support-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: .9rem; }
.support-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  font-size: .98rem;
  padding: .7rem 1.2rem;
  border-radius: 10px;
  text-decoration: none;
  color: var(--cream);
  border: 1px solid rgba(224, 90, 168, .6);
  background: rgba(10, 26, 17, .45);
  transition: background .25s, transform .25s;
}
.support-btn:hover { background: rgba(194, 24, 122, .3); transform: translateY(-1px); }
.support-btn--main {
  font-weight: 700;
  color: var(--white);
  border-color: transparent;
  background: linear-gradient(120deg, var(--pink-deep), var(--pink));
  box-shadow: 0 12px 26px -12px rgba(224, 90, 168, .9);
}
.support-btn--main:hover { background: linear-gradient(120deg, var(--pink-deep), var(--pink)); filter: brightness(1.1); }
.support-contact {
  font-family: 'DM Mono', monospace;
  font-size: .78rem;
  letter-spacing: .04em;
  color: rgba(245, 240, 232, .65);
}
.support-contact a { color: inherit; text-underline-offset: 2px; }
.support-qr { text-align: center; }
.support-qr img {
  display: block;
  width: 150px;
  height: 150px;
  padding: 10px;
  background: #fff;
  border-radius: 14px;
  image-rendering: pixelated;
}
.support-qr figcaption {
  margin-top: .5rem;
  font-family: 'DM Mono', monospace;
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--pink);
}

/* Lien depuis la ligne « Pékin » des absences */
.absences-support {
  grid-column: 2;
  justify-self: start;
  font-family: 'DM Mono', monospace;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  text-shadow: none;
  color: var(--white);
  background: #c2187a;
  padding: .35rem .8rem;
  border-radius: 40px;
}
.absences-support:hover { filter: brightness(1.15); }

@media (max-width: 900px) {
  .support { grid-template-columns: 170px 1fr; padding-right: 1.2rem; }
  /* Sur téléphone, le QR code ne sert à rien : le bouton suffit */
  .support-qr { display: none; }
  .absences-support { grid-column: auto; }
}
@media (max-width: 720px) {
  .support { grid-template-columns: 1fr; gap: 0; padding: .45rem; border-radius: 22px; }
  .support-photo { height: 220px; min-height: 0; border-radius: 15px 15px 4px 4px; }
  .support-body { padding: 1.3rem .8rem 1rem; }
  .support-btn { flex: 1 1 auto; justify-content: center; }
}

/* ═══ EN DIRECT DE WENZHOU (même gabarit que le soutien Ludivine, en rouge de Chine / or) ═══ */
.live {
  --red: #e2493c;
  --red-deep: #a8161b;
  margin-top: 1.4rem;
  width: 100%;
  display: grid;
  grid-template-columns: 210px 1fr auto;
  align-items: center;
  gap: 1.8rem;
  padding: .45rem 1.8rem .45rem .45rem;
  border-radius: 28px;
  border: 1px solid rgba(226, 73, 60, .55);
  background:
    linear-gradient(160deg, rgba(168, 22, 27, .22) 0%, rgba(60, 30, 10, .45) 55%, rgba(10, 26, 17, .55) 100%);
  box-shadow: 0 30px 60px -30px var(--shadow);
  text-align: left;
}
.live[hidden] { display: none; }
.live-photo {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  border-radius: 22px 4px 4px 22px;
}
.live-body { padding: 1.4rem 0; }
.live-kicker {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-family: 'DM Mono', monospace;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .4rem;
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(226, 73, 60, .7);
  animation: livePulse 1.6s infinite;
}
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(226, 73, 60, .7); }
  70%  { box-shadow: 0 0 0 9px rgba(226, 73, 60, 0); }
  100% { box-shadow: 0 0 0 0 rgba(226, 73, 60, 0); }
}
.live-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2.3rem, 4.5vw, 3.4rem);
  line-height: 1;
  color: var(--cream);
  margin-bottom: .7rem;
}
.live-goal {
  display: inline-block;
  font-weight: 600;
  font-size: .95rem;
  color: var(--white);
  background: var(--red-deep);
  padding: .35rem .8rem;
  border-radius: 6px;
  margin-bottom: .9rem;
}
.live-text {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(245, 240, 232, .85);
  max-width: 40em;
  margin-bottom: 1.1rem;
}
.live-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: .9rem; }
.live-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  font-size: .98rem;
  padding: .7rem 1.2rem;
  border-radius: 10px;
  text-decoration: none;
  color: var(--cream);
  border: 1px solid rgba(226, 73, 60, .6);
  background: rgba(10, 26, 17, .45);
  transition: background .25s, transform .25s;
}
.live-btn:hover { background: rgba(168, 22, 27, .3); transform: translateY(-1px); }
.live-btn--main {
  font-weight: 700;
  color: var(--white);
  border-color: transparent;
  background: linear-gradient(120deg, var(--red-deep), var(--red));
  box-shadow: 0 12px 26px -12px rgba(226, 73, 60, .9);
}
.live-btn--main:hover { background: linear-gradient(120deg, var(--red-deep), var(--red)); filter: brightness(1.1); }
.live-contact {
  font-family: 'DM Mono', monospace;
  font-size: .78rem;
  letter-spacing: .04em;
  color: rgba(245, 240, 232, .65);
}
.live-side {
  min-width: 150px;
  padding: 1.1rem .8rem;
  text-align: center;
  border-radius: 14px;
  border: 1px solid rgba(232, 184, 75, .35);
  background: rgba(10, 26, 17, .55);
}
.live-side-label {
  font-family: 'DM Mono', monospace;
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, .6);
}
.live-day {
  font-family: 'Cormorant Garamond', serif;
  line-height: 1;
  color: var(--gold2);
  margin: .1rem 0 .2rem;
}
.live-day-num { font-size: 3.4rem; font-weight: 500; }
.live-day-total { font-size: 1.4rem; color: rgba(232, 184, 75, .6); }
.live-side-rule {
  display: block;
  width: 40px;
  height: 1px;
  margin: .7rem auto;
  background: rgba(232, 184, 75, .4);
}
.live-clock {
  font-family: 'DM Mono', monospace;
  font-size: 1.5rem;
  color: var(--cream);
  margin: .15rem 0;
}

/* Galerie photos du stage : même encart que « En direct », sans le bloc jour/heure */
.live--gallery { grid-template-columns: 210px 1fr; }
.live--gallery .live-photo { object-position: center 65%; }

/* Sondage « prochaine session » (poll.js, votes stockés par l'Académie) */
.poll {
  max-width: 34rem;
  margin: 0 0 1rem;
  padding: .9rem 1rem .8rem;
  border-radius: 14px;
  border: 1px solid rgba(232, 184, 75, .55);
  background: rgba(10, 26, 17, .5);
}
.poll-q {
  font-family: 'DM Mono', monospace;
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, .7);
  margin-bottom: .7rem;
}
.poll-q strong { display: block; margin-top: .2rem; font-size: .82rem; font-weight: 500; color: var(--gold2); }
.poll-opts { display: flex; flex-direction: column; gap: .5rem; }
.poll-opt {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  gap: .35rem .6rem;
  width: 100%;
  padding: .6rem .75rem;
  border-radius: 10px;
  border: 1px solid rgba(226, 73, 60, .45);
  background: rgba(10, 26, 17, .45);
  color: var(--cream);
  font-family: 'Jost', sans-serif;
  font-size: .98rem;
  text-align: left;
  cursor: pointer;
  transition: border-color .25s, background .25s;
}
.poll-opt:hover, .poll-opt:focus-visible { border-color: var(--gold2); outline: none; }
.poll-opt[aria-pressed="true"] { border-color: var(--gold2); background: rgba(168, 22, 27, .28); cursor: default; }
.poll-check { width: 16px; height: 16px; border: 1.5px solid rgba(232, 184, 75, .8); border-radius: 4px; position: relative; }
.poll-opt[aria-pressed="true"] .poll-check { background: var(--gold2); border-color: var(--gold2); }
.poll-opt[aria-pressed="true"] .poll-check::after {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid #1a0f05;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.poll-pct { font-family: 'DM Mono', monospace; font-size: .9rem; color: var(--gold2); min-width: 3.2em; text-align: right; }
.poll-bar { grid-column: 1 / -1; height: 5px; border-radius: 3px; background: rgba(245, 240, 232, .1); overflow: hidden; }
.poll-fill { display: block; width: 0; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--red-deep, #a8161b), var(--gold2)); transition: width .6s ease; }
.poll-status { margin-top: .6rem; font-size: .85rem; color: rgba(245, 240, 232, .7); }
.poll--busy .poll-opt { opacity: .7; cursor: progress; }
.poll--error .poll-pct { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .poll-fill { transition: none; } }

/* Lien depuis la ligne « Wenzhou » des absences */
.absences-support--china { background: #a8161b; }
.absences-support[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  .live-dot { animation: none; }
}
@media (max-width: 900px) {
  .live { grid-template-columns: 170px 1fr; padding-right: 1.2rem; }
  .live-side { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
  .live-side-rule { width: 1px; height: 1.6rem; margin: 0 .6rem; align-self: center; }
  .live-day-num { font-size: 2.2rem; }
  .live-clock { font-size: 1.2rem; }
}
@media (max-width: 720px) {
  .live { grid-template-columns: 1fr; gap: 0; padding: .45rem; border-radius: 22px; }
  .live-photo { height: 220px; min-height: 0; border-radius: 15px 15px 4px 4px; }
  .live-body { padding: 1.3rem .8rem 1rem; }
  .live-btn { flex: 1 1 auto; justify-content: center; }
  .live-side { margin: 0 .45rem .8rem; }
}
