/* EduNova Mali – styles (légers, pensés pour téléphone et tablette) */
:root {
  /* Couleurs du logo EduNova */
  --marine: #0d3664;       /* bleu marine : texte du logo, boutons */
  --turquoise: #06b8ac;    /* turquoise : accents */
  --jaune: #f1be14;        /* jaune or : touches de mise en avant */
  --vert: var(--marine);   /* couleur principale des boutons et titres de menu */
  --vert-fonce: #082850;
  --vert-clair: #e3f6f4;   /* fond turquoise très clair (badges « validé ») */
  --lien: #08756e;         /* turquoise foncé lisible pour les liens */
  --or-clair: #fdf3d0;
  --rouge: #c0392b;
  --texte: #14213d;
  --gris: #5f6b7a;
  --bord: #dde4ec;
  --fond: #f6f8fb;
}
* { 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(--lien); }
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 { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1.3rem; text-decoration: none; color: var(--marine); letter-spacing: .01em; }
.logo img { width: 38px; height: auto; }
.logo .logo-texte span { color: var(--turquoise); }
#menu { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; }
#menu a { text-decoration: none; font-weight: 600; color: var(--marine); }
#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(--turquoise); 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(--lien); 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(--lien); }
.badge.en_verification, .badge.en_attente { background: var(--or-clair); color: #7a5c00; }
.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: #065f58; }
.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; }

/* Photos de profil */
.photo-profil { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid var(--turquoise); background: #eef2f6; }
.photo-profil.grande { width: 140px; height: 140px; }
.vide-photo { display: flex; align-items: center; justify-content: center; font-size: 3rem; }
ul { padding-left: 1.2rem; }

/* Résultats de recherche */
a.carte-prof { display: block; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
a.carte-prof:hover, a.carte-prof:focus-visible { border-color: var(--turquoise); box-shadow: 0 2px 12px rgba(13, 54, 100, .12); }
.nom-prof { font-size: 1.1rem; }
.carte-prof .badge { margin: .15rem .25rem .15rem 0; }

/* Bandeau : fine ligne aux couleurs du logo */
.entete { border-bottom: 3px solid var(--turquoise); }
