/*
 * Mises en page : en-tete, accueil, pages de texte (legales), ecran partage
 * (404, hors connexion), guide de style.
 *
 * Mobile d'abord (maquettes a 390 px) ; la mise en page desktop (maquettes
 * a 1440 px) prend le relais a partir de 960 px.
 */

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: var(--space-6) var(--space-6) var(--sp-4);
}

/* La page porte deja la marge laterale : l'en-tete et le pied de page
   communs n'en ajoutent pas une seconde. */
.page > :is(.site-top, .site-foot) {
  padding-inline: 0;
}

/* Pages au gabarit commun (404, pages legales) : l'en-tete porte deja sa
   marge haute, comme sur l'accueil ; la page n'en ajoute pas une seconde
   (refonte 2026, phase 12 : en-tete a la meme hauteur partout). */
.page:has(> .site-top) {
  padding-top: 0;
  padding-inline: var(--content-gutter);
}

/* Sur mobile, le corps reserve deja la place de la barre du bas : la page
   ne depasse pas l'ecran pour autant. */
@media (max-width: 767px) {
  body:has([data-site-tabbar]) .page {
    min-height: calc(100vh - 132px - env(safe-area-inset-bottom));
  }
}

/* --- En-tete ------------------------------------------------------------ */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}

/* --- Titre d'accroche (guide de style ; la page d'accueil a home.css) ------ */
.hero__title {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.125rem;
  line-height: 1.08;
}

.hero__accent {
  color: var(--accent-text);
}

/* Illustration du panneau des pages de connexion et d'inscription : deux
   notifications inclinees, decoratives */
.split__bubbles--home .bubble--warm {
  align-self: flex-start;
  transform: rotate(-3deg);
}

.split__bubbles--home .bubble:not(.bubble--warm) {
  align-self: flex-end;
  transform: rotate(2deg);
}

.split__bubbles--home .flame-icon {
  width: 44px;
  height: 44px;
}

.bubble__lines {
  display: flex;
  flex-direction: column;
}

@media (min-width: 960px) {
  /* Gabarit du kit : 1180 px de contenu au plus, marges de 40 px */
  .page {
    width: 100%;
    max-width: var(--content-max-width);
    margin-inline: auto;
    padding: var(--sp-6) var(--content-gutter) var(--sp-5);
  }

  .hero__title {
    font-size: 4rem;
    line-height: 1.02;
  }

  .split__bubbles--home .avatar {
    width: 44px;
    height: 44px;
  }
}

/* --- Pages de texte (legales) ------------------------------------------ */
.text-page {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding-block: var(--space-6) 40px;
}

.text-page__title {
  margin-bottom: var(--sp-2);
  font-size: 1.625rem;
}

.text-page__updated {
  margin-bottom: var(--space-6);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--muted);
}

/* Opposition a la mesure des visites (confidentialite, section 7). */
.visit-opposition {
  display: grid;
  justify-items: start;
  gap: var(--sp-3);
  margin-block: var(--sp-3) var(--space-6);
}

.visit-opposition[hidden] {
  display: none;
}

.prose h2 {
  margin: var(--space-8) 0 var(--sp-3);
  font-size: 1.375rem;
}

.prose p,
.prose ul {
  margin: 0 0 var(--sp-3);
  line-height: 1.6;
}

.prose ul {
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 6px;
}

.prose .placeholder {
  padding: 0 var(--sp-1);
  border-radius: 4px;
  background: var(--warm-bg);
  color: var(--warm-strong);
  font-weight: 700;
}

@media (min-width: 960px) {
  .text-page {
    padding-block: 40px 64px;
  }

  .text-page__title {
    font-size: 2.5rem;
  }
}

/* --- Ecran partage : 404, hors connexion ------------------------------ */
.split {
  display: flex;
  min-height: 100vh;
}

/* Panneau violet de marque, reserve au desktop */
.split__brand {
  display: none;
}

.split__main {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  /* Sans cela, un champ large (liste deroulante) elargit la colonne au-dela de l'ecran */
  min-width: 0;
  padding: 18px var(--sp-5) var(--space-6);
}

.status-screen {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: var(--sp-4);
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding-top: 40px;
  text-align: center;
}

.status-screen__code {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 6rem;
  line-height: 1;
  color: var(--brand-text);
}

.status-screen__icon {
  align-self: center;
  width: 96px;
  height: 96px;
}

.status-screen__title {
  font-size: 1.75rem;
}

.status-screen__text {
  font-size: 0.9375rem;
  color: var(--muted);
}

.status-screen__actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-top: auto;
}

/* Page introuvable (refonte 2026, phases 9 et 12, maquettes pages/404*) :
   grand « 404 » en flamme, trois sorties de meme largeur (en colonne sur
   mobile, en ligne sur ordinateur), le pied de page juste dessous. */
.status-screen--404 {
  flex-grow: 0;
  gap: 14px;
  max-width: 720px;
  padding-block: 30px;
}

.status-screen--404 .status-screen__code {
  color: var(--flame-text);
  font-size: 110px;
  line-height: 0.9;
}

.status-screen--404 .status-screen__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
}

.status-screen--404 .status-screen__text {
  margin: 0;
  font-weight: 700;
  font-size: 16px;
}

.status-screen--404 .status-screen__actions {
  gap: 10px;
  margin-top: 0;
}

.status-screen--404 .status-screen__actions .button {
  gap: var(--sp-2);
  height: 60px;
}

@media (min-width: 720px) {
  .status-screen.status-screen--404 { padding-block: 77px 84px; }
  .status-screen--404 .status-screen__code { font-size: 160px; }
  .status-screen--404 .status-screen__title { font-size: 44px; }
  .status-screen--404 .status-screen__actions { flex-direction: row; }
  .status-screen--404 .status-screen__actions .button { flex: 1; white-space: nowrap; }
  .status-screen--404 .status-screen__actions .button--flame { padding-inline: 0; font-size: 17px; }
}

@media (min-width: 960px) {
  /* Le contenu suit l'en-tete, comme la maquette, au lieu d'etre centre. */
  .status-screen.status-screen--404 { justify-content: flex-start; }
}

@media (min-width: 960px) {
  .split__brand {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    gap: 14px;
    width: 560px;
    padding: 40px var(--space-14);
    background: var(--violet);
    color: var(--on-accent);
  }

  .split__brand .brand {
    color: var(--on-accent);
  }

  .split__headline {
    margin-top: auto;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2.875rem;
    line-height: 1.05;
  }

  .split__tagline {
    font-size: 1.125rem;
    line-height: 1.5;
    color: var(--panel-soft-text);
  }

  .split__bubbles {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 22px;
    margin-bottom: auto;
  }

  /* Cartes claires sur le violet, dans les deux themes (maquette) */
  .split__bubbles .bubble {
    border: 0;
    border-bottom: 5px solid var(--violet-light);
    background: var(--panel-card);
    color: var(--on-flame);
  }

  .split__bubbles .bubble--warm {
    border-bottom-color: var(--flame);
    background: var(--panel-warm-bg);
  }

  .split__bubbles .bubble__big { color: var(--panel-warm-strong); }
  .split__bubbles .bubble__warm-text { color: var(--panel-warm-text); }
  .split__bubbles .bubble__accent-text { color: var(--violet-dark); }

  .split__main {
    padding: var(--sp-6) 48px;
  }

  .split__main .site-header {
    justify-content: flex-end;
  }

  .split__main .site-header .brand {
    display: none;
  }

  .status-screen {
    justify-content: center;
    padding-top: 0;
  }

  .status-screen__actions {
    margin-top: var(--sp-4);
  }
}

/* --- Guide de style ---------------------------------------------------- */
.styleguide {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-block: var(--space-6) 64px;
}

.styleguide__section {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.styleguide__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4);
}

.styleguide__grid {
  display: grid;
  gap: var(--sp-4);
}

