/* Couleurs de Bebe en conscience (affiche des LAEP, 28/09/2026), les memes que
   les classeurs Excel : bleu-vert canard, corail, moutarde, fond creme. */
:root {
  --canard: #2f6664; --canard-fonce: #234847; --canard-clair: #dcebea;
  --corail: #cf5f47; --corail-bouton: #b24b36; --corail-fonce: #93402d; --corail-clair: #f9e1da;
  --moutarde: #e8b04b; --moutarde-clair: #fbf0dc;
  --fond: #fbf7ef; --blanc: #fff; --zebre: #f6f1e6;
  --texte: #1f2b2a; --gris: #5e6664; --trait: #e3dccd;
  --jaune: #fdf6d8; --rouge: #b03a2e; --bleu: #1a4fb5;
  --sur-bouton: #fff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --canard: #2b5654; --canard-fonce: #8ccbc4; --canard-clair: #1f3533;
    --corail: #f29a84; --corail-bouton: #f29a84; --corail-fonce: #f7b7a6; --corail-clair: #432622;
    --moutarde: #e8b04b; --moutarde-clair: #3a3020;
    --fond: #141c1b; --blanc: #1c2726; --zebre: #182221;
    --texte: #e6eeec; --gris: #9aa7a5; --trait: #33423f;
    --jaune: #3a3522; --rouge: #ff8a7a; --bleu: #8fb4ff;
    --sur-bouton: #141c1b;
  }
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--texte); background: var(--fond);
       /* Police arrondie du Mac, proche de l'affiche ; ailleurs, celle du systeme. */
       font: 16px/1.5 ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--canard-fonce); }

