/* ==========================================================
   Keur Baye — feuille de style principale
   Palette : anthracite + rouge bordeaux + blanc
   Titres : Oswald (condensé, majuscules) — Texte : Open Sans
   ========================================================== */

/* ---------- Thèmes ---------- */
:root,
:root[data-theme="dark"] {
  --bg: #232323;
  --bg-deep: #1a1a1a;
  --card: #1b1b1b;
  --topbar-bg: #161616;
  --header-bg: #232323;
  --text: #ffffff;
  --muted: #c9c9c9;
  --line: rgba(255, 255, 255, .16);
  --red: #ae0a2f;
  --red-dark: #8a0824;
  --btn-hover-bg: #dddddd;
  --btn-hover-text: #3a3a3a;
  --symbols: .06;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f4f2ee;
  --bg-deep: #e7e3db;
  --card: #ffffff;
  --topbar-bg: #1d1d1d;
  --header-bg: #f4f2ee;
  --text: #1d1d1d;
  --muted: #4d4d4d;
  --line: rgba(0, 0, 0, .14);
  --btn-hover-bg: #1d1d1d;
  --btn-hover-text: #ffffff;
  --symbols: .07;
  color-scheme: light;
}

:root {
  --gutter: clamp(16px, 4vw, 48px);
  --font-title: "Oswald", "Arial Narrow", sans-serif;
  --font-text: "Open Sans", system-ui, sans-serif;
  --header-h: 70px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color .3s, color .3s;
}

body.menu-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }

.container {
  width: min(1240px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

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

/* ---------- Étiquettes ---------- */
.tag {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: .88rem;
  letter-spacing: .01em;
  text-transform: uppercase;
  line-height: 1;
  padding: .5rem .85rem;
}
.tag--light { background: #fff; color: #1d1d1d; }

/* ---------- Bouton Σ (signature du site) ----------
   Le cadre reprend la lettre Σ et chaque bouton porte ses propres bornes,
   comme une vraie somme :
   <a class="btn-sigma">
     <span class="btn-sigma__to" aria-hidden="true">Tle</span>          ← borne du haut
     <span class="btn-sigma__from" aria-hidden="true">n = 4ème</span>   ← borne du bas
     Je m'inscris
   </a>
*/
.btn-sigma {
  --t: 2px;                   /* épaisseur du trait */
  --w: 16px;                  /* largeur de la pointe du Σ */
  --stroke: var(--text);      /* couleur du Σ */
  --fill: var(--red);         /* remplissage au survol */
  --fill-text: #fff;          /* texte au survol */
  --bound: var(--muted);      /* couleur des bornes */
  --bound-hover: #e8335a;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  height: 40px;
  margin-block: 1rem;         /* place pour les bornes au-dessus et en dessous */
  padding: 0 1.05rem 0 calc(var(--w) + .75rem);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: .88rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: var(--text);
  border: 0;
  cursor: pointer;
  background-color: transparent;
  /* barres du haut et du bas + petits crochets à droite */
  background-image:
    linear-gradient(var(--stroke), var(--stroke)),
    linear-gradient(var(--stroke), var(--stroke)),
    linear-gradient(var(--stroke), var(--stroke)),
    linear-gradient(var(--stroke), var(--stroke));
  background-position: 0 0, 0 100%, 100% 0, 100% 100%;
  background-size: 100% var(--t), 100% var(--t), var(--t) 7px, var(--t) 7px;
  background-repeat: no-repeat;
  transition: color .25s;
}
/* la pointe du Σ, à gauche */
.btn-sigma::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: var(--w);
  height: 100%;
  background: var(--stroke);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 54' preserveAspectRatio='none'%3E%3Cpath d='M1 1.2 20.5 27 1 52.8' fill='none' stroke='%23000' stroke-width='2.5'/%3E%3C/svg%3E") no-repeat 0 0 / 100% 100%;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 54' preserveAspectRatio='none'%3E%3Cpath d='M1 1.2 20.5 27 1 52.8' fill='none' stroke='%23000' stroke-width='2.5'/%3E%3C/svg%3E") no-repeat 0 0 / 100% 100%;
}
/* le remplissage : la somme « s'additionne » de gauche à droite */
.btn-sigma::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: var(--t) 0;
  background: var(--fill);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, var(--w) 50%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}
.btn-sigma:hover,
.btn-sigma:focus-visible { color: var(--fill-text); }
.btn-sigma:hover::after,
.btn-sigma:focus-visible::after { transform: scaleX(1); }
.btn-sigma:focus-visible { outline-offset: 5px; }

/* les bornes de la somme */
.btn-sigma__to,
.btn-sigma__from {
  position: absolute;
  left: 2px;
  font-family: "Times New Roman", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: .74rem;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1;
  white-space: nowrap;
  color: var(--bound);
  pointer-events: none;
  transition: color .25s;
}
.btn-sigma__to { bottom: calc(100% + 3px); }
.btn-sigma__from { top: calc(100% + 3px); }
.btn-sigma:hover .btn-sigma__to,
.btn-sigma:hover .btn-sigma__from,
.btn-sigma:focus-visible .btn-sigma__to,
.btn-sigma:focus-visible .btn-sigma__from { color: var(--bound-hover); }
:root[data-theme="light"] .btn-sigma { --bound-hover: var(--red); }

/* petite taille */
.btn-sigma--sm {
  --t: 1.8px;
  --w: 13px;
  height: 32px;
  margin-block: .85rem;
  padding: 0 .85rem 0 calc(var(--w) + .6rem);
  font-size: .76rem;
}
.btn-sigma--sm .btn-sigma__to,
.btn-sigma--sm .btn-sigma__from { font-size: .66rem; }
.btn-sigma--sm .btn-sigma__to { bottom: calc(100% + 2px); }
.btn-sigma--sm .btn-sigma__from { top: calc(100% + 2px); }

/* ---------- Barre du haut ---------- */
.topbar {
  background: var(--topbar-bg);
  color: #fff;
  font-size: .82rem;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  gap: 1rem;
}
.topbar__links { display: flex; align-items: center; gap: 2rem; }
.topbar__links a { text-decoration: none; opacity: .85; }
.topbar__links a:hover { opacity: 1; text-decoration: underline; }
.topbar__strong {
  font-family: var(--font-title);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  opacity: 1 !important;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: .4rem 0;
}
.theme-toggle__switch {
  position: relative;
  width: 28px;
  height: 15px;
  border-radius: 99px;
  background: #fff;
}
.theme-toggle__switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--topbar-bg);
  transition: transform .25s;
}
:root[data-theme="light"] .theme-toggle__switch::after { transform: translateX(13px); background: var(--red); }

/* ---------- En-tête ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  transition: background-color .3s, box-shadow .3s;
}
.header.is-scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .25); }
.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: var(--header-h);
}

.logo-wrap {
  position: absolute;
  top: 8px;
  left: 0;
  z-index: 2;
  text-decoration: none;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .35));
  transform-origin: top left;
  transition: transform .3s;
}
.header.is-scrolled .logo-wrap { transform: scale(.8); }
.logo {
  display: flex;
  align-items: center;
  gap: .8rem;
  background: #fff;
  padding: .85rem 1.2rem 1.1rem .9rem;
  clip-path: polygon(0 0, 100% 3%, 97% 100%, 5% 97%);
}
.logo__mark { width: 34px; height: 34px; flex: none; }
.logo__text { display: flex; flex-direction: column; }
.logo__name {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1;
  color: #1d1d1d;
  text-transform: uppercase;
  letter-spacing: .01em;
}
.logo__sub {
  margin-top: .35rem;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--red);
}

.header__actions { display: flex; align-items: center; gap: 1.6rem; }
.header__divider { width: 1.5px; height: 34px; background: var(--text); opacity: .9; }

.burger {
  display: grid;
  gap: 5px;
  width: 34px;
  padding: 8px 4px;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--text);
}
.burger span {
  display: block;
  height: 2.5px;
  margin-left: auto;
  background: currentColor;
  transition: width .3s cubic-bezier(.2, .7, .2, 1), background-color .2s;
}
/* les trois traits ont des longueurs différentes, et s'égalisent au survol */
.burger span:nth-child(1) { width: 100%; }
.burger span:nth-child(2) { width: 70%; }
.burger span:nth-child(3) { width: 45%; }
.burger:hover span,
.burger:focus-visible span { width: 100%; }
.burger:hover span:nth-child(2) { background: var(--red); }

/* ---------- Menu plein écran ----------
   Ouverture : un cercle rouge part du bouton ☰ et grandit, un cercle sombre le
   suit, puis le contenu du menu apparaît en fondu et en cascade.
   Les cercles sont animés avec transform: scale() (pris en charge par la carte
   graphique) : l'animation reste fluide même sur un téléphone modeste.
   --mx / --my = centre du bouton ☰, --d = diamètre qui couvre tout l'écran
   (calculés en JavaScript). */
:root {
  --mx: calc(100vw - 40px);
  --my: 50px;
  --d: 300vmax;
  --menu-ease: cubic-bezier(.65, 0, .35, 1);
}

/* Le rideau : deux cercles (rouge puis sombre) */
.menu-curtain {
  position: fixed;
  inset: 0;
  z-index: 99;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0s .9s;           /* reste visible le temps de se refermer */
}
.menu-curtain.is-open { visibility: visible; transition: none; }
.menu-curtain::before,
.menu-curtain::after {
  content: "";
  position: absolute;
  left: calc(var(--mx) - var(--d) / 2);
  top: calc(var(--my) - var(--d) / 2);
  width: var(--d);
  height: var(--d);
  border-radius: 50%;
  transform: scale(0);
  will-change: transform;
}
.menu-curtain::before { background: var(--red); }
.menu-curtain::after { background: var(--bg-deep); }

