@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Orbitron:wght@500;800&family=Poppins:wght@400;500;600;700&display=swap");

/* Furore, police du logo Space@YourService (assets/fonts/Furore.otf). Sans le fichier : Orbitron. */
@font-face {
  font-family: "Furore";
  src: url("/assets/fonts/Furore.otf") format("opentype");
  font-display: swap;
}

/* ===== Couleurs =====
   Identité Space@YourService : #061733 #04224e #012c68 #194b96 #e24401 #b64a5e #dfe4e7 #ffffff
   Chaque page n'utilise que ces « rôles » ; les thèmes et le mode clair redéfinissent leurs valeurs. */
:root {
  --bg: #04224e; /* fond de page */
  --panel: #012c68; /* grands encadrés de contenu */
  --card: #061733; /* cartes posées sur un encadré */
  --top: #061733; /* en-tête, pied de page, haut des bannières */
  --chrome: #012c68; /* bandeau du prochain évènement, survols de l'en-tête */
  --line: #194b96; /* bordures */
  --text: #dfe4e7;
  --head: #fff; /* titres, texte en évidence */
  --link: #dfe4e7;
  --accent: #e24401; /* boutons, barres, détails */
  --on-accent: #fff;
  --glow: #012c68; /* halo des bannières, bord de la lune */
  --moon: #dfe4e7;
  --bar: linear-gradient(90deg, #e24401, #b64a5e);
  --tint: #194b96; /* teinte des bannières en mode clair (3e bleu de la marque) */
  --sep: #04224e; /* trait sous l'en-tête */

  --f-logo: "Furore", "Orbitron", sans-serif;
  --f-title: "Poppins", "Futura", sans-serif;
  --f-text: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* ===== Sous-identités (appliquées par script.js selon la page) ===== */

/* Lunar Escape : #811810 #991a15 #b01d19 #ca1f1d #e51b20 #d1d1d1 */
body.theme-escape {
  --bg: #2a0705;
  --panel: #811810;
  --card: #2a0705;
  --top: #2a0705;
  --chrome: #811810;
  --line: #991a15;
  --text: #d1d1d1;
  --link: #d1d1d1;
  --accent: #e51b20;
  --glow: #991a15;
  --moon: #e51b20;
  --bar: #e51b20;
  --sep: #b01d19;
}

/* Astronomy on Tap : #000000 #012c68 #51bae9 #fed211 #ffffff */
body.theme-aot {
  --bg: #000;
  --panel: #012c68;
  --card: #000;
  --top: #000;
  --chrome: #012c68;
  --line: #194b96;
  --text: #fff;
  --link: #51bae9;
  --accent: #fed211;
  --on-accent: #000;
  --glow: #012c68;
  --moon: #fed211;
  --bar: #fed211;
  --sep: #fed211;
  --notif-bg: #fed211; /* bandeau du prochain évènement aux couleurs d'AoT */
  --notif-fg: #000;
}

/* Mission Vivalys / Petite Ourse : #061733 #012c68 #e43429 #51bae9
   --ink : couleur des traits et pastilles (bleu ciel en sombre, nuit en clair) ; --disc : fond des icônes */
body.theme-ourse {
  --bg: #061733;
  --panel: #012c68;
  --card: #061733;
  --top: #061733;
  --chrome: #e43429;
  --line: #194b96;
  --text: #dfe4e7;
  --head: #fff;
  --link: #51bae9;
  --accent: #e43429;
  --glow: #012c68;
  --moon: #51bae9;
  --bar: #e43429;
  --sep: #e43429;
  --ink: #51bae9;
  --on-ink: #061733;
  --disc: #012c68;
}
body.theme-ourse .page-hero::after {
  content: "";
  position: absolute;
  left: 7%;
  top: 38px;
  width: 190px;
  height: 120px;
  opacity: 0.95;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 190 120'%3E%3Cpolyline points='12,18 38,34 62,44 90,52 126,50 132,82 98,88 90,52' fill='none' stroke='%2351bae9' stroke-width='1.5' stroke-linejoin='round'/%3E%3Cg fill='%23fff'%3E%3Ccircle cx='12' cy='18' r='4.5'/%3E%3Ccircle cx='38' cy='34' r='2.6'/%3E%3Ccircle cx='62' cy='44' r='2.6'/%3E%3Ccircle cx='90' cy='52' r='3.2'/%3E%3Ccircle cx='126' cy='50' r='3.4'/%3E%3Ccircle cx='132' cy='82' r='3'/%3E%3Ccircle cx='98' cy='88' r='3.4'/%3E%3C/g%3E%3C/svg%3E")
    no-repeat center / contain;
}

/* STREB : #fed211 #fe0101 #ff7100 #000051 #0000b0 — étoiles, espace, flammes */
body.theme-streb {
  --bg: #000051;
  --panel: #0a0a6c;
  --card: #000051;
  --top: #000051;
  --chrome: #0a0a6c;
  --line: #0000b0;
  --text: #fff;
  --link: #fed211;
  --accent: #fed211;
  --on-accent: #000;
  --glow: #0a0a6c;
  --moon: #ff7100;
  --bar: #fed211;
  --sep: #ff7100;
}

/* ===== Version claire (bouton soleil/lune de l'en-tête) =====
   En-tête, bandeau et pied de page gardent les couleurs de la marque ; le bandeau de titre
   devient clair, teinté de --tint, et se fond dans le fond de page. */
html[data-mode="light"] body {
  --bg: #dfe4e7;
  --panel: #fff;
  --card: #f1f4f6;
  --line: #cdd5da;
  --text: #061733;
  --head: #012c68;
  --link: #194b96;
  --star: #04224e; /* étoiles du fond en bleu foncé */
  --star-dim: #194b96;
}
/* Mode clair : de vraies étoiles (4 branches et petits points ronds) au lieu des points flous */
html[data-mode="light"] body {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='640'%3E%3Cpolygon points='90,103 90.98,109.02 97,110 90.98,110.98 90,117 89.02,110.98 83,110 89.02,109.02' fill='%2304224e' fill-opacity='0.75'/%3E%3Cpolygon points='470,414 470.84,419.16 476,420 470.84,420.84 470,426 469.16,420.84 464,420 469.16,419.16' fill='%23194b96' fill-opacity='0.8'/%3E%3Ccircle cx='200' cy='120' r='1.3' fill='%2304224e' fill-opacity='0.65'/%3E%3Ccircle cx='440' cy='90' r='1.1' fill='%23194b96' fill-opacity='0.75'/%3E%3Ccircle cx='90' cy='190' r='1.1' fill='%23194b96' fill-opacity='0.7'/%3E%3Ccircle cx='250' cy='240' r='1.4' fill='%2304224e' fill-opacity='0.6'/%3E%3Ccircle cx='380' cy='300' r='1.1' fill='%23194b96' fill-opacity='0.75'/%3E%3Ccircle cx='60' cy='360' r='1.3' fill='%2304224e' fill-opacity='0.65'/%3E%3Ccircle cx='220' cy='430' r='1.1' fill='%23194b96' fill-opacity='0.7'/%3E%3Ccircle cx='460' cy='170' r='1.3' fill='%2304224e' fill-opacity='0.6'/%3E%3Ccircle cx='130' cy='30' r='1' fill='%23194b96' fill-opacity='0.7'/%3E%3Ccircle cx='300' cy='40' r='1.2' fill='%23194b96' fill-opacity='0.7'/%3E%3Ccircle cx='560' cy='210' r='1.3' fill='%2304224e' fill-opacity='0.6'/%3E%3Ccircle cx='150' cy='300' r='1.1' fill='%23194b96' fill-opacity='0.7'/%3E%3Ccircle cx='330' cy='520' r='1.3' fill='%2304224e' fill-opacity='0.65'/%3E%3Ccircle cx='30' cy='560' r='1.1' fill='%23194b96' fill-opacity='0.75'/%3E%3Ccircle cx='600' cy='600' r='1.2' fill='%2304224e' fill-opacity='0.6'/%3E%3Ccircle cx='560' cy='40' r='1.1' fill='%23194b96' fill-opacity='0.7'/%3E%3C/svg%3E");
  background-size: 640px 640px;
}
html[data-mode="light"] body.theme-escape {
  --head: #811810;
  --link: #b01d19;
  --tint: #ca1f1d;
}
html[data-mode="light"] body.theme-aot {
  --link: #012c68;
  --tint: #51bae9;
}
html[data-mode="light"] body.theme-ourse {
  --head: #061733;
  --link: #061733;
  --ink: #061733;
  --on-ink: #fff;
  --disc: #061733;
  --tint: #51bae9;
}
html[data-mode="light"] body.theme-streb {
  --head: #000051;
  --link: #0000b0;
  --tint: #0000b0;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
[id] {
  scroll-margin-top: 6rem;
}
body {
  margin: 0;
  font-family: var(--f-text);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(1.5px 1.5px at 12% 20%, var(--star, #fff), transparent),
    radial-gradient(1px 1px at 70% 12%, var(--star, #fff), transparent),
    radial-gradient(1.5px 1.5px at 35% 65%, var(--star-dim, #dfe4e7), transparent),
    radial-gradient(1px 1px at 85% 55%, var(--star, #fff), transparent),
    radial-gradient(1px 1px at 55% 85%, var(--star-dim, #dfe4e7), transparent),
    radial-gradient(1.5px 1.5px at 8% 88%, var(--star, #fff), transparent);
  background-size:
    420px 420px,
    310px 310px,
    370px 370px,
    450px 450px,
    280px 280px,
    500px 500px;
  background-attachment: fixed;
  padding-top: env(safe-area-inset-top, 0);
}
img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}
a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--accent);
}
h1,
h2,
h3,
h4 {
  font-family: var(--f-title);
  color: var(--head);
  line-height: 1.25;
  margin: 0 0 0.6em;
}
p {
  margin: 0 0 1.1em;
}
address {
  font-style: normal;
}
.center {
  text-align: center;
}

/* ===== En-tête + bandeau (fixes en haut de page) ===== */
.site-top {
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.6rem 2rem;
  background: var(--top);
  border-bottom: 3px solid var(--sep); /* séparation de 3 px, aux couleurs de la page */
}
.logo img {
  height: 46px;
  width: auto;
  border-radius: 0;
  display: block;
}
.main-nav {
  margin-left: auto;
}
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav > ul {
  display: flex;
  gap: 0.3rem;
  align-items: center;
}
.main-nav li {
  position: relative;
}
.main-nav a {
  display: block;
  white-space: nowrap;
  padding: 0.5rem 0.8rem;
  font-family: var(--f-title);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #dfe4e7;
  border-radius: 6px;
}
.main-nav a:hover {
  color: #fff;
  background: var(--chrome);
}
.main-nav a.cta {
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
}
.main-nav a.cta:hover {
  background: var(--accent);
  filter: brightness(1.15);
}
.main-nav .sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  padding: 0.4rem;
  background: var(--top);
  border: 1px solid var(--chrome);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}
.main-nav .sub .sub {
  top: 0;
  left: 100%;
}
.main-nav li:hover > .sub,
.main-nav li:focus-within > .sub {
  display: block;
}
.main-nav .sub a {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.9rem;
}
.social {
  display: flex;
  gap: 0.6rem;
  font-size: 0.75rem;
}
.social a {
  color: #dfe4e7;
  opacity: 0.7;
}
.social a:hover {
  opacity: 1;
  color: var(--accent);
}
.burger {
  display: none;
  margin-left: auto;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  padding: 0.2rem 0.6rem;
  border-radius: 8px;
  cursor: pointer;
}

/* Bandeau du prochain évènement : en haut de page, non fermable, défile avec la page.
   Fond = couleur « chrome » du site (jaune sur les pages AoT). */
.notif {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.2rem;
  text-align: center;
  font-family: var(--f-title);
  font-size: 0.9rem;
  background: var(--notif-bg, var(--chrome));
  color: var(--notif-fg, #fff);
}
.notif[hidden] {
  display: none;
}
.notif-logo {
  height: 26px;
  width: auto;
  border-radius: 0;
}
.notif-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.75;
}
.notif-text {
  font-weight: 600;
}
.notif-btn {
  padding: 0.12rem 0.9rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: none;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
}
.notif-btn:hover {
  background: var(--notif-fg, #fff);
  color: var(--notif-bg, #061733);
}

/* ===== Heroes ===== */
.hero,
.page-hero {
  position: relative;
  text-align: center;
  overflow: hidden;
  background:
    linear-gradient(180deg, transparent 60%, var(--bg)),
    radial-gradient(ellipse at 50% 120%, var(--glow), var(--top) 70%);
}
/* Mode clair : halo de --tint sous l'en-tête, qui s'éteint exactement sur le fond de page */
html[data-mode="light"] .hero,
html[data-mode="light"] .page-hero {
  background:
    radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--tint) 28%, transparent), transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--tint) 16%, var(--bg)), var(--bg));
}
html[data-mode="light"] .hero h1,
html[data-mode="light"] .page-hero h1 {
  color: var(--head);
}
html[data-mode="light"] .hero .tag {
  color: var(--tint);
}
html[data-mode="light"] .hero::before,
html[data-mode="light"] .page-hero::before {
  box-shadow: 0 0 50px color-mix(in srgb, var(--tint) 45%, transparent);
}
html[data-mode="light"] body.theme-ourse .page-hero::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 190 120'%3E%3Cpolyline points='12,18 38,34 62,44 90,52 126,50 132,82 98,88 90,52' fill='none' stroke='%23012c68' stroke-width='1.5' stroke-linejoin='round'/%3E%3Cg fill='%23061733'%3E%3Ccircle cx='12' cy='18' r='4.5'/%3E%3Ccircle cx='38' cy='34' r='2.6'/%3E%3Ccircle cx='62' cy='44' r='2.6'/%3E%3Ccircle cx='90' cy='52' r='3.2'/%3E%3Ccircle cx='126' cy='50' r='3.4'/%3E%3Ccircle cx='132' cy='82' r='3'/%3E%3Ccircle cx='98' cy='88' r='3.4'/%3E%3C/g%3E%3C/svg%3E");
}
.hero {
  padding: 9rem 1.5rem 8rem;
}
.page-hero {
  padding: 4.5rem 1.5rem 3.5rem;
}
.hero h1,
.page-hero h1 {
  margin: 0;
  font-family: var(--f-logo);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
}
.hero h1 {
  font-size: clamp(2rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.2;
}
/* Écran trop étroit pour une ligne : SPACE@ / YOURSERVICE sur deux lignes */
.hero h1 .w {
  display: inline-block;
}
.hero h1.split .w + .w .at {
  color: inherit;
}
.hero h1.split .w:first-child::after {
  content: "-"; /* SPACE@- / YOURSERVICE */
  color: var(--accent);
}
.page-hero h1 {
  font-size: clamp(1.5rem, 4vw, 2.6rem);
  font-weight: 500;
}
.hero h1::after,
.page-hero h1::after {
  content: "";
  display: block;
  width: 90px;
  height: 4px;
  margin: 1.2rem auto 0;
  background: var(--bar);
  border-radius: 2px;
}
.hero .tag {
  font-family: var(--f-title);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  margin: 1.2rem 0 0;
  color: #dfe4e7;
}
/* Lune */
.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  right: 8%;
  top: -40px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, var(--moon) 55%, var(--glow));
  opacity: 0.9;
  box-shadow: 0 0 70px var(--moon);
  pointer-events: none;
}
.page-hero::before {
  width: 90px;
  height: 90px;
  top: 20px;
  opacity: 0.75;
}

/* ===== Contenu ===== */
main {
  min-height: 60vh;
}
.content {
  position: relative;
  max-width: 1000px;
  margin: -1.5rem auto 4rem;
  padding: 2.5rem clamp(1.2rem, 4vw, 3rem);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.content h2 {
  font-size: 1.6rem;
  margin-top: 2rem;
  padding-left: 0.8rem;
  border-left: 4px solid var(--accent);
}
.content h2:first-child {
  margin-top: 0;
}
.content h3 {
  font-size: 1.2rem;
}
.content h4 {
  color: var(--head);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}
.content strong {
  color: var(--head);
}
.section-title {
  text-align: center;
  font-family: var(--f-title);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 1.1rem;
  color: var(--head);
  margin: 3.5rem 0 1rem;
}
h2.section-title {
  font-size: 1.5rem;
  border: 0;
  padding: 0;
}
.block {
  max-width: 1100px;
  margin: 4rem auto;
  padding: 0 1.5rem;
}
.block .section-title {
  margin-top: 0;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.7rem;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--f-title);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--on-accent);
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    background 0.2s;
}
.btn:hover {
  color: var(--on-accent); /* sinon « a:hover » colore le texte comme le fond */
  transform: translateY(-2px);
  filter: brightness(1.12);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn.ghost {
  background: transparent;
  border: 2px solid var(--head);
  color: var(--head);
}
.btn.ghost:hover {
  background: var(--head);
  color: var(--panel);
  filter: none;
  box-shadow: none;
}
/* sur le bandeau de titre (sombre ; clair en mode clair) */
.hero .btn.ghost {
  border-color: #fff;
  color: #fff;
}
.hero .btn.ghost:hover {
  background: #fff;
  color: #061733;
}
html[data-mode="light"] .hero .btn.ghost {
  border-color: var(--head);
  color: var(--head);
}
html[data-mode="light"] .hero .btn.ghost:hover {
  background: var(--head);
  color: #fff;
}
.btns {
  position: relative;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.2rem;
}
.two {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 1.5rem;
}
/* Variante empilée : le logo au-dessus du texte (ex. Asclepios dans Histoire) */
.two.stack {
  grid-template-columns: 1fr;
  gap: 1rem;
}
.two.stack img {
  max-width: 160px;
}
.two img {
  justify-self: center;
  width: auto;
  max-width: 260px; /* logos à côté d'un texte : taille limitée */
  max-height: 260px;
}
.logos {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
  margin: 2rem 0;
}
.logos img {
  height: 90px;
  width: auto;
  border-radius: 0;
}

.members,
.contact-list {
  list-style: none;
  padding: 0;
}
.members {
  margin: 0 0 1.5rem;
}
.members-label {
  margin: 1.6rem 0 0.6rem;
  font-family: var(--f-title);
  font-weight: 600;
  color: var(--head);
}
.members.honor li {
  border-left-color: var(--line);
}
.members li {
  padding: 0.6rem 1rem;
  margin-bottom: 0.5rem;
  background: var(--card);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
}

.roles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
  margin: 1.5rem 0;
}
/* Tranquility Base (Histoire) : boîtes les unes sous les autres, textes longs */
#tranquility .roles {
  grid-template-columns: 1fr;
}
.role {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: 12px;
  padding: 1.3rem;
  transition: transform 0.2s;
}
.role:hover {
  transform: translateY(-4px);
}
.role h3 {
  color: var(--head);
  margin-bottom: 0.5rem;
}
.role ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.95rem;
}
.role em {
  color: var(--head);
}

/* Cartes */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin: 1.2rem 0;
}
.card {
  display: block;
  padding: 1.4rem;
  text-align: center;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: 14px;
  transition:
    transform 0.2s,
    border-color 0.2s;
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  color: var(--text);
}
.card img {
  height: 80px;
  width: auto;
  margin: 0 auto 1rem;
  display: block;
  border-radius: 0;
}
.card h3 {
  margin-bottom: 0.4rem;
}
.card p {
  margin: 0;
  font-size: 0.95rem;
}
.donate-band {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--panel);
  border-radius: 20px;
}

/* Galeries */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1rem;
  margin: 1.2rem 0 2rem;
}
.gallery figure {
  margin: 0;
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.3s;
}
.gallery figure:hover img {
  transform: scale(1.05);
}
.gallery figcaption {
  padding: 0.6rem 0.8rem;
  font-size: 0.82rem;
  color: var(--text);
}

