/* ==========================================================================
   Les 7 flammes sacrées — feuille de style
   Charte : nuit étoilée (bleu nuit), accents dorés, une couleur par flamme.
   Les couleurs des flammes sont des variables : .flamme-bleue, .flamme-violette…
   ========================================================================== */

/* Polices auto-hébergées (sous-ensemble latin) : rapide et sans appel à Google (RGPD) */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/lora-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/lora-italic-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/raleway-latin.woff2') format('woff2');
}

:root {
  /* Fonds */
  --bg: #0b0a1a;
  --bg-alt: #110f26;
  --bg-elev: #191636;
  --bg-elev-2: #221e45;

  /* Textes */
  --text: #ece8f5;
  --text-muted: #bdb7d3;
  --text-faint: #8f89a8;

  /* Or */
  --gold: #d9b65c;
  --gold-strong: #e8c873;
  --on-gold: #1a1406;
  --line: rgba(217, 182, 92, 0.2);
  --line-soft: rgba(236, 232, 245, 0.1);

  /* Les sept flammes */
  --f-bleue: #5b95f9;
  --f-violette: #a884f3;
  --f-rubis: #e5485f;
  --f-jaune: #f3cb4f;
  --f-verte: #45c487;
  --f-rose: #f290bd;
  --f-blanche: #f1ede4;

  /* Couleur de la flamme courante (redéfinie par .flamme-xxx) */
  --flame: var(--gold);

  /* Typographie */
  --font-display: 'Lora', Georgia, serif;
  --font-body: 'Raleway', system-ui, sans-serif;

  /* Formes */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  --nav-h: 76px;

  /* Alias utilisés par le bandeau cookies (repris du site Dragons) */
  --primary: var(--gold);
  --on-primary: var(--on-gold);
  --surface: var(--bg-elev);
  --surface-container-low: var(--bg-alt);
  --surface-container-high: var(--bg-elev-2);
  --surface-container-highest: #2b2655;
  --on-surface: var(--text);
  --on-surface-variant: var(--text-muted);
  --outline-variant: var(--line);
}

.flamme-bleue { --flame: var(--f-bleue); }
.flamme-violette { --flame: var(--f-violette); }
.flamme-rubis { --flame: var(--f-rubis); }
.flamme-jaune { --flame: var(--f-jaune); }
.flamme-verte { --flame: var(--f-verte); }
.flamme-rose { --flame: var(--f-rose); }
.flamme-blanche { --flame: var(--f-blanche); }

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 85% -10%, rgba(168, 132, 243, 0.12), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(91, 149, 249, 0.08), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: var(--gold-strong);
}

a:hover {
  color: #fff;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #fff;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); margin-bottom: 1.25rem; }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); margin-bottom: 0.75rem; }
h4 { font-size: 1.15rem; margin-bottom: 0.5rem; }

p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  max-width: 72ch;
}

ul,
ol {
  color: var(--text-muted);
}

strong {
  color: var(--text);
  font-weight: 600;
}

.label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--flame);
  margin-bottom: 1rem;
}

.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.7;
  color: var(--text);
}

.muted { color: var(--text-faint); font-size: 0.95rem; }

