/* ============================================================
   Nozik Kids — styles
   Ambiance : papier crème, encre prune, accent mandarine.
   Pensé d'abord pour le téléphone, puis élargi pour l'ordinateur.
   ============================================================ */

:root {
  --fond: #FFF6EA;          /* crème */
  --surface: #FFFFFF;
  --encre: #2E1A36;         /* prune très foncé, pour le texte */
  --encre-douce: #6E5A72;
  --accent: #FF7A3D;        /* mandarine */
  --accent-fonce: #E5602A;
  --menthe: #3FB68B;        /* pour ce qui est prêt / choisi */
  --menthe-fonce: #2E9A73;
  --menthe-fond: #E3F6EE;
  --bord: #EADCCB;
  --bord-fonce: #DCC7AF;
  --erreur: #C7353B;
  --rayon: 18px;
  --ombre: 0 3px 0 var(--bord);
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: var(--fond);
  color: var(--encre);
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
}

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) 16px max(40px, env(safe-area-inset-bottom));
}

.ecran[hidden] { display: none; }
/* L'écran de lecture n'est jamais retiré de la page : il est seulement mis
   hors de l'écran, à sa taille normale. Retiré, le lecteur YouTube perdait
   ses dimensions et revenait avec une image trop petite. */
#ecran-lecture[hidden] {
  display: block;
  position: fixed;
  top: 0;
  left: -200vw;
  width: min(688px, calc(100vw - 32px));
  visibility: hidden;
  pointer-events: none;
}

.icone-svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* ---------- En-tête de l'accueil ---------- */
.entete-ligne {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.entete { margin: 8px 0 28px; }

.logo {
  font-family: "Fredoka", "Nunito", sans-serif;
  font-weight: 600;
  font-size: 2.4rem;
  line-height: 1;
  margin: 0;
  letter-spacing: -0.5px;
}
.logo span { color: var(--accent); }

.accroche {
  margin: 6px 0 0;
  color: var(--encre-douce);
  font-weight: 600;
}

/* ---------- Étiquettes ---------- */
.etiquette {
  display: block;
  font-weight: 800;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--encre-douce);
  margin: 0 0 8px;
  padding: 0;
}

/* ---------- Formulaire ---------- */
input[type="url"],
input.champ-code {
  box-sizing: border-box;
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  font: inherit;
  font-size: 16px;          /* 16px minimum : évite le zoom automatique sur iPhone */
  color: var(--encre);
  background: var(--surface);
  border: 2px solid var(--bord);
  border-radius: var(--rayon);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
input[type="url"]::placeholder,
input.champ-code::placeholder { color: #B5A6B6; }
input[type="url"]:hover,
input.champ-code:hover { border-color: var(--bord-fonce); }
input[type="url"]:focus,
input.champ-code:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 122, 61, .18);
}
input[type="url"][data-valide="oui"] { border-color: var(--menthe); }
input[type="url"][data-valide="oui"]:focus { box-shadow: 0 0 0 4px rgba(63, 182, 139, .2); }

.etat-lien {
  margin: 8px 0 0;
  min-height: 1.5em;
  font-size: .95rem;
  font-weight: 700;
  color: var(--encre-douce);
}
.etat-lien[data-etat="oui"] { color: var(--menthe-fonce); }
.etat-lien[data-etat="non"] { color: var(--erreur); }

.erreur {
  margin: 12px 0 0;
  color: var(--erreur);
  font-weight: 700;
}

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 0 20px;
  font: inherit;
  font-weight: 800;
  border: 2px solid transparent;
  border-radius: var(--rayon);
  cursor: pointer;
  transition: transform .12s, background-color .2s, box-shadow .12s, border-color .2s, opacity .2s, color .2s;
}
.bouton:focus-visible,
.bouton-rond:focus-visible,
.bouton-texte:focus-visible,
.bouton-lecture-geant:focus-visible {
  outline: 3px solid var(--encre);
  outline-offset: 3px;
}
.bouton:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--bord);
}
.bouton:disabled { cursor: not-allowed; }

.bouton-principal {
  width: 100%;
  margin-top: 6px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 3px 0 var(--accent-fonce);
  font-size: 1.1rem;
}
.bouton-principal:hover:not(:disabled) { background: var(--accent-fonce); }
.bouton-principal:active:not(:disabled) { box-shadow: 0 1px 0 var(--accent-fonce); }
/* grisé tant que le lien n'est pas un lien YouTube */
.bouton-principal:disabled {
  background: #EFE3D5;
  color: #A8979F;
  box-shadow: 0 3px 0 var(--bord);
}

.bouton-texte {
  padding: 8px 4px;
  font: inherit;
  font-weight: 800;
  font-size: .95rem;
  color: var(--accent-fonce);
  background: none;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: color .2s, opacity .2s;
}
.bouton-texte:hover { color: var(--encre); }
.bouton-texte:active { opacity: .6; }

