/* EduNova Mali – styles (légers, pensés pour téléphone et tablette) */
:root {
  --vert: #0f7b5f;
  --vert-fonce: #0b5e48;
  --vert-clair: #e6f4ef;
  --or: #e8a317;
  --rouge: #c0392b;
  --texte: #1d2b28;
  --gris: #6b7a77;
  --bord: #dfe6e4;
  --fond: #f7faf9;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--texte); background: var(--fond); line-height: 1.5; }
a { color: var(--vert); }
code { background: #eef2f1; padding: 0 .3em; border-radius: 4px; }

.entete { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; justify-content: space-between; padding: .9rem 1.25rem; background: #fff; border-bottom: 1px solid var(--bord); }
.logo { font-weight: 800; font-size: 1.3rem; text-decoration: none; color: var(--texte); }
.logo span { color: var(--vert); }
#menu { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; }
#menu a { text-decoration: none; font-weight: 600; }
#menu a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }

.conteneur { max-width: 960px; margin: 0 auto; padding: 1.5rem 1rem 4rem; }
.etroit { max-width: 460px; }
h1 { font-size: 1.6rem; margin: 0 0 .25rem; line-height: 1.25; }
h2 { font-size: 1.2rem; margin: 0 0 .75rem; }
.sous-titre { color: var(--gris); margin: 0 0 1.5rem; }

.carte { background: #fff; border: 1px solid var(--bord); border-radius: 12px; padding: 1.25rem; margin-bottom: 1rem; }
.grille { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grille .carte { margin-bottom: 0; }

label { display: block; font-weight: 600; margin: .9rem 0 .3rem; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], input[type=file], select, textarea {
  width: 100%; padding: .7rem .75rem; border: 1px solid var(--bord); border-radius: 8px; font: inherit; font-size: 16px; background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--vert); outline-offset: 1px; }
.case { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; margin: .5rem 0; }
.case input { width: 1.2rem; height: 1.2rem; margin-top: .15rem; flex: none; }
.aide { color: var(--gris); font-size: .9rem; margin: .25rem 0 0; }

.bouton { display: inline-block; background: var(--vert); color: #fff; border: 0; border-radius: 8px; padding: .7rem 1.15rem; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; text-align: center; }
.bouton:hover { background: var(--vert-fonce); }
.bouton:disabled { opacity: .6; cursor: wait; }
.bouton.secondaire { background: #fff; color: var(--vert); border: 1px solid var(--vert); }
.bouton.danger { background: var(--rouge); }
.bouton.petit { padding: .4rem .75rem; font-size: .9rem; }
.bouton.large { width: 100%; }
button.lien { background: none; border: 0; color: var(--vert); font: inherit; font-weight: 600; cursor: pointer; padding: 0; }

.badge { display: inline-block; padding: .15rem .6rem; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.badge.accepte, .badge.valide { background: var(--vert-clair); color: var(--vert); }
.badge.en_verification, .badge.en_attente { background: #fdf3dc; color: #8a6100; }
.badge.refuse, .badge.rejete { background: #fbe9e7; color: var(--rouge); }

.alerte { padding: .85rem 1rem; border-radius: 8px; margin-bottom: 1rem; }
.alerte.succes { background: var(--vert-clair); color: var(--vert-fonce); }
.alerte.erreur { background: #fbe9e7; color: var(--rouge); }
.alerte.info { background: #eef4fb; color: #22507a; }

.discret { color: var(--gris); font-size: .9rem; }
.ligne { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.element { padding: .85rem 0; border-bottom: 1px solid var(--bord); }
.element:last-child { border-bottom: 0; }
.vide { color: var(--gris); text-align: center; padding: 1rem; }
.onglets { display: flex; gap: .5rem; margin-bottom: 1rem; }
.onglets button { flex: 1; }
[hidden] { display: none !important; }

.accueil { text-align: center; padding: 3rem 1rem; }
.accueil h1 { font-size: 2rem; }
.accueil .actions { justify-content: center; margin-top: 1.5rem; }