/* Vidéos, stores, partenaires */
.videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1rem 0 2rem;
}
.videos video {
  width: 100%;
  border-radius: 12px;
  background: #000;
}
/* Vidéo YouTube intégrée, au format 16:9 */
.embed {
  aspect-ratio: 16 / 9;
  max-width: 820px;
  margin: 1rem auto 1.5rem;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}
.embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin: 1rem 0 2rem;
}
.stores figure {
  margin: 0;
  text-align: center;
}
.stores img {
  width: 150px;
  background: #fff;
  padding: 8px;
  display: block;
  margin: 0 auto 1rem;
}
/* Logos de partenaires : chacun dans une tuile blanche identique, quelle que soit sa forme */
.partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  justify-content: center;
  margin: 1.5rem 0;
}
.partners a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  width: 160px;
  color: var(--head);
  font-family: var(--f-title);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}
.partners img {
  box-sizing: border-box;
  width: 160px;
  height: 120px;
  padding: 16px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.partners a:hover {
  color: var(--head);
}
.partners a:hover img {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}
.partners a:focus-visible img {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ===== Évènements (liste) ===== */
.ev {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  align-items: center;
  padding: 1.2rem;
  margin-bottom: 1rem;
  overflow: hidden;
  background: var(--card);
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
}
.ev-banner {
  flex: 0 0 calc(100% + 2.4rem);
  width: calc(100% + 2.4rem);
  max-height: 220px;
  margin: -1.2rem -1.2rem 0;
  object-fit: cover;
  border-radius: 0;
}
.ev-logo {
  flex: none;
  height: 56px;
  width: auto;
  border-radius: 0;
}
.ev-badge {
  flex: none;
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  font-family: var(--f-logo);
  font-size: 0.75rem;
  background: var(--accent);
  color: var(--on-accent);
}
.ev-body {
  flex: 1;
  min-width: 220px;
}
.ev h3 {
  margin: 0 0 0.3rem;
}
.ev p {
  margin: 0.1rem 0;
}
/* Date et lieu : étiquettes, pour ne pas les confondre avec la description */
.ev-meta {
  display: flex;
  flex-direction: column; /* une ligne par jour, puis le lieu */
  align-items: flex-start;
  gap: 0.4rem;
  margin: 0.2rem 0 0.7rem;
  padding: 0;
  list-style: none;
}
.ev-meta li {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  padding: 0.25rem 0.7rem;
  font-family: var(--f-title);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--head);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border-radius: 999px;
}
.ev-meta svg {
  flex: none;
  width: 1rem;
  height: 1rem;
  color: var(--accent);
}
.ev .seats {
  font-weight: 600;
  color: var(--head);
}
.alert {
  padding: 1rem 1.2rem;
  margin: 1rem 0;
  background: var(--card);
  border: 1px dashed var(--accent);
  border-radius: 10px;
}
.note {
  padding: 0.8rem 1rem;
  margin: 1rem 0;
  background: var(--card);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
}

/* ===== Calendrier des 3 prochains mois ===== */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.2rem;
  margin: 1.2rem 0;
}
.cal {
  padding: 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.cal caption {
  padding-bottom: 0.6rem;
  text-align: left;
  font-family: var(--f-title);
  font-weight: 600;
  text-transform: capitalize;
  color: var(--head);
}
.cal table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  text-align: center;
}
.cal th {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--head);
}
.cal td {
  padding: 2px;
  font-size: 0.9rem;
}
.cal .d {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  line-height: 1;
}
.cal .today {
  box-shadow: inset 0 0 0 2px var(--head);
  color: var(--head);
  font-weight: 700;
}
.cal a.has-event {
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
}
.cal a.has-event:hover {
  filter: brightness(1.15);
}
.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin: 0 0 1rem;
  font-size: 0.9rem;
}
.cal-legend .d {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  margin-right: 0.4rem;
  vertical-align: -2px;
  border-radius: 50%;
}
.cal-legend .today {
  box-shadow: inset 0 0 0 2px var(--head);
}
.cal-legend .has-event {
  background: var(--accent);
}

