/* Ecolia : jetons de design et éléments de base partagés.
   Chaque partie a son propre fichier : admin.css (espace école), portail.css (parents). */
:root {
  --vert-900: #072a20; --vert-800: #0b3d2e; --vert-700: #0f513d; --vert-600: #16694f;
  --vert-100: #dcefe6; --vert-50: #eef7f2;
  --or-500: #ffc83d; --or-400: #ffd76a; --or-100: #fff3d1;
  --encre: #13201b; --encre-2: #3c4a44; --encre-3: #6b7872;
  --papier: #f6f3ec; --carte: #ffffff; --trait: #e4dfd3;
  --tmoney: #ffcc00; --flooz: #0066b3;
  --succes: #1f8a5b; --alerte: #c77700; --danger: #c2392b;
  --rayon: 14px; --rayon-s: 10px; --rayon-l: 22px;
  --ombre: 0 1px 2px rgb(19 32 27 / .06), 0 8px 24px -12px rgb(19 32 27 / .18);
  --police-titre: "Bricolage Grotesque", system-ui, sans-serif;
  --police: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--police); font-size: 16px; line-height: 1.5; color: var(--encre);
  background: var(--papier); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--police-titre); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
h2 { font-size: 1.45rem; font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--vert-700); text-underline-offset: 3px; }
img, svg { max-width: 100%; }
.montant { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 700; }
.discret { color: var(--encre-3); font-size: .92em; }

/* Boutons */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px;
  padding: .7em 1.2em; border: 1.5px solid transparent; border-radius: 999px; font: 600 1rem/1 var(--police);
  text-decoration: none; cursor: pointer; transition: transform .12s, background .15s, box-shadow .15s; }
.bouton:active { transform: translateY(1px) scale(.99); }
.bouton-principal { background: var(--vert-800); color: #fff; }
.bouton-principal:hover { background: var(--vert-700); }
.bouton-or { background: var(--or-500); color: var(--vert-900); }
.bouton-or:hover { background: var(--or-400); }
.bouton-contour { background: transparent; border-color: var(--trait); color: var(--encre); }
.bouton-contour:hover { border-color: var(--encre-3); }
.bouton-danger { background: var(--danger); color: #fff; }
.bouton-plein { width: 100%; }
.bouton-petit { min-height: 36px; padding: .45em .9em; font-size: .9rem; }

/* Formulaires */
label { display: block; font-weight: 600; font-size: .92rem; margin: 0 0 .35em; }
input, select, textarea { width: 100%; min-height: 48px; padding: .7em .9em; font: 1rem var(--police); color: var(--encre);
  background: #fff; border: 1.5px solid var(--trait); border-radius: var(--rayon-s); transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--vert-600); box-shadow: 0 0 0 4px rgb(22 105 79 / .15); }
.champ { margin-bottom: 1rem; }
.aide { font-size: .85rem; color: var(--encre-3); margin-top: .3em; }
:focus-visible { outline: 3px solid var(--or-500); outline-offset: 2px; }

/* Cartes, tableaux, badges, messages */
.carte { background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 1.25rem; box-shadow: var(--ombre); }
.tableau { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tableau th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--encre-3);
  font-weight: 600; padding: .6em .75em; border-bottom: 1px solid var(--trait); }
.tableau td { padding: .75em; border-bottom: 1px solid var(--trait); vertical-align: middle; }
.tableau tr:last-child td { border-bottom: 0; }
.badge { display: inline-flex; align-items: center; gap: .35em; padding: .2em .65em; border-radius: 999px;
  font-size: .8rem; font-weight: 600; white-space: nowrap; }
.badge-succes { background: #dff3e8; color: #156b45; }
.badge-alerte { background: #fff0d6; color: #8a5300; }
.badge-danger { background: #fde4e1; color: #9c2a1f; }
.badge-neutre { background: #ecebe6; color: var(--encre-2); }
.badge-tmoney { background: var(--tmoney); color: #1a1a1a; }
.badge-flooz { background: var(--flooz); color: #fff; }
.message { padding: .85em 1em; border-radius: var(--rayon-s); margin-bottom: 1rem; font-weight: 500; }
.message-succes { background: #dff3e8; color: #135c3c; }
.message-erreur { background: #fde4e1; color: #8a2419; }
.message-info { background: var(--or-100); color: #6b4b00; }
.bandeau-simulation { background: repeating-linear-gradient(-45deg, var(--or-500) 0 14px, var(--or-400) 14px 28px);
  color: var(--vert-900); text-align: center; font-weight: 700; font-size: .85rem; padding: .4em 1em; }