.bouton-rond {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  flex-shrink: 0;
  color: var(--encre);
  background: var(--surface);
  border: 2px solid var(--bord);
  border-radius: 50%;
  box-shadow: var(--ombre);
  cursor: pointer;
  transition: transform .12s, background-color .2s, border-color .2s, color .2s, opacity .2s;
}
.bouton-rond:hover:not(:disabled) { border-color: var(--encre-douce); }
.bouton-rond:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 var(--bord); }
.bouton-rond:disabled { opacity: .45; cursor: not-allowed; }
.bouton-rond[aria-pressed="true"] {
  background: var(--encre);
  border-color: var(--encre);
  color: #fff;
}

.bouton-rond-principal {
  width: 56px;
  height: 56px;
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 3px 0 var(--accent-fonce);
}
.bouton-rond-principal:hover:not(:disabled) { background: var(--accent-fonce); border-color: var(--accent-fonce); }
.bouton-rond-principal .icone-svg { width: 26px; height: 26px; }

/* ---------- Écran de lecture : barre du haut ---------- */
.barre-lecture {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 4px 0 16px;
}
.barre-textes { min-width: 0; padding-top: 2px; }
.titre-video {
  margin: 0;
  font-family: "Fredoka", "Nunito", sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.statut {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 0;
  font-size: .92rem;
  font-weight: 800;
  color: var(--encre-douce);
}
.statut-point {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #B5A6B6;
  flex-shrink: 0;
}
.statut[data-etape="file"] .statut-point { animation: pulse 1.4s ease-in-out infinite; }
.statut[data-etape="traitement"] { color: var(--accent-fonce); }
.statut[data-etape="traitement"] .statut-point { background: var(--accent); animation: pulse 1.1s ease-in-out infinite; }
.statut[data-etape="pret"] { color: var(--menthe-fonce); }
.statut[data-etape="pret"] .statut-point { background: var(--menthe); }
.statut[data-etape="erreur"] { color: var(--erreur); }
.statut[data-etape="erreur"] .statut-point { background: var(--erreur); }

/* ---------- Vidéo ---------- */
.image-video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--rayon);
  overflow: hidden;
  background: #1C1020;
  box-shadow: 0 6px 0 var(--bord);
}
.image-video iframe,
.image-video #lecteur {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.affiche {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #1C1020;
}
.affiche[hidden] { display: none; }
/* Téléphone tourné (sans plein écran) : la vidéo tient dans la hauteur de
   l'écran. Pour le vrai plein écran, le bouton de YouTube. */
@media (orientation: landscape) and (pointer: coarse) and (max-height: 540px) {
  .cadre-video { max-width: calc((100dvh - 28px) * 16 / 9); margin-inline: auto; }
}

/* ---------- Carte par-dessus la vidéo ---------- */
.carte-fond {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 12px;
  background: rgba(28, 16, 32, .55);
}
.carte-fond[hidden] { display: none; }
.carte {
  width: min(300px, 100%);
  padding: 16px 18px;
  background: var(--fond);
  border-radius: var(--rayon);
  box-shadow: 0 4px 0 rgba(0, 0, 0, .25);
  text-align: center;
}
.carte-attente[hidden],
.carte-echec[hidden] { display: none; }
.carte-attente strong,
.carte-echec strong {
  display: block;
  font-family: "Fredoka", "Nunito", sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.2;
}
.carte-texte {
  display: block;
  min-height: 1.4em;
  margin-top: 2px;
  font-size: .95rem;
  font-weight: 700;
  color: var(--encre-douce);
}
.jauge {
  height: 8px;
  margin-top: 10px;
  background: var(--bord);
  border-radius: 99px;
  overflow: hidden;
}
.jauge-remplie {
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: 99px;
  transition: width .4s ease-out;
}

/* son impossible : le message et « Réessayer » */
.carte-echec strong { color: var(--erreur); }
.carte-echec .bouton { min-height: 46px; margin-top: 10px; padding: 0 12px; }
.carte-echec .bouton-secondaire { font-size: .95rem; white-space: nowrap; }
/* une carte d'échec un peu plus large : le bouton tient sur une ligne */
.carte:has(.carte-echec:not([hidden])) { width: min(336px, 100%); padding: 14px 16px; }
.carte-echec .bouton[hidden] { display: none; }
.carte-echec .carte-texte { font-size: .9rem; line-height: 1.35; }

.bouton-secondaire {
  width: 100%;
  background: var(--surface);
  color: var(--accent-fonce);
  border-color: var(--accent);
  box-shadow: 0 3px 0 var(--bord);
  font-size: 1rem;
}
.bouton-secondaire:hover:not(:disabled) { background: var(--fond); }
.bouton-secondaire:active:not(:disabled) { box-shadow: 0 1px 0 var(--bord); }

/* le moteur qui fait le son, pour l'administrateur seulement */
.badge-moteur {
  display: inline-block;
  margin: 4px 0 0;
  padding: 2px 10px;
  border-radius: 99px;
  font-size: .8rem;
  font-weight: 800;
  color: var(--menthe-fonce);
  background: var(--menthe-fond);
}
.badge-moteur[hidden] { display: none; }
.badge-moteur.bandit { color: #5B3FA8; background: #ECE6FA; }
.badge-moteur.secours { color: #fff; background: var(--erreur); }

/* la carte « Prêt » : juste un gros bouton Lecture, sans fond */
.carte-fond.carte-pret { background: rgba(28, 16, 32, .25); }
.carte-fond.carte-pret .carte {
  width: auto;
  padding: 0;
  background: none;
  box-shadow: none;
}
.bouton-lecture-geant {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 0 28px 0 22px;
  font: inherit;
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 99px;
  box-shadow: 0 4px 0 var(--accent-fonce);
  cursor: pointer;
  transition: transform .12s, background-color .2s, box-shadow .12s;
}
.bouton-lecture-geant[hidden] { display: none; }
.bouton-lecture-geant:hover { background: var(--accent-fonce); }
.bouton-lecture-geant:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--accent-fonce); }
.bouton-lecture-geant .icone-svg { width: 28px; height: 28px; }