/* ouverture : le rouge part en premier, le sombre le suit */
.menu-curtain.is-open::before { transform: scale(1); transition: transform .65s var(--menu-ease); }
.menu-curtain.is-open::after { transform: scale(1); transition: transform .65s var(--menu-ease) .1s; }
/* fermeture : le sombre se rétracte d'abord, le rouge juste après */
.menu-curtain::after { transition: transform .55s var(--menu-ease) .12s; }
.menu-curtain::before { transition: transform .55s var(--menu-ease) .24s; }

/* Le menu lui-même : transparent pendant l'animation, il apparaît en fondu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow-y: auto;
  background-color: transparent;
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s, visibility 0s .18s, background-color 0s;
}
.menu.is-open {
  opacity: 1;
  visibility: visible;
  background-color: var(--bg-deep);       /* fond plein une fois les cercles en place */
  transition: opacity .35s .35s, visibility 0s, background-color 0s .8s;
}
.menu .math-bg { opacity: 0; transition: opacity .15s; }
.menu.is-open .math-bg { opacity: var(--symbols); transition: opacity .8s .55s; }
.menu.is-open .menu__top { animation: menu-in .45s cubic-bezier(.2, .7, .2, 1) .35s both; }

/* évite le petit saut de la page quand la barre de défilement disparaît */
html { scrollbar-gutter: stable; }
.menu { display: flex; flex-direction: column; outline: none; }
.menu { --accent-text: #e8335a; }
:root[data-theme="light"] .menu { --accent-text: var(--red); }

/* Barre du haut du menu : logo + bouton Fermer */
.menu__top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  border-bottom: 1px solid var(--line);
}
.menu__brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.3rem;
  text-transform: uppercase;
  text-decoration: none;
}
.menu__brand svg { width: 34px; height: 34px; }
.menu__close {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  height: 46px;
  padding: 0 1rem;
  background: none;
  border: 2px solid var(--line);
  color: var(--text);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.menu__close svg { width: 16px; height: 16px; }
.menu__close:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* Corps du menu : liens à gauche, accès rapide à droite */
.menu__inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-content: center;   /* le bloc reste centré verticalement dans l'écran */
  align-items: stretch;    /* la liste prend la même hauteur que le panneau de droite */
  padding-block: clamp(2rem, 6vh, 4rem);
}
.menu__nav { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.menu__nav a { flex: 1; }
.menu__nav a {
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  align-items: center;
  gap: .8rem;
  padding: .7rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  letter-spacing: .04em;
  line-height: 1.1;
  text-transform: uppercase;
  text-decoration: none;
  transition: color .2s, padding-left .25s;
}
.menu__num { font-size: .75rem; font-weight: 600; letter-spacing: .06em; color: var(--accent-text); }
.menu__arrow { width: 18px; height: 18px; opacity: 0; transform: translateX(-8px); transition: opacity .2s, transform .25s; }
.menu__nav a:hover,
.menu__nav a:focus-visible { color: var(--accent-text); padding-left: .6rem; }
.menu__nav a:hover .menu__arrow,
.menu__nav a:focus-visible .menu__arrow { opacity: 1; transform: none; }
.menu__label { justify-self: start; }
.menu__nav a[aria-current="page"] .menu__label { box-shadow: inset 0 -2px 0 var(--red); }

/* Panneau d'accès rapide */
.menu__side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
  padding: 1.5rem;
  background: var(--bg);
  border-top: 4px solid var(--red);
}
.menu__kicker {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.menu__levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; width: 100%; }
.menu__levels a {
  display: grid;
  place-items: center;
  padding: .6rem .3rem;
  border: 2px solid var(--line);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .2s, border-color .2s, color .2s;
}
.menu__levels a:hover,
.menu__levels a:focus-visible { background: var(--red); border-color: var(--red); color: #fff; }
.menu__side .btn-sigma,
.menu__side .menu__login { align-self: center; }
.menu__login { font-size: .95rem; text-decoration: none; border-bottom: 1px solid currentColor; }
.menu__login:hover { color: var(--accent-text); }

/* Apparition en cascade à l'ouverture */
.menu.is-open .menu__nav a,
.menu.is-open .menu__side { animation: menu-in .45s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 60ms + 420ms); }
@keyframes menu-in { from { opacity: 0; transform: translateY(18px); } }

@media (max-width: 820px) {
  .menu__inner { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 720px) {
  .menu__close span { display: none; }
  .menu__close { width: 46px; justify-content: center; padding: 0; }
}

/* ---------- Symboles mathématiques en filigrane ---------- */
.math-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  color: var(--text);
  opacity: var(--symbols);
  font-family: "Times New Roman", Georgia, serif;
  z-index: 0;
}
.math-bg span { position: absolute; line-height: 1; user-select: none; }

/* ---------- Carrousel ---------- */
.hero {
  position: relative;
  height: clamp(420px, 64vh, 580px);
  overflow: hidden;
  background: #111;
  color: #fff;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: clamp(50px, 9vw, 110px);
  background: var(--bg);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  z-index: 3;
  transition: background-color .3s;
}
.hero__slides { position: absolute; inset: 0; }

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(90px, 13vh, 125px);
  opacity: 0;
  transition: opacity .9s ease;
}
.slide.is-active { opacity: 1; z-index: 1; }
.slide::before {
  /* voile pour garder le texte lisible */
  content: "";
  position: absolute;
  inset: 0;
  /* léger assombrissement en bas, pour la lisibilité du texte et des commandes */
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .3) 100%);
}
/* Diapositive 1 : photo de classe FIXE pendant le défilement (comme ihp.fr).
   La photo est un calque « position: fixed » (géré par la carte graphique : il ne
   bouge pas d'un pixel, aucun JavaScript). clip-path sur la diapositive ne laisse
   voir que la partie de la photo qui se trouve derrière le carrousel. */