/* ==========================================================================
   Mise en page
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 820px;
}

.section {
  padding: clamp(4rem, 9vw, 7.5rem) 0;
  position: relative;
}

.section-alt {
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.section-head {
  max-width: 760px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.section-head p {
  margin-left: auto;
  margin-right: auto;
}

.text-center { text-align: center; }
.text-center p,
p.text-center { margin-left: auto; margin-right: auto; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 1.75rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); align-items: center; gap: clamp(2rem, 5vw, 4.5rem); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 960px) {
  .grid-3,
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.text-center .actions,
.actions.center { justify-content: center; }

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 1000;
  background: rgba(11, 10, 26, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.navbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 1320px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #fff;
  flex-shrink: 0;
}

.logo-mark {
  width: 44px;
  height: 44px;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.1;
  color: #fff;
}

.logo-text small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: #fff;
}

.nav-links a[aria-current="page"] {
  box-shadow: 0 2px 0 var(--gold);
}

.nav-links .nav-cta {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--on-gold);
  font-weight: 700;
}

.nav-links .nav-cta:hover,
.nav-links .nav-cta[aria-current="page"] {
  background: var(--gold-strong);
  color: var(--on-gold);
  box-shadow: none;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle .bar {
  width: 26px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

@media (max-width: 1080px) {
  .menu-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 1.25rem;
    padding: 2rem 1.5rem 2.5rem;
    background: rgba(11, 10, 26, 0.97);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  }

  .nav-links.active {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .nav-links a { font-size: 1.1rem; }

  .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
  .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ==========================================================================
   Boutons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--gold);
  color: var(--on-gold);
  box-shadow: 0 8px 30px rgba(217, 182, 92, 0.25);
}

.btn-primary:hover {
  background: var(--gold-strong);
  color: var(--on-gold);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: rgba(236, 232, 245, 0.35);
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: #fff;
}

.btn-flame {
  background: var(--flame);
  color: #0b0a1a;
  box-shadow: 0 8px 30px color-mix(in srgb, var(--flame) 30%, transparent);
}

.btn-flame:hover {
  color: #0b0a1a;
  filter: brightness(1.08);
}

.btn-small {
  padding: 0.6rem 1.15rem;
  font-size: 0.92rem;
}

.btn[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
}

/* ==========================================================================
   En-têtes de page
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 3rem) 0 5rem;
  overflow: hidden;
  isolation: isolate;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(11, 10, 26, 0.94) 0%, rgba(11, 10, 26, 0.72) 42%, rgba(11, 10, 26, 0.15) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 30%);
}

.hero-content {
  max-width: 640px;
}

.hero-content p {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--text);
  margin: 1.5rem 0 2.25rem;
}

.hero-note {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(3rem, 8vw, 6rem)) 0 clamp(3rem, 7vw, 5rem);
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line-soft);
}

.page-hero .hero-img { opacity: 0.45; }

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, var(--bg) 0%, rgba(11, 10, 26, 0.55) 60%, rgba(11, 10, 26, 0.75) 100%);
}

.page-hero .lead {
  max-width: 760px;
  margin-top: 1.25rem;
}

.breadcrumb {
  font-size: 0.88rem;
  color: var(--text-faint);
  margin-bottom: 1.25rem;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb a:hover { color: #fff; }

/* En-tête d'une page flamme : texte + médaillon */
.flame-hero {
  padding: calc(var(--nav-h) + clamp(2.5rem, 6vw, 5rem)) 0 clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(700px 500px at 75% 45%, color-mix(in srgb, var(--flame) 22%, transparent), transparent 70%);
  border-bottom: 1px solid var(--line-soft);
}

.flame-hero .grid-2 { align-items: center; }

.flame-hero h1 span {
  display: block;
  color: var(--flame);
}

.flame-medallion {
  position: relative;
  width: min(420px, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--flame) 55%, transparent);
  box-shadow: 0 0 90px color-mix(in srgb, var(--flame) 35%, transparent);
}

.flame-medallion img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flame-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin: 1.75rem 0 2rem;
  padding: 1rem 1.25rem;
  list-style: none;
  border-left: 3px solid var(--flame);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.flame-facts li {
  color: var(--text);
  font-size: 0.98rem;
}

.flame-facts li strong { color: var(--flame); }

/* ==========================================================================
   Cartes
   ========================================================================== */