/* curseur de volume aux couleurs de Nozik Kids */
.curseur {
  --rempli: 0%;
  flex: 1;
  min-width: 0;
  height: 32px;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.curseur:disabled { opacity: .45; cursor: not-allowed; }
.curseur::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 99px;
  background: linear-gradient(to right, var(--accent) var(--rempli), var(--bord) var(--rempli));
}
.curseur::-moz-range-track { height: 8px; border-radius: 99px; background: var(--bord); }
.curseur::-moz-range-progress { height: 8px; border-radius: 99px; background: var(--accent); }
.curseur::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  margin-top: -8px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--accent);
  box-shadow: 0 2px 0 rgba(0, 0, 0, .15);
  transition: transform .12s;
}
.curseur::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--accent);
}
.curseur:active::-webkit-slider-thumb { transform: scale(1.15); }
.curseur:focus-visible { outline: 3px solid var(--encre); outline-offset: 2px; border-radius: 99px; }

/* ---------- Commandes ---------- */
.commandes {
  display: grid;
  gap: 20px;
  margin-top: 22px;
}

.choix { border: 0; margin: 0; padding: 0; min-width: 0; transition: opacity .2s; }
.choix:disabled { opacity: .45; }

.segments {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 6px;
  background: var(--surface);
  border: 2px solid var(--bord);
  border-radius: var(--rayon);
}
.segments.deux { grid-template-columns: repeat(2, 1fr); }
.segments label { position: relative; }
.segments input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.segments span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 6px;
  border-radius: 12px;
  font-weight: 800;
  text-align: center;
  line-height: 1.15;
  cursor: pointer;
  transition: background-color .2s, color .2s, transform .12s;
  user-select: none;
}
.segments label:hover span { background: var(--fond); }
.segments input:checked + span {
  background: var(--menthe);
  color: #fff;
}
.musique .segments input:checked + span { background: var(--accent); }
.modele .segments input:checked + span { background: var(--encre); }
.info-reglage {
  margin: 8px 4px 0;
  font-size: .85rem;
  font-weight: 700;
  color: var(--encre-douce);
}
.info-reglage.erreur { color: var(--erreur); }
.segments input:focus-visible + span {
  outline: 3px solid var(--encre);
  outline-offset: 2px;
}
.segments label:active span { transform: scale(.96); }
.choix:disabled span { cursor: not-allowed; }

.volume {
  display: flex;
  align-items: center;
  gap: 14px;
}
.curseur[hidden] { display: none; }
.volume-telephone {
  font-size: .9rem;
  font-weight: 700;
  color: var(--encre-douce);
}
.volume-telephone[hidden] { display: none; }

.info {
  margin: 0;
  min-height: 1.5em;
  color: var(--encre-douce);
  font-weight: 600;
  font-size: 0.95rem;
}
.info:empty { display: none; }
.info.attention {
  padding: 12px 14px;
  background: #FFF0D6;
  border-radius: 12px;
  color: var(--encre);
}

/* ---------- Écran Réglages ---------- */
.reglage-bloc { margin-top: 26px; }
.reglage-bloc:first-of-type { margin-top: 8px; }

.reglages-actions {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.reglage-action {
  display: block;
  width: 100%;
  padding: 16px 18px;
  font: inherit;
  font-weight: 800;
  text-align: left;
  color: var(--encre);
  background: var(--surface);
  border: 2px solid var(--bord);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  cursor: pointer;
  transition: transform .12s, border-color .2s, box-shadow .12s;
}
.reglage-action:hover { border-color: var(--bord-fonce); }
.reglage-action:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--bord); }
.reglage-action:focus-visible { outline: 3px solid var(--encre); outline-offset: 3px; }
.reglage-action.danger { color: var(--erreur); }
a.reglage-action { text-decoration: none; box-sizing: border-box; }
#bouton-soutenir { color: var(--accent-fonce); }
.reglage-action:disabled { opacity: .5; cursor: progress; }