.styleguide__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.styleguide__watermark {
  max-width: 380px;
  min-height: 180px;
}

.styleguide__ladder {
  max-width: 360px;
}

@media (min-width: 960px) {
  .styleguide__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--sp-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.swatch {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 700;
}

.swatch__color {
  height: 56px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
}

.swatch__color--bg { background: var(--bg); }
.swatch__color--surface { background: var(--surface); }
.swatch__color--soft { background: var(--soft); }
.swatch__color--text { background: var(--text); }
.swatch__color--muted { background: var(--muted); }
.swatch__color--accent { background: var(--accent-text); }
.swatch__color--violet { background: var(--violet); }
.swatch__color--flame { background: var(--flame); }
.swatch__color--cyan { background: var(--cyan); }
.swatch__color--hero { background: var(--hero); }
.swatch__color--success { background: var(--success); }
.swatch__color--danger { background: var(--danger); }

/* --- Formulaires en ecran partage : connexion, inscription, accord ----- */
.form-screen {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: var(--sp-5);
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding-block: var(--space-6) var(--sp-4);
}

.form-screen__eyebrow {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-screen__title {
  font-size: 2rem;
  line-height: 1.1;
}

.form-screen__subtitle {
  font-size: 1.375rem;
}

.form-screen__lead {
  color: var(--muted);
}

.form-screen__step {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: var(--sp-5);
}

.form-screen__step > .button--small {
  align-self: flex-start;
}

/* Les actions restent en bas de l'ecran sur mobile, comme dans les maquettes */
.form-screen__actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-top: auto;
  padding-top: var(--sp-2);
}

.form-screen__footer {
  text-align: center;
  font-weight: 700;
  color: var(--muted);
}

.form-screen__small {
  font-size: 0.8125rem;
  color: var(--muted);
}

.step-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

/*
 * Connexion et inscription (maquette) : sur mobile, ni logo ni bouton de
 * theme en tete ; l'ecran commence par le retour (et le logo pour la
 * connexion, la progression pour l'inscription).
 */
@media (max-width: 959px) {
  .split--auth .split__main > .site-header {
    display: none;
  }
}

.auth-top {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}

/* Connexion : le bouton suit le champ, le lien d'inscription reste en bas */
.form-screen--login .form-screen__step {
  flex-grow: 0;
}

.form-screen--login .form-screen__actions {
  margin-top: 0;
}

.form-screen--login .form-screen__footer {
  margin-top: auto;
}

/* --- Connexion et inscription (refonte 2026, maquettes auth/*) -------------- */

.auth-switch {
  gap: var(--sp-2);
}

/* Grand bouton or des maquettes : RECEVOIR MON CODE, C'EST PARTI */
.auth-cta {
  min-height: 60px;
  --button-edge-size: var(--relief-xl);
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.auth-intro {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-intro .form-screen__lead {
  margin: 0;
  font-weight: 700;
}

.field__with-icon {
  position: relative;
  display: block;
}

.field__icon {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 22px;
  height: 22px;
  background: var(--accent-text);
  transform: translateY(-50%);
  pointer-events: none;
}

.field__icon--mail {
  mask: url("/icones/interface/mail.svg?v=c80e8fb233") center / contain no-repeat;
}

.field__with-icon > .field__input {
  width: 100%;
  padding-left: 50px;
}

.auth-reassure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.875rem;
}

.auth-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.auth-foot__signup {
  gap: 10px;
}

.auth-later {
  --button-edge-size: 0px;
  border: 2px solid var(--border);
  background: transparent;
}

/* Demande au parent : plus d'etapes a montrer */
.form-screen:has(#signup-parent:not([hidden])) .step-header {
  display: none;
}

.parent-step .auth-cta {
  font-size: 1.0625rem;
}

/* Code recu : enveloppe, six cases, renvoi (maquettes auth/Code*) */
.code-step {
  align-items: center;
  text-align: center;
}

.code-step > :not(.code-step__icon, .code-resend) {
  align-self: stretch;
}

.code-step__icon .site-icon {
  width: 64px;
  height: 64px;
}

/* Une fois le code envoye, l'ecran ne parle plus que du code */
.form-screen--login:has(#login-code:not([hidden])) :is(.auth-intro, .auth-foot) {
  display: none;
}

.code-step__icon {
  display: grid;
  place-items: center;
  width: 128px;
  height: 128px;
  border: 8px solid var(--violet-dark);
  border-radius: 50%;
  background: var(--violet);
}

.code-step__to {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.code-step__to strong { color: var(--text); }

.code-step__spam {
  margin: auto 0 0;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.875rem;
}

.code-entry {
  position: relative;
}

/* Le champ couvre les cases : il recoit la saisie, le collage et le code
   propose par le telephone ; les cases ne font que l'afficher. */
.code-entry__input {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: transparent;
  color: transparent;
  caret-color: transparent;
  font-size: 1rem;
  opacity: 0;
}

.code-entry__boxes {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  gap: var(--sp-2);
}

.code-entry__boxes > span {
  display: grid;
  place-items: center;
  height: 64px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.75rem;
}

.code-entry__boxes > [data-state="filled"] {
  border-color: var(--violet);
  background: var(--surface);
}

.code-entry:focus-within .code-entry__boxes > [data-state="current"] {
  border-color: var(--flame);
  outline: 3px solid var(--sel-bg);
}

/*
 * Code de jeu (classe, partie, defi ; kit `.code-field`, maquettes
 * `offre/Accueil*`) : le meme composant, six cases plus petites en deux
 * groupes de trois.
 */
.code-entry--game {
  flex-shrink: 0;
}

.code-entry--game .code-entry__boxes {
  display: flex;
  gap: var(--sp-1);
}

.code-entry--game .code-entry__boxes > span {
  box-sizing: border-box;
  width: 30px;
  height: 40px;
  border-radius: 11px;
  font-size: 1.125rem;
}

/* Entre les deux groupes : 12 px (16 px sur ordinateur), comme la maquette */
.code-entry--game .code-entry__boxes > :nth-child(4) {
  margin-left: var(--sp-2);
}

@media (min-width: 960px) {
  .code-entry--game .code-entry__boxes > span {
    width: 40px;
    height: 50px;
    font-size: 1.5rem;
  }

  .code-entry--game .code-entry__boxes > :nth-child(4) {
    margin-left: var(--sp-3);
  }
}

.code-resend {
  display: inline-flex;
  align-self: center;
  align-items: center;
  gap: var(--sp-2);
  padding: 10px var(--sp-4);
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 800;
  font-size: 0.875rem;
  cursor: pointer;
}

.code-resend:disabled {
  color: var(--muted);
  cursor: default;
}

/* Demande d'accord parental (maquettes auth/Parent*) */
.parent-step {
  text-align: center;
}

.parent-step > .notice,
.parent-step > form {
  text-align: left;
}

.parent-step__icon .site-icon {
  width: 52px;
  height: 52px;
}

.parent-step__icon {
  display: grid;
  place-items: center;
  align-self: center;
  width: 104px;
  height: 104px;
  border-radius: var(--radius-card);
  background: var(--sel-bg);
}

/* Classes en abreges (2de, 1re, Tle) : le nom complet reste dans le titre */
.split--auth abbr[title] {
  text-decoration: none;
}

/* Objectif quotidien : quatre cases sur une ligne */
.split--auth .choice-group__options--grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-2);
}

.split--auth .choice-group__options--grid .choice__box {
  padding-inline: var(--sp-1);
}

/* Matieres (maquette auth/Inscription3) : tuiles sur deux colonnes, barre a la
   couleur de la matiere, coche a droite quand elle est choisie */
#signup-subjects .choice-group__options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

#signup-subjects .choice__box {
  justify-content: flex-start;
  gap: 6px;
  font-size: 0.875rem;
  height: 100%;
  min-height: 56px;
  box-sizing: border-box;
  padding: 10px var(--sp-2);
  text-align: left;
}