/* ===== Fenêtre de réservation ===== */
dialog.dialog {
  width: min(520px, calc(100% - 2rem));
  padding: 1.6rem;
  color: var(--text);
  background: var(--panel);
  border: 2px solid var(--accent);
  border-radius: 18px;
}
dialog.dialog::backdrop {
  background: rgba(0, 0, 0, 0.75);
}
.dialog h2 {
  margin: 0 2rem 0.3rem 0;
  font-size: 1.4rem;
}
.dialog .close {
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  background: none;
  border: 0;
  color: var(--head);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}
.dialog .when,
.dialog .where {
  margin: 0;
  font-size: 0.95rem;
}
.dialog .seats {
  margin: 0.6rem 0 1rem;
  font-weight: 600;
  color: var(--head);
}

/* Créneaux : grille de boutons, grisés quand ils sont complets ou passés */
dialog.booking {
  width: min(640px, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
}
.booking-step {
  margin: 1.1rem 0 0.4rem;
  font-family: var(--f-title);
  font-weight: 600;
  color: var(--head);
}
.slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 0.5rem;
  transition: opacity 0.2s;
}
.slots.loading {
  opacity: 0.5;
}
.slot-day {
  grid-column: 1 / -1;
  margin: 0.6rem 0 0;
  font-size: 0.9rem;
  font-weight: 700;
}
.slot-day::first-letter {
  text-transform: uppercase;
}
.slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 0.4rem;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
}
.slot input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.slot b {
  font-size: 0.95rem;
  color: var(--head);
}
.slot small {
  font-size: 0.78rem;
}
.slot:hover {
  border-color: var(--accent);
}
.slot:has(input:checked) {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 22%, var(--card));
}
.slot:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.slot.off {
  opacity: 0.4;
  cursor: not-allowed;
  border-style: dashed;
}
.slot.off:hover {
  border-color: var(--line);
}
.slot-chosen {
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
}
.people-hint {
  margin: -0.4rem 0 0.4rem;
  font-size: 0.82rem;
  opacity: 0.85;
}
.people-hint:empty {
  display: none;
}