/* Mon compte */
.reglage-bloc.compte-bloc { margin-top: 34px; }
.compte-email {
  margin: 0;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.compte-actions { margin-top: 12px; }

.reglages-version {
  margin: 28px 0 0;
  text-align: center;
  font-size: .9rem;
  font-weight: 700;
  color: var(--encre-douce);
}

/* ---------- Bienvenue (3 écrans) ---------- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  text-align: center;
  padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
  background: var(--fond);
}
.intro[hidden] { display: none; }

/* Connexion : même décor que la bienvenue, par-dessus tout le reste */
.connexion { z-index: 300; justify-content: flex-start; }
html.verification main,
html.verification .intro:not(.connexion) { visibility: hidden; }

.connexion-contenu {
  width: 100%;
  max-width: 400px;
  margin: auto 0;
  padding: 12px 0;
}
.connexion .intro-tortue { width: 96px; height: 96px; }
.connexion-choix { margin: 22px 0 18px; }
.connexion-choix input:checked + span { background: var(--encre); }
.connexion-formulaire { text-align: left; display: grid; gap: 0; }
.connexion-formulaire .etiquette { margin-top: 14px; }
.connexion-formulaire .etiquette:first-child { margin-top: 0; }
.connexion-formulaire input[aria-invalid="true"] { border-color: var(--erreur); }
.connexion-formulaire .bouton-principal { margin-top: 18px; }
.connexion-formulaire .erreur { text-align: center; }
.connexion-formulaire .erreur[hidden],
.connexion-oubli[hidden] { display: none; }
.champ-mdp { position: relative; }
.champ-mdp input { padding-right: 96px; }
.voir-mdp {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  min-height: 40px;
  padding: 0 12px;
  font: inherit;
  font-size: .9rem;
  font-weight: 800;
  color: var(--accent-fonce);
  background: none;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color .2s;
}
.voir-mdp:hover { background: var(--fond); }
.voir-mdp:focus-visible { outline: 3px solid var(--encre); outline-offset: 1px; }
.aide {
  margin: 8px 0 0;
  font-size: .9rem;
  font-weight: 600;
  color: var(--encre-douce);
}
.aide a { color: var(--accent-fonce); font-weight: 800; }
.connexion-oubli { margin-top: 18px; }

.intro-passer {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  right: 16px;
}

.intro-etape[hidden] { display: none; }
.intro-etape,
.beta-contenu {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 420px;
  width: 100%;
}
.intro-tortue {
  width: 120px;
  height: 120px;
  margin-bottom: 20px;
  border-radius: 28px;
}
.intro-titre {
  font-family: "Fredoka", "Nunito", sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  margin: 0 0 12px;
  line-height: 1.28;
}
.intro-texte {
  margin: 0;
  color: var(--encre-douce);
  font-weight: 600;
  line-height: 1.5;
}

.intro-liste {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 20px;
  text-align: left;
}
.intro-liste li { display: flex; gap: 14px; align-items: flex-start; }
.intro-liste strong {
  display: block;
  font-family: "Fredoka", "Nunito", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
}
.intro-liste p {
  margin: 3px 0 0;
  color: var(--encre-douce);
  font-weight: 600;
  font-size: .95rem;
}

.intro-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: .95rem;
  display: grid;
  place-items: center;
}

.intro-installer { display: flex; flex-direction: column; align-items: center; }
.intro-installer[hidden] { display: none; }
.intro-pas {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin-top: 18px;
  text-align: left;
}
.intro-pas-image {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--surface);
  border: 2px solid var(--bord);
  box-shadow: var(--ombre);
  display: grid;
  place-items: center;
  color: var(--encre);
}
.intro-pas p { margin: 0; font-weight: 700; color: var(--encre); }

.intro-pret { display: flex; flex-direction: column; align-items: center; }
.intro-pret[hidden] { display: none; }

.intro-points {
  display: flex;
  gap: 8px;
  margin: 30px 0 20px;
}
.intro-point {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bord-fonce);
  transition: background-color .2s, width .2s;
}
.intro-point.actif { width: 22px; border-radius: 4px; background: var(--accent); }

.intro-continuer { max-width: 320px; width: 100%; }
/* « Plus tard » : quand « Installer Nozik Kids » est le bouton principal de l'écran */
.intro-continuer.discret,
.intro-continuer.discret:hover:not(:disabled) {
  background: transparent;
  color: var(--encre-douce);
  box-shadow: none;
  font-size: 1rem;
}
.intro-continuer.discret:hover:not(:disabled) { color: var(--encre); }

/* ---------- Bibliothèque : étagères de l'accueil ---------- */
.bibliotheque { margin-top: 8px; }
.etagere { margin-top: 30px; }
.etagere-entete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.etagere-titre {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 0;
  font-family: "Fredoka", "Nunito", sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.2;
}
.etagere-titre span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.etagere-titre .icone-svg { width: 22px; height: 22px; color: var(--accent); }
.etagere-actions { display: flex; gap: 6px; flex-shrink: 0; }
.etagere-bouton {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 12px;
  font: inherit;
  font-size: .9rem;
  font-weight: 800;
  color: var(--accent-fonce);
  background: var(--surface);
  border: 2px solid var(--bord);
  border-radius: 99px;
  cursor: pointer;
  transition: transform .12s, border-color .2s, background-color .2s;
}
.etagere-bouton .icone-svg { width: 18px; height: 18px; }
.etagere-bouton:hover { border-color: var(--accent); }
.etagere-bouton:active { transform: scale(.96); }
.etagere-bouton:focus-visible { outline: 3px solid var(--encre); outline-offset: 2px; }