/* Bandeau : canard, souligne des trois couleurs de l'affiche. */
.bandeau { background: var(--canard); color: #fff; padding: 12px 16px 14px; position: relative;
           display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
.bandeau::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
                  background: linear-gradient(to right, #cf5f47 0 33.3%, #e8b04b 33.3% 66.6%, #8ccbc4 66.6%); }
.marque { font-weight: 700; font-size: 1.15rem; display: flex; align-items: center; gap: 8px; }
.marque > span:last-child { font-weight: 400; opacity: .85; }
.points { display: inline-flex; gap: 3px; }
.points i { width: 9px; height: 9px; border-radius: 50%; display: block; }
.points i:nth-child(1) { background: #cf5f47; }
.points i:nth-child(2) { background: #e8b04b; }
.points i:nth-child(3) { background: #8ccbc4; }
nav { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; flex: 1; }
nav a { color: #fff; text-decoration: none; padding: 2px 0; border-bottom: 3px solid transparent; }
nav a:hover { border-bottom-color: rgba(255, 255, 255, .5); }
nav a[aria-current] { border-bottom-color: var(--moutarde); font-weight: 600; }
.deconnexion { margin-left: auto; display: flex; gap: 8px; align-items: center; font-size: .9rem; }
.bandeau button.lien { color: #fff; }
/* Lien vers le guide (nouvel onglet) : en pastille, pour qu'on le trouve. */
.deconnexion a.aide { color: #fff; font-weight: 600; text-decoration: none; border: 1px solid rgba(255, 255, 255, .7);
                      border-radius: 999px; padding: 1px 12px; margin-right: 8px; }
.deconnexion a.aide:hover { background: rgba(255, 255, 255, .15); }

main { max-width: 1320px; margin: 0 auto; padding: 16px; }
h1 { color: var(--canard-fonce); font-size: 1.7rem; margin: 12px 0 18px; }
h1::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 2px;
            background: var(--corail); margin-top: 6px; }
h2 { font-size: 1.15rem; margin: 0 0 12px; color: var(--canard-fonce); }
.carte { background: var(--blanc); border: 1px solid var(--trait); border-radius: 14px;
         padding: 16px 18px; margin-bottom: 16px; }
.connexion { max-width: 360px; display: grid; gap: 12px; }
.aide { color: var(--gris); max-width: 75ch; }
label { display: grid; gap: 4px; font-weight: 600; }
input, select { font: inherit; padding: 6px 8px; border: 1px solid var(--trait); border-radius: 8px;
                background: var(--blanc); color: var(--texte); min-width: 0; }
input:focus, select:focus, button:focus-visible, summary:focus-visible, a:focus-visible {
  outline: 2px solid var(--moutarde); outline-offset: 2px; }

/* Bouton principal corail (fonce, pour que le texte blanc se lise), secondaire canard. */
button { font: inherit; font-weight: 600; background: var(--corail-bouton); color: var(--sur-bouton); border: 0;
         border-radius: 999px; padding: 8px 18px; cursor: pointer; }
button:hover { background: var(--corail-fonce); }
button[disabled] { opacity: .5; cursor: not-allowed; }
button.secondaire { background: transparent; color: var(--canard-fonce); border: 1px solid var(--canard); }
button.secondaire:hover { background: var(--canard-clair); }
button.lien { background: none; color: inherit; padding: 0; text-decoration: underline; font-weight: 400;
              border-radius: 0; }
button.lien:hover { background: none; }
button.petit { padding: 4px 12px; font-size: .9rem; }
.boutons { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.empile { display: grid; gap: 12px; max-width: 560px; }
.coche { display: flex; gap: 8px; align-items: center; font-weight: 400; }
details.carte summary { cursor: pointer; }
details.carte[open] summary { margin-bottom: 8px; }
.tableau details summary { cursor: pointer; color: var(--corail-bouton); }
.tableau details[open] summary { margin-bottom: 6px; }
.enligne { display: flex; gap: 6px; flex-wrap: wrap; }
.tout-envoyer { align-items: center; gap: 12px; margin: 12px 0; }

.defile { overflow-x: auto; border-radius: 10px; }
.tableau { border-collapse: collapse; width: 100%; background: var(--blanc); }
.tableau th { background: var(--canard); color: #fff; text-align: left; padding: 7px 8px; font-weight: 600; }
.tableau td { border-bottom: 1px solid var(--trait); padding: 6px 8px; vertical-align: middle; }
.tableau tbody tr:nth-child(even) td { background: var(--zebre); }
.tableau tr.a-faire td { background: var(--moutarde-clair); }
.tableau tr.alerte td { background: var(--corail-clair); }
.tableau tr.annulee td { color: var(--gris); }
.tableau tr.annulee td:first-child { text-decoration: line-through; }
.centre { text-align: center; }
.tableau input[name=qui] { width: 100%; min-width: 14em; }
.tableau input[name=taux] { width: 4.5em; text-align: right; }
.nombre { text-align: right; white-space: nowrap; }
.discret { color: var(--gris); font-size: .9rem; }

.message { padding: 10px 14px; border-radius: 10px; border: 1px solid var(--trait);
           border-left: 5px solid var(--canard); background: var(--canard-clair); }
.message.prevenus { margin-bottom: 16px; }
.message.annonce { margin-bottom: 16px; font-weight: 600; white-space: pre-line; }
.message.prevenus h2 { margin: 0 0 2px; font-size: 1.1rem; }
.message.prevenus ul { margin: 6px 0 0; padding-left: 1.2em; }
.message.erreur, .message.alerte { background: var(--corail-clair); border-color: var(--corail);
                                   border-left-color: var(--rouge); }

/* Chiffres de l'accueil : une couleur de l'affiche chacun, comme les jours de la semaine. */
.chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 16px; }
.chiffre { background: var(--blanc); border: 1px solid var(--trait); border-top: 5px solid var(--canard);
           border-radius: 12px; padding: 12px 16px; }
.chiffre:nth-child(3n+1) { border-top-color: var(--corail); }
.chiffre:nth-child(3n+2) { border-top-color: var(--moutarde); }
.chiffre b { display: block; font-size: 1.6rem; color: var(--canard-fonce); }
.chiffre.alerte { background: var(--corail-clair); border-color: var(--corail); border-top-color: var(--rouge); }
.chiffre.alerte b { color: var(--rouge); }

.fichiers { list-style: none; padding: 0; margin: 0; columns: 2 280px; }
.fichiers li { padding: 3px 0; break-inside: avoid; }
.taille { color: var(--gris); font-size: .85rem; }
pre { background: var(--fond); border: 1px solid var(--trait); border-radius: 8px; padding: 8px;
      overflow-x: auto; font-size: .85rem; max-height: 24em; }
nav.mois { display: flex; gap: 16px; align-items: baseline; flex-wrap: wrap; margin-bottom: 8px; }
nav.mois a { color: var(--canard-fonce); border: 0; }
nav.mois b { font-size: 1.2rem; color: var(--corail-bouton); }
.tableau input.compte { width: 3em; text-align: right; }
.tableau select[name=qui] { max-width: 13em; }
.tableau input.euros { width: 6em; text-align: right; }
.tableau tfoot td { font-weight: 700; border-top: 2px solid var(--canard); background: var(--canard-clair); }
.rapport li { margin: 2px 0; }
@media (max-width: 600px) { .deconnexion { margin-left: 0; } h1 { font-size: 1.35rem; } }
/* Tableau des seances (Fin de mois) : douze colonnes, on resserre. */
.tableau.serre th, .tableau.serre td { padding: 5px 5px; }
.tableau.serre th { font-size: .9rem; line-height: 1.25; }
/* Creme et blanc en alternance, fixes : la couleur ne dit rien des valeurs. */
.tableau.serre tbody tr:nth-child(odd) td { background: var(--jaune); }
.tableau.serre tbody tr:nth-child(even) td { background: var(--blanc); }
.recu { color: var(--bleu); font-weight: 700; }
.erreur-texte { color: var(--rouge); font-weight: 700; }
.envois li { margin: 2px 0; }
