/* Ecolia : espace école, pages publiques et authentification.
   Complète ecolia.css (jetons, boutons, champs, badges). Mobile d'abord, grand écran à 960 px. */

/* ---------- Commun ---------- */
.visuellement-cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.aller-contenu { position: absolute; left: .75rem; top: -4rem; z-index: 100; padding: .6em 1em;
  background: var(--or-500); color: var(--vert-900); border-radius: var(--rayon-s); font-weight: 700; }
.aller-contenu:focus { top: .75rem; }
.icone { flex: none; }
.a-droite { text-align: right; }
.texte-danger { color: var(--danger); }
.lien-discret { color: var(--encre-3); font-size: .9rem; }
.lien-discret:hover { color: var(--encre); }
.badge { display: inline-flex; align-items: center; gap: .25em; white-space: nowrap; }
.badge-especes { background: #ece6d8; color: #5a4a2a; }
.badge-solde .icone { margin-left: -.15em; }
.tableau th { text-transform: none; letter-spacing: 0; }
.message { margin-bottom: 1rem; }
.message + .message { margin-top: -.5rem; }
.erreur-champ { color: var(--danger); font-size: .88rem; font-weight: 600; margin: .35em 0 0; }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--danger); }
.facultatif { color: var(--encre-3); font-weight: 400; font-size: .88em; }
.bouton { gap: .45em; text-decoration: none; }
.bouton .icone { margin-left: -.15em; }
.bouton-clair { background: rgb(255 255 255 / .1); color: #fff; border-color: rgb(255 255 255 / .35); }
.bouton-clair:hover { background: rgb(255 255 255 / .18); }
.bouton-icone { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border-radius: 50%; border: 1.5px solid var(--trait); background: #fff; color: var(--encre-2); cursor: pointer; }
.bouton-icone:hover { border-color: var(--encre-3); color: var(--encre); }
.bouton-whatsapp { background: #1f8a4c; color: #fff; }
.bouton-whatsapp:hover { background: #18713e; }
button.bouton[data-copie="ok"] { border-color: var(--succes); color: var(--succes); }

/* ---------- Structure de l'espace école ---------- */
.espace-ecole { background: var(--papier); }
.espace { min-height: 100vh; }
.barre { display: none; }
.entete-mobile { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: .6rem;
  padding: .7rem 1rem; background: var(--vert-900); color: #fff; }
.entete-mobile-marque { display: flex; align-items: center; gap: .55rem; color: #fff; text-decoration: none;
  font: 700 1.02rem/1.2 var(--police-titre); min-width: 0; }
.entete-mobile-marque span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contenu { padding: 1.25rem 1rem calc(6rem + env(safe-area-inset-bottom)); max-width: 1180px; margin: 0 auto; outline: none; }
.contenu > * + * { margin-top: 1.25rem; }
.contenu > .message + * { margin-top: 0; }

.onglets { position: fixed; inset: auto 0 0 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr);
  background: #fff; border-top: 1px solid var(--trait); padding: .3rem .25rem calc(.3rem + env(safe-area-inset-bottom));
  box-shadow: 0 -6px 20px -14px rgb(19 32 27 / .35); }
.onglets a { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .4rem 0 .3rem;
  min-height: 52px; color: var(--encre-3); text-decoration: none; font-size: .72rem; font-weight: 600; border-radius: var(--rayon-s); }
.onglets a .icone { transition: transform .2s; }
.onglets a[aria-current="page"] { color: var(--vert-800); }
.onglets a[aria-current="page"] .icone { color: var(--vert-800); background: var(--or-100); border-radius: 999px;
  padding: 3px 14px; width: 52px; height: 28px; box-sizing: border-box; }

@media (min-width: 960px) {
  .espace { display: grid; grid-template-columns: 264px 1fr; }
  .onglets, .entete-mobile { display: none; }
  .barre { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 1.25rem;
    padding: 1.4rem 1rem 1.1rem; background: var(--vert-900); color: #d6e7de; overflow-y: auto; }
  .barre-marque { display: flex; align-items: center; gap: .6rem; padding: 0 .6rem; color: #fff; text-decoration: none;
    font: 800 1.35rem/1 var(--police-titre); letter-spacing: -.02em; }
  .barre-ecole { margin: 0; padding: .85rem .9rem; border-radius: var(--rayon); background: rgb(255 255 255 / .06);
    color: #fff; font: 700 1rem/1.25 var(--police-titre); }
  .barre-ecole span { display: block; margin-top: .25rem; font: 500 .8rem var(--police); color: #9fc2b2; }
  .barre-liens { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
  .barre-liens a { display: flex; align-items: center; gap: .75rem; padding: .65rem .85rem; border-radius: var(--rayon-s);
    color: #cfe2d8; text-decoration: none; font-weight: 500; }
  .barre-liens a:hover { background: rgb(255 255 255 / .07); color: #fff; }
  .barre-liens a[aria-current="page"] { background: var(--or-500); color: var(--vert-900); font-weight: 700; }
  .barre-pied { margin-top: auto; padding: .9rem .6rem 0; border-top: 1px solid rgb(255 255 255 / .1); font-size: .85rem; }
  .barre-pied p { margin: 0 0 .6rem; display: grid; }
  .barre-pied strong { color: #fff; }
  .barre-pied span { color: #9fc2b2; overflow: hidden; text-overflow: ellipsis; }
  .barre-sortir { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem 0; background: none; border: 0;
    color: #cfe2d8; font: 600 .88rem var(--police); cursor: pointer; }
  .barre-sortir:hover { color: #fff; text-decoration: underline; }
  .contenu { padding: 2rem 2.5rem 3rem; }
}

/* ---------- En-têtes de page ---------- */
.entete-page { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .75rem 1rem; }
.entete-page h1 { margin: 0; font-size: clamp(1.6rem, 5vw, 2.2rem); }
.entete-page p { margin: .3rem 0 0; color: var(--encre-2); }
.entete-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.entete-chiffre { display: grid; text-align: right; }
.entete-chiffre span { font-size: .85rem; color: var(--encre-3); }
.entete-chiffre strong { font: 800 1.5rem/1.1 var(--police-titre); font-variant-numeric: tabular-nums; }
.lien-retour { display: inline-flex; align-items: center; gap: .3rem; color: var(--encre-3); text-decoration: none;
  font-weight: 600; font-size: .92rem; min-height: 32px; }
.lien-retour:hover { color: var(--encre); }
.lien-retour + .entete-page { margin-top: .35rem; }

/* ---------- Tableau de bord ---------- */
.demarrage { background: var(--or-100); border: 1px solid #f1dc9c; border-radius: var(--rayon-l); padding: 1.25rem; }
.demarrage h2 { font-size: 1.2rem; }
.demarrage ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; counter-reset: etape; }
.demarrage li { counter-increment: etape; }
.demarrage a { display: grid; grid-template-columns: 2.2rem 1fr; column-gap: .75rem; align-items: center;
  padding: .7rem .8rem; background: #fff; border-radius: var(--rayon); color: var(--encre); text-decoration: none; }
.demarrage a::before { content: counter(etape); grid-row: span 2; display: grid; place-items: center; width: 2.2rem; height: 2.2rem;
  border-radius: 50%; background: var(--vert-800); color: #fff; font: 700 1rem var(--police-titre); }
.demarrage .fait a::before { content: "✓"; background: var(--succes); }
.demarrage .fait strong { text-decoration: line-through; text-decoration-color: var(--encre-3); color: var(--encre-3); }
.demarrage a span { font-size: .85rem; color: var(--encre-3); }
@media (min-width: 720px) { .demarrage ol { grid-template-columns: repeat(3, 1fr); } }

.bilan { display: grid; gap: 1.25rem; padding: 1.4rem 1.25rem; border-radius: var(--rayon-l); background: var(--vert-800);
  color: #e3f0e9; background-image: radial-gradient(120% 90% at 100% 0, rgb(255 200 61 / .14), transparent 60%); }
.bilan-jauge { position: relative; max-width: 260px; width: 100%; margin: 0 auto; }
.bilan-jauge svg { display: block; width: 100%; height: auto; }
.jauge-fond, .jauge-plein { fill: none; stroke-width: 11; stroke-linecap: round; }
.bilan .jauge-fond { stroke: rgb(255 255 255 / .12); }
.jauge-plein { stroke: var(--or-500); animation: jauge-remplir 1.1s cubic-bezier(.3, .7, .2, 1) both; }
@keyframes jauge-remplir { from { stroke-dasharray: 0 100; } }
.bilan-jauge p { position: absolute; inset: auto 0 0; margin: 0; text-align: center; display: grid; }
.bilan-taux { font: 800 2.6rem/1 var(--police-titre); color: #fff; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.bilan-jauge p span:last-child { font-size: .85rem; color: #a8cbbb; }
.bilan-chiffres { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 0; }
.bilan-chiffres div { min-width: 0; }
.bilan-chiffres dt { font-size: .82rem; color: #a8cbbb; }
.bilan-chiffres dd { margin: .15rem 0 0; font: 700 clamp(1.05rem, 4.2vw, 1.4rem)/1.15 var(--police-titre); color: #fff;
  font-variant-numeric: tabular-nums; }
@media (min-width: 720px) {
  .bilan { grid-template-columns: 240px 1fr; align-items: center; padding: 1.6rem 2rem; }
  .bilan-chiffres { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}

.grille-tableau { display: grid; gap: 1rem; }
.panneau { background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 1.15rem 1.2rem; min-width: 0; }
.panneau h2 { font-size: 1.1rem; }
.panneau-tete { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; margin-bottom: .6rem; }
.panneau-tete h2 { margin: 0; }
.panneau-retard { border-left: 4px solid var(--danger); }
.gros-chiffre { margin: .2rem 0 .8rem; font: 800 2.6rem/1 var(--police-titre); letter-spacing: -.03em; color: var(--danger); }
.gros-chiffre span { font: 500 .95rem var(--police); color: var(--encre-2); letter-spacing: 0; }
@media (min-width: 720px) {
  .grille-tableau { grid-template-columns: repeat(6, 1fr); }
  .panneau-retard { grid-column: span 2; }
  .panneau-graphique { grid-column: span 4; }
  .panneau-repartition { grid-column: span 2; }
  .panneau-derniers { grid-column: span 4; }
}

.graphique { display: block; width: 100%; height: auto; overflow: visible; }
.graphique rect { fill: var(--vert-100); }
.graphique .courant rect { fill: var(--vert-700); }
.graphique-axe { stroke: var(--trait); stroke-width: 1; }
.graphique-valeur { font: 600 10px var(--police); fill: var(--encre-2); text-anchor: middle; }
.graphique .courant .graphique-valeur { fill: var(--vert-800); font-weight: 700; }
.graphique-mois { font: 500 10.5px var(--police); fill: var(--encre-3); text-anchor: middle; }

.repartition { display: flex; gap: 3px; height: 14px; border-radius: 999px; overflow: hidden; background: var(--trait); margin: .4rem 0 1rem; }
.repartition span { min-width: 6px; }
.rep-tmoney { background: var(--tmoney); }
.rep-flooz { background: var(--flooz); }
.rep-especes { background: #a08a5b; }
.legende { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.legende li { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: .6rem; font-size: .93rem; }
.legende strong { font-variant-numeric: tabular-nums; }
.legende .discret { min-width: 3em; text-align: right; }
.pastille { width: 12px; height: 12px; border-radius: 4px; }

.flux { list-style: none; margin: 0; padding: 0; }
.flux li { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .7rem 0;
  border-top: 1px solid var(--trait); }
.flux li:first-child { border-top: 0; }
.flux a, .flux li > span:first-child { display: grid; min-width: 0; color: var(--encre); text-decoration: none; }
.flux a:hover strong { text-decoration: underline; }
.flux strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flux-droite { display: grid; justify-items: end; gap: .2rem; flex: none; font-variant-numeric: tabular-nums; }
.flux-droite strong, .flux-droite .montant { font-weight: 700; }

/* ---------- États vides ---------- */
.vide { text-align: center; padding: 2.25rem 1.25rem; border: 1.5px dashed var(--trait); border-radius: var(--rayon-l); background: rgb(255 255 255 / .5); }
.vide h2 { font-size: 1.25rem; }
.vide p { max-width: 46ch; margin: 0 auto 1rem; color: var(--encre-2); }
.vide-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.vide-succes { border-style: solid; border-color: #bfe0cf; background: var(--vert-50); }
.vide-succes h2 { color: var(--vert-800); }
.panneau .vide { padding: 1.25rem 1rem; border: 0; background: none; }

/* ---------- Filtres et listes ---------- */
.filtres { display: grid; gap: .6rem; }
.filtres-recherche { position: relative; }
.filtres-recherche .icone { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--encre-3); pointer-events: none; }
.filtres-recherche input { padding-left: 2.6rem; }
.filtres-boutons { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.champ-mini { margin: 0; min-width: 0; }
.champ-mini label { font-size: .8rem; color: var(--encre-3); margin-bottom: .2em; }
.champ-mini select, .champ-mini input { min-height: 44px; padding: .5em .7em; }
.filtres-paiements { grid-template-columns: 1fr 1fr; align-items: end; }
.filtres-paiements .filtres-boutons { grid-column: 1 / -1; }
@media (min-width: 720px) {
  .filtres { grid-template-columns: 1fr auto; align-items: end; }
  .filtres-paiements { grid-template-columns: repeat(4, minmax(0, 1fr)) auto; }
  .filtres-paiements .filtres-boutons { grid-column: auto; flex-wrap: nowrap; }
}

.liste-eleves { list-style: none; margin: 0; padding: 0; background: var(--carte); border: 1px solid var(--trait);
  border-radius: var(--rayon); overflow: hidden; }
.liste-eleves li + li { border-top: 1px solid var(--trait); }
.eleve-ligne { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "nom badge" "solde solde";
  gap: .45rem .75rem; padding: .85rem 1rem; color: var(--encre); text-decoration: none; }
.eleve-ligne:hover { background: var(--vert-50); }
.eleve-nom { grid-area: nom; display: grid; min-width: 0; }
.eleve-nom strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eleve-nom .discret { font-size: .85rem; }
.eleve-solde { grid-area: solde; display: flex; align-items: center; gap: .75rem; }
.eleve-solde .jauge { flex: 1; }
.eleve-reste { font-size: .86rem; color: var(--encre-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.eleve-badge { grid-area: badge; align-self: start; }
@media (min-width: 720px) {
  .eleve-ligne { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 7.5rem; grid-template-areas: "nom solde badge"; align-items: center; }
  .eleve-badge { align-self: center; justify-self: end; }
}
.pied-liste { color: var(--encre-3); font-size: .9rem; text-align: center; }

.jauge { display: block; height: 8px; border-radius: 999px; background: #ece8de; overflow: hidden; min-width: 60px; }
.jauge > span { display: block; height: 100%; border-radius: inherit; background: var(--vert-600); }
.jauge-retard > span { background: var(--danger); }
.jauge-a_jour > span { background: var(--alerte); }
.jauge-solde > span { background: var(--succes); }

.carte-tableau { padding: 0; overflow: hidden; }
.carte-tableau .tableau { width: 100%; }
.tableau td { font-variant-numeric: tabular-nums; }
@media (max-width: 719px) {
  .tableau-paiements thead { display: none; }
  .tableau-paiements, .tableau-paiements tbody, .tableau-paiements tr, .tableau-paiements td { display: block; width: 100%; }
  .tableau-paiements tr { padding: .75rem 1rem; border-top: 1px solid var(--trait); }
  .tableau-paiements tr:first-child { border-top: 0; }
  .tableau-paiements td { display: flex; justify-content: space-between; gap: 1rem; padding: .2rem 0; border: 0; text-align: right; }
  .tableau-paiements td::before { content: attr(data-titre); color: var(--encre-3); font-size: .85rem; text-align: left; }
  .tableau-paiements td:first-child { font-weight: 700; }
}

/* ---------- Formulaires ---------- */
.formulaire { display: grid; gap: 1rem; max-width: 560px; }
.formulaire .champ { margin: 0; }
.formulaire-large { max-width: 760px; }
.formulaire-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; padding-top: .25rem; }
.champs-cote { display: grid; gap: 1rem; }
@media (min-width: 600px) { .champs-cote { grid-template-columns: 1fr 1fr; } }
fieldset { margin: 0; padding: 1rem 1.1rem 1.15rem; border: 1px solid var(--trait); border-radius: var(--rayon); display: grid; gap: 1rem; background: #fff; }
legend { padding: 0 .4rem; font: 700 1rem var(--police-titre); }

.ligne-ajout { display: grid; gap: .75rem; }
.ligne-ajout-champs { display: grid; gap: .75rem; }
.ligne-ajout .champ { margin: 0; }
@media (min-width: 720px) {
  .ligne-ajout-champs { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); align-items: end; }
}
.liste-classes, .liste-frais { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.liste-classes > li, .liste-frais > li { background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); padding: .85rem 1rem; }
.classe-tete { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.classe-tete h2, .classe-tete h3 { margin: 0; font-size: 1.08rem; }
.liste-frais > li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; align-items: center; }
.frais-droite { display: flex; align-items: center; gap: .6rem; font-variant-numeric: tabular-nums; }
details.replie { margin-top: .6rem; }
details.replie > summary { cursor: pointer; color: var(--vert-700); font-weight: 600; font-size: .92rem; min-height: 32px;
  display: inline-flex; align-items: center; list-style: none; }
details.replie > summary::-webkit-details-marker { display: none; }
details.replie > summary::before { content: "+"; margin-right: .4rem; font-weight: 700; }
details.replie[open] > summary::before { content: "−"; }
details.replie[open] > summary { margin-bottom: .6rem; }

/* Import */
.deux-colonnes { display: grid; gap: 1rem; }
@media (min-width: 900px) { .deux-colonnes { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.modele h2 { font-size: 1.1rem; }
.defile { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tableau-modele { font-size: .85rem; white-space: nowrap; }
.rapport { border-left: 4px solid var(--succes); }
.rapport-lignes { margin: .5rem 0 0; padding-left: 1.2rem; color: var(--encre-2); font-size: .92rem; max-height: 14rem; overflow-y: auto; }

/* ---------- Fiche élève ---------- */
.fiche { display: grid; gap: 1rem; }
.fiche-principale, .fiche-cote { display: grid; gap: 1rem; align-content: start; min-width: 0; }
@media (min-width: 960px) { .fiche { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } }
.solde-tete { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; }
.solde-tete h2 { margin: 0; font-size: 1.1rem; }
.solde-reste { margin: .6rem 0 .8rem; font: 800 clamp(2rem, 8vw, 2.6rem)/1 var(--police-titre); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.solde-reste span { display: block; margin-top: .35rem; font: 500 .9rem var(--police); color: var(--encre-3); letter-spacing: 0; }
.solde .jauge { height: 10px; }
.solde-chiffres { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: 1rem 0 0; }
.solde-chiffres dt { font-size: .8rem; color: var(--encre-3); }
.solde-chiffres dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.liste-tranches { list-style: none; margin: 1rem 0 0; padding: 0; border-top: 1px solid var(--trait); }
.liste-tranches li { display: flex; justify-content: space-between; gap: .75rem; padding: .6rem 0; border-bottom: 1px solid var(--trait); font-size: .93rem; }
.liste-tranches li:last-child { border-bottom: 0; }
.tranche-droite { display: flex; align-items: center; gap: .5rem; text-align: right; font-variant-numeric: tabular-nums; }

/* Le ticket : l'objet que l'école remet au parent. */
.ticket { position: relative; border-radius: var(--rayon); background: var(--vert-800); color: #fff; overflow: hidden;
  box-shadow: 0 14px 30px -18px rgb(7 42 32 / .7); }
.ticket-haut { padding: 1.1rem 1.2rem 1.2rem; }
.ticket-haut h2 { margin: 0 0 .5rem; font: 600 .9rem var(--police); color: #a8cbbb; letter-spacing: 0; }
.ticket-code { margin: 0; font: 800 2.1rem/1 var(--police-titre); letter-spacing: .08em; color: var(--or-500); word-break: break-all; }
.ticket-bas { position: relative; padding: 1.1rem 1.2rem 1.2rem; background: var(--vert-900);
  border-top: 2px dashed rgb(255 255 255 / .22); }
.ticket-bas::before, .ticket-bas::after { content: ""; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--papier); }
.ticket-bas::before { left: -11px; }
.ticket-bas::after { right: -11px; }
.ticket-bas p { margin: 0 0 .5rem; font-size: .86rem; color: #a8cbbb; }
.ticket-bas .ticket-lien { color: #fff; font-weight: 600; word-break: break-all; font-size: .92rem; margin-bottom: .85rem; }
.ticket .bouton { background: #fff; color: var(--vert-900); }
.ticket .bouton:hover { background: var(--or-100); }

.zone-danger { border: 1px solid #ecc7c2; border-radius: var(--rayon); padding: .8rem 1rem; background: #fff; }
.zone-danger > summary { cursor: pointer; color: var(--danger); font-weight: 600; min-height: 28px; }
.zone-danger[open] > summary { margin-bottom: .6rem; }
.zone-danger p { font-size: .9rem; color: var(--encre-2); }

/* ---------- Relances ---------- */
.intro-relances { color: var(--encre-2); max-width: 62ch; }
.liste-relances { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.relance { display: grid; grid-template-columns: 1fr auto; gap: .4rem .75rem; align-items: center; padding: .95rem 1rem; }
.relance-qui { display: grid; min-width: 0; }
.relance-qui a { color: var(--encre); font-weight: 700; text-decoration: none; }
.relance-qui a:hover { text-decoration: underline; }
.relance-qui span { font-size: .86rem; color: var(--encre-3); }
.relance-montant { font: 800 1.15rem var(--police-titre); color: var(--danger); text-align: right; font-variant-numeric: tabular-nums; }
.relance-action { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.relance-action form { margin: 0; }
.relance-date { font-size: .84rem; color: var(--encre-3); }
@media (min-width: 720px) {
  .relance { grid-template-columns: minmax(0, 1fr) auto auto; }
  .relance-action { grid-column: auto; flex-direction: row-reverse; justify-content: flex-start; }
}
.historique h2 { font-size: 1.1rem; }

/* ---------- Plus (mobile) ---------- */
.liste-plus { list-style: none; margin: 0; padding: 0; }
.liste-plus li + li { border-top: 1px solid var(--trait); }
.liste-plus a { display: flex; align-items: center; gap: .85rem; padding: 1rem .25rem; color: var(--encre); text-decoration: none; font-weight: 600; }
.liste-plus a .icone { color: var(--vert-700); }
.liste-plus.carte { padding: 0 1rem; }
.compte p { margin: 0 0 .75rem; }

/* ---------- Authentification ---------- */
.page-auth { background: var(--vert-900); background-image: radial-gradient(90% 60% at 50% 0, rgb(22 105 79 / .9), transparent 70%); min-height: 100vh; }
.auth { width: min(100% - 2rem, 440px); margin: 0 auto; padding: 2.5rem 0 3rem; }
.auth-large { width: min(100% - 2rem, 560px); }
.site-marque { display: inline-flex; align-items: center; gap: .55rem; color: inherit; text-decoration: none;
  font: 800 1.4rem/1 var(--police-titre); letter-spacing: -.02em; }
.auth-marque { color: #fff; margin-bottom: 1.5rem; }
.auth-carte { padding: 1.6rem 1.35rem; border-radius: var(--rayon-l); border: 0; }
.auth-carte h1 { font-size: 1.8rem; margin-bottom: .2rem; }
.auth-carte > .discret { margin: 0 0 1.25rem; }
.auth-carte .formulaire { max-width: none; }
.auth-bas { color: #cfe2d8; text-align: center; margin: 1.1rem 0 0; }
.auth-bas.discret { color: #9fc2b2; margin-top: .4rem; }
.auth-bas a { color: var(--or-500); font-weight: 600; }

/* ---------- Page d'accueil publique ---------- */
.page-publique { background: var(--papier); }
.site-entete { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem clamp(1rem, 4vw, 3rem);
  background: var(--vert-900); color: #fff; }
.site-nav { display: flex; align-items: center; gap: 1rem; }
.site-nav a { color: #fff; font-weight: 600; text-decoration: none; font-size: .95rem; }
.site-nav a:not(.bouton):hover { text-decoration: underline; }
.site-nav-parent { display: none; }
@media (min-width: 600px) { .site-nav-parent { display: inline; } }

.heros { display: grid; gap: 2.5rem; padding: 2.5rem clamp(1rem, 4vw, 3rem) 3.5rem; background: var(--vert-900); color: #e3f0e9;
  background-image: radial-gradient(70% 80% at 85% 30%, rgb(22 105 79 / .85), transparent 70%); overflow: hidden; }
.heros h1 { color: #fff; font-size: clamp(2rem, 7.5vw, 3.6rem); line-height: 1.02; letter-spacing: -.035em; max-width: 15ch; }
.heros-sous { font-size: 1.1rem; max-width: 52ch; color: #cfe2d8; margin: 0 0 1.6rem; }
.heros-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.heros-actions .bouton { min-height: 52px; padding-inline: 1.5em; }
.heros-note { margin: 1rem 0 0; font-size: .88rem; color: #9fc2b2; }
@media (min-width: 960px) {
  .heros { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; padding-block: 4rem 5rem; }
}

/* Scène : la relance, le code, le paiement reçu. Une seule séquence au chargement. */
.scene { position: relative; justify-self: center; width: min(100%, 330px); padding-bottom: 2.5rem; }
.telephone { border-radius: 38px; padding: 10px; background: #0f1a16; box-shadow: 0 30px 60px -25px rgb(0 0 0 / .65), inset 0 0 0 1.5px rgb(255 255 255 / .08);
  transform: rotate(-2.5deg); }
.telephone-ecran { border-radius: 29px; min-height: 430px; padding: 0 .75rem 1rem; display: flex; flex-direction: column; gap: .7rem;
  background: #e9e2d6; background-image: radial-gradient(rgb(0 0 0 / .045) 1px, transparent 1px); background-size: 14px 14px; color: var(--encre); overflow: hidden; }
.wa-tete { display: flex; align-items: center; gap: .55rem; margin: 0 -.75rem; padding: 1.4rem .9rem .7rem; background: #0b3d2e; color: #fff; }
.wa-tete strong { display: block; font-size: .86rem; line-height: 1.2; }
.wa-tete small { font-size: .72rem; color: #a8cbbb; }
.wa-avatar { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--or-500);
  color: var(--vert-900); font: 800 .8rem var(--police-titre); }
.wa-bulle, .wa-reponse { position: relative; max-width: 88%; padding: .55rem .7rem 1.1rem; border-radius: 4px 14px 14px 14px; background: #fff;
  font-size: .82rem; line-height: 1.4; box-shadow: 0 1px 1px rgb(0 0 0 / .08); }
.wa-bulle p, .wa-reponse p { margin: 0 0 .35rem; }
.wa-bulle u { color: #0b6bb3; text-decoration-color: rgb(11 107 179 / .4); }
.wa-reponse { align-self: flex-end; background: #d6f5c7; border-radius: 14px 4px 14px 14px; padding-bottom: 1.05rem; }
.wa-heure { position: absolute; right: .6rem; bottom: .3rem; font-size: .66rem; color: var(--encre-3); }
.mini-ticket { align-self: flex-start; display: grid; padding: .65rem .9rem; border-radius: 12px; background: var(--vert-800); color: #a8cbbb;
  font-size: .72rem; border-bottom: 2px dashed rgb(255 255 255 / .25); }
.mini-ticket strong { font: 800 1.35rem/1.1 var(--police-titre); letter-spacing: .08em; color: var(--or-500); }
.notif { position: absolute; left: -6%; right: -4%; bottom: 0; display: flex; align-items: center; gap: .7rem; padding: .8rem .95rem;
  border-radius: 18px; background: #fff; color: var(--encre); box-shadow: 0 18px 40px -14px rgb(0 0 0 / .5); }
.notif strong { display: block; font-size: .9rem; }
.notif small { color: var(--encre-3); font-size: .78rem; }
.notif-icone { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--succes); color: #fff; font-weight: 800; }

@media (prefers-reduced-motion: no-preference) {
  .scene-1, .scene-2, .scene-3 { animation: scene-entree .5s cubic-bezier(.2, .8, .2, 1) both; }
  .scene-1 { animation-delay: .35s; }
  .scene-2 { animation-delay: 1.25s; }
  .scene-3 { animation-delay: 2.1s; }
  .scene-4 { animation: scene-notif .6s cubic-bezier(.2, .9, .25, 1.15) 2.9s both; }
  @keyframes scene-entree { from { opacity: 0; transform: translateY(12px) scale(.97); } }
  @keyframes scene-notif { from { opacity: 0; transform: translateY(-24px) scale(.94); } }
}

.etapes, .apercu, .prix { padding: 3.5rem clamp(1rem, 4vw, 3rem); max-width: 1180px; margin: 0 auto; }
.etapes h2, .apercu h2, .prix h2 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); max-width: 22ch; }
.etapes-liste { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 1.75rem; counter-reset: etape; }
.etapes-liste li { counter-increment: etape; position: relative; padding-left: 3.4rem; }
.etapes-liste li::before { content: counter(etape); position: absolute; left: 0; top: -.1rem; display: grid; place-items: center;
  width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--or-500); color: var(--vert-900); font: 800 1.15rem var(--police-titre); }
.etapes-liste h3 { font-size: 1.2rem; margin-bottom: .35rem; }
.etapes-liste p { margin: 0; color: var(--encre-2); max-width: 44ch; }
@media (min-width: 860px) {
  .etapes-liste { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .etapes-liste li { padding: 3.4rem 0 0; }
}

.apercu { display: grid; gap: 2rem; }
.apercu-texte p { color: var(--encre-2); max-width: 52ch; font-size: 1.05rem; }
.apercu-ecran { display: grid; gap: .8rem; padding: 1rem; border-radius: var(--rayon-l); background: #fff; border: 1px solid var(--trait);
  box-shadow: 0 30px 60px -40px rgb(7 42 32 / .55); }
.apercu-bilan { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border-radius: var(--rayon); background: var(--vert-800); color: #a8cbbb; }
.apercu-bilan svg { width: 110px; flex: none; }
.apercu-bilan .jauge-fond { stroke: rgb(255 255 255 / .12); }
.apercu-bilan p { margin: 0; display: grid; font-size: .85rem; }
.apercu-bilan strong { font: 800 2.1rem/1 var(--police-titre); color: #fff; }
.apercu-chiffres { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin: 0; }
.apercu-chiffres div { padding: .8rem .9rem; border-radius: var(--rayon); background: var(--vert-50); }
.apercu-chiffres dt { font-size: .78rem; color: var(--encre-3); }
.apercu-chiffres dd { margin: .1rem 0 0; font: 700 1.15rem var(--police-titre); font-variant-numeric: tabular-nums; }
.apercu-retard { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; padding: .8rem .9rem; border-radius: var(--rayon);
  border-left: 4px solid var(--danger); background: #fbf1ef; }
.apercu-retard strong { font: 800 1.6rem/1 var(--police-titre); color: var(--danger); }
.apercu-retard span { font-size: .9rem; color: var(--encre-2); }
.apercu-bouton { margin-left: auto; padding: .4em .85em; border-radius: 999px; background: #1f8a4c; color: #fff !important; font-weight: 600; font-size: .8rem !important; }
.apercu-flux { list-style: none; margin: 0; padding: 0 .2rem; }
.apercu-flux li { display: grid; grid-template-columns: 1fr auto auto; gap: .6rem; align-items: center; padding: .55rem 0; border-top: 1px solid var(--trait); font-size: .9rem; }
.apercu-flux li:first-child { border-top: 0; }
.apercu-flux strong { font-variant-numeric: tabular-nums; }
@media (min-width: 960px) { .apercu { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 4rem; } }

.prix { display: grid; gap: 1.25rem; padding-bottom: 4.5rem; }
.prix-carte { padding: 1.75rem 1.4rem; border-radius: var(--rayon-l); background: var(--or-100); border: 1px solid #f1dc9c; }
.prix-montant { display: grid; margin: 1.25rem 0 1rem; }
.prix-montant strong { font: 800 clamp(2.8rem, 12vw, 4.2rem)/1 var(--police-titre); letter-spacing: -.04em; color: var(--vert-900); }
.prix-montant span { font-weight: 600; color: var(--encre-2); }
.prix-carte > p:not(.prix-montant) { color: var(--encre-2); max-width: 54ch; }
.prix-inclus { list-style: none; margin: 1.25rem 0 1.5rem; padding: 0; display: grid; gap: .45rem; }
.prix-inclus li { position: relative; padding-left: 1.7rem; font-weight: 600; }
.prix-inclus li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--succes); font-weight: 800; }
@media (min-width: 600px) { .prix-inclus { grid-template-columns: 1fr 1fr; } }
.parents { padding: 1.75rem 1.4rem; border-radius: var(--rayon-l); background: var(--vert-800); color: #cfe2d8; align-self: stretch; display: flex; flex-direction: column; align-items: flex-start; }
.parents h2 { color: #fff; font-size: 1.5rem; }
.parents p { margin: 0 0 1.4rem; }
.parents .bouton { margin-top: auto; }
@media (min-width: 960px) { .prix { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } .prix-carte { padding: 2.25rem 2.25rem; } }

.site-pied { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; padding: 1.75rem clamp(1rem, 4vw, 3rem);
  background: var(--vert-900); color: #9fc2b2; font-size: .9rem; }
.site-pied p { margin: 0; }
.site-pied strong { color: #fff; }
.site-pied a { color: #cfe2d8; margin-right: 1rem; }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}