.etagere-rang {
  display: flex;
  gap: 12px;
  margin: 0 -16px;
  padding: 2px 16px 8px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 16px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.etagere-rang::-webkit-scrollbar { display: none; }
.etagere-rang > li { flex: 0 0 auto; scroll-snap-align: start; }

.vignette {
  display: block;
  width: 168px;
  padding: 0;
  font: inherit;
  text-align: left;
  color: var(--encre);
  background: none;
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.vignette-image {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  background: var(--bord);
  box-shadow: 0 3px 0 var(--bord);
  transition: transform .15s, box-shadow .15s;
}
.vignette-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vignette:hover .vignette-image { transform: translateY(-2px); box-shadow: 0 5px 0 var(--bord-fonce); }
.vignette:active .vignette-image { transform: translateY(1px); box-shadow: 0 1px 0 var(--bord); }
.vignette:focus-visible { outline: none; }
.vignette:focus-visible .vignette-image { outline: 3px solid var(--encre); outline-offset: 3px; }
.vignette-duree {
  position: absolute;
  right: 6px;
  bottom: 8px;
  padding: 1px 6px;
  font-size: .78rem;
  font-weight: 800;
  color: #fff;
  background: rgba(28, 16, 32, .72);
  border-radius: 6px;
}
.vignette-progres {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: rgba(255, 255, 255, .55);
}
.vignette-progres i { display: block; height: 100%; background: var(--accent); }
.vignette-titre {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 8px;
  font-weight: 800;
  font-size: .95rem;
  line-height: 1.3;
}
.bibliotheque-vide {
  margin: 30px 0 0;
  padding: 18px;
  color: var(--encre-douce);
  font-weight: 700;
  text-align: center;
  background: var(--surface);
  border: 2px dashed var(--bord-fonce);
  border-radius: var(--rayon);
}
.nouvelle-playlist { margin-top: 26px; }
.nouvelle-playlist[hidden] { display: none; }

/* ---------- Bouton secondaire (contour) ---------- */
.bouton-secondaire .icone-svg { width: 22px; height: 22px; }
.bouton-secondaire:focus-visible { outline: 3px solid var(--encre); outline-offset: 3px; }
.bouton-secondaire:disabled { opacity: .5; }

/* ---------- Lecture : favori, playlist ---------- */
.actions-video {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.bouton-pilule {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px 0 12px;
  font: inherit;
  font-size: .95rem;
  font-weight: 800;
  color: var(--encre);
  background: var(--surface);
  border: 2px solid var(--bord);
  border-radius: 99px;
  box-shadow: var(--ombre);
  cursor: pointer;
  transition: transform .12s, border-color .2s, background-color .2s, color .2s, box-shadow .12s;
}
.bouton-pilule .icone-svg { width: 22px; height: 22px; }
.bouton-pilule:hover:not(:disabled) { border-color: var(--bord-fonce); }
.bouton-pilule:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 var(--bord); }
.bouton-pilule:focus-visible { outline: 3px solid var(--encre); outline-offset: 3px; }
.bouton-pilule:disabled { opacity: .5; cursor: not-allowed; }
.bouton-pilule[aria-pressed="true"] {
  color: var(--accent-fonce);
  background: #FFF1E8;
  border-color: var(--accent);
}
.info-playlist {
  margin: 2px 0 0;
  font-size: .85rem;
  font-weight: 800;
  color: var(--accent-fonce);
}
.info-playlist[hidden] { display: none; }

/* La carte « Suivante dans 5 s » (playlist) */
.carte-suivante {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 4px 12px;
  align-items: center;
  text-align: left;
}
.carte-suivante[hidden] { display: none; }
.suivante-image {
  grid-row: span 2;
  width: 96px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  background: var(--bord);
}
.carte-suivante .carte-texte { margin: 0; min-height: 0; }
.suivante-titre {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 800;
  font-size: .95rem;
  line-height: 1.25;
}
.suivante-boutons {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}
.suivante-boutons .bouton { width: 100%; min-height: 44px; margin: 0; padding: 0 10px; font-size: 1rem; }
.carte:has(.carte-suivante:not([hidden])) { width: min(336px, 100%); padding: 12px 14px; }

/* ---------- Écran d'une playlist ---------- */
.playlist-actions {
  display: flex;
  gap: 10px;
  margin: 18px 0 8px;
}
.playlist-actions .bouton { width: auto; margin: 0; flex: 1; }
.playlist-actions .bouton-principal { flex: 1.4; }
.playlist-liste {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.ligne-playlist {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  background: var(--surface);
  border: 2px solid var(--bord);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
}
.ligne-playlist .vignette-ouvrir {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  padding: 0;
  font: inherit;
  text-align: left;
  color: var(--encre);
  background: none;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}
.ligne-playlist .vignette-ouvrir:focus-visible { outline: 3px solid var(--encre); outline-offset: 2px; }
.ligne-playlist img {
  width: 80px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  background: var(--bord);
  flex-shrink: 0;
}
.ligne-playlist .vignette-titre { margin: 0; font-size: .9rem; -webkit-line-clamp: 3; }
.ligne-outils { display: flex; gap: 2px; flex-shrink: 0; }
.outil {
  display: grid;
  place-items: center;
  width: 34px;
  height: 40px;
  padding: 0;
  color: var(--encre-douce);
  background: var(--fond);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color .2s, color .2s, transform .12s;
}
.outil .icone-svg { width: 20px; height: 20px; }
.outil:hover:not(:disabled) { background: var(--bord); color: var(--encre); }
.outil:active:not(:disabled) { transform: scale(.92); }
.outil:focus-visible { outline: 3px solid var(--encre); outline-offset: 1px; }
.outil:disabled { opacity: .3; cursor: default; }
.outil.retirer:hover:not(:disabled) { color: var(--erreur); }
.vide-texte {
  margin: 16px 0 0;
  padding: 18px;
  color: var(--encre-douce);
  font-weight: 700;
  background: var(--surface);
  border: 2px dashed var(--bord-fonce);
  border-radius: var(--rayon);
}
.vide-texte[hidden] { display: none; }

/* ---------- Feuille du bas (ajouter à une playlist) ---------- */
.feuille-fond {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(28, 16, 32, .45);
}
.feuille-fond[hidden] { display: none; }
.feuille {
  width: min(560px, 100%);
  max-height: 85dvh;
  overflow-y: auto;
  padding: 22px 16px max(20px, env(safe-area-inset-bottom));
  background: var(--fond);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -4px 0 rgba(0, 0, 0, .12);
}
.feuille-titre {
  margin: 0 0 14px;
  font-family: "Fredoka", "Nunito", sans-serif;
  font-weight: 600;
  font-size: 1.3rem;
}
.feuille-liste {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 8px;
}
.feuille-liste:empty { display: none; }
.feuille-choix {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  padding: 8px 14px;
  font: inherit;
  font-weight: 800;
  text-align: left;
  color: var(--encre);
  background: var(--surface);
  border: 2px solid var(--bord);
  border-radius: var(--rayon);
  cursor: pointer;
  transition: border-color .2s, background-color .2s, transform .12s;
}
.feuille-choix span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feuille-choix small { color: var(--encre-douce); font-weight: 700; }
.feuille-choix .icone-svg { color: var(--menthe-fonce); }
.feuille-choix:hover { border-color: var(--bord-fonce); }
.feuille-choix:active { transform: translateY(1px); }
.feuille-choix:focus-visible { outline: 3px solid var(--encre); outline-offset: 2px; }
.feuille-choix[aria-pressed="true"] { border-color: var(--menthe); background: var(--menthe-fond); }
.feuille-ligne { display: flex; gap: 8px; }
.feuille-ligne input { flex: 1; min-width: 0; }
.feuille-ligne .bouton { width: auto; margin: 0; flex-shrink: 0; }
.feuille-nouvelle .erreur[hidden] { display: none; }
.feuille-fermer { margin-top: 16px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Plan gratuit (accueil) : les minutes qui restent ---------- */
.plan-gratuit {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px 12px;
  width: 100%;
  margin: 18px 0 0;
  padding: 12px 14px;
  font: inherit;
  text-align: left;
  color: var(--encre);
  background: var(--surface);
  border: 2px solid var(--bord);
  border-radius: var(--rayon);
  cursor: pointer;
  transition: border-color .2s, transform .12s;
}
.plan-gratuit[hidden] { display: none; }
.plan-gratuit:hover { border-color: var(--bord-fonce); }
.plan-gratuit:active { transform: translateY(1px); }
.plan-gratuit:focus-visible { outline: 3px solid var(--encre); outline-offset: 2px; }
.plan-gratuit-jauge {
  grid-column: 1 / -1;
  height: 8px;
  background: #F1E6D8;
  border-radius: 99px;
  overflow: hidden;
}
.plan-gratuit-jauge span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--menthe);
  border-radius: inherit;
  transition: width .4s ease;
}
.plan-gratuit.bas .plan-gratuit-jauge span { background: var(--accent); }
.plan-gratuit-texte { font-weight: 700; font-size: .95rem; }
.plan-gratuit-lien { font-weight: 800; font-size: .95rem; color: var(--accent-fonce); white-space: nowrap; }

/* ---------- Écran d'abonnement (« carte crème ») ---------- */
.abo-fond {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  justify-content: center;
  overflow-y: auto;
  background: var(--fond);
  -webkit-overflow-scrolling: touch;
}
.abo-fond[hidden] { display: none; }
.abo {
  position: relative;
  box-sizing: border-box;
  width: min(480px, 100%);
  padding: max(64px, calc(env(safe-area-inset-top) + 56px)) 16px max(28px, env(safe-area-inset-bottom));
}
.abo:focus { outline: none; }
.abo-fermer {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  right: 16px;
}
.abo-titre {
  margin: 0;
  font-family: "Fredoka", "Nunito", sans-serif;
  font-weight: 600;
  font-size: 1.75rem;
  line-height: 1.15;
  text-align: center;
  text-wrap: balance;
}
.abo-raison {
  margin: 10px 0 0;
  text-align: center;
  color: var(--encre-douce);
  font-weight: 700;
  text-wrap: balance;
}
.abo-raison[hidden], .abo-jauge-bloc[hidden] { display: none; }
.abo-jauge-bloc { margin: 22px 0 0; text-align: center; }
.abo-jauge {
  height: 12px;
  background: #F1E6D8;
  border-radius: 99px;
  overflow: hidden;
}
.abo-jauge-remplie {
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: inherit;
  transition: width .5s ease;
}
.abo-jauge-texte { margin: 10px 0 0; font-weight: 700; }
.abo-jauge-texte strong { font-size: 1.15rem; font-weight: 800; }
.abo-remise { margin: 4px 0 0; font-size: .95rem; color: var(--encre-douce); font-weight: 600; }

.abo-formules {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  border: 0;
}
.abo-formule {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 16px;
  background: var(--surface);
  border: 2px solid var(--bord);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  cursor: pointer;
  transition: border-color .2s, background-color .2s, transform .12s, box-shadow .2s;
}
.abo-formule:hover { border-color: var(--bord-fonce); }
.abo-formule:active { transform: translateY(1px); }
.abo-formule input { position: absolute; opacity: 0; pointer-events: none; }
.abo-formule:has(input:focus-visible) { outline: 3px solid var(--encre); outline-offset: 3px; }
.abo-formule:has(input:checked) {
  border-color: var(--accent);
  background: #FFF1E7;
  box-shadow: 0 3px 0 var(--accent-fonce);
}
.abo-annuelle { margin-top: 10px; }
.abo-ruban {
  position: absolute;
  top: -12px;
  left: 14px;
  padding: 3px 10px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--menthe-fonce);
  border-radius: 99px;
}
.abo-formule-ligne { display: flex; align-items: center; gap: 10px; }
.abo-rond {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 2px solid var(--bord-fonce);
  border-radius: 50%;
  transition: border-color .2s, box-shadow .2s;
}
.abo-formule:has(input:checked) .abo-rond {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 4px #FFF1E7, inset 0 0 0 12px var(--accent);
}
.abo-formule-nom { flex: 1; font-weight: 800; font-size: 1.1rem; }
.abo-prix { font-weight: 700; color: var(--encre-douce); white-space: nowrap; }
.abo-prix strong { font-size: 1.2rem; font-weight: 800; color: var(--encre); }
.abo-detail { padding-left: 32px; font-size: .92rem; font-weight: 700; color: var(--encre-douce); }
.abo-annuelle .abo-detail { color: var(--menthe-fonce); }

.abo-avantages {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  font-weight: 700;
}
.abo-avantages li { display: flex; align-items: center; gap: 10px; }
.abo-avantages .icone-svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  padding: 3px;
  color: #fff;
  background: var(--menthe);
  border-radius: 50%;
}
.abo-payer { width: 100%; margin-top: 26px; }
.abo-payer[aria-busy="true"] { opacity: .7; cursor: progress; }
.abo .erreur[hidden] { display: none; }
.abo-plus-tard {
  display: block;
  width: 100%;
  min-height: 48px;
  margin: 10px 0 0;
  font: inherit;
  font-weight: 800;
  color: var(--encre-douce);
  background: none;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  transition: color .2s, background-color .2s;
}
.abo-plus-tard:hover { color: var(--encre); background: rgba(46, 26, 54, .05); }
.abo-plus-tard:active { background: rgba(46, 26, 54, .09); }
.abo-plus-tard:focus-visible { outline: 3px solid var(--encre); outline-offset: 2px; }
.abo-note {
  margin: 14px 0 0;
  font-size: .85rem;
  line-height: 1.5;
  text-align: center;
  color: var(--encre-douce);
}