/* ===== Formulaires ===== */
.form {
  display: grid;
  gap: 1rem;
  max-width: 620px;
}
.form label {
  display: grid;
  gap: 0.35rem;
  font-family: var(--f-title);
  font-size: 0.85rem;
  color: var(--head);
}
.form label[hidden] {
  display: none;
}
.form input,
.form select,
.form textarea {
  font: inherit;
  font-family: var(--f-text);
  padding: 0.75rem 1rem;
  color: var(--head);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid var(--accent);
  border-color: var(--accent);
}
.form .btn {
  justify-self: start;
}
.form-status {
  margin: 0;
  min-height: 1.5em;
  color: var(--head);
}
.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
}

/* FAQ */
details {
  margin: 0.6rem 0;
  padding: 0.2rem 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
}
summary {
  cursor: pointer;
  padding: 0.7rem 0;
  font-family: var(--f-title);
  font-weight: 600;
  color: var(--head);
}
/* Triangle d'ouverture des blocs dépliables : couleur d'accent de la page */
summary::marker,
summary::-webkit-details-marker {
  color: var(--accent);
}
details p {
  margin: 0.2rem 0 1rem;
}
details.year > summary {
  font-size: 1.25rem;
}
.editions {
  margin: 0 0 2rem;
}
details.edition {
  margin-bottom: 0.5rem;
  padding: 0 1rem;
  background: var(--card);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
}
details.edition > summary {
  font-size: 1.05rem;
}
details.edition[open] {
  padding-bottom: 0.6rem;
}
.ed-num {
  display: inline-block;
  min-width: 2.6rem;
  color: var(--accent);
}
.ed-meta {
  font-style: italic;
  opacity: 0.85;
}
details.edition .members li {
  background: var(--panel);
}
details .members li,
details .role,
details .gallery figure {
  background: var(--panel);
}
details h3 {
  margin-top: 1.5rem;
}