#signup-subjects .choice__box::after {
  content: "";
  order: -1;
  flex-shrink: 0;
  width: 8px;
  height: 26px;
  border-radius: var(--radius-pill);
  background: var(--subject-color, var(--violet));
}

#signup-subjects .choice__input:checked + .choice__box::before {
  order: 1;
  width: 20px;
  height: 20px;
  margin: 0 0 0 auto;
  color: var(--green-strong);
}

/* Panneau de l'inscription sur ordinateur : ce que le compte garde */
.split__perks {
  display: none;
}

/* Inscription express (lot V3) : « Etape 1 sur 2 », recapitulatif repris du defi. */
.step-header__count {
  flex-shrink: 0;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.875rem;
  white-space: nowrap;
}

.express-recap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: var(--sp-4);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
}

.express-recap__title {
  margin: 0;
  color: var(--green-strong);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.9375rem;
}

.express-recap__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-3) 14px;
  border-radius: var(--radius-md);
  background: var(--soft);
}

.express-recap__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  margin: 0;
}

.express-recap__label {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.875rem;
}

.express-recap__value {
  overflow-wrap: anywhere;
  font-weight: 800;
  font-size: 1.125rem;
}

.express-recap__edit {
  border: 0;
  background: none;
}

.express__question {
  margin: 0;
  font-size: 1.125rem;
}

.express__terms {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
}

.subject-groups {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.subject-groups[aria-busy="true"] {
  min-height: 120px;
}

.rules {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 2px solid var(--border);
  border-bottom-width: var(--relief);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.rules__title {
  font-family: var(--font-body);
  font-size: 1rem;
}

.rules .check-list svg {
  width: 16px;
  height: 16px;
}

.rules__link {
  color: var(--accent-text);
  font-weight: 800;
  font-size: 0.875rem;
}

/* Page parent */
.child-card {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4);
  border: 2px solid var(--border);
  border-bottom-width: var(--relief);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.child-card__text {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.child-card__title {
  font-size: 1.375rem;
}

.child-card__class {
  font-weight: 700;
  color: var(--muted);
}

.info-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-block__title {
  font-family: var(--font-body);
  font-size: 1rem;
}

@media (min-width: 960px) {
  .form-screen {
    justify-content: center;
    padding-block: 40px;
  }

  /* En-tete (logo, autre parcours), puis deux cartes : violette et formulaire */
  .split--auth {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto 1fr;
    align-items: start;
    gap: var(--sp-6) var(--space-8);
    box-sizing: border-box;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: var(--sp-5) 48px 48px;
  }

  .split--auth .split__main {
    display: contents;
  }

  .split--auth .split__main > .site-header {
    grid-row: 1;
    grid-column: 1 / -1;
    justify-content: space-between;
  }

  .split--auth .split__main .site-header .brand {
    display: inline-flex;
  }

  .split--auth .split__brand {
    grid-row: 2;
    grid-column: 1;
    justify-content: center;
    width: auto;
    min-height: 440px;
    box-sizing: border-box;
    padding: var(--space-14) 44px;
    border-bottom: var(--relief-lg) solid var(--violet-dark);
    border-radius: var(--radius-card);
  }

  .split--auth .split__brand > .brand {
    display: none;
  }

  .split--auth .split__headline {
    margin-top: 0;
    font-size: 3.5rem;
  }

  .split--auth .split__bubbles {
    margin-bottom: 0;
  }

  .split--auth .form-screen {
    grid-row: 2;
    grid-column: 2;
    justify-content: flex-start;
    max-width: none;
    margin: 0;
    padding: 40px 44px;
    border-radius: var(--radius-card);
    background: var(--surface);
  }

  .split--auth .form-screen .field__input,
  .split--auth .form-screen .choice__box,
  .split--auth .code-entry__boxes > span,
  .split--auth .code-resend {
    background: var(--bg);
  }

  /* Le titre est dans la carte violette ; il reste lu par les lecteurs d'ecran */
  .split--auth .auth-intro {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .form-screen--login .auth-top .back-button,
  .form-screen--login .auth-foot__signup {
    display: none;
  }

  .form-screen--login .auth-top .steps--dots {
    margin-inline: 0;
  }

  .split__perks {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: var(--space-6) 0 0;
    padding: 0;
    list-style: none;
    font-weight: 800;
    font-size: 1.0625rem;
  }

  .split__perks li {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
  }

  .form-screen__step {
    flex-grow: 0;
  }

  .form-screen__actions {
    margin-top: var(--sp-2);
  }

  .form-screen--login .form-screen__footer {
    margin-top: 0;
  }
}

/* --- Ecrans de compte de l'eleve (refonte v2, phase 4) ------------------- */
/*
 * Connexion et inscription de l'eleve (maquettes auth/Connexion*, Code*,
 * Inscription*, Parent*) : `.split--student`. L'espace profs garde la mise
 * en page commune `.split--auth` ci-dessus.
 */
.split--student {
  line-height: normal;
}

.split--student .split__main {
  padding: 14px 18px var(--sp-6);
}

.split--student .form-screen {
  gap: 22px;
  padding: 0;
}

.split--student .form-screen__step {
  gap: var(--sp-4);
}

/* Barre du haut : fermer ou revenir (44 px), progression, place gardee */
.split--student .auth-top {
  justify-content: space-between;
  margin: 0;
}

.split--student .auth-top::after {
  content: "";
  width: var(--touch-min);
}

.split--student .back-button {
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--muted);
}

.split--student .back-button svg {
  width: 20px;
  height: 20px;
}

.split--student .steps--dots {
  grid-auto-columns: 28px;
  margin: 0;
}

.split--student .form-screen__title {
  font-size: 2.5rem;
  line-height: 1;
}

.split--student .auth-intro {
  margin-top: var(--sp-1);
}

.split--student .auth-intro .form-screen__lead {
  font-family: var(--font-display);
  font-size: 1.125rem;
}

.split--student .field {
  gap: 6px;
}

.split--student .field__label {
  font-size: 0.875rem;
}

.split--student .form-screen--login .field__label {
  color: var(--field-label);
}

.split--student .field__input {
  box-sizing: border-box;
  height: 58px;
  min-height: 0;
  padding: 0 var(--sp-4);
  border-bottom-width: 2px;
  border-radius: var(--r-md);
  background: var(--surface);
  font-weight: 800;
  font-size: 1.125rem;
}

.split--student .field__hint {
  font-weight: 700;
  font-size: 0.8125rem;
}

/* Grand bouton or (RECEVOIR MON CODE, C'EST PARTI, CONTINUER) */
.split--student .auth-cta {
  min-height: 64px;
  border-radius: var(--r-lg);
  font-size: 1.25rem;
  letter-spacing: 0.03em;
}

.split--student .form-screen__actions {
  gap: var(--sp-4);
  margin-top: 0;
  padding-top: 0;
}

/* Connexion : adresse */
.split--student .auth-top__back,
.split--student .auth-header__back,
.split--student .auth-panel--code {
  display: none;
}

.split--student #login-email .field__input {
  height: 62px;
  padding-left: 50px;
}

.split--student #login-email .field__input:not(:placeholder-shown),
.split--student #login-email .field__input:focus-visible {
  border-color: var(--violet);
}

.split--student .field__icon {
  left: 16px;
  background: var(--accent-text);
}

.split--student #login-email {
  margin-top: 6px;
}

.split--student .form-screen--login .auth-cta {
  min-height: 72px;
  border-radius: 24px;
  font-size: 1.5rem;
}

.split--student .auth-reassure {
  font-weight: 800;
  font-size: 0.8125rem;
}

.split--student .auth-reassure svg {
  width: 14px;
  height: 14px;
  color: var(--success-mark);
}