.card {
  background: linear-gradient(180deg, var(--bg-elev), rgba(25, 22, 54, 0.6));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.card h3 { color: #fff; }
.card p:last-child { margin-bottom: 0; }

.card-accent { border-top: 3px solid var(--flame); }

.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
  background: color-mix(in srgb, var(--flame) 16%, transparent);
  color: var(--flame);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

/* Grille des sept flammes */
.flame-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* 4 cartes puis 3 cartes centrées (grille de 24 colonnes) */
@media (min-width: 961px) {
  .flame-grid { grid-template-columns: repeat(24, 1fr); }
  .flame-grid > * { grid-column: span 6; }
  .flame-grid > :nth-child(5) { grid-column: 4 / span 6; }
  .flame-grid > :nth-child(6) { grid-column: 10 / span 6; }
  .flame-grid > :nth-child(7) { grid-column: 16 / span 6; }
}

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

@media (max-width: 480px) {
  .flame-grid { grid-template-columns: 1fr; }
}

.flame-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: var(--bg-elev);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.flame-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--flame) 60%, transparent);
  box-shadow: 0 18px 50px color-mix(in srgb, var(--flame) 22%, transparent);
  color: inherit;
}

.flame-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

.flame-card-body {
  padding: 1.25rem 1.35rem 1.5rem;
  border-top: 3px solid var(--flame);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.flame-card-body h3 {
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
}

.flame-card-theme {
  color: var(--flame);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.75rem;
}

.flame-card-body p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.flame-card-date {
  margin-top: auto;
  font-size: 0.88rem;
  color: var(--text-faint);
}

/* Liste à puces stylée */
.check-list {
  list-style: none;
  display: grid;
  gap: 0.8rem;
}

.check-list li {
  position: relative;
  padding-left: 1.9rem;
  color: var(--text-muted);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.62em;
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: var(--flame);
  box-shadow: 0 0 12px var(--flame);
}

.check-list li strong { color: var(--text); }

/* Étapes numérotées */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: step;
  list-style: none;
}

@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.steps li {
  counter-increment: step;
  position: relative;
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: var(--radius-md);
  background: var(--bg-elev);
  border: 1px solid var(--line-soft);
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 700;
}

.steps h3 { font-size: 1.15rem; }
.steps p { font-size: 0.95rem; margin-bottom: 0; }

/* Bloc « Ce qui est inclus » */
.includes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  list-style: none;
}

@media (max-width: 640px) { .includes { grid-template-columns: 1fr; } }

.includes li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-soft);
  color: var(--text-muted);
}

.includes li svg {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  color: var(--flame);
  margin-top: 0.1rem;
}

.includes li strong {
  display: block;
  color: var(--text);
}

/* Encadré prix */
.price-box {
  text-align: center;
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--flame) 45%, transparent);
  background:
    radial-gradient(400px 200px at 50% 0%, color-mix(in srgb, var(--flame) 18%, transparent), transparent 70%),
    var(--bg-elev);
}

.price-box .price {
  font-family: var(--font-display);
  font-size: 3.4rem;
  line-height: 1;
  color: #fff;
  margin: 0.5rem 0 0.25rem;
}

.price-box .price small {
  font-size: 1rem;
  color: var(--text-muted);
  font-family: var(--font-body);
}

.price-box ul {
  list-style: none;
  margin: 1.5rem 0 2rem;
  display: grid;
  gap: 0.4rem;
}

.price-box p { margin-left: auto; margin-right: auto; }

/* Tableau des séances */
.session-list {
  list-style: none;
  display: grid;
  gap: 1rem;
}

.session {
  display: grid;
  grid-template-columns: 8px 1.1fr 1.6fr 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.15rem 1.5rem 1.15rem 0;
  border-radius: var(--radius-md);
  background: var(--bg-elev);
  border: 1px solid var(--line-soft);
  overflow: hidden;
}

.session::before {
  content: "";
  align-self: stretch;
  margin: -1.15rem 0;
  background: var(--flame);
}

.session-date {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #fff;
  line-height: 1.3;
}

.session-date small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-faint);
}

.session-title {
  color: #fff;
  font-weight: 600;
}

.session-title a {
  color: #fff;
  text-decoration: none;
}

.session-title a:hover { color: var(--flame); }

.session-title small {
  display: block;
  color: var(--flame);
  font-weight: 500;
  font-size: 0.88rem;
}