.contact-list li {
  margin-bottom: 0.2rem;
}
.donate {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1rem 0 2rem;
}
.donate > div {
  padding: 1.2rem;
  background: var(--card);
  border-radius: 12px;
  border-top: 4px solid var(--accent);
}
/* Page Nous soutenir : cartes TWINT et virement */
.donate-card {
  display: grid;
  align-content: start;
  gap: 0.8rem;
  padding: 1.5rem !important;
}
.donate-card h3 {
  margin: 0;
}
.donate-card p {
  margin: 0;
  font-size: 0.95rem;
}
.donate-qr {
  width: min(190px, 70%);
  height: auto;
  justify-self: center;
  border-radius: 18px;
}
.donate-bank {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem 1rem;
  align-items: center;
  margin: 0;
}
.donate-bank dt {
  font-family: var(--f-title);
  font-size: 0.82rem;
  font-weight: 600;
  opacity: 0.75;
}
.donate-bank dd {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 0;
}
.donate-copy {
  padding: 0.2rem 0.75rem;
  font: inherit;
  font-family: var(--f-title);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--head);
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}
.donate-copy:hover {
  border-color: var(--accent);
}
.donate-copy.ok {
  color: #fff;
  background: #1f9d55;
  border-color: #1f9d55;
}
code {
  padding: 0.15rem 0.45rem;
  background: var(--bg);
  border-radius: 5px;
  color: var(--head);
}