.split--student .auth-foot {
  gap: 10px;
}

.split--student .auth-foot__signup {
  --button-edge-size: 0px;
  --button-hi: var(--relief-none);
  min-height: 58px;
  border: 2px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  color: var(--text);
}

.split--student .auth-foot__link {
  padding: 0;
  color: var(--muted);
  font-size: 0.875rem;
}

/* Cartes decoratives : serie a deux, defi recu */
.auth-bubbles {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.auth-bubble {
  display: flex;
  align-items: center;
  gap: 14px;
  box-sizing: border-box;
  height: 76px;
  padding: 0 var(--sp-4);
  border-radius: var(--r-lg);
}

.auth-bubble--streak > .site-icon {
  width: 36px;
  height: 36px;
}

.auth-bubble__play .site-icon {
  width: 18px;
  height: 18px;
}

.auth-bubble__lines {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.auth-bubble--streak {
  height: 80px;
  border: 2px solid var(--flame);
  background: var(--warm-bg);
  box-shadow: 0 5px 0 var(--flame-edge);
}

.auth-bubble__big {
  color: var(--flame-text);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.625rem;
  line-height: 1;
}

.auth-bubble__small {
  font-weight: 800;
  font-size: 0.8125rem;
}

.auth-bubble--streak .auth-bubble__small {
  color: var(--warm-text);
}

.auth-bubble--challenge {
  padding-right: var(--sp-3);
  background: var(--soft);
  box-shadow: 0 5px 0 var(--bubble-edge);
}

.auth-bubble--challenge .auth-bubble__small {
  color: var(--accent-text);
}

.auth-bubble__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  line-height: 1.1;
}

.auth-bubble__avatar {
  box-sizing: border-box;
  border: 3px solid var(--violet-light);
  font-size: 1.1875rem;
}

.auth-bubble__play {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--flame);
  box-shadow: 0 3px 0 var(--flame-edge);
}

/* Code recu : enveloppe et pastille, six cases, renvoi (auth/Code*) */
.auth-envelope {
  position: relative;
  display: grid;
  flex-shrink: 0;
  place-items: center;
  box-sizing: border-box;
  width: 132px;
  height: 132px;
  border: 0;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 0 6px var(--panel-bubble);
}

.auth-envelope__icon {
  width: 74px;
  height: 74px;
}

.auth-envelope__icon rect {
  fill: var(--flame);
}