.session-meta {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.session.is-past { opacity: 0.5; }

@media (max-width: 860px) {
  .session {
    grid-template-columns: 6px 1fr;
    padding: 1.25rem 1.25rem 1.25rem 0;
    gap: 0.4rem 1.1rem;
  }
  .session::before { grid-row: 1 / span 4; margin: -1.25rem 0; }
  .session > * { grid-column: 2; }
  .session .btn { justify-self: start; margin-top: 0.6rem; }
}

/* Citations / témoignages */
.quote {
  position: relative;
  padding: 2rem 2rem 1.75rem;
  border-radius: var(--radius-md);
  background: var(--bg-elev);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--flame);
}

.quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.08rem;
  color: var(--text);
}

.quote cite {
  font-style: normal;
  font-weight: 600;
  color: var(--flame);
}

/* Bandeau d'appel à l'action */
.cta-band {
  text-align: center;
  padding: clamp(3rem, 7vw, 5rem) 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(600px 260px at 50% 0%, rgba(217, 182, 92, 0.16), transparent 70%),
    linear-gradient(180deg, var(--bg-elev), var(--bg-alt));
}

.cta-band p { margin-left: auto; margin-right: auto; }

/* Spectre décoratif des 7 couleurs */
.spectrum {
  display: flex;
  height: 4px;
  width: 140px;
  border-radius: 4px;
  overflow: hidden;
  margin: 0 auto 1.5rem;
}

.spectrum span { flex: 1; }
.spectrum span:nth-child(1) { background: var(--f-bleue); }
.spectrum span:nth-child(2) { background: var(--f-violette); }
.spectrum span:nth-child(3) { background: var(--f-rubis); }
.spectrum span:nth-child(4) { background: var(--f-jaune); }
.spectrum span:nth-child(5) { background: var(--f-verte); }
.spectrum span:nth-child(6) { background: var(--f-rose); }
.spectrum span:nth-child(7) { background: var(--f-blanche); }

/* Image arrondie */
.media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
}

.media img {
  width: 100%;
  height: auto;
}

/* Enseignants */
.teacher {
  text-align: center;
}

.teacher img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  border: 2px solid var(--gold);
}

.teacher .role {
  color: var(--gold);
  font-style: italic;
  margin-bottom: 1rem;
}

.teacher p { margin-left: auto; margin-right: auto; }

/* Navigation entre flammes (bas des pages flammes) */
.section-tight {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.flame-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: stretch;
}

.flame-nav-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--bg-elev);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--flame);
  text-decoration: none;
  color: var(--text-muted);
  transition: border-color 0.2s, transform 0.2s;
}

.flame-nav-card:hover {
  border-color: var(--flame);
  transform: translateY(-2px);
  color: var(--text-muted);
}

.flame-nav-card img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 18px color-mix(in srgb, var(--flame) 40%, transparent);
}

.flame-nav-card small {
  display: block;
  font-size: 0.85rem;
}

.flame-nav-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--flame);
}

.flame-nav-card.next {
  flex-direction: row-reverse;
  text-align: right;
  border-left: 1px solid var(--line-soft);
  border-right: 3px solid var(--flame);
}

.flame-nav-card.next:hover { border-color: var(--flame); }

.flame-nav-all {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px dashed var(--line);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}

.flame-nav-all:hover {
  border-color: var(--gold);
  color: #fff;
}

.flame-nav-all .spectrum {
  margin: 0;
  width: 72px;
}

.disclaimer {
  max-width: 640px;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-faint);
}

@media (max-width: 760px) {
  .flame-nav { grid-template-columns: 1fr; }
  .flame-nav-all { order: 3; flex-direction: row; }
}

/* ==========================================================================
   FAQ (accordéon)
   ========================================================================== */
.accordion {
  border-bottom: 1px solid var(--line-soft);
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.35rem 0.25rem;
  cursor: pointer;
}

.accordion-header h3 {
  font-size: 1.12rem;
  margin: 0;
  font-family: var(--font-body);
  font-weight: 600;
}