.slide--1 { background: #161616; clip-path: inset(0); }
.slide__photo {
  position: fixed;
  inset: 0;
  background: url("../images/classe.webp") center 35% / cover no-repeat;
  pointer-events: none;
}
/* voile sombre à gauche (lisibilité du texte), légère teinte rouge, assombrissement en bas */
.slide__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .3) 100%),
    linear-gradient(90deg, rgba(16, 16, 16, .94) 0%, rgba(16, 16, 16, .8) 35%, rgba(16, 16, 16, .35) 70%, rgba(16, 16, 16, .2) 100%),
    linear-gradient(rgba(174, 10, 47, .16), rgba(174, 10, 47, .16));
}
.slide--2 { background:
  radial-gradient(circle at 70% 40%, rgba(31,154,107,.45), transparent 50%),
  radial-gradient(circle at 20% 20%, rgba(217,102,31,.35), transparent 45%),
  linear-gradient(135deg, #262626, #101010); }
.slide--3 { background:
  radial-gradient(circle at 75% 42%, rgba(42,151,224,.5), transparent 48%),
  radial-gradient(circle at 10% 80%, rgba(122,63,184,.45), transparent 50%),
  linear-gradient(135deg, #252525, #0f0f0f); }

/* Diapositive 3 : logo Telegram à droite, avec un halo bleu et un léger flottement */
.slide__logo {
  position: absolute;
  top: calc(50% - 75px);            /* centré dans l'espace au-dessus des commandes */
  right: clamp(1.5rem, 10vw, 11rem);
  width: clamp(110px, 14vw, 190px);
  height: auto;
  transform: translateY(-50%);
  border-radius: 50%;
  box-shadow: 0 0 0 14px rgba(42, 151, 224, .12), 0 0 0 30px rgba(42, 151, 224, .06), 0 24px 60px rgba(0, 0, 0, .45);
  animation: logo-float 5s ease-in-out infinite;
}
@keyframes logo-float {
  0%, 100% { transform: translateY(-50%); }
  50% { transform: translateY(calc(-50% - 10px)); }
}

/* Diapositive 2 : logos Wave et Orange Money, décalés, qui flottent chacun à leur rythme */
.slide__pay {
  position: absolute;
  top: calc(50% - 75px);
  right: clamp(1.5rem, 9vw, 10rem);
  display: flex;
  align-items: flex-start;
  transform: translateY(-50%);
}
.slide__pay img {
  width: clamp(90px, 11vw, 150px);
  height: auto;
  border-radius: 50%;
  box-shadow: 0 0 0 10px rgba(255, 255, 255, .06), 0 20px 50px rgba(0, 0, 0, .45);
  animation: pay-float 5s ease-in-out infinite;
}
.slide__pay img + img { margin: clamp(40px, 5vw, 70px) 0 0 -14px; animation-delay: -2.5s; }
@keyframes pay-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.slide__formula {
  position: absolute;
  top: 8%;
  right: 5%;
  font-family: "Times New Roman", Georgia, serif;
  font-style: italic;
  font-size: clamp(2.2rem, 5.5vw, 5rem);
  white-space: nowrap;
  color: #fff;
  opacity: .12;
  transform: rotate(-6deg);
}
.slide__content { position: relative; z-index: 1; }
/* au changement de diapositive : étiquette, titre puis texte arrivent l'un après l'autre */
.slide.is-active .slide__content > * { animation: slide-in .8s cubic-bezier(.2, .7, .2, 1) both; }
.slide.is-active .slide__content > :nth-child(2) { animation-delay: .12s; }
.slide.is-active .slide__content > :nth-child(3) { animation-delay: .24s; }
@keyframes slide-in { from { opacity: 0; transform: translateY(22px); } }
.slide__content .tag { font-size: 1.05rem; padding: .65rem 1.05rem; }
.slide__title {
  margin-top: 1.4rem;
  max-width: 18ch;
  font-size: clamp(1.7rem, 3.5vw, 2.9rem);
  font-weight: 700;
  line-height: 1.2;
}
.slide__title a {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 7px;
}
.slide__title a:hover { text-decoration-color: var(--red); }
.slide__text { margin-top: 1.4rem; max-width: 46ch; font-size: clamp(.95rem, 1.3vw, 1.1rem); color: #e8e8e8; }

/* Commandes du carrousel : ‹  ▬ ▬ ▬  › en bas à droite */
/* posées juste au-dessus de la coupure en diagonale (qui est la plus haute à droite) */
.hero__dots-wrap { position: absolute; left: 0; right: 0; bottom: calc(clamp(50px, 9vw, 110px) + 22px); z-index: 4; }
.hero__controls { display: flex; align-items: center; justify-content: flex-end; gap: .9rem; }
.hero__arrow {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, .45);
  color: #fff;
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.hero__arrow svg { width: 16px; height: 16px; }
/* remplissage rouge au survol : seulement avec une vraie souris
   (sur écran tactile, le « survol » resterait collé après l'appui) */
@media (hover: hover) {
  .hero__arrow:hover { background: var(--red); border-color: var(--red); }
}
/* sur écran tactile : bref retour visuel au moment de l'appui */
.hero__arrow:active { background: var(--red); border-color: var(--red); }
/* au clavier seulement : un fin contour blanc (pas de double cadre rouge) */
.hero__arrow:focus { outline: none; }
.hero__arrow:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.hero__dots { display: flex; gap: .6rem; }.hero__dot {
  width: 34px;
  height: 5px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, .45);
  cursor: pointer;
}
.hero__dot[aria-current="true"] { background: var(--red); }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: clamp(3rem, 6vw, 5rem); }
.section > .container { position: relative; z-index: 1; }

.section--deep { background: var(--bg-deep); margin-top: clamp(40px, 6vw, 80px); }
.section--deep::before {
  /* coupure en diagonale */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% - 1px);
  height: clamp(40px, 6vw, 80px);
  background: var(--bg-deep);
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}

.section__title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(2.1rem, 5.2vw, 4rem);
  line-height: .98;
  text-transform: uppercase;
  letter-spacing: .005em;
}
.section__lead { margin-top: 1rem; max-width: 60ch; color: var(--muted); font-size: 1rem; }

/* ---------- Niveaux ---------- */
.levels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 2rem 1rem;
  margin-top: clamp(1.8rem, 3.5vw, 2.6rem);
}
/* La carte entière est un lien vers l'inscription */
.level { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.level:focus-visible { outline-offset: 6px; }
.level__visual {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 15%, rgba(255,255,255,.22), transparent 45%),
    linear-gradient(135deg, var(--c1), var(--c2));
  display: grid;
  place-items: center;
  transition: transform .35s;
}
.level:hover .level__visual,
.level:focus-visible .level__visual { transform: translateY(-6px); }
.level__big {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(2.8rem, 4.5vw, 3.6rem);
  line-height: 1;
  color: #fff;
  text-shadow: 0 6px 24px rgba(0,0,0,.25);
}
.level__big sup { font-size: .38em; vertical-align: super; margin-left: .05em; }
.level__formula {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  font-family: "Times New Roman", Georgia, serif;
  font-style: italic;
  font-size: 1rem;
  color: #fff;
  opacity: .5;
}
.level__tag { position: absolute; left: 0; bottom: 0; }
.level__body { padding-top: .9rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.level__name {
  display: block;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.1;
  text-transform: uppercase;
}
.level__text { display: block; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.level__cta {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: auto;
  padding-top: .5rem;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #e8335a;
}
:root[data-theme="light"] .level__cta { color: var(--red); }
.level__cta svg { width: 18px; height: 18px; transition: transform .25s; }
.level:hover .level__cta svg,
.level:focus-visible .level__cta svg { transform: translateX(5px); }

/* ---------- Étapes ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: clamp(1.8rem, 3.5vw, 2.6rem) 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 1.1rem;
}
/* Cartes « Comment ça marche » : fond plus clair que la section + fin contour */
.step {
  --step-bg: #2a2a2a;
  display: flex;
  flex-direction: column;
  background: var(--step-bg);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .35);
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), border-color .3s;
}
:root[data-theme="light"] .step { --step-bg: #ffffff; border-color: rgba(0, 0, 0, .08); box-shadow: 0 10px 24px rgba(0, 0, 0, .08); }
.step:hover { transform: translateY(-4px); border-color: rgba(232, 51, 90, .5); }
.step__head { margin: -1px -1px 0; }   /* l'en-tête rouge recouvre le contour */
.step__head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.1rem 1rem;
  background: var(--red);
  color: #fff;
}
.step__head svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.step__num { font-family: var(--font-title); font-weight: 700; font-size: 2.3rem; line-height: 1; }
.step__body { padding: 1.1rem 1.1rem 1.4rem; display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; }
.step__body h3 { font-size: 1.1rem; line-height: 1.3; }
.step__body p { color: var(--muted); font-size: .9rem; line-height: 1.5; }
.steps__note {
  margin-top: 1.8rem;
  padding-left: 1rem;
  border-left: 4px solid var(--red);
  max-width: 62ch;
  font-size: .95rem;
}

/* ---------- Ce que tu reçois ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 2rem 1.1rem;
  margin-top: clamp(1.8rem, 3.5vw, 2.6rem);
}
.feature { display: flex; flex-direction: column; gap: .9rem; }
.feature__visual {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  margin-bottom: .3rem;
  color: #fff;
}
.feature__visual svg { width: 24%; height: auto; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.feature__visual--a { background: linear-gradient(135deg, #e7b8c2, #c97489); color: #5a0a1d; }
.feature__visual--b { background: linear-gradient(135deg, #2a97e0, #0f4c7a); }
.feature__visual--c { background: linear-gradient(135deg, #ae0a2f, #55051a); }
.feature__tag { position: absolute; left: 0; bottom: 0; }
.feature__title { font-size: 1.15rem; line-height: 1.3; }
.feature p { color: var(--muted); font-size: .9rem; line-height: 1.5; }
.feature { gap: .6rem; }

/* ---------- Questions ---------- */
.faq { margin-top: clamp(1.8rem, 3.5vw, 2.6rem); width: 100%; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 1.05rem 3rem 1.05rem 0;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  letter-spacing: .03em;
  text-transform: uppercase;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: .4rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--red);
  transition: transform .25s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
/* pendant la fermeture, le « × » redevient « + » tout de suite */
.faq details.is-closing summary::after { transform: translateY(-50%) rotate(0); }
/* la réponse apparaît en fondu en glissant légèrement */
.faq details[open]:not(.is-closing) p { animation: faq-in .4s cubic-bezier(.2, .7, .2, 1) both; }
.faq details.is-closing p { opacity: 0; transition: opacity .2s; }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }
.faq summary:hover { color: var(--red); }
.faq details p { padding: 0 3rem 1.1rem 0; color: var(--muted); max-width: 70ch; font-size: .95rem; }

/* ---------- Bandeau d'appel ---------- */
.cta {
  --cut: clamp(30px, 4vw, 50px);          /* hauteur de la coupure en diagonale */
  position: relative;
  background: var(--red);
  color: #fff;
  padding-block: calc(clamp(2.8rem, 5vw, 4.2rem) + var(--cut)) clamp(2.8rem, 5vw, 4.2rem);
}
/* La diagonale est dessinée DANS le bandeau, avec la couleur de la section
   du dessus (les questions) : plus aucune bande de couleur différente entre les deux. */
.cta::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: calc(var(--cut) + 1px);
  background: var(--bg-deep);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.cta__title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  text-transform: uppercase;
  line-height: 1.05;
}
.cta__text { margin-top: 1rem; max-width: 68ch; font-size: clamp(.95rem, 1.3vw, 1.1rem); }
.cta__actions { margin-top: 1.8rem; display: flex; justify-content: center; }
/* Bouton Σ sur le fond rouge : trait blanc, remplissage blanc, texte rouge au survol */
.cta .btn-sigma {
  --stroke: #fff;
  --fill: #fff;
  --fill-text: var(--red);
  --bound: rgba(255, 255, 255, .8);
  --bound-hover: #fff;
  color: #fff;
}
.cta .btn-sigma:hover,
.cta .btn-sigma:focus-visible { color: var(--red); }

/* ---------- Pied de page ---------- */
.footer { position: relative; background: var(--bg); padding-top: clamp(2.5rem, 5vw, 4rem); overflow: hidden; }
.footer > .container, .footer__bottom { position: relative; z-index: 1; }
/* La marque en haut sur toute la largeur, puis 3 colonnes alignées :
   Nos cours | Paiement | Besoin d'aide ? */
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 2rem clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}
.footer__info { display: contents; }   /* « Nos cours » et « Paiement » deviennent deux colonnes */