/* ===== Page des logos & charte ===== */
.assets {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.assets figure {
  margin: 0;
  padding: 1rem;
  text-align: center;
  background: #194b96;
  color: #fff;
  border-radius: 12px;
  font-size: 0.85rem;
}
.assets img {
  max-height: 110px;
  width: auto;
  margin: 0 auto 0.6rem;
  display: block;
  border-radius: 0;
}
.assets a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
}
.assets a:hover {
  color: #061733;
}
.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.sw {
  position: relative;
  width: 96px;
  height: 64px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 10px;
  cursor: pointer;
  font: 600 0.75rem var(--f-title);
  color: #fff;
  text-shadow: 0 0 4px #000;
}
.sw.light {
  color: #061733;
  text-shadow: none;
}
.sw.ok {
  outline: 3px solid var(--head);
}
/* Petite infobulle au survol */
.sw::after {
  content: "Cliquer pour copier";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 5;
  padding: 0.3rem 0.6rem;
  transform: translateX(-50%);
  white-space: nowrap;
  border-radius: 6px;
  background: #fff;
  color: #061733;
  font: 600 0.72rem var(--f-title);
  text-shadow: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}
.sw:hover::after,
.sw:focus-visible::after {
  opacity: 1;
}
.sw.ok::after {
  content: "Copié !";
  opacity: 1;
}

/* ===== Pages d'erreur / maintenance ===== */
.err-code {
  margin: 0 0 1rem;
  font-family: var(--f-logo);
  font-size: clamp(4rem, 14vw, 8rem);
  line-height: 1;
  color: var(--accent);
}

/* ===== Pied de page ===== */
.site-footer {
  margin-top: 4rem;
  padding: 3rem 2rem 2rem;
  text-align: center;
  color: #dfe4e7;
  background: var(--top);
  border-top: 3px solid var(--accent);
}
.site-footer h2,
.site-footer h4 {
  color: #fff;
}
.site-footer a {
  color: #dfe4e7;
}
.site-footer a:hover {
  color: var(--accent);
}
.site-footer h2 {
  font-size: 1.3rem;
}
.site-footer .cols {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.45fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
}
.site-footer h4 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.site-footer ul {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  font-size: 0.95rem;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 1.5rem;
  max-width: 1100px;
  margin: 0.5rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(223, 228, 231, 0.18);
  font-size: 0.85rem;
  opacity: 0.8;
}
@media (max-width: 600px) {
  .footer-bottom {
    flex-direction: column;
    align-items: center;
  }
}
.see-you {
  font-family: var(--f-logo);
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  margin-top: 1.5rem;
}

/* Apparition */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s,
    transform 0.7s;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ===== Mobile ===== */
@media (max-width: 900px) {
  .site-footer .cols {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  }
  .site-header {
    flex-wrap: wrap;
    padding: 0.6rem 1rem;
  }
  .burger {
    display: block;
  }
  .main-nav {
    display: none;
    width: 100%;
    order: 3;
    margin: 0;
  }
  .main-nav.open {
    display: block;
    max-height: calc(100vh - 5rem);
    overflow-y: auto;
  }
  .main-nav > ul {
    flex-direction: column;
    align-items: stretch;
  }
  .main-nav .sub,
  .main-nav .sub .sub {
    display: block;
    position: static;
    border: 0;
    box-shadow: none;
    background: none;
    padding: 0 0 0 1rem;
    min-width: 0;
  }
  .main-nav a.cta {
    display: inline-block;
    margin: 0.4rem 0.8rem;
  }
  .social {
    display: none;
  }
  .two {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .hero {
    padding: 6rem 1rem 5rem;
  }
  .hero::before {
    width: 90px;
    height: 90px;
    right: 5%;
  }
  .page-hero::before {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ===== Réseaux dans le pied de page ===== */
.contact-list svg {
  width: 1.15em;
  height: 1.15em;
  margin-right: 0.45rem;
  vertical-align: -0.2em;
}
.contact-list a {
  display: inline-block;
}

/* ===== Champs supplémentaires (liste « Type de collaboration ») ===== */
.form fieldset.extra {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.form fieldset.extra[hidden] {
  display: none;
}

@media (max-width: 1000px) {
  body.theme-ourse .page-hero::after {
    display: none;
  }
}

/* ===== Détails ===== */
/* « @YOUR » en couleur d'accent dans le titre et le pied de page */
.at {
  color: var(--accent);
}

/* Liens du texte : soulignés (le gris des liens se distingue ainsi du texte) */
.content p a,
.content li a,
.content address a,
details a {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}
.content .btn,
.content .card,
.content a.has-event {
  text-decoration: none;
}

/* Boutons clair / sombre et langue : en haut à droite, sous le bandeau ; ils restent
   ensuite collés sous l'en-tête pendant le défilement (--header-h calculé par script.js) */
.page-tools {
  position: sticky;
  top: var(--header-h, 66px);
  z-index: 40;
  display: flex;
  justify-content: flex-end;
  gap: 0.4rem;
  height: 0;
  padding: 0 1.25rem;
}
.mode-toggle,
.lang-switch {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  margin-top: 0.75rem;
  padding: 0;
  color: var(--head);
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  backdrop-filter: blur(4px);
  border: 1px solid currentColor;
  border-radius: 50%;
  cursor: pointer;
}
.mode-toggle:hover,
.lang-switch:hover {
  color: var(--on-accent);
  background: var(--accent);
  border-color: var(--accent);
}
.mode-toggle svg {
  width: 1.15rem;
  height: 1.15rem;
}
/* Drapeau rond de l'autre langue : il remplit le cercle, cerclé d'un fin liseré */
a.lang-switch {
  overflow: hidden;
  padding: 0;
  border: 2px solid color-mix(in srgb, var(--head) 70%, transparent);
  transition: transform 0.15s, border-color 0.15s;
}
a.lang-switch svg {
  display: block;
  width: 100%;
  height: 100%;
}
a.lang-switch:hover {
  background: none;
  border-color: var(--accent);
  transform: scale(1.08);
}
/* Dès 4 langues : globe et liste déroulante */
.lang-box {
  position: relative;
}
.lang-globe svg {
  width: 1.3rem;
  height: 1.3rem;
}
.lang-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  min-width: 11rem;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}
.lang-menu[hidden] {
  display: none;
}
.lang-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  color: var(--text);
  font-family: var(--f-title);
  font-size: 0.9rem;
}
.lang-item:hover,
.lang-item[aria-current] {
  background: var(--card);
}
.lang-flag {
  flex: none;
  width: 1.4rem;
  height: 1.4rem;
  overflow: hidden;
  border-radius: 50%;
}
.lang-flag svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* ===== Page Mission Petite Ourse =====
   Reprend l’écusson : fond nuit, fusée blanche et rouge, Petite Ourse, Terre bleue. */
/* Intro : écusson + accroche */
.mpo-intro {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 1rem;
}
.mpo-badge {
  width: 100%;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(6, 23, 51, 0.35);
}
.mpo-facts,
.mpo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
}
.mpo-facts li {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-ink);
  font-family: var(--f-title);
  font-size: 0.9rem;
  font-weight: 600;
}
.mpo-facts li:first-child {
  background: #e43429;
}