.accordion-icon {
  flex-shrink: 0;
  color: var(--gold);
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.25s;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.accordion-content p {
  padding: 0 0.25rem 1.25rem;
  margin: 0;
}

.accordion.active .accordion-content { max-height: 600px; }
.accordion.active .accordion-icon { transform: rotate(45deg); }

/* ==========================================================================
   Articles
   ========================================================================== */
.article-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (max-width: 760px) { .article-cards { grid-template-columns: 1fr; } }

.article-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-elev);
  border: 1px solid var(--line-soft);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s, border-color 0.25s;
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: var(--line);
  color: inherit;
}

.article-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-card-body {
  padding: 1.5rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-card-body h2 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.article-card-body p { font-size: 0.98rem; }

.article-card-more {
  margin-top: auto;
  color: var(--gold);
  font-weight: 600;
}

.article-body {
  max-width: 760px;
  margin: 0 auto;
}

.article-body > p,
.article-body li {
  font-size: 1.1rem;
  line-height: 1.85;
}

.article-body h2 {
  margin-top: 3rem;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.article-body h3 { margin-top: 2rem; }

.article-body ul,
.article-body ol {
  margin: 0 0 1.5rem 1.4rem;
  display: grid;
  gap: 0.5rem;
}

.article-body figure {
  margin: 2.5rem 0;
}

.article-body figure img {
  border-radius: var(--radius-md);
  width: 100%;
  height: auto;
}

.article-body figcaption {
  font-size: 0.88rem;
  color: var(--text-faint);
  text-align: center;
  margin-top: 0.75rem;
}

.callout {
  margin: 2rem 0;
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(217, 182, 92, 0.06);
}

.callout p:last-child { margin-bottom: 0; }

.article-meta {
  margin-top: 1rem;
  font-size: 0.92rem;
  color: var(--text-faint);
}

/* ==========================================================================
   Formulaire de contact
   ========================================================================== */
.form-card {
  max-width: 640px;
  margin: 0 auto;
}

.field {
  margin-bottom: 1.35rem;
  text-align: left;
}

.field label {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 600;
  color: var(--text);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
}

.field select option { background: var(--bg-elev); color: var(--text); }

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--gold);
}

.field textarea { resize: vertical; }

.field-check {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  text-align: left;
  margin-bottom: 1.75rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.field-check input {
  margin-top: 0.3rem;
  accent-color: var(--gold);
}

.honeypot {
  position: absolute;
  left: -9999px;
}

#success-message { display: none; }

/* ==========================================================================
   Pages de texte (mentions, CGV)
   ========================================================================== */
.legal {
  max-width: 820px;
  margin: 0 auto;
}

.legal h2 {
  font-size: 1.5rem;
  margin-top: 2.75rem;
}

.legal h3 {
  font-size: 1.15rem;
  margin-top: 1.75rem;
}

.legal ul,
.legal ol {
  margin: 0 0 1.25rem 1.4rem;
}

.legal li { margin-bottom: 0.35rem; }

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.95rem;
}

.legal th,
.legal td {
  border: 1px solid var(--line-soft);
  padding: 0.6rem 0.8rem;
  text-align: left;
  color: var(--text-muted);
}

.legal th { color: var(--text); background: var(--bg-elev); }

/* ==========================================================================
   Pied de page
   ========================================================================== */