/* marque : bandeau du haut, séparé des colonnes par un fin trait */
.footer__brand {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: .75rem;
  row-gap: .25rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid var(--line);
}
/* place fixe de chaque élément : logo (col. 1), nom puis accroche (col. 2) */
.footer__brand .footer__mark { grid-column: 1; grid-row: 1 / span 2; }
.footer__brand .footer__name { grid-column: 2; grid-row: 1; }
.footer__brand .footer__tagline { grid-column: 2; grid-row: 2; }
.footer__mark { width: 44px; height: 44px; color: var(--text); grid-row: span 2; }
.footer__name { align-self: end; font-family: var(--font-title); font-weight: 700; font-size: 1.45rem; text-transform: uppercase; line-height: 1; }
.footer__tagline { align-self: start; font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #e8335a; }
:root[data-theme="light"] .footer__tagline { color: var(--red); }
/* ordinateur : la phrase de présentation à droite, sur la même ligne que le logo */
.footer__desc {
  grid-column: 3;
  grid-row: 1 / span 2;
  justify-self: end;
  margin: 0;
  max-width: 48ch;
  font-size: .85rem;
  line-height: 1.6;
  text-align: right;
  color: var(--muted);
}
/* symboles maths plus discrets derrière le texte du pied de page */
.footer .math-bg { --symbols: .03; }
:root[data-theme="light"] .footer .math-bg { --symbols: .04; }
/* titres en petites étiquettes, l'information au premier plan */
.footer__info h3,
.footer__kicker {
  margin: 0 0 .7rem;
  font-family: var(--font-text);
  font-weight: 700;
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.nowrap { white-space: nowrap; }
.footer__info p { margin: 0; font-size: .92rem; line-height: 1.65; color: var(--text); }
/* Colonne « Besoin d'aide ? » : boutons Δ de même largeur, l'un sous l'autre */
.footer__actions {
  display: grid;
  grid-template-columns: max-content;
  row-gap: .6rem;
  align-content: start;
}
.footer__actions .footer__kicker { margin-bottom: .1rem; }

/* ---------- Bouton Δ (pied de page) ----------
   Un cadre fin et un petit Δ devant le texte. Au survol, le Δ pivote d'un
   quart de tour et se remplit : il devient une flèche ▶. */
.btn-delta {
  --delta-border: rgba(255, 255, 255, .3);
  --delta-accent: #e8335a;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: .62rem 1.1rem .62rem .95rem;
  border: 1.5px solid var(--delta-border);
  background: transparent;
  color: var(--text);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .25s, color .25s;
}
:root[data-theme="light"] .btn-delta { --delta-border: rgba(0, 0, 0, .25); --delta-accent: var(--red); }
.btn-delta::before {
  content: "";
  flex: none;
  width: 12px;
  height: 11px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 13'%3E%3Cpath d='M7.5 1.3 13.8 12H1.2z' fill='none' stroke='%23000' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 13'%3E%3Cpath d='M7.5 1.3 13.8 12H1.2z' fill='none' stroke='%23000' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), background-color .25s;
}
.btn-delta:hover,
.btn-delta:focus-visible { border-color: var(--delta-accent); }
.btn-delta:hover::before,
.btn-delta:focus-visible::before {
  transform: rotate(90deg);
  background: var(--delta-accent);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 13'%3E%3Cpath d='M7.5 1.3 13.8 12H1.2z' stroke='%23000' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 13'%3E%3Cpath d='M7.5 1.3 13.8 12H1.2z' stroke='%23000' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* liens légaux : une ligne discrète */
.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem 1.8rem;
  margin-top: 2.4rem;
  padding-block: 1.3rem;
  border-top: 1px solid var(--line);
}
.footer__links a {
  font-size: .8rem;
  letter-spacing: .02em;
  text-decoration: none;
  color: var(--muted);
  transition: color .2s;
}
.footer__links a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

.footer__bottom { border-top: 1px solid var(--line); }
.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  min-height: 56px;
  padding-right: 2.6rem;   /* laisse la place au bouton « retour en haut » */
  font-size: .8rem;
  color: var(--muted);
}
.footer__badge {
  background: var(--red);
  color: #fff;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .35rem .75rem;
}

/* ---------- Bouton retour en haut ---------- */
.to-top {
  position: fixed;
  right: 0;
  bottom: clamp(16px, 4vh, 40px);
  z-index: 40;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: #fff;
  color: var(--red);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s, transform .3s, visibility 0s .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .3s; }
.to-top svg { width: 16px; height: 16px; }
.to-top:hover { background: var(--red); color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  /* tablette et téléphone : la phrase de présentation passe sous le logo */
  .footer__desc { grid-column: 1 / -1; grid-row: 3; justify-self: start; margin-top: .7rem; max-width: 52ch; text-align: left; }
}