/* Les trois étapes */
.mpo-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
}
.mpo-steps li {
  position: relative;
  padding: 1.4rem;
  background: var(--card);
  border-radius: 16px;
  border-bottom: 5px solid #e43429;
  text-align: center;
  transition: transform 0.2s;
}
.mpo-steps li:hover {
  transform: translateY(-4px);
}
.mpo-steps svg {
  width: 72px;
  height: 72px;
}
.mpo-step {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--f-title);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e43429;
}
.mpo-steps h3 {
  margin: 0.3rem 0 0.5rem;
}
.mpo-steps p {
  margin: 0;
  font-size: 0.95rem;
}

/* Workshops */
.mpo-chips {
  margin-bottom: 2rem;
}
.mpo-chips li {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: var(--card);
  border: 2px solid var(--ink);
  font-weight: 700;
}

/* Photo cerclée comme l'écusson */
.mpo-photo {
  margin: 0 0 2rem;
}
.mpo-photo img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border: 6px solid #e43429;
  border-radius: 20px;
}
.mpo-photo figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  text-align: center;
}

/* Journal de bord : une trajectoire ponctuée d'étoiles, comme la constellation */
.mpo-log {
  position: relative;
  list-style: none;
  padding: 0 0 0 2.2rem;
  margin: 1.5rem 0 2.5rem;
}
.mpo-log::before {
  content: "";
  position: absolute;
  left: 0.55rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 3px;
  background: var(--ink);
  border-radius: 2px;
}
.mpo-log li {
  position: relative;
  padding: 0.9rem 1.2rem;
  margin-bottom: 0.9rem;
  background: var(--card);
  border-radius: 12px;
}
.mpo-log li::before {
  content: "";
  position: absolute;
  left: -2.05rem;
  top: 1.1rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--card);
  border: 3px solid var(--ink);
}
.mpo-log li.now::before {
  background: #e43429;
  box-shadow: 0 0 0 5px rgba(228, 52, 41, 0.3);
}
.mpo-year {
  font-family: var(--f-title);
  font-weight: 700;
  font-size: 0.85rem;
  color: #e43429;
}
.mpo-log h3 {
  margin: 0.15rem 0 0.3rem;
}
.mpo-log p {
  margin: 0;
}

/* Appels à l'action */
.mpo-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.mpo-cta > div {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #061733;
  color: #dfe4e7;
}
.mpo-cta h3 {
  margin: 0 0 0.4rem;
  color: #fff;
}
.mpo-cta p {
  margin: 0 0 1rem;
}
.mpo-cta .btn.ghost {
  color: #fff;
  border-color: #fff;
}
.mpo-cta .btn.ghost:hover {
  background: #fff;
  color: #061733;
}
.mpo-more {
  margin: 1.5rem 0 0;
  font-size: 0.9rem;
  text-align: center;
}

@media (max-width: 720px) {
  .mpo-intro,
  .mpo-steps,
  .mpo-cta {
    grid-template-columns: 1fr;
  }
  .mpo-badge {
    width: 160px;
    justify-self: center;
  }
}

/* Fond des icônes des étapes et bord des encarts, lisibles dans les deux modes */
.mpo-steps svg > circle:first-child {
  fill: var(--disc);
}

/* ===== Visionneuse de photos (galeries) ===== */
dialog.lightbox {
  max-width: min(94vw, 1200px);
  max-height: 94vh;
  padding: 0;
  overflow: visible;
  background: none;
  border: 0;
}
dialog.lightbox::backdrop {
  background: rgba(3, 10, 25, 0.88);
}
dialog.lightbox img {
  display: block;
  max-width: 100%;
  max-height: 82vh;
  margin: 0 auto;
  border-radius: 10px;
}
.lightbox-caption {
  margin: 0.8rem 0 0;
  text-align: center;
  color: #dfe4e7;
}
.lightbox-caption:empty {
  display: none;
}
dialog.lightbox .close {
  position: absolute;
  top: -2.6rem;
  right: 0;
  width: 2.2rem;
  height: 2.2rem;
  font-size: 1.6rem;
  line-height: 1;
  color: #fff;
  background: none;
  border: 1px solid currentColor;
  border-radius: 50%;
  cursor: pointer;
}