.auth-envelope__icon path {
  fill: none;
  stroke: var(--flame-edge);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-envelope__badge {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 4px solid var(--bg);
  border-radius: 50%;
  background: var(--success-mark);
  color: var(--on-success-mark);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
}

.split--student .form-screen--login .code-step {
  flex-grow: 1;
  gap: 18px;
}

.split--student .code-step .code-step__icon {
  margin-top: var(--sp-3);
}

.split--student .code-step > h2 {
  margin-top: -6px;
}

.split--student .code-step__to {
  margin-top: -6px;
  font-size: 0.9375rem;
}

.split--student .code-step .field {
  margin-top: var(--sp-1);
}

.split--student .code-step__to .text-link {
  padding: 0;
  font-weight: 700;
}

.split--student .code-entry__boxes > span {
  box-sizing: border-box;
  height: 68px;
  border-radius: 16px;
  background: var(--surface);
  font-size: 2rem;
}

.split--student .code-entry__boxes > [data-state="filled"] {
  background: var(--soft);
}

.split--student .code-entry__boxes > [data-state="current"] {
  border: 3px solid var(--flame);
  outline: 0;
  box-shadow: 0 0 0 4px var(--on-flame);
}

.split--student .code-step .auth-cta {
  font-size: 1.625rem;
  letter-spacing: 0.04em;
}

.split--student .code-step .form-screen__actions {
  flex-grow: 1;
  gap: 18px;
}

.code-step__row {
  display: contents;
}

.split--student .code-resend {
  gap: 6px;
  height: 40px;
  padding: 0 14px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.9375rem;
}

.split--student .code-resend svg {
  width: 16px;
  height: 16px;
}

.split--student .code-step__spam {
  margin-top: auto;
  font-size: 0.8125rem;
}

/* Une fois le code envoye : le chevron ramene a l'adresse */
.split--student:has(#login-code:not([hidden])) .auth-top__close,
.split--student:has(#login-code:not([hidden])) .auth-bubbles {
  display: none;
}

.split--student:has(#login-code:not([hidden])) .auth-top__back {
  display: inline-flex;
}

@media (min-width: 960px) {
  /* Gabarit des maquettes : 1100 px de contenu, marges de 40 px */
  .split--student {
    grid-template-columns: minmax(0, 544fr) minmax(0, 524fr);
    grid-template-rows: auto auto;
    align-content: start;
    align-items: stretch;
    gap: var(--sp-7) var(--space-8);
    max-width: 1180px;
    padding: var(--sp-5) 40px 48px;
  }

  .split--student .split__main {
    padding: 0;
  }

  .split--student .auth-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-self: start;
  }

  .split--student .auth-header > * {
    grid-row: 1;
  }

  .split--student .auth-header .brand {
    grid-column: 1;
    justify-self: start;
    gap: 10px;
  }

  .split--student .auth-header .brand__flame {
    width: 46px;
    height: 46px;
  }

  .split--student .auth-switch,
  .split--student .auth-header__back {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    box-sizing: border-box;
    height: 46px;
    padding: 0 18px;
    border: 2px solid var(--border);
    border-radius: var(--r-sm);
    background: var(--surface);
    color: var(--text);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
  }

  /* 46 px plus la bordure, comme la maquette */
  .split--student .auth-switch {
    grid-column: 3;
    justify-self: end;
    height: 50px;
  }

  .split--student .auth-header__back {
    display: none;
    grid-column: 1;
    justify-self: start;
    padding: 0 var(--sp-4);
    border: 0;
    color: var(--muted);
  }

  .split--student .auth-header__back svg {
    width: 18px;
    height: 18px;
  }

  /* Panneau violet */
  .split--student .split__brand {
    gap: 22px;
    min-height: 0;
    padding: 44px;
    border: 0;
    border-radius: 36px;
    box-shadow: var(--relief-hi-soft), 0 10px 0 var(--violet-edge);
  }

  .split--student .auth-panel--email {
    display: flex;
    flex-direction: column;
    gap: 22px;
  }

  .split--student .split__headline {
    font-size: 4rem;
    line-height: 1;
  }

  .split--student .split__tagline {
    margin-top: -14px;
    color: var(--panel-sub);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 38px;
  }

  .split--student .split__brand .auth-bubbles {
    gap: 22px;
  }

  .split--student .split__brand .auth-bubble {
    gap: var(--sp-4);
    height: 92px;
    padding: 0 22px;
    border-radius: var(--r-xl);
  }

  .split--student .split__brand .auth-bubble--streak {
    height: 98px;
    border-width: 3px;
    box-shadow: 0 6px 0 var(--flame-edge);
  }

  .split--student .split__brand .auth-bubble--challenge {
    padding-right: var(--sp-4);
    background: var(--panel-bubble);
    box-shadow: 0 6px 0 var(--panel-bubble-edge);
    color: var(--on-accent);
  }

  .split--student .split__brand .auth-bubble--challenge .auth-bubble__small {
    color: var(--violet-light);
  }

  .split--student .split__brand .auth-bubble__big { font-size: 2rem; }
  .split--student .split__brand .auth-bubble__small { font-size: 0.9375rem; }
  .split--student .split__brand .auth-bubble__title { font-size: 1.375rem; }

  .split--student .split__brand .auth-bubble__avatar {
    width: 54px;
    height: 54px;
    font-size: 1.375rem;
  }

  .split--student .split__brand .auth-bubble--streak > .site-icon {
    width: 44px;
    height: 44px;
  }

  .split--student .split__brand .auth-bubble__play .site-icon {
    width: 22px;
    height: 22px;
  }

  .split--student .split__brand .auth-bubble__play {
    width: 48px;
    height: 48px;
    border-radius: var(--r-sm);
    box-shadow: 0 4px 0 var(--flame-edge);
  }

  .split--student .auth-bubbles--mobile {
    display: none;
  }

  /* Carte du formulaire */
  .split--student .form-screen {
    gap: var(--sp-5);
    justify-content: center;
    padding: 44px;
    border-radius: 36px;
  }

  .split--student .auth-top {
    display: block;
  }

  .split--student .auth-top::after,
  .split--student .auth-top .back-button {
    display: none;
  }

  .split--student .steps--dots {
    grid-auto-columns: 34px;
  }

  .split--student #login-email {
    gap: var(--sp-5);
    margin-top: 0;
  }

  .split--student .form-screen--login .field {
    gap: var(--sp-2);
  }

  .split--student .form-screen--login .field__label {
    font-size: 0.9375rem;
  }

  .split--student #login-email .field__input {
    height: 66px;
    padding-left: 54px;
    border-radius: 20px;
    font-size: 1.1875rem;
  }

  .split--student .field__icon {
    left: 18px;
    width: 24px;
    height: 24px;
  }

  .split--student .form-screen--login .auth-cta {
    --button-edge-size: 8px;
    min-height: 80px;
    border-radius: var(--r-xl);
    font-size: 1.6875rem;
  }

  .split--student .form-screen__actions {
    gap: var(--sp-5);
  }

  .split--student .auth-reassure {
    gap: var(--sp-2);
    font-size: 0.875rem;
  }

  .split--student .auth-reassure svg {
    width: 15px;
    height: 15px;
  }

  .split--student .auth-foot__link {
    font-size: 0.9375rem;
  }

  /* Code envoye : « Retour », la marque au centre, l'enveloppe a gauche */
  .split--student:has(#login-code:not([hidden])) .auth-switch,
  .split--student:has(#login-code:not([hidden])) .auth-header .brand__flame,
  .split--student:has(#login-code:not([hidden])) .auth-panel--email,
  .split--student .code-step__icon,
  .split--student .code-step__to {
    display: none;
  }

  .split--student:has(#login-code:not([hidden])) {
    grid-template-columns: minmax(0, 504fr) minmax(0, 564fr);
  }

  .split--student:has(#login-code:not([hidden])) .auth-header__back {
    display: inline-flex;
  }

  .split--student:has(#login-code:not([hidden])) .auth-top__back {
    display: none;
  }

  .split--student:has(#login-code:not([hidden])) .auth-header .brand {
    grid-column: 2;
  }

  .split--student:has(#login-code:not([hidden])) .auth-panel--code {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
  }

  .split--student .split__brand .auth-envelope__icon {
    width: 110px;
    height: 110px;
  }

  .split--student .split__brand .auth-envelope {
    width: 190px;
    height: 190px;
    background: var(--panel-bubble);
    box-shadow: 0 0 0 8px var(--panel-ring);
  }

  .split--student .split__brand .auth-envelope__badge {
    top: 8px;
    right: 8px;
    width: 48px;
    height: 48px;
    border: 5px solid var(--violet);
    font-size: 1.25rem;
  }

  .auth-panel__sent {
    margin: 0;
    color: var(--panel-sub);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.375rem;
  }

  .auth-panel__sent strong {
    color: var(--on-accent);
    font-weight: 700;
  }

  .auth-panel__change {
    padding: 0;
    border: 0;
    background: none;
    color: var(--on-accent);
    font: inherit;
    font-weight: 800;
    font-size: 0.9375rem;
    text-decoration: underline;
    cursor: pointer;
  }

  .split--student .form-screen--login .code-step {
    flex-grow: 0;
    gap: 22px;
    align-items: stretch;
    text-align: left;
  }

  .split--student .code-step > h2 {
    margin-top: 0;
    font-size: 3.25rem;
  }

  .split--student .code-entry__boxes {
    gap: 10px;
  }

  .split--student .code-step .field {
    margin-top: 0;
  }

  .split--student .code-entry__boxes > span {
    height: 84px;
    border-radius: 20px;
    background: var(--bg);
    font-size: 2.5rem;
  }

  .split--student .code-entry__boxes > [data-state="filled"] {
    background: var(--soft);
  }

  .split--student .code-entry__boxes > [data-state="current"] {
    box-shadow: 0 0 0 5px var(--on-flame);
  }

  .split--student .code-step .auth-cta {
    font-size: 1.75rem;
  }

  .split--student .code-step .form-screen__actions {
    gap: 22px;
  }

  .split--student .code-step__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
  }

  .split--student .code-resend {
    height: 42px;
    padding: 0 var(--sp-4);
    background: var(--bg);
    font-size: 1rem;
  }

  .split--student .code-step__spam {
    margin: 0;
    font-size: 0.875rem;
  }
}
/* Inscription (auth/Inscription*) : etapes nommees, bandeau du score */
.split--student:has(.form-screen--signup) .split__main {
  padding: 14px var(--sp-4) 30px;
}

.split--student .form-screen--signup,
.split--student .form-screen--signup .form-screen__step {
  gap: var(--sp-5);
}

.split--student .step-header {
  align-items: flex-start;
  gap: var(--sp-3);
}

.split--student .step-header .steps {
  gap: 6px;
  padding-top: 6px;
}

.split--student .step-header .steps__item:has(.steps__label) {
  gap: var(--sp-1);
}

.split--student .steps__label {
  font-size: 0.6875rem;
}

.split--student .form-screen--signup .form-screen__title {
  font-size: 2.125rem;
}

.score-banner {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) 14px;
  border: 2px solid var(--warm-border);
  border-radius: 20px;
  background: var(--warm-bg);
}

.score-banner[hidden] {
  display: none;
}

.score-banner .site-icon {
  width: 34px;
  height: 34px;
}

.score-banner__lines {
  display: flex;
  flex-direction: column;
  margin: 0;
}

.score-banner__title {
  color: var(--flame-text);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.0625rem;
}

.score-banner__sub {
  color: var(--warm-text);
  font-weight: 800;
  font-size: 0.8125rem;
}

/* Le bandeau accompagne l'age et le compte ; l'ecran express a deja son titre */
.split--student .form-screen:is(:has(#signup-profile:not([hidden])), :has(#signup-subjects:not([hidden])), :has(#signup-code:not([hidden])), :has(#signup-express:not([hidden])), :has(#signup-parent:not([hidden]))) > .score-banner {
  display: none;
}

.split--student .field-row {
  gap: var(--sp-2);
}

.split--student select.field__input {
  appearance: none;
  min-height: 0;
}

.split--student .notice {
  flex-wrap: nowrap;
  align-items: center;
  padding: var(--sp-3) 14px;
  border-radius: var(--r-md);
  font-weight: 800;
  font-size: 0.875rem;
  line-height: 1.35;
}

.split--student .notice > .site-icon {
  width: 26px;
  height: 26px;
}

.split--student .notice--info {
  border-color: var(--cyan-edge);
}

.split--student .field__input[data-valid] {
  border-color: var(--success);
}

/* Avatar, classe, objectif (auth/Inscription2) */
.split--student .choice-group > legend {
  margin-bottom: var(--sp-2);
  font-size: 0.875rem;
}

.signup-avatars .choice-group__options {
  justify-content: space-between;
}

.split--student .avatar-choice .avatar {
  box-sizing: border-box;
  width: 52px;
  height: 52px;
  border: 0;
}

.split--student .choice__input:checked + .avatar {
  outline: 3px solid var(--text);
  outline-offset: 3px;
}

.split--student .choice-group__options--row {
  gap: 6px;
}

.split--student :is(.choice-group__options--row, .choice-group__options--grid) .choice__box {
  box-sizing: border-box;
  min-height: 54px;
  border: 2px solid transparent;
  border-radius: 16px;
  font-family: var(--font-display);
  font-size: 1.0625rem;
}

.split--student .choice__input:checked + .choice__box {
  border-color: var(--sel-border);
}

.signup-class {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.signup-class__track-legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.split--student .signup-goal .choice-group__options--grid {
  gap: 6px;
}

.split--student .signup-goal .choice__box {
  min-height: 64px;
  padding: 0 var(--sp-1);
}

.split--student .signup-goal .choice__sub,
.split--student .signup-goal .choice__input:checked + .choice__box .choice__sub {
  color: var(--muted);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.6875rem;
}

/* Matieres (auth/Inscription3) */
.split--student #signup-subjects .form-screen__title {
  font-size: 1.875rem;
  line-height: 1.05;
}

.split--student #signup-subjects .form-screen__lead {
  margin-top: -10px;
  font-weight: 700;
  font-size: 0.875rem;
}