/* Réglages : Mon abonnement */
.reglage-bloc.abo-bloc { margin-top: 34px; }
.abo-bloc[hidden] { display: none; }
.abo-etat { margin: 0; font-weight: 800; font-size: 1.05rem; }
.abo-bouton { margin-top: 12px; }
.abo-bloc .erreur[hidden] { display: none; }

@keyframes pulse {
  50% { opacity: .35; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------- Écran plus large (tablette, ordinateur) ---------- */
@media (min-width: 640px) {
  .page { padding-top: 48px; }
  .logo { font-size: 3rem; }
  .bouton-principal { width: auto; min-width: 200px; }
  .titre-video { font-size: 1.4rem; }
  .commandes { grid-template-columns: 1fr 1fr; }
  .volume, .info { grid-column: 1 / -1; }
  .volume { max-width: 360px; }
  .vignette { width: 208px; }
  .feuille-fond { align-items: center; }
  .feuille { border-radius: 24px; padding-bottom: 22px; }
  .bouton-secondaire { width: auto; min-width: 200px; }
  .abo-payer { width: 100%; }
  .abo { margin: auto 0; padding-top: 72px; }
}


/* ---------- Signaler un problème ---------- */
.sig-formulaire, .sig-merci { display: flex; flex-direction: column; }
.sig-formulaire .abo-raison { margin-bottom: 26px; }
.sig-etiquette {
  display: block;
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--encre-douce);
}
.sig-pastilles { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.sig-pastille {
  font: inherit;
  font-weight: 800;
  font-size: 15px;
  color: var(--encre);
  background: var(--surface);
  border: 2px solid var(--bord);
  border-radius: 999px;
  padding: 9px 16px;
  box-shadow: 0 2px 0 var(--bord);
  cursor: pointer;
  transition: transform .12s, border-color .2s, background .2s, color .2s;
}
.sig-pastille:hover { border-color: var(--bord-fonce); }
.sig-pastille:active { transform: translateY(2px); box-shadow: 0 0 0 var(--bord); }
.sig-pastille:focus-visible { outline: 3px solid var(--encre); outline-offset: 2px; }
.sig-pastille[aria-checked="true"] {
  color: var(--accent-fonce);
  background: #FFE9DC;
  border-color: var(--accent);
  box-shadow: 0 2px 0 var(--accent);
}
.sig-message {
  display: block;
  width: 100%;
  min-height: 132px;
  resize: none;
  font: inherit;
  font-size: 17px;        /* 16 px au moins : Safari ne zoome pas sur le champ */
  color: var(--encre);
  background: var(--surface);
  border: 2px solid var(--bord);
  border-radius: var(--rayon);
  padding: 14px 16px;
  box-shadow: var(--ombre);
  transition: border-color .2s, box-shadow .2s;
}
.sig-message::placeholder { color: #A8949F; }
.sig-message:focus { outline: none; border-color: var(--accent); box-shadow: 0 3px 0 var(--accent); }
.sig-compteur { margin: 6px 0 0; text-align: right; font-size: 13px; font-weight: 700; color: var(--encre-douce); }
.sig-joint {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 0;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--menthe-fond);
  color: var(--menthe-fonce);
  font-size: 14px;
  font-weight: 700;
}
.sig-joint svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sig-joint b { color: var(--encre); }
.sig-erreur { margin: 14px 0 0; color: var(--erreur); font-weight: 700; text-align: center; }
.sig-erreur[hidden], .sig-merci[hidden], .sig-formulaire[hidden] { display: none; }
.sig-envoyer { width: 100%; margin-top: 20px; }
.sig-envoyer:disabled { background: var(--accent); color: #fff; opacity: .4; box-shadow: none; cursor: default; transform: none; }
.sig-merci { align-items: center; padding-top: 40px; text-align: center; }
.sig-merci .abo-titre:focus { outline: none; }
.sig-merci .sig-envoyer { max-width: 280px; margin-top: 28px; }
.sig-coche {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--menthe-fond);
  color: var(--menthe-fonce);
}
.sig-coche svg { width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }


/* ---------- Installer l'app : iPhone | Android ---------- */
.bascule {
  display: flex;
  gap: 6px;
  width: 100%;
  max-width: 320px;
  margin-bottom: 22px;
  padding: 5px;
  background: var(--surface);
  border: 2px solid var(--bord);
  border-radius: 999px;
  box-shadow: var(--ombre);
}
.bascule-choix {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 0;
  font: inherit;
  font-weight: 800;
  font-size: 18px;
  color: var(--encre-douce);
  background: none;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s, color .2s, transform .12s;
}
.bascule-choix .icone-svg { width: 20px; height: 20px; }
.bascule-choix:hover { color: var(--encre); }
.bascule-choix:active { transform: scale(.97); }
.bascule-choix:focus-visible { outline: 3px solid var(--encre); outline-offset: 2px; }
.bascule-choix[aria-checked="true"] {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 2px 0 var(--accent-fonce);
}
.installer-panneau { display: flex; flex-direction: column; align-items: center; width: 100%; }
.installer-panneau[hidden], .installer-bouton[hidden], .installer-note[hidden] { display: none; }
.installer-bouton { width: 100%; max-width: 320px; margin-top: 22px; text-align: center; text-decoration: none; }
.installer-note { margin-top: 14px; font-size: 14px; }

/* Réglages : détail des minutes de la semaine (plan gratuit) */
.abo-journal { margin: 10px 4px 0; }
.abo-journal[hidden] { display: none; }
.abo-journal summary {
  cursor: pointer;
  font-size: .85rem;
  font-weight: 800;
  color: var(--accent-fonce);
  border-radius: 8px;
  padding: 4px 0;
  transition: color .15s;
}
.abo-journal summary:hover { color: var(--accent); }
.abo-journal summary:focus-visible { outline: 3px solid var(--encre); outline-offset: 2px; }
.abo-journal ul { list-style: none; margin: 6px 0 0; padding: 0; }
.abo-journal li {
  display: grid;
  grid-template-columns: 4.2em 1fr auto;
  gap: 8px;
  align-items: baseline;
  padding: 7px 0;
  border-top: 1px solid var(--bord);
  font-size: .85rem;
  animation: journal-arrive .25s ease-out both;
}
.abo-journal-quand { color: var(--encre-douce); font-weight: 700; }
.abo-journal-quoi { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.abo-journal-min { font-weight: 800; font-variant-numeric: tabular-nums; }
.abo-journal-min.rendu { color: var(--menthe-fonce); }
@keyframes journal-arrive { from { opacity: 0; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .abo-journal li { animation: none; } }

/* Connexion : « Mot de passe oublié ? », « Retour », et le message après l'envoi du lien */
.connexion-lien { display: block; margin: 14px auto 0; }
.connexion-lien[hidden] { display: none; }
.connexion-info {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--menthe-fond);
  color: var(--menthe-fonce);
  font-weight: 700;
  font-size: .92rem;
  line-height: 1.4;
}
.connexion-info[hidden], .connexion-choix[hidden] { display: none; }
#connexion [hidden] { display: none !important; }
#connexion .connexion-choix[hidden] + .connexion-formulaire { margin-top: 18px; }