/* ===== Page Nos réseaux : cartes QR (DA des QR codes Space@ : fond nuit, cadre dégradé) ===== */
.qr-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0 2.5rem;
}
.qr-card {
  margin: 0;
  padding: 10px 10px 0;
  text-align: center;
  background: var(--qr);
  border-radius: 28px;
  box-shadow: 0 10px 28px rgba(6, 23, 51, 0.25);
  transition: transform 0.2s;
}
.qr-card:hover {
  transform: translateY(-4px);
}
.qr-code img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
}
.qr-card figcaption {
  display: grid;
  gap: 0.1rem;
  padding: 0.7rem 0.5rem 0.9rem;
  color: #fff;
}
.qr-label {
  font-family: var(--f-logo);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}
.qr-label:hover {
  color: #fff;
  text-decoration: underline;
}
.qr-sub {
  font-size: 0.85rem;
  opacity: 0.9;
}
.qr-dl {
  margin-top: 0.3rem;
  font-size: 0.78rem;
  color: #fff;
  opacity: 0.85;
  text-decoration: underline;
}
.qr-dl:hover {
  color: #fff;
  opacity: 1;
}
.qr-insta {
  --qr: linear-gradient(45deg, #ffd600, #ff7a00 25%, #ff0069 50%, #d300c5 75%, #763da6);
}
.qr-linkedin {
  --qr: linear-gradient(160deg, #0a66c2, #004182);
}
.qr-youtube {
  --qr: linear-gradient(160deg, #ff0000, #a30000);
}
.qr-events {
  --qr: linear-gradient(160deg, #ff7a1a, #e24401);
}
.qr-form {
  --qr: linear-gradient(160deg, #9b5cff, #5b1fc2);
}
.qr-website {
  --qr: linear-gradient(160deg, #194b96, #012c68);
}
.qr-twint {
  --qr: linear-gradient(160deg, #3a3a3a, #000);
}
span.qr-label:hover {
  text-decoration: none;
}

/* ===== Liseuse PDF (assets/js/flipbook.js) : statuts, STREB… ===== */
.flipbook {
  margin: 1.5rem 0 2rem;
  outline: none;
}
.flipbook:focus-visible .fb-stage {
  box-shadow: 0 0 0 3px var(--accent);
}
.fb-stage {
  position: relative;
  max-width: 100%;
  min-height: 160px;
  margin: 0 auto;
  perspective: 2400px;
  cursor: pointer;
  touch-action: pan-y;
  user-select: none;
}
.fb-stage.spread {
  transition: transform 0.65s cubic-bezier(0.45, 0.05, 0.35, 1);
}
/* Page seule (couverture à droite, dernière page à gauche) : centrée */
.fb-stage.solo-right {
  transform: translateX(-25%);
}
.fb-stage.solo-left {
  transform: translateX(25%);
}
@media (prefers-reduced-motion: reduce) {
  .fb-stage.spread {
    transition: none;
  }
}
.fb-status {
  display: grid;
  place-items: center;
  min-height: 200px;
  margin: 0;
  text-align: center;
}
.fb-page {
  position: absolute;
  top: 0;
  height: 100%;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 30px rgba(6, 23, 51, 0.3);
}
.fb-page.blank {
  background: none;
  box-shadow: none;
}
.fb-page canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.fb-page.single {
  left: 0;
  width: 100%;
}
.fb-page.left {
  left: 0;
  width: 50%;
}
.fb-page.right {
  left: 50%;
  width: 50%;
}
/* Pli central : léger ombrage de part et d'autre de la reliure */
.fb-page.left:not(.blank)::after,
.fb-page.right:not(.blank)::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.fb-page.left:not(.blank)::after {
  background: linear-gradient(to left, rgba(0, 0, 0, 0.18), transparent 8%);
}
.fb-page.right:not(.blank)::after {
  background: linear-gradient(to right, rgba(0, 0, 0, 0.18), transparent 8%);
}
/* Feuille qui tourne : recto et verso dos à dos */
.fb-leaf {
  position: absolute;
  top: 0;
  height: 100%;
  transform-style: preserve-3d;
  z-index: 2;
}
.fb-leaf.right {
  left: 50%;
  width: 50%;
  transform-origin: left center;
}
.fb-leaf.left {
  left: 0;
  width: 50%;
  transform-origin: right center;
}
.fb-leaf.single {
  left: 0;
  width: 100%;
  transform-origin: left center;
}
.fb-leaf .fb-face {
  left: 0;
  width: 100%;
  backface-visibility: hidden;
}
.fb-leaf .fb-face.back {
  transform: rotateY(180deg);
}
.fb-leaf .fb-face.blank {
  background: none;
}
/* Barre de commandes */
.fb-bar {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  justify-content: center;
  max-width: 520px;
  margin: 1rem auto 0;
}
.fb-gap {
  width: 0.8rem;
}
.fb-count {
  min-width: 6.5rem;
  font-family: var(--f-title);
  font-weight: 600;
  text-align: center;
  color: var(--head);
}
.fb-btn {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  color: var(--head);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}
.fb-btn:hover:not(:disabled) {
  color: var(--on-accent);
  background: var(--accent);
  border-color: var(--accent);
}
.fb-btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.fb-btn svg {
  width: 1.2rem;
  height: 1.2rem;
}
.flipbook:fullscreen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem;
  background: var(--bg);
}