.split--student .subject-groups {
  gap: var(--sp-4);
}

.split--student #signup-subjects .choice-group__options {
  gap: var(--sp-2);
}

.split--student #signup-subjects .choice__box {
  gap: 10px;
  height: 56px;
  min-height: 0;
  padding: 0 var(--sp-3);
  border: 2px solid transparent;
  border-radius: 16px;
  font-family: var(--font-display);
  font-size: 0.9375rem;
}

.split--student #signup-subjects .choice__box::after {
  width: 12px;
  height: 28px;
  border-radius: 6px;
}

.split--student #signup-subjects .choice__input:checked + .choice__box::before {
  width: 20px;
  height: 20px;
  background: url("/icones/reussi.svg?v=b5a64f7782") center / contain no-repeat;
  mask: none;
}

/* Compte (auth/Inscription4) */
.split--student .rules {
  gap: var(--sp-3);
  padding: 14px;
  border: 0;
  border-radius: 24px;
}

.split--student .rules__title {
  line-height: normal;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
}

.split--student .rules .check-list {
  gap: var(--sp-3);
  font-weight: 800;
  font-size: 0.875rem;
}

.split--student .rules .check-list li {
  align-items: center;
  gap: var(--sp-2);
}

.split--student .rules .check-list .site-icon {
  margin: 0;
}

.split--student .rules__link {
  font-size: 0.8125rem;
}