@media (max-width: 720px) {
  :root { --header-h: 62px; }
  .hide-mobile { display: none !important; }
  .topbar__inner { min-height: 34px; }
  .logo-wrap { top: 6px; }
  .logo { gap: .55rem; }
  .logo__sub { font-size: .55rem; }
  .header.is-scrolled .logo-wrap { transform: scale(.85); }
  .hero__controls { justify-content: flex-start; gap: .7rem; }
  .slide { padding-bottom: 130px; }   /* de la place entre le texte et les commandes */
  .hero__arrow { width: 30px; height: 30px; }
  .slide__formula { top: 18%; }
  /* téléphone : voile plus fort de haut en bas (le texte prend toute la largeur) */
  .slide__photo { background-position: 35% 30%; }
  .slide__shade {
    background:
      linear-gradient(180deg, rgba(16, 16, 16, .45) 0%, rgba(16, 16, 16, .75) 45%, rgba(16, 16, 16, .94) 100%),
      linear-gradient(rgba(174, 10, 47, .16), rgba(174, 10, 47, .16));
  }
  /* téléphone : logo Telegram plus petit, en haut à droite au-dessus du texte */
  .slide__logo { top: 22%; right: 1.4rem; width: 78px; box-shadow: 0 0 0 8px rgba(42, 151, 224, .12), 0 12px 30px rgba(0, 0, 0, .4); }
  .slide__pay { top: 22%; right: 1.2rem; }
  .slide__pay img { width: 58px; box-shadow: 0 0 0 5px rgba(255, 255, 255, .06), 0 10px 24px rgba(0, 0, 0, .4); }
  .slide__pay img + img { margin: 26px 0 0 -8px; }
  .level__formula { display: none; }
  .slide__content .tag { font-size: 1.05rem; padding: .7rem 1rem; }
  /* --- Pied de page compact pour téléphone --- */
  .footer { padding-top: 2rem; }
  .footer__grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .footer__mark { width: 40px; height: 40px; }
  .footer__name { font-size: 1.35rem; }
  .footer__tagline { font-size: .6rem; }
  /* « Nos cours » puis « Paiement » : chaque ligne tient en entier */
  .footer__info h3,
  .footer__kicker { font-size: .62rem; margin-bottom: .45rem; }
  .footer__info p { font-size: .82rem; line-height: 1.6; }
  .footer__desc { font-size: .8rem; }
  /* les deux boutons Δ côte à côte, même largeur */
  .footer__actions { grid-template-columns: 1fr 1fr; column-gap: .7rem; }
  .footer__actions .footer__kicker { grid-column: 1 / -1; }
  .footer__actions .btn-delta { justify-content: center; font-size: .78rem; padding: .6rem .7rem; }
  /* liens légaux sur deux colonnes */
  .footer__links { justify-content: center; gap: .45rem 1.2rem; margin-top: 1.2rem; padding-block: 1.1rem; }
  .footer__links a { font-size: .74rem; }
  /* bas de page centré */
  .footer__bottom-inner { flex-direction: column; justify-content: center; text-align: center; gap: .55rem; padding: 1rem 0; font-size: .74rem; }
  .logo { padding: .7rem 1rem .95rem .8rem; }
  .logo__mark { width: 30px; height: 30px; }
  .logo__name { font-size: 1.1rem; }
  .faq summary { padding-right: 2.6rem; }
  .faq details p { padding-right: 0; }
  .to-top { width: 36px; height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ==========================================================
   PAGES INTÉRIEURES — en-tête de page + formulaires
   ========================================================== */
[hidden] { display: none !important; }

:root, :root[data-theme="dark"] { --error: #ff6b86; --field-bg: #1b1b1b; }
:root[data-theme="light"] { --error: #b00020; --field-bg: #ffffff; }

/* ---------- En-tête de page ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--bg-deep);
  padding-block: clamp(3rem, 6vw, 4.5rem) clamp(4rem, 8vw, 6rem);
}
.page-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: clamp(40px, 6vw, 80px);
  background: var(--bg);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
.page-hero__inner { position: relative; z-index: 1; }

/* Lien « ← Retour » */
.back-link {
  display: flex;
  align-items: center;
  gap: .5rem;
  width: fit-content;
  margin-bottom: 1.4rem;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color .2s;
}
.back-link svg { width: 20px; height: 20px; transition: transform .25s; }
.back-link:hover { color: var(--text); }
.back-link:hover svg { transform: translateX(-5px); }
.page-hero__title {
  margin-top: 1.4rem;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(2.3rem, 5.5vw, 4.2rem);
  line-height: .95;
  text-transform: uppercase;
}
.page-hero__text { margin-top: 1rem; max-width: 52ch; color: var(--muted); font-size: 1rem; }

/* ---------- Mise en page inscription ---------- */
.section--form { padding-top: clamp(1.8rem, 3.5vw, 2.6rem); }
.signup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

/* ---------- Étapes du formulaire ---------- */
.fstep { border: 0; margin: 0 0 2.2rem; padding: 0; min-width: 0; }
.fstep__legend {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  width: 100%;
  padding: 0 0 .9rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  line-height: 1;
  text-transform: uppercase;
}
.fstep__num { color: var(--red); }
:root[data-theme="dark"] .fstep__num { color: #e0284f; }

.field { margin-bottom: 1.2rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }
.field__label {
  display: block;
  margin-bottom: .4rem;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: .88rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.field__hint {
  margin-left: .4rem;
  font-family: var(--font-text);
  font-weight: 400;
  font-size: .85rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}
.field__help { margin-top: .45rem; font-size: .92rem; color: var(--muted); }

/* astérisque des champs obligatoires + légende en haut du formulaire */
.req { color: #e8335a; font-weight: 700; margin-left: .1rem; }
:root[data-theme="light"] .req { color: var(--red); }
.form-legend { margin: 0 0 1.4rem; font-size: .82rem; color: var(--muted); }
/* encadré d'information au-dessus d'un groupe de champs */
.field__intro {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: .4rem 0 1rem;
  padding: .7rem .9rem;
  background: var(--field-bg);
  border-left: 3px solid var(--red);
  font-size: .85rem;
  line-height: 1.5;
  color: var(--muted);
}
.field__intro strong { color: var(--text); font-weight: 600; }
.field__intro svg {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #e8335a;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
:root[data-theme="light"] .field__intro svg { stroke: var(--red); }

/* règle qui se coche pendant la saisie (ex. « 6 caractères minimum ») */
.field__rule {
  --ok: #2fbf71;
  display: flex;
  align-items: center;
  gap: .45rem;
  margin-top: .45rem;
  font-size: .8rem;
  color: var(--muted);
  transition: color .25s;
}
:root[data-theme="light"] .field__rule { --ok: #15803d; }
.field__rule::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  background: transparent center / 9px no-repeat;
  transition: background-color .25s, border-color .25s, transform .3s cubic-bezier(.2, .7, .2, 1);
}
.field__rule[data-ok="true"] { color: var(--ok); }
.field__rule[data-ok="true"]::before {
  border-color: var(--ok);
  background-color: var(--ok);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  transform: scale(1.1);
}
.field__error { margin-top: .45rem; font-size: .95rem; font-weight: 600; color: var(--error); }
.field__error:empty { display: none; }

.input,
.select select {
  width: 100%;
  padding: .7rem .85rem;
  background: var(--field-bg);
  color: var(--text);
  border: 2px solid var(--line);
  border-radius: 0;
  font: inherit;
  font-size: .95rem;
  transition: border-color .2s;
}
.input::placeholder { color: var(--muted); opacity: .6; }
.input:focus,
.select select:focus { outline: none; border-color: var(--red); }
.input[aria-invalid="true"],
.select select[aria-invalid="true"] { border-color: var(--error); }

.select { position: relative; }
.select select { appearance: none; padding-right: 3rem; cursor: pointer; }
.select::after {
  content: "";
  position: absolute;
  right: 1.2rem;
  top: 50%;
  width: .6rem;
  height: .6rem;
  margin-top: -.45rem;
  border-right: 2px solid var(--text);
  border-bottom: 2px solid var(--text);
  transform: rotate(45deg);
  pointer-events: none;
}

/* ---------- Liste déroulante personnalisée ---------- */
.select.is-enhanced select {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}
.select::after { transition: transform .3s cubic-bezier(.2, .7, .2, 1), margin-top .3s; }
.select.is-open::after { transform: rotate(225deg); margin-top: -.1rem; }
.cselect__box {
  width: 100%;
  padding: .7rem 3rem .7rem .85rem;
  background: var(--field-bg);
  color: var(--text);
  border: 2px solid var(--line);
  font-size: .95rem;
  line-height: 1.6;
  cursor: pointer;
  user-select: none;
  transition: border-color .2s;
}
.cselect__box.is-placeholder { color: var(--muted); }
.cselect__box:focus { outline: none; border-color: var(--red); }
.cselect__box:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.select.is-open .cselect__box { border-color: var(--red); }
.cselect__box.is-invalid { border-color: var(--error); }

.cselect__list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
  max-height: 290px;
  margin: 0;
  padding: .35rem 0;
  overflow-y: auto;
  list-style: none;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .45);
  /* fermé : invisible, légèrement remonté */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scaleY(.96);
  transform-origin: top;
  transition: opacity .18s, transform .25s cubic-bezier(.2, .7, .2, 1), visibility 0s .25s;
}
:root[data-theme="light"] .cselect__list { box-shadow: 0 16px 32px rgba(0, 0, 0, .12); }
.select.is-open .cselect__list {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .2s, transform .28s cubic-bezier(.2, .7, .2, 1);
}
.cselect__list li {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .65rem 1rem;
  font-size: .95rem;
  cursor: pointer;
  transition: background-color .15s, padding-left .2s cubic-bezier(.2, .7, .2, 1), color .15s;
}
/* les options arrivent l'une après l'autre */
.select.is-open .cselect__list li { animation: opt-in .3s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 35ms + 40ms); }
@keyframes opt-in { from { opacity: 0; transform: translateY(-4px); } }
/* barre rouge à gauche de l'option survolée */
.cselect__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 18%;
  width: 3px;
  background: var(--red);
  transform: scaleY(0);
  transition: transform .2s cubic-bezier(.2, .7, .2, 1);
}
.cselect__list li.is-active { background: rgba(255, 255, 255, .06); padding-left: 1.3rem; }
:root[data-theme="light"] .cselect__list li.is-active { background: rgba(0, 0, 0, .05); }
.cselect__list li.is-active::before { transform: scaleY(1); }
/* option choisie : en rouge avec une coche */
.cselect__list li[aria-selected="true"] { color: #e8335a; font-weight: 600; }
:root[data-theme="light"] .cselect__list li[aria-selected="true"] { color: var(--red); }
.cselect__list li[aria-selected="true"]::after {
  content: "";
  width: 7px;
  height: 12px;
  margin-right: .2rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.input-prefix { display: flex; }
.input-prefix__text {
  display: grid;
  place-items: center;
  padding: 0 1rem;
  background: var(--line);
  border: 2px solid var(--line);
  border-right: 0;
  font-weight: 700;
}

/* ---------- Cartes de choix (matières, paiement) ---------- */
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice__box {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .2rem;
  height: 100%;
  min-height: 62px;
  padding: .7rem 2.8rem .7rem 1rem;
  background: var(--field-bg);
  border: 2px solid var(--line);
  transition: border-color .2s, background-color .2s;
}
.choice__box::after {
  /* case à cocher dessinée */
  content: "";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  border: 2px solid var(--line);
  background: transparent center / 14px no-repeat;
}
.choice input[type="radio"] + .choice__box::after { border-radius: 50%; }
.choice:hover .choice__box { border-color: var(--text); }
.choice input:focus-visible + .choice__box { outline: 3px solid var(--red); outline-offset: 3px; }
.choice input:checked + .choice__box { border-color: var(--red); background-color: rgba(174, 10, 47, .12); }
.choice:has(input:disabled) { cursor: not-allowed; }
.choice input:disabled + .choice__box { opacity: .35; border-color: var(--line); }
.choice input:checked + .choice__box::after {
  border-color: var(--red);
  background-color: var(--red);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.choice__title { font-family: var(--font-title); font-weight: 600; font-size: 1rem; text-transform: uppercase; letter-spacing: .03em; line-height: 1.15; }
.choice__sub { font-size: .9rem; color: var(--muted); }
/* Moyens de paiement : logo rond et nom sur la même ligne */
.choices--pay .choice__box { flex-direction: row; align-items: center; justify-content: flex-start; gap: .65rem; }
.choice__logo { flex: none; width: 28px; height: 28px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }

/* ---------- Encadré d'instructions de paiement ---------- */
.pay-info {
  display: grid;
  gap: .6rem;
  margin-bottom: 1.6rem;
  padding: 1.3rem 1.4rem;
  border-left: 5px solid #1dc8ff;
  background: var(--field-bg);
  transition: border-left-color .35s ease;   /* bleu Wave ⇄ orange Orange Money en douceur */
}
.pay-info[data-method="orange"] { border-left-color: #ff7900; }
.pay-info strong { white-space: nowrap; }

/* ---------- Case d'engagement ---------- */
.check { display: flex; gap: .8rem; align-items: flex-start; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: .15rem 0 0; flex: none; accent-color: var(--red); cursor: pointer; }

.signup__submit { margin-top: .5rem; }

/* ---------- Récapitulatif ---------- */
.recap { position: sticky; top: calc(var(--header-h) + 24px); background: var(--card); }
.recap__head {
  padding: 1rem 1.2rem;
  background: var(--red);
  color: #fff;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.25rem;
  text-transform: uppercase;
  line-height: 1;
}
.recap__list { margin: 0; padding: .4rem 1.2rem; font-size: .92rem; }
.recap__list > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .6rem 0;
  border-bottom: 1px solid var(--line);
}
.recap__list dt { color: var(--muted); }
.recap__list dd { margin: 0; font-weight: 700; text-align: right; }
.recap__total { border-bottom: 0 !important; }
.recap__total dt, .recap__total dd { font-family: var(--font-title); font-size: 1.1rem; text-transform: uppercase; color: var(--text); }
.recap__note { padding: 0 1.2rem 1.2rem; font-size: .85rem; color: var(--muted); }

/* ---------- Confirmation ---------- */
.success { max-width: 820px; outline: none; }
.success__title {
  margin-top: 1.4rem;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  text-transform: uppercase;
  line-height: 1;
}
.success__text { margin-top: 1rem; font-size: 1.05rem; }
.success__steps { margin: 1.5rem 0 2.2rem; padding-left: 1.4rem; display: grid; gap: .9rem; color: var(--muted); }
.success__steps strong { color: var(--text); }
.success__steps li::marker { color: var(--red); font-weight: 700; }

.footer--short { padding-top: 0; }

/* ==========================================================
   PAGE DE CONNEXION
   ========================================================== */
.auth {
  display: grid;
  grid-template-columns: minmax(0, 460px) minmax(0, 340px);
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
.auth__card {
  padding: clamp(1.4rem, 3vw, 2.2rem);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .3);
}
:root[data-theme="light"] .auth__card { box-shadow: 0 14px 30px rgba(0, 0, 0, .08); }
.auth__title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.6rem;
  text-transform: uppercase;
  line-height: 1.1;
}
.auth__intro { margin: .4rem 0 1.4rem; font-size: .9rem; color: var(--muted); }
.auth__submit { margin-top: 1.2rem; }

/* libellé + lien « Mot de passe oublié ? » sur la même ligne */
.field__top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.link-btn {
  padding: 0;
  margin-bottom: .4rem;
  background: none;
  border: 0;
  font: inherit;
  font-size: .8rem;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.link-btn:hover { color: var(--text); }

/* champ mot de passe avec le bouton « œil » */
.input-action { position: relative; }
.input-action .input { padding-right: 3rem; }
.input-action__btn {
  position: absolute;
  top: 50%;
  right: .35rem;
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  transform: translateY(-50%);
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
}
.input-action__btn:hover { color: var(--text); }
.input-action__btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.input-action__btn .eye-closed,
.input-action__btn[aria-pressed="true"] .eye-open { display: none; }
.input-action__btn[aria-pressed="true"] .eye-closed { display: block; }

/* aide « mot de passe oublié » */
.forgot {
  margin-top: .6rem;
  padding: .75rem .9rem;
  border-left: 3px solid var(--red);
  background: var(--bg);
  font-size: .85rem;
  color: var(--muted);
}

/* message après l'envoi */
.form-notice {
  margin-top: 1.1rem;
  padding: .8rem 1rem;
  border: 1px solid var(--line);
  border-left: 3px solid #e8a33a;
  background: var(--bg);
  font-size: .88rem;
}

.form-notice--error { border-left-color: var(--error); }
.form-notice--ok { border-left-color: #2fbf71; }
.form-notice ul { margin: .5rem 0 0; padding-left: 1.1rem; }
.form-notice li + li { margin-top: .25rem; }

/* bouton pendant l'envoi */
.btn-sigma.is-busy { opacity: .6; cursor: wait; pointer-events: none; }
.btn-sigma:disabled { cursor: wait; }

/* panneau « Pas encore inscrit ? » */
.auth__aside { padding-top: .4rem; }
.auth__kicker {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.auth__aside-title {
  margin-top: .4rem;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.5rem;
  text-transform: uppercase;
  line-height: 1.1;
}
.auth__list { margin: 1rem 0 .4rem; padding: 0; list-style: none; display: grid; gap: .55rem; }
.auth__list li { position: relative; padding-left: 1.4rem; font-size: .9rem; color: var(--muted); }
.auth__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5em;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--red);
  border-right: 2px solid var(--red);
  transform: rotate(45deg);
}

@media (max-width: 820px) {
  .auth { grid-template-columns: minmax(0, 520px); }
  .auth__aside { padding: 1.4rem; border: 1px solid var(--line); }
}

@media (max-width: 900px) {
  .signup { grid-template-columns: 1fr; }
  .recap { position: static; }
}
@media (max-width: 520px) {
  .field-row, .choices { grid-template-columns: 1fr; }
  /* Matières et moyens de paiement restent côte à côte sur téléphone */
  .choices.choices--inline { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .choices--inline .choice__box { min-height: 52px; padding: .6rem 2.1rem .6rem .75rem; gap: .5rem; }
  .choices--inline .choice__title { font-size: .85rem; white-space: nowrap; }
  .choices--inline .choice__sub { display: none; }   /* « Mathématiques », « PC » : répètent le nom */
  .choice__logo { width: 22px; height: 22px; }
  .choices--inline .choice__box::after { right: .6rem; width: 18px; height: 18px; margin-top: -9px; background-size: 11px; }
}

/* ==========================================================
   ESPACE ÉLÈVE (mon-espace.html)
   ========================================================== */
.espace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(1.8rem, 4vw, 3.5rem);
  align-items: start;
}
.espace__title {
  margin: 0 0 1rem;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  text-transform: uppercase;
}
.espace__main .form-notice { margin: 0 0 1.4rem; }

/* le bouton « Se déconnecter » reprend le style du lien « Retour » */
button.back-link { padding: 0; background: none; border: 0; cursor: pointer; }

/* --- Liste des abonnements --- */
.abos { margin: 0 0 2.6rem; padding: 0; list-style: none; display: grid; gap: .7rem; }
.abos__empty { padding: 1rem 1.1rem; background: var(--card); border: 1px dashed var(--line); color: var(--muted); font-size: .92rem; }
.abo {
  --abo: #8a8a8a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .95rem 1.1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--abo);
}
.abo--actif { --abo: #2fbf71; }
.abo--en_attente { --abo: #e8a33a; }
.abo--refuse { --abo: var(--error); }
.abo__main { display: grid; gap: .15rem; min-width: 0; }
.abo__name { font-family: var(--font-title); font-weight: 600; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .03em; }
.abo__date { font-size: .85rem; color: var(--muted); }
.abo__badge {
  flex: none;
  padding: .3rem .6rem;
  border: 1.5px solid var(--abo);
  color: var(--abo);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: .75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
:root[data-theme="light"] .abo--actif { --abo: #15803d; }
:root[data-theme="light"] .abo--en_attente { --abo: #b45309; }

/* --- Formulaire de renouvellement --- */
.renew { padding: clamp(1.2rem, 3vw, 1.8rem); background: var(--card); border: 1px solid var(--line); }
.renew .field:last-of-type { margin-bottom: 1rem; }
.renew__total { margin: -.2rem 0 1.2rem; padding: .7rem .9rem; background: var(--bg); border-left: 3px solid #2fbf71; font-size: .92rem; }
.renew__total strong { font-size: 1.05rem; }

/* --- Carte Telegram --- */
.tg-card {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 1.6rem 1.4rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid #2aa3e0;
}
.tg-card__logo { width: 52px; height: 52px; border-radius: 50%; }
.tg-card__title {
  margin: .9rem 0 .6rem;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.3rem;
  text-transform: uppercase;
  line-height: 1.15;
}
.tg-card__text { font-size: .9rem; color: var(--muted); }
.tg-steps { margin: 0 0 .6rem; padding-left: 1.2rem; display: grid; gap: .6rem; font-size: .88rem; color: var(--muted); }
.tg-steps strong { color: var(--text); }
.tg-steps li::marker { color: #2aa3e0; font-weight: 700; }
.tg-steps a { color: #2aa3e0; }
.tg-card__soon { margin-top: .2rem; font-size: .82rem; color: #e8a33a; }
.tg-card__note { margin-top: .6rem; font-size: .78rem; color: var(--muted); }

/* bouton désactivé (bot pas encore en service) */
.btn-sigma.is-disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }

@media (max-width: 900px) {
  .espace { grid-template-columns: 1fr; }
  .tg-card { position: static; order: -1; }   /* sur téléphone : la carte Telegram en premier */
}

/* ==========================================================
   ESPACE PROFESSEUR — tableau de bord d'administration
   ========================================================== */
.admin-body {
  --series-1: #3987e5;                 /* couleur du graphique (validée sur fond sombre) */
  --series-2: #d95926;                 /* 2e série (validée avec la 1re, fond sombre) */
  --grid: rgba(255, 255, 255, .08);
  --admin-bg: #141414;
  --admin-panel: #1e1e1e;
  --admin-side: #181818;
  background: var(--admin-bg);
}
:root[data-theme="light"] .admin-body {
  --series-1: #2a78d6;                 /* validée sur fond clair */
  --series-2: #eb6834;
  --grid: rgba(0, 0, 0, .08);
  --admin-bg: #f1efea;
  --admin-panel: #ffffff;
  --admin-side: #ffffff;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --- Écran de connexion --- */
.admin-login { min-height: 100vh; display: grid; place-content: center; gap: 1rem; padding: 1.5rem 16px; }
.admin-login__card { width: min(420px, 100%); background: var(--admin-panel); }
.admin-login__brand { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.4rem; }
.admin-login__brand svg { width: 40px; height: 40px; color: var(--text); }
.admin-login__brand strong { display: block; font-family: var(--font-title); font-size: 1.4rem; text-transform: uppercase; line-height: 1; }
.admin-login__brand small { color: var(--muted); font-size: .8rem; }
.admin-login__back { display: inline-block; margin-top: 1rem; font-size: .85rem; color: var(--muted); }
#profDenied .form-notice { margin: 0 0 1rem; }

/* --- Disposition : menu latéral + contenu --- */
.admin { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  padding: 1.3rem .9rem;
  background: var(--admin-side);
  border-right: 1px solid var(--line);
}
.sidebar__brand { display: flex; align-items: center; gap: .65rem; padding: 0 .5rem; text-decoration: none; }
.sidebar__brand svg { width: 34px; height: 34px; flex: none; color: var(--text); }
.sidebar__brand strong { display: block; font-family: var(--font-title); font-size: 1.15rem; text-transform: uppercase; line-height: 1; }
.sidebar__brand small { font-size: .72rem; color: var(--muted); }
.sidebar__nav, .sidebar__bottom { display: grid; gap: .25rem; }
.sidebar__bottom { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); }
.sidebar__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: .75rem;
  width: 100%;
  padding: .7rem .75rem;
  background: none;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  font: inherit;
  font-size: .92rem;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
.sidebar__link svg { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sidebar__link:hover { background: rgba(127, 127, 127, .1); color: var(--text); }
.sidebar__link[aria-current="page"] { background: rgba(174, 10, 47, .14); color: var(--text); }
.sidebar__link[aria-current="page"]::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 2px; background: var(--red); }
.sidebar__badge { margin-left: auto; min-width: 1.5rem; padding: .05rem .45rem; border-radius: 999px; background: #e8a33a; color: #1a1a1a; font-size: .72rem; font-weight: 700; text-align: center; }
.admin__overlay { display: none; }

/* --- Barre du haut --- */
.admin__main { min-width: 0; }
.admin-top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .8rem clamp(1rem, 3vw, 2rem);
  background: color-mix(in srgb, var(--admin-bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.admin-top__burger { display: none; width: 36px; padding: 8px 6px; background: none; border: 0; cursor: pointer; color: var(--text); }
.admin-top__burger span { display: block; height: 2px; margin: 4px 0; background: currentColor; }
.admin-top__title { font-family: var(--font-title); font-weight: 700; font-size: 1.35rem; text-transform: uppercase; white-space: nowrap; }
.admin-top__search { max-width: 340px; margin-left: auto; padding-block: .55rem; font-size: .88rem; }
.admin-top__theme { color: var(--muted); font-size: .82rem; }
.admin-top__theme .theme-toggle__switch { background: var(--line); }
.admin-top__user { display: flex; align-items: center; gap: .6rem; }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--red); color: #fff; }
.avatar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.admin-top__who { display: grid; line-height: 1.2; }
.admin-top__who strong { font-size: .88rem; }
.admin-top__who small { font-size: .72rem; color: var(--muted); }

/* --- Contenu --- */
.admin__content { display: grid; gap: 1.5rem; padding: clamp(1rem, 3vw, 2rem); }
.admin__content > .form-notice { margin: 0; }
.view { display: grid; gap: 1.5rem; }
.view[hidden] { display: none; }

/* Cartes de chiffres clés */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.kpi {
  --c: var(--muted);
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: .9rem;
  align-items: center;
  padding: 1.1rem 1.2rem;
  background: var(--admin-panel);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.kpi__icon { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); }
.kpi__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.kpi__num { font-family: var(--font-title); font-weight: 700; font-size: 1.9rem; line-height: 1; color: var(--text); }
.kpi__label { font-size: .8rem; color: var(--muted); }
.kpi--attente { --c: #e8a33a; }
.kpi--actif { --c: #2fbf71; }
.kpi--bientot { --c: #e8335a; }
.kpi--total { --c: var(--series-1); }

/* Panneaux */
.admin-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.panel { padding: 1.2rem 1.3rem; background: var(--admin-panel); border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.panel__title { font-family: var(--font-title); font-weight: 600; font-size: 1.02rem; letter-spacing: .04em; text-transform: uppercase; }
.panel .link-btn { margin: 0; font-size: .82rem; text-decoration: none; color: var(--series-1); font-weight: 600; }
.panel .link-btn:hover { text-decoration: underline; }

/* Graphique en barres : une série, une couleur, valeur au bout */
.bars { display: grid; gap: .55rem; }
.bars__row { display: grid; grid-template-columns: 76px minmax(0, 1fr) 28px; align-items: center; gap: .7rem; padding: .25rem .2rem; border-radius: 6px; cursor: default; }
.bars__row:hover, .bars__row:focus-visible { background: rgba(127, 127, 127, .08); outline: none; }
.bars__label { font-size: .85rem; color: var(--muted); }
.bars__track { height: 14px; }
.bars__fill { display: block; height: 100%; min-width: 4px; background: var(--series-1); border-radius: 0 4px 4px 0; transition: width .5s cubic-bezier(.2, .7, .2, 1); }
.bars__fill.is-zero { background: var(--line); }
.bars__value { font-size: .85rem; font-weight: 700; text-align: right; color: var(--text); }
.chart-tip {
  position: fixed;
  z-index: 200;
  max-width: 260px;
  padding: .5rem .7rem;
  background: #0d0d0d;
  color: #f0efec;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 6px;
  font-size: .8rem;
  pointer-events: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .4);
}

/* Cartes de paiement */
.pay-list { margin: 0; padding: 0; list-style: none; display: grid; gap: .8rem; }
.pay {
  padding: 1rem 1.1rem;
  background: var(--admin-bg);
  border: 1px solid var(--line);
  border-left: 3px solid #e8a33a;
  border-radius: 8px;
  transition: opacity .35s, transform .35s;
}
.pay.is-busy { opacity: .6; }
.pay.is-done-ok { opacity: 0; transform: translateX(20px); }
.pay.is-done-no { opacity: 0; transform: translateX(-20px); }
.pay__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .7rem; }
.pay__name { font-weight: 700; font-size: 1rem; }
.pay__date { font-size: .75rem; color: var(--muted); white-space: nowrap; }
.pay__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem 1.4rem; margin: 0 0 .9rem; }
.pay__grid dt { font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pay__grid dd { margin: .1rem 0 0; font-size: .88rem; }
.pay__method { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.pay__method img { border-radius: 50%; }
.pay__method code { padding: .05rem .35rem; background: var(--admin-panel); border: 1px solid var(--line); border-radius: 4px; font-size: .82rem; }
.pay__actions { display: flex; gap: .6rem; }
.pay__btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem .9rem;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.pay__btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pay__btn--ok { background: #1f9d5c; border-color: #1f9d5c; color: #fff; }
.pay__btn--ok:hover { background: #17834c; border-color: #17834c; }
.pay__btn--no:hover { border-color: var(--error); color: var(--error); }
.pay__btn:disabled { opacity: .5; cursor: wait; }
.contact a { color: inherit; }
.contact__wa { color: #25d366 !important; }

/* Tableaux */
.table-wrap { overflow-x: auto; }
.eleves { width: 100%; border-collapse: collapse; font-size: .88rem; }
.eleves th { padding: .7rem .8rem; text-align: left; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); white-space: nowrap; }
.eleves td { padding: .75rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.eleves tbody tr:hover td { background: rgba(127, 127, 127, .05); }
.eleves tr:last-child td { border-bottom: 0; }
.eleves strong { display: block; }
.eleves__sub { display: block; font-size: .74rem; color: var(--muted); }
.table-empty { color: var(--muted); text-align: center; padding: 1.4rem !important; }
.chip { display: inline-block; margin: 0 .3rem .3rem 0; padding: .15rem .5rem; border: 1px solid currentColor; border-radius: 999px; font-size: .74rem; white-space: nowrap; }
.chip--actif { color: #2fbf71; }
.chip--en_attente { color: #e8a33a; }
.chip--expire { color: var(--muted); }
.chip--refuse { color: var(--error); }
:root[data-theme="light"] .chip--actif, :root[data-theme="light"] .tg-ok { color: #15803d; }
:root[data-theme="light"] .chip--en_attente { color: #b45309; }
.tg-ok { color: #2fbf71; white-space: nowrap; }
.tg-no { color: var(--muted); white-space: nowrap; }

/* Filtres de la liste des élèves */
.filters { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; }
.filters .field { width: min(220px, 100%); margin: 0; }

/* --- Responsive --- */
@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-grid { grid-template-columns: 1fr; }
  .admin-top__who, .admin-top__theme .theme-toggle__label { display: none; }
}
@media (max-width: 900px) {
  .admin { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 60; left: 0; top: 0; width: 260px; transform: translateX(-100%); transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
  .sidebar.is-open { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .5); }
  .admin__overlay { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(0, 0, 0, .5); }
  .admin__overlay[hidden] { display: none; }
  .admin-top__burger { display: block; }
  .admin-top { flex-wrap: wrap; }
  .admin-top__search { order: 5; max-width: none; width: 100%; margin-left: 0; }
  .admin-top__user { margin-left: auto; }
}
@media (max-width: 560px) {
  .kpis { gap: .6rem; }
  .kpi { padding: .8rem; column-gap: .6rem; }
  .kpi__icon { width: 36px; height: 36px; }
  .kpi__num { font-size: 1.5rem; }
  .pay__grid { grid-template-columns: 1fr; }
  /* tableaux → fiches empilées */
  .eleves thead { display: none; }
  .eleves, .eleves tbody, .eleves tr, .eleves td { display: block; width: 100%; }
  .eleves tr { padding: .5rem 0; border-bottom: 1px solid var(--line); }
  .eleves td { padding: .2rem .4rem; border: 0; }
}

/* --- Montant sur les cartes de paiement --- */
.pay__amount { font-size: 1rem; color: var(--text); }
.pay__amount--none { font-size: .82rem; color: #e8a33a; }

/* --- Page Tarifs --- */
.tarifs { max-width: 640px; }
.tarifs__intro { margin: -.3rem 0 1.3rem; font-size: .9rem; color: var(--muted); }
.tarifs__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }
.tarifs__note { min-height: 1.2em; margin: 0 0 1rem; font-size: .78rem; color: var(--muted); }
.input-suffix { display: flex; }
.input-suffix .input { min-width: 0; }
.input-suffix span {
  display: grid;
  place-items: center;
  padding: 0 .8rem;
  background: var(--line);
  border: 2px solid var(--line);
  border-left: 0;
  font-size: .8rem;
  font-weight: 600;
  white-space: nowrap;
}
@media (max-width: 560px) {
  .tarifs__grid { grid-template-columns: 1fr; }
}

/* ==========================================================
   ESPACE PROFESSEUR — vue « Analyses »
   ========================================================== */
.an-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.2rem; }
.an-bar__text { margin: 0; font-size: .9rem; color: var(--muted); }

/* Choix de la période (contrôle segmenté) */
.seg { display: inline-flex; padding: 3px; background: var(--admin-panel); border: 1px solid var(--line); border-radius: 8px; }
.seg__btn {
  padding: .4rem .85rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-family: inherit; font-size: .8rem; font-weight: 600; line-height: 1;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.seg__btn[aria-pressed="true"] { background: var(--red); color: #fff; }
@media (hover: hover) { .seg__btn[aria-pressed="false"]:hover { color: var(--text); background: rgba(127, 127, 127, .1); } }
.seg__btn:focus { outline: none; }
.seg__btn:focus-visible { outline: 2px solid var(--series-1); outline-offset: 1px; }

/* Chiffres de la période */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.stat { display: grid; gap: .35rem; align-content: start; padding: 1rem 1.1rem; background: var(--admin-panel); border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.stat__label { font-size: .8rem; color: var(--muted); }
.stat__value { font-family: var(--font-title); font-weight: 700; font-size: 1.7rem; line-height: 1.05; color: var(--text); }
.stat__delta { font-size: .75rem; color: var(--muted); }
.stat__arrow { font-size: .7rem; }
.stat__arrow--up { color: #0ca30c; }
.stat__arrow--down { color: #d03b3b; }

.an-empty { margin: 0; padding: .8rem 1rem; border: 1px dashed var(--line); border-radius: 8px; font-size: .85rem; color: var(--muted); text-align: center; }
.admin-grid--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Légende (2 séries) */
.legend { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin: -.4rem 0 .6rem; padding: 0; list-style: none; font-size: .8rem; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: .45rem; }
.legend__key { width: 12px; height: 12px; border-radius: 3px; }
.legend__key--1 { background: var(--series-1); }
.legend__key--2 { background: var(--series-2); }

/* Graphiques */
.chart { position: relative; min-height: 190px; }
.chart svg { display: block; overflow: visible; }
.chart__grid line { stroke: var(--grid); stroke-width: 1; }
.chart__grid line.is-base { stroke: var(--line); }
.chart__grid text { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart__col--1 { fill: var(--series-1); }
.chart__col--2 { fill: var(--series-2); }
.chart__line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart__line--1 { stroke: var(--series-1); }
.chart__area--1 { fill: var(--series-1); fill-opacity: .1; }
.chart__dot { stroke: var(--admin-panel); stroke-width: 2; }
.chart__dot--1 { fill: var(--series-1); }
.chart__end { fill: var(--text); font-size: 12px; font-weight: 700; }
.chart__hover { fill: rgba(127, 127, 127, .1); opacity: 0; }
.chart__cross { stroke: var(--muted); stroke-width: 1; opacity: 0; }
.chart__focus { opacity: 0; }
.chart__hover.is-on, .chart__cross.is-on, .chart__focus.is-on { opacity: 1; }
.chart__zones { position: absolute; display: flex; }
.chart__zone { flex: 1; cursor: crosshair; border-radius: 4px; }
.chart__zone:focus { outline: none; }
.chart__zone:focus-visible { box-shadow: inset 0 0 0 2px var(--series-1); }

/* Info-bulle à plusieurs lignes */
.chart-tip__title { display: block; margin-bottom: .2rem; font-weight: 700; text-transform: capitalize; }
.chart-tip__row { display: flex; align-items: center; gap: .4rem; white-space: nowrap; }
.chart-tip__key { width: 10px; height: 10px; border-radius: 2px; }
.chart-tip__key--1 { background: #3987e5; }
.chart-tip__key--2 { background: #d95926; }

/* Tableau des chiffres sous un graphique */
.an-table { margin-top: 1rem; }
.an-table__t td:not(:first-child), .an-table__t th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.an-table__t td:first-child { text-transform: capitalize; }

@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-grid--even { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .stats { gap: .6rem; }
  .stat { padding: .8rem; }
  .stat__value { font-size: 1.4rem; }
  .an-bar { flex-direction: column; align-items: stretch; }
  .seg { align-self: stretch; }
  .seg__btn { flex: 1; }
}

/* ==========================================================
   Boutons PDF + liste des reçus (espace élève)
   ========================================================== */
.pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  flex: none;
  padding: .55rem .9rem;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: .82rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
}
.pdf-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .pdf-btn:hover { border-color: var(--red); color: var(--red); } }
.pdf-btn:focus { outline: none; }
.pdf-btn:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.pdf-btn.is-busy { opacity: .6; cursor: wait; }
.pdf-btn--sm { padding: .35rem .6rem; font-size: .76rem; }
.pdf-btn--sm svg { width: 14px; height: 14px; }
@media (hover: hover) { :root:not([data-theme="light"]) .pdf-btn:hover { color: #ff6b86; border-color: #ff6b86; } }
.filters { align-items: flex-end; }
.filters__pdf { margin-left: auto; min-height: 42px; }

.recus { margin: 0 0 2.6rem; padding: 0; list-style: none; display: grid; gap: .7rem; }
.recu {
  --abo: #8a8a8a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 1.1rem;
  background: var(--card);
  border: 1px solid var(--line);
}
.recu--valide { --abo: #2fbf71; }
.recu--en_attente { --abo: #e8a33a; }
.recu--refuse { --abo: var(--error); }
:root[data-theme="light"] .recu--valide { --abo: #15803d; }
.recu__main { display: grid; gap: .15rem; min-width: 0; }
.recu__amount { font-weight: 700; font-size: .98rem; }
.recu__info { font-size: .84rem; color: var(--muted); }
@media (max-width: 560px) {
  .recu { flex-direction: column; align-items: stretch; gap: .7rem; }
  .recu .pdf-btn { justify-content: center; }
  .recu .abo__badge { align-self: flex-start; }
  .filters__pdf { margin-left: 0; width: 100%; justify-content: center; }
}

/* ==========================================================
   ESPACE PROFESSEUR — vue « Paramètres »
   ========================================================== */
.settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; align-items: start; }
.settings__card { margin: 0; }
.settings__card--wide { grid-column: 1 / -1; }
.settings__card .field { margin-bottom: 1rem; }
.settings__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.settings__grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.settings__sub { margin: 1.4rem 0 .4rem; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.settings__card .panel__head + .settings__sub { margin-top: 0; }
.settings__intro { margin: 0 0 .9rem; font-size: .85rem; color: var(--muted); }
.settings__card .field__label { display: flex; align-items: center; gap: .4rem; }
.settings__logo { flex: none; width: 18px; height: 18px; border-radius: 50%; }
.settings__rules { display: flex; flex-wrap: wrap; gap: 0 1.2rem; margin: -.3rem 0 1.2rem; padding: 0; list-style: none; }
.settings__rules .field__rule { margin-top: 0; }
.settings__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.4rem; }
.settings__actions .link-btn { margin: 0; font-size: .82rem; color: var(--muted); }
.settings__card .input[readonly] { opacity: .7; cursor: default; }
.settings__card .input-prefix .input { min-width: 0; }
.settings__card .input-prefix__text { padding: 0 .75rem; font-size: .85rem; }

/* Interrupteur « Inscriptions ouvertes » */
.switch { display: inline-flex; align-items: center; gap: .9rem; margin-bottom: 1rem; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track { position: relative; flex: none; width: 46px; height: 26px; border-radius: 13px; background: var(--line); transition: background .25s; }
.switch__track::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .35);
  transition: transform .25s cubic-bezier(.2, .7, .2, 1);
}
.switch input:checked + .switch__track { background: #1f9d55; }
.switch input:checked + .switch__track::after { transform: translateX(20px); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--series-1); outline-offset: 2px; }
.switch__text { display: grid; gap: .1rem; }
.switch__text strong { font-size: .92rem; }
.switch__text small { font-size: .8rem; color: var(--muted); }

@media (max-width: 1100px) {
  .settings { grid-template-columns: 1fr; }
  .settings__grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .settings__grid, .settings__grid--4 { grid-template-columns: 1fr; }
}

/* Page d'inscription : inscriptions fermées */
.signup-closed { grid-column: 1 / -1; max-width: 640px; padding: 2rem 2.2rem; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--red); }
.signup-closed__title { margin: 0 0 .8rem; font-family: var(--font-title); font-weight: 700; font-size: 1.5rem; text-transform: uppercase; }
.signup-closed__text { margin: 0 0 .6rem; color: var(--muted); }
.signup-closed__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: 1.4rem; }

/* Formulaire de renouvellement : où envoyer l'argent */
.renew__payto { margin: -.4rem 0 1.2rem; font-size: .9rem; color: var(--text); }
.forgot__wa { display: inline-block; margin-top: .5rem; font-weight: 700; color: #25d366; }