.site-footer {
  padding: 4.5rem 0 2rem;
  border-top: 1px solid var(--line-soft);
  background: var(--bg-alt);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

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

.site-footer h2 {
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}

.site-footer ul {
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-footer a:hover { color: #fff; }

.site-footer p {
  font-size: 0.95rem;
}

.footer-brand .logo { margin-bottom: 1rem; }

.footer-bottom {
  padding-top: 1.75rem;
  border-top: 1px solid var(--line-soft);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-faint);
}

.footer-bottom a { font-size: 0.85rem; text-decoration: underline; }

/* ==========================================================================
   Animations & accessibilité
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (scripting: none) {
  .reveal { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 2000;
  padding: 0.75rem 1.25rem;
  background: var(--gold);
  color: var(--on-gold);
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 3px solid var(--gold-strong);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}


/* ==========================================================================
   Cookie Consent Banner & Modal (Conformité CNIL / RGPD)
   ========================================================================== */
.vp-banner-wrapper {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  width: calc(100% - 2rem);
  max-width: 960px;
  background: rgba(25, 22, 54, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 40px rgba(217, 182, 92, 0.18);
  padding: 1.5rem 2rem;
  z-index: 99999;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  opacity: 0;
  pointer-events: none;
}

.vp-banner-wrapper.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.vp-banner-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 992px) {
  .vp-banner-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.vp-banner-text {
  flex: 1;
}

.vp-banner-text h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.vp-banner-text p {
  font-size: 0.92rem;
  color: var(--on-surface-variant);
  line-height: 1.5;
  margin-bottom: 0;
  max-width: none;
}

.vp-banner-text a {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 600;
}

.vp-banner-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.vp-btn {
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: var(--font-body);
  transition: all 0.25s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.vp-btn-accept {
  background-color: var(--primary);
  color: var(--bg-elev);
  border-color: var(--primary);
}

.vp-btn-accept:hover {
  background-color: var(--gold-strong);
  box-shadow: 0 4px 12px rgba(217, 182, 92, 0.25);
  transform: translateY(-1px);
}

.vp-btn-reject {
  background-color: var(--surface-container-high);
  color: var(--on-surface);
  border-color: var(--outline-variant);
}

.vp-btn-reject:hover {
  background-color: var(--surface-container-highest);
  color: var(--primary);
  transform: translateY(-1px);
}

.vp-btn-customize {
  background-color: transparent;
  color: var(--on-surface-variant);
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.vp-btn-customize:hover {
  color: var(--primary);
}

@media (max-width: 640px) {
  .vp-banner-wrapper {
    bottom: 1rem;
    padding: 1.25rem;
  }
  .vp-banner-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  .vp-btn-customize {
    grid-column: 1 / -1;
    text-align: center;
    padding: 0.4rem;
  }
}

/* Modal de Préférences */
.vp-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 4, 15, 0.72);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.vp-modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.vp-modal-card {
  background: var(--bg-elev);
  border-radius: var(--radius-md);
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--outline-variant);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.vp-modal-backdrop.is-open .vp-modal-card {
  transform: scale(1);
}

.vp-modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--outline-variant);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface-container-low);
}

.vp-modal-header h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 0;
}

.vp-modal-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--on-surface-variant);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.vp-modal-close:hover {
  background: rgba(0,0,0,0.05);
  color: var(--primary);
}

.vp-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.vp-modal-body p {
  font-size: 0.92rem;
  margin-bottom: 0.5rem;
  color: var(--on-surface-variant);
}

.vp-category {
  background: var(--surface);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
}

.vp-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.vp-category-title {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.vp-category-desc {
  font-size: 0.85rem;
  color: var(--on-surface-variant);
  margin: 0;
  line-height: 1.4;
}

.vp-badge-required {
  font-size: 0.75rem;
  background: rgba(217, 182, 92, 0.1);
  color: var(--primary);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-weight: 600;
}

/* Switch Toggle Styling */
.vp-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.vp-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.vp-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #4a4570;
  transition: .3s;
  border-radius: 24px;
}

.vp-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.vp-switch input:checked + .vp-slider {
  background-color: var(--primary);
}

.vp-switch input:checked + .vp-slider:before {
  transform: translateX(20px);
}

.vp-switch input:disabled + .vp-slider {
  opacity: 0.6;
  cursor: not-allowed;
}

.vp-modal-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--outline-variant);
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
  background: var(--surface-container-low);
}

.cookie-footer-link {
  background: none;
  border: none;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  padding: 0;
  margin-left: 0.5rem;
}

.cookie-footer-link:hover {
  color: var(--primary);
}

/* Titre de section au format h3 (hiérarchie h2 conservée) */
h2.h3 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  margin-bottom: 0.75rem;
}