.signup-terms {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.split--student .checkbox-row {
  gap: 10px;
  font-weight: 800;
  font-size: 0.9375rem;
}

.split--student .checkbox-row__input {
  appearance: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
}

.split--student .checkbox-row__input:checked {
  border: 0;
  background: var(--violet) url("/icones/reussi.svg?v=b5a64f7782") center / 18px no-repeat;
}

.split--student .checkbox-row__input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* Demande d'accord parental (auth/Parent*) */
.split--student .parent-step {
  gap: var(--sp-5);
}

.split--student .form-screen--signup:has(#signup-parent:not([hidden])) {
  padding-top: 10px;
}

.parent-step__intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.split--student .parent-step__icon {
  width: 104px;
  height: 104px;
  border-radius: var(--r-2xl);
  background: var(--sel-bg);
}

.split--student .parent-step__icon .site-icon {
  width: 56px;
  height: 56px;
}

.split--student .parent-step .form-screen__title {
  font-size: 2rem;
  line-height: 1;
}

.split--student .parent-step .form-screen__lead {
  margin: 0;
  font-weight: 700;
}

.split--student .parent-step__share {
  font-size: 1.125rem;
}

.split--student .link-box {
  flex-direction: row;
  align-items: center;
  gap: var(--sp-2);
  padding: 6px 6px 6px 14px;
  border-radius: var(--r-md);
  background: var(--soft);
}

.link-box__input {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-weight: 800;
  font-size: 0.875rem;
  text-overflow: ellipsis;
}

.link-box__input::placeholder {
  color: var(--muted);
}

.split--student .link-box .link-box__copy {
  align-self: center;
  min-height: 44px;
  padding: 0 var(--sp-4);
  border-radius: var(--r-md);
  font-size: 0.9375rem;
}

.split--student .link-box__copy .site-icon {
  width: 18px;
  height: 18px;
}

.split--student .divider-or {
  margin: 0;
  font-size: 0.8125rem;
}

.parent-step__email {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.split--student .parent-step__send,
.split--student .parent-step .auth-later {
  min-height: 54px;
  border-radius: var(--r-md);
  font-size: 1rem;
}

.split--student .parent-step .auth-later {
  box-sizing: border-box;
}

@media (min-width: 960px) {
  .split--student:has(.form-screen--signup) {
    grid-template-columns: minmax(0, 560fr) minmax(0, 592fr);
    gap: var(--sp-6);
    max-width: 1260px;
    padding: var(--sp-5) 40px 40px;
  }

  .split--student .auth-header:has(.auth-header__end) {
    display: flex;
    justify-content: space-between;
  }

  .auth-header__end {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
  }

  .split--student .auth-header__end .chip--profs,
  .split--student .auth-header__end .auth-switch {
    height: 46px;
  }

  .split--student .auth-header:has(.auth-header__end) .brand {
    gap: var(--sp-2);
  }

  .split--student .auth-header:has(.auth-header__end) .brand__flame {
    width: 36px;
    height: 36px;
  }

  .split--student:has(.form-screen--signup) .split__brand {
    gap: var(--sp-5);
    padding: 40px;
  }

  .split--student:has(.form-screen--signup) .auth-panel--email {
    gap: var(--sp-5);
  }

  .split--student:has(.form-screen--signup) .split__headline {
    font-size: 3.375rem;
  }

  .split--student .split__perks {
    gap: 10px;
    margin: 0;
    font-size: 1rem;
  }

  .split--student .split__perks li {
    gap: 10px;
  }

  .split--student .split__perks .site-icon {
    width: 26px;
    height: 26px;
  }

  .split--student .form-screen--signup {
    justify-content: flex-start;
    gap: 18px;
    padding: var(--sp-7);
  }

  .split--student .form-screen--signup .form-screen__step {
    gap: 18px;
  }

  /* Le titre de l'etape est dans le panneau violet ; il reste lu */
  .split--student .form-screen--signup .form-screen__step:not(.parent-step) > h2,
  .split--student .form-screen--signup > .score-banner {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .split--student .form-screen--signup .back-button {
    display: inline-flex;
  }

  .split--student .form-screen--signup .field__input {
    background: var(--bg);
  }

  .split--student .signup-avatars .choice-group__options {
    justify-content: flex-start;
    gap: 14px;
  }

  .split--student .avatar-choice .avatar {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
  }

  .signup-class {
    flex-direction: row;
    align-items: flex-end;
  }

  .signup-class > :first-child { flex: 3; }
  .signup-class > :last-child { flex: 2; }

  .split--student .form-screen--signup :is(.choice-group__options--row, .choice-group__options--grid) .choice__box {
    background: var(--soft);
  }

  .split--student .form-screen--signup .choice__input:checked + .choice__box {
    background: var(--sel-bg);
  }

  /* Objectif : un selecteur a segments, le choix en or */
  .split--student .signup-goal .choice-group__options--grid {
    gap: var(--sp-1);
    height: 50px;
    box-sizing: border-box;
    padding: var(--sp-1);
    border-radius: 16px;
    background: var(--soft);
  }

  .split--student .form-screen--signup .signup-goal .choice__box {
    min-height: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--muted);
    font-size: 1rem;
  }

  .split--student .form-screen--signup .signup-goal .choice__input:checked + .choice__box {
    background: var(--flame);
    box-shadow: 0 3px 0 var(--flame-edge);
    color: var(--on-flame);
  }

  .split--student .signup-goal .choice__sub {
    display: none;
  }

  .split--student .form-screen--signup .auth-cta {
    min-height: 66px;
    font-size: 1.3125rem;
  }

  /* Demande au parent : une colonne centree, sans panneau */
  .split--student:has(#signup-parent:not([hidden])) {
    grid-template-columns: minmax(0, 1fr);
  }

  .split--student:has(#signup-parent:not([hidden])) :is(.split__brand, .auth-header__end) {
    display: none;
  }

  .split--student .form-screen--signup:has(#signup-parent:not([hidden])) {
    grid-column: 1;
    width: 100%;
    max-width: 620px;
    margin: var(--sp-5) auto;
    padding: 0;
    background: none;
  }

  .split--student .form-screen--signup .parent-step,
  .split--student .parent-step__email {
    gap: var(--sp-4);
  }

  .split--student .parent-step .form-screen__title {
    font-size: 2.75rem;
  }

  .split--student .form-screen--signup .parent-step__share {
    min-height: 64px;
    font-size: 1.125rem;
  }
}
/* --- fin des ecrans de compte de l'eleve --- */

/* --- Ecrans de l'application : /reviser ------------------------------------ */
/*
 * Mobile : en-tete (matiere, compteurs), contenu, barre d'onglets fixee en
 * bas. Desktop : menu lateral a gauche, contenu centré dans le volet droit.
 */
.app {
  display: flex;
  min-height: 100vh;
}

/* Gabarit commun des pages generees : en-tete, contenu, pied de page */
.site-frame {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Pages generees (cours, bac de francais) : la marge laterale que donnait
   l'ancien conteneur `.page`, perdue avec le gabarit commun (phase 1). */
.site-frame > .course-page {
  box-sizing: border-box;
  padding-inline: var(--content-gutter);
}

/* Pages des cours : meme largeur que les sujets du bac */
[data-page^="cours-"] .site-frame > .course-page {
  max-width: var(--content-max-width);
}

.site-frame > .page {
  width: 100%;
  max-width: var(--content-max-width);
  margin-inline: auto;
  padding-inline: var(--content-gutter);
}

.app__main {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-width: 0;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  max-width: var(--content-max-width);
  margin-inline: auto;
  padding: var(--sp-3) var(--content-gutter);
  border-bottom: 2px solid var(--divider);
}

.app-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 18px;
  width: 100%;
  max-width: var(--content-max-width);
  container: content / inline-size;
  margin: 0 auto;
  /* La barre d'onglets, fixee, ne doit rien masquer */
  padding: 16px var(--content-gutter) calc(96px + env(safe-area-inset-bottom));
}

.chapter-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chapter-section__title {
  font-size: 1.5rem;
}

.chapter-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 960px) {
  /* La largeur en pourcentage du contenu se rapporte au volet droit. */

  .app-header {
    width: 100%;
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: var(--sp-6) var(--content-gutter) 0;
    border-bottom: 0;
  }

  .app-content {
    padding: var(--sp-5) var(--content-gutter) 48px;
  }

  .chapter-section__title {
    font-size: 2rem;
  }
}

/* --- Session de revision : /session ------------------------------------------ */
.quiz {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: var(--sp-4) var(--sp-5) var(--space-6);
}

.quiz__header {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

.quiz__quit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  color: var(--muted-2);
}

.quiz__quit svg {
  width: 26px;
  height: 26px;
}

.quiz__progress {
  display: flex;
  flex-grow: 1;
  align-items: center;
  gap: var(--sp-3);
}

.quiz__progress .progress {
  flex-grow: 1;
}

.quiz__counter {
  font-weight: 800;
  color: var(--muted-2);
}

/* Sans barre de progression, le bouton de theme reste a droite */
.quiz__header .icon-button {
  margin-left: auto;
}

.quiz__main {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding-top: var(--space-6);
}

.quiz__screen,
.quiz__form {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: var(--sp-5);
}

.quiz__screen--center {
  text-align: center;
}

.quiz__title {
  font-size: 1.75rem;
}

.quiz__title--accent {
  color: var(--sel-text);
  font-size: 2.125rem;
}

.quiz__lead {
  color: var(--muted);
}

.quiz__eyebrow {
  font-weight: 800;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.quiz__prompt {
  font-size: 1.75rem;
  line-height: 1.15;
}

/* Les actions restent en bas de l'ecran sur mobile, comme dans les maquettes */
.quiz__actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-top: auto;
}

.end-messages {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.end-messages li {
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-lg);
  background: var(--green-bg);
  color: var(--green-text);
  font-weight: 700;
}

.corrections {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.corrections__title {
  font-size: 1.375rem;
  text-align: left;
}

.corrections__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 960px) {
  .quiz {
    padding: var(--sp-6) 40px 40px;
  }

  .quiz__main {
    padding-top: 48px;
  }

  .quiz__prompt {
    font-size: 2.125rem;
  }

  .quiz__actions {
    margin-top: var(--sp-3);
  }
}

/* --- Pages de cours publiques : /cours/... ------------------------------------ */
/* Colonne de lecture : environ 70 caracteres par ligne */
.course-page {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: var(--space-6);
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding-block: var(--space-6) 40px;
}

/* Pages larges (bac de francais) : la largeur de l'en-tete, comme les
   sujets du bac ; les pages des cours y sont toutes (regle ci-dessus). */
.course-page--wide {
  max-width: var(--content-max-width);
}

.course-hero {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.course-hero__title {
  font-size: 2rem;
}

.course-hero__lead {
  color: var(--muted);
  font-size: 1.0625rem;
}

/* Page d'une matiere : grand carre a sa couleur, puis titre et chapitres */
.course-hero--subject {
  flex-direction: row;
  align-items: center;
  gap: var(--sp-4);
}

.course-hero__copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.course-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.course-section__title {
  font-size: 1.5rem;
}

.course-grid {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.course {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.course__header {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.course__eyebrow {
  font-weight: 800;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.course__title {
  font-size: 2rem;
}

.course__lead {
  color: var(--muted);
  font-size: 1.0625rem;
}

.course-exercises {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

@media (min-width: 960px) {
  .course-page {
    padding-block: 40px 64px;
  }

  .course-hero__title,
  .course__title {
    font-size: 2.75rem;
  }

  .course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* --- Defis : creation (fin de session), onglet Defis, amis ---------------------- */
.screen-title {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.challenge-summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border: 2px solid var(--border);
  border-bottom-width: var(--relief);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.challenge-summary__label {
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--muted-2);
}

.challenge-summary__title {
  font-weight: 800;
  font-size: 1.125rem;
}

.challenge-summary__text {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--muted);
}

.challenge-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.challenge-form__legend {
  margin-bottom: var(--sp-2);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1rem;
}

.challenge-form__note {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--muted);
}

.challenge-form__hint {
  margin: var(--sp-2) 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.challenge-form__note :is(svg, .site-icon) {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.share-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.share-panel__title {
  font-size: 1.25rem;
}

.share-panel__lead {
  font-weight: 600;
  color: var(--muted);
}

/* Lien cree : les choix faits disparaissent, restent l'apercu et le partage */
[data-challenge-create][data-state="shared"] .social-challenge-message {
  display: none;
}

.share-panel__buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.page-heading {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.page-heading__title {
  flex-grow: 1;
  font-size: 1.75rem;
}

.challenge-sections {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.challenge-sections__lead,
.challenge-section__empty,
.challenge-section__note {
  color: var(--muted);
  font-size: 0.9375rem;
}

.challenge-sections__friends {
  align-self: flex-start;
  padding-inline: 0;
}

.challenge-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.challenge-section__title {
  font-size: 1.25rem;
}

.challenge-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* --- Page publique d'un defi : /defi --------------------------------------------- */
/*
 * Page pleine largeur sur le fond des bandeaux (`--hero`), contenu centre ;
 * la partie se joue dans une carte.
 */
.challenge-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: var(--sp-4) var(--sp-5) var(--sp-6);
  background: var(--hero);
  color: var(--text);
}

.challenge-page__header {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.challenge-page__brand {
  margin-right: auto;
  color: var(--text);
}

.challenge-page__badge {
  background: var(--violet-dark);
  color: var(--on-accent);
}

.challenge-page__main {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding-top: var(--space-6);
}

.challenge-page__loading {
  text-align: center;
  font-weight: 700;
}

.challenge-screen {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: var(--sp-5);
}

.challenge-screen__icon {
  align-self: center;
}

.challenge-screen__title {
  font-size: 2rem;
  line-height: 1.1;
  text-align: center;
}

.challenge-screen__text {
  text-align: center;
  font-weight: 600;
}

.challenge-screen__actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-top: auto;
}

.challenge-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  text-align: center;
}

.challenge-hero__avatar {
  width: 96px;
  height: 96px;
  border: 4px solid var(--cyan);
  font-size: 2.75rem;
}

.challenge-hero__message {
  font-weight: 800;
  font-size: 1.125rem;
}

/* Carte posee sur le fond de la page de defi (`--hero`) */
.challenge-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: var(--sp-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  color: var(--text);
}

/* Ecran entier pose en carte (intro, question, envoi d'un defi) : pas de
   contour autour de l'ecran, seules les cartes interieures en ont un. */
.challenge-screen.challenge-card {
  border: 0;
}

/* Score a battre : la carte de l'adversaire (cyan) */
.challenge-card--rival {
  border: 2px solid var(--cyan);
  background: var(--cyan-bg);
  color: var(--cyan-text);
}

.challenge-card--rival .closed-card__score {
  color: var(--cyan-strong);
}

.challenge-card--rival :is(.closed-card__chapter, .closed-card__label) {
  color: var(--cyan-text);
}

.challenge-card--rival .closed-card__avatar {
  border: 3px solid var(--cyan);
}

.challenge-card--rival .challenge-facts__item {
  background: var(--bg);
  color: var(--text);
}

.challenge-card__title {
  font-weight: 800;
  font-size: 1.125rem;
  text-align: center;
}

.challenge-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-2);
  margin: 0;
  text-align: center;
}

.challenge-facts__item {
  display: flex;
  flex-direction: column-reverse;
  padding: 10px var(--sp-1);
  border-radius: var(--radius-md);
  background: var(--soft);
}

.challenge-facts__item dt {
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--muted);
}

.challenge-facts__item dd {
  margin: 0;
  font-weight: 800;
  font-size: 1.125rem;
}

.challenge-start__note {
  font-weight: 600;
  font-size: 0.875rem;
  text-align: center;
  color: var(--muted);
}

/* Fin de defi : « Montre-le a tout le monde » et la carte en story (lot V2) */
.share-show__title {
  font-size: 1.25rem;
}

.share-show__text {
  font-weight: 600;
  color: var(--muted);
}

/* Defaite : la revanche d'abord, les renforts ensuite, les corrections a la fin */
#challenge-result[data-outcome="lost"] > [data-role="show"] { order: 1; }
#challenge-result[data-outcome="lost"] > .corrections { order: 2; }

.share-story {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  align-items: center;
  gap: var(--sp-4);
}

.share-story__card {
  width: 108px;
  height: 192px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 0 var(--violet-dark);
  object-fit: cover;
}

/*
 * Liens texte poses sur le fond de la page de defi (`--hero`) : la couleur
 * des liens, lisible dans les deux themes.
 */
.challenge-screen__actions > .text-link,
.result-guest > .text-link {
  color: var(--accent-text);
}

.result-guest {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.keep-card__text {
  font-weight: 600;
  color: var(--muted);
}

.challenge-result__rematch {
  align-self: center;
}

/* Lien expire : l'auteur, le chapitre et son score, sur une ligne */
.closed-card {
  flex-direction: row;
  align-items: center;
  gap: 14px;
}

.closed-card__avatar {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  font-size: 1.5rem;
}

.closed-card__who {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-width: 0;
}

.closed-card__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
}

.closed-card__chapter {
  font-weight: 600;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.closed-card__result {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.closed-card__label {
  font-weight: 800;
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.closed-card__score {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--flame-text);
}

.closed-card__discover {
  align-self: center;
}

.challenge-result__xp {
  align-self: center;
}

@media (min-width: 960px) {
  .page-heading__title {
    font-size: 2.25rem;
  }

  .challenge-page {
    padding: var(--sp-6) 40px 48px;
  }

  .challenge-page__main {
    padding-top: 48px;
  }

  .challenge-screen__title {
    font-size: 2.75rem;
  }

  .challenge-screen__actions {
    margin-top: var(--sp-3);
  }
}

/* --- Series a deux : /reviser, /series, /serie ---------------------------------- */
.duo-home,
.duo-detail,
.duo-today {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.duo-detail {
  gap: 18px;
}

.duo-list,
.duo-invitations,
.duo-members {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.duo-invitations:empty,
.duo-list:empty {
  display: none;
}

.duo-home__all {
  align-self: flex-start;
  padding-inline: 0;
}

/* Flamme commune : avatars, flamme, nombre de jours, pseudos */
.duo-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: var(--sp-5) var(--sp-4);
  border: 2px solid var(--warm-border);
  border-bottom-width: 5px;
  border-radius: var(--radius-xl);
  background: var(--warm-bg);
  color: var(--warm-text);
  text-align: center;
}

.duo-hero .duo-avatars .avatar {
  border-color: var(--warm-bg);
}

.duo-hero__visual {
  display: flex;
  align-items: center;
  gap: 10px;
}

.duo-hero__flame {
  width: 56px;
  height: 56px;
}

.duo-hero__days {
  font-size: 2.25rem;
  line-height: 1.1;
  color: var(--warm-strong);
}

.duo-hero__names {
  font-weight: 800;
}

.duo-detail[data-status="suspended"] .duo-hero {
  border-color: var(--red-border);
  background: var(--red-bg);
  color: var(--text);
}

.duo-detail[data-status="suspended"] .duo-hero .duo-avatars .avatar {
  border-color: var(--red-bg);
}

.duo-detail[data-status="suspended"] .duo-hero__days {
  color: var(--red-strong);
}

.duo-today__note,
.duo-detail__hint {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--muted);
}

.duo-actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.duo-actions__leave {
  color: var(--muted);
}

.duo-invitation-page__count {
  font-weight: 800;
  text-align: center;
  color: var(--accent-text);
}

@media (min-width: 960px) {
  .duo-hero__days {
    font-size: 2.75rem;
  }

  .duo-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .duo-actions .button {
    flex: 1 1 200px;
  }

  .duo-actions .form-status,
  .duo-actions__leave {
    flex-basis: 100%;
  }
}

/* --- Classement de la semaine : /classement ------------------------------------ */
.league,
.league__panel,
.league__group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.league {
  gap: 18px;
}

.league__group {
  gap: var(--sp-2);
}

.league__note,
.league__footnote {
  font-size: 0.8125rem;
  text-align: center;
  color: var(--muted-2);
}

.league__note {
  font-weight: 700;
}

/* Titre de chaque classement : les onglets le disent sur mobile */
.league__title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Ordinateur (maquette classement/ClassementDesktop) : les trois classements
   cote a cote, sans onglets. */
@media (min-width: 960px) {
  .league {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: start;
    gap: var(--sp-6);
  }

  .league > .tabs {
    display: none;
  }

  /* Les onglets cachent les panneaux ; ici, tous restent visibles. */
  .league__panel[hidden] {
    display: flex !important;
  }

  .league__title {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    margin: 0;
    font-size: 1.5rem;
  }

  .league-banner {
    padding: var(--sp-4) var(--sp-5);
  }

  .league-banner__title {
    font-size: 1.25rem;
  }

  .league-banner__meta {
    font-size: 0.9375rem;
  }
}
