/* Site SKGEF — couleurs de l'école : vert, jaune, bleu. Pensé d'abord pour le téléphone. */
:root {
  --vert: #17803d;
  --vert-fonce: #0f5a2b;
  --vert-clair: #e7f4ec;
  --jaune: #f7c948;
  --bleu: #10508c;
  --rose: #e67a7a;
  --orange: #c2701f;
  --texte: #1c2420;
  --doux: #5b6660;
  --fond: #f6f7f4;
  --blanc: #fff;
  --bord: #dde3dd;
  --rayon: 14px;
  --ombre: 0 6px 22px rgba(15, 40, 25, 0.08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  color: var(--texte);
  background: var(--fond);
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--vert); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 0.6em; }
h1 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); color: var(--vert-fonce); }
.conteneur { width: min(1120px, 100% - 32px); margin-inline: auto; }
.etroit { width: min(760px, 100% - 32px); }
.bloc { padding: 48px 0; }
.centre { text-align: center; }
.doux { color: var(--doux); }
.petit { font-size: 0.85rem; }
.intro { font-size: 1.08rem; }

/* En-tête */
.entete { background: var(--blanc); border-bottom: 4px solid var(--jaune); position: sticky; top: 0; z-index: 10; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04); }
.entete-ligne { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; }
.marque { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--texte); min-width: 0; }
.marque img { border-radius: 50%; border: 2px solid var(--vert-clair); flex: none; }
.marque strong { display: block; font-size: 1.3rem; color: var(--vert-fonce); letter-spacing: 1px; }
.marque small { display: block; font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-weight: 700; font-size: 0.78rem; line-height: 1.3; }
.menu { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; justify-content: flex-end; }
.menu a { text-decoration: none; color: var(--texte); padding: 8px 10px; border-radius: 10px; font-weight: 600; font-size: 0.95rem; }
.menu a:hover, .menu a.actif { background: var(--vert-clair); color: var(--vert-fonce); }
.menu .bouton-parents { background: var(--vert); color: #fff; }
.menu .bouton-parents:hover, .menu .bouton-parents.actif { background: var(--vert-fonce); color: #fff; }
.langues { display: inline-flex; border: 1px solid var(--bord); border-radius: 10px; overflow: hidden; margin-left: 6px; }
.langues a { padding: 6px 9px; border-radius: 0; font-size: 0.82rem; }
.langues a.actif { background: var(--jaune); color: var(--texte); }
.burger { display: none; background: none; border: 1px solid var(--bord); border-radius: 10px; font-size: 1.4rem; padding: 4px 12px; cursor: pointer; }

/* Boutons */
.bouton { display: inline-block; padding: 12px 22px; border-radius: 12px; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; font-size: 1rem; font-family: inherit; }
.bouton.vert { background: var(--vert); color: #fff; }
.bouton.vert:hover { background: var(--vert-fonce); }
.bouton.jaune { background: var(--jaune); color: #1c2420; }
.bouton.clair { background: rgba(255, 255, 255, 0.15); color: #fff; border: 2px solid rgba(255, 255, 255, 0.8); }
.bouton.clair-vert { background: var(--blanc); color: var(--vert-fonce); border: 1px solid var(--vert); padding: 8px 14px; }
.bouton.petit { padding: 6px 10px; font-size: 0.85rem; background: var(--vert-clair); color: var(--vert-fonce); }
.bouton.danger { background: #fde8e6; color: #a1281c; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* Accueil */
.hero { background-size: cover; background-position: center; color: #fff; padding: clamp(70px, 14vw, 140px) 0; }
.hero h1 { max-width: 720px; }
.surtitre { text-transform: uppercase; letter-spacing: 2px; font-weight: 700; color: var(--jaune); margin: 0 0 10px; }
.hero-texte { font-size: 1.15rem; max-width: 640px; opacity: 0.95; }
.chiffres { background: var(--vert); color: #fff; }
.chiffres-ligne { display: flex; justify-content: space-around; padding: 22px 0; text-align: center; flex-wrap: wrap; gap: 16px; }
.chiffres strong { display: block; font-size: 2.2rem; line-height: 1; }
.chiffres span { opacity: 0.9; }
.grille-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grille-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.carte { background: var(--blanc); border-radius: var(--rayon); padding: 22px; box-shadow: var(--ombre); }
.niveau { border-top: 6px solid var(--vert); }
.jaune-bord { border-top-color: var(--jaune); }
.vert-bord { border-top-color: var(--vert); }
.bleu-bord { border-top-color: var(--bleu); }
.bande { background: var(--blanc); padding: 48px 0; }
.deux-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.deux-colonnes img { border-radius: var(--rayon); box-shadow: var(--ombre); }
.devise-grande { font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-size: 1.25rem; color: var(--vert-fonce); border-left: 4px solid var(--jaune); padding-left: 14px; }
.titre-ligne { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.galerie { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }
.galerie img { border-radius: var(--rayon); height: 240px; width: 100%; object-fit: cover; }
.carte-article { background: var(--blanc); border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); display: flex; flex-direction: column; }
.carte-article img { height: 180px; width: 100%; object-fit: cover; }
.carte-article > div { padding: 18px; }
.carte-article h3 a { color: var(--texte); text-decoration: none; }
.date { color: var(--doux); font-size: 0.85rem; margin: 0 0 4px; }
.bandeau { background-size: cover; background-position: center; color: #fff; padding: 56px 0; }
.bandeau h1 { margin: 0; }
.liste { padding-left: 1.2em; }
.liste li { margin: 6px 0; }
.image-article { border-radius: var(--rayon); margin: 16px 0 24px; }
.texte-article { font-size: 1.08rem; }

/* Formulaires */
.formulaire fieldset { border: 1px solid var(--bord); border-radius: var(--rayon); padding: 18px; margin: 0 0 18px; background: var(--blanc); }
.formulaire legend { font-weight: 700; color: var(--vert-fonce); padding: 0 6px; }
.champ { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; font-weight: 600; font-size: 0.92rem; }
.champ input, .champ select, .champ textarea { font: inherit; font-weight: 400; padding: 11px 12px; border: 1px solid #c9d2cb; border-radius: 10px; background: #fff; width: 100%; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: 3px solid rgba(23, 128, 61, 0.25); border-color: var(--vert); }
.champ.erreur input, .champ.erreur select { border-color: #c0392b; }
.champ small { color: #c0392b; font-weight: 600; }
.case { display: flex; gap: 8px; align-items: center; margin: 8px 0 16px; }
.piege { position: absolute; left: -9999px; }
.connexion { max-width: 460px; margin: 0 auto; }
.message-erreur { background: #fde8e6; color: #a1281c; padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.reference { font-size: 1.6rem; font-weight: 800; letter-spacing: 2px; color: var(--vert-fonce); background: var(--vert-clair); display: inline-block; padding: 8px 18px; border-radius: 10px; }

/* Espace parents et administration */
.tuiles { margin: 20px 0 28px; }
.tuile { background: var(--blanc); border-radius: var(--rayon); padding: 18px; box-shadow: var(--ombre); border-left: 6px solid var(--bleu); }
.tuile span { display: block; color: var(--doux); font-size: 0.9rem; }
.tuile strong { font-size: 1.6rem; }
.tuile.vert { border-left-color: var(--vert); }
.tuile.orange { border-left-color: var(--orange); }
.tableau-defilant { overflow-x: auto; background: var(--blanc); border-radius: var(--rayon); box-shadow: var(--ombre); margin-bottom: 28px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--bord); vertical-align: top; }
th { background: var(--vert-clair); color: var(--vert-fonce); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; }
.droite { text-align: right; }
.pastille { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.82rem; font-weight: 700; }
.pastille.vert { background: var(--vert-clair); color: var(--vert-fonce); }
.pastille.orange { background: #fdf0e1; color: #8a4a0f; }
.annonce { margin-bottom: 14px; border-left: 5px solid var(--jaune); }
.admin-menu { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.admin-menu a { font-weight: 600; }
.actions-ligne { display: flex; gap: 6px; }

/* Pied de page */
.pied { background: #0f2a1a; color: #d9e6dd; padding: 44px 0 18px; margin-top: 30px; border-top: 6px solid var(--jaune); }
.pied a { color: #fff; }
.pied h3 { color: var(--jaune); }
.pied p { margin: 4px 0; }
.pied-grille { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 28px; }
.pied img { border-radius: 50%; margin-bottom: 10px; }
.pied .devise { font-family: Georgia, serif; font-style: italic; }
.copyright { text-align: center; font-size: 0.82rem; opacity: 0.75; margin-top: 30px; }

/* À propos, admission, contact */
.haut { align-items: start; }
.hommage { background: var(--vert-fonce); color: #fff; border-radius: var(--rayon); padding: 26px; box-shadow: var(--ombre); border-left: 8px solid var(--jaune); }
.hommage h2 { color: var(--jaune); }
.hommage-annee { font-family: Georgia, serif; font-size: 2.6rem; font-weight: 700; line-height: 1; margin: 0 0 8px; color: rgba(255, 255, 255, 0.35); }
.grille-frais { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-bottom: 12px; }
.carte-frais { border-top: 6px solid var(--vert); padding: 0; overflow: hidden; }
.carte-frais h3 { padding: 18px 18px 6px; color: var(--vert-fonce); font-size: 1.05rem; }
.carte-frais td, .carte-frais th { padding: 9px 18px; }
.carte-frais .droite { white-space: nowrap; }
.carte-frais tfoot th { text-transform: none; letter-spacing: 0; font-size: 0.9rem; }
.coches { list-style: none; padding-left: 0; }
.coches li::before { content: '✓'; color: var(--vert); font-weight: 800; margin-right: 8px; }
.appel { background: var(--vert); color: #fff; padding: 44px 0; }
.appel h2 { color: #fff; }
.centre-actions { justify-content: center; }
.coordonnees h3 { margin-top: 18px; color: var(--vert-fonce); }
.telephones { list-style: none; padding: 0; margin: 0; }
.telephones li { margin: 6px 0; }
.telephones a { text-decoration: none; font-weight: 600; }
.bouton.whatsapp { background: #25d366; color: #0b3d1f; }
.bouton.whatsapp small { display: block; font-weight: 600; font-size: 0.85rem; }
.boutons-whatsapp { display: flex; flex-wrap: wrap; gap: 10px; }
.message-ok { background: var(--vert-clair); color: var(--vert-fonce); padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.non-lu { border-left-color: var(--orange); }

/* Carte de l'école */
.plan { border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); background: var(--vert-clair); }
.plan iframe { display: block; width: 100%; height: 380px; border: 0; }
.fiche-lieu { background: var(--blanc); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 18px; }
.actions-rondes { display: flex; justify-content: space-around; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.action-rond { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--bleu); font-weight: 600; font-size: 0.9rem; background: none; border: 0; cursor: pointer; font-family: inherit; min-width: 70px; }
.action-rond span { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--bleu); display: grid; place-items: center; font-size: 1.4rem; }
.action-rond:hover span { background: #eaf1f8; }
.adresse-lieu { display: flex; gap: 10px; align-items: center; padding: 12px; border-top: 1px solid var(--bord); text-decoration: none; color: var(--texte); font-weight: 600; margin-bottom: 12px; }

/* Comptes, étapes, espace parents, badge */
.alerte { border-left: 6px solid var(--jaune); margin-bottom: 20px; }
.etapes h2 { margin-top: 0; }
.liste-etapes { padding-left: 1.3em; }
.liste-etapes li { margin: 8px 0; }
.pastille.rouge { background: #fde8e6; color: #a1281c; }
.eleve-entete { display: flex; gap: 14px; align-items: center; }
.photo-eleve { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 3px solid var(--vert-clair); }
.badge-verif { border-top: 8px solid var(--vert); }
.badge-verif.invalide { border-top-color: #c0392b; }
.badge-etat { font-size: 1.4rem; font-weight: 800; margin: 0 0 14px; }
.badge-verif.valide .badge-etat { color: var(--vert-fonce); }
.badge-verif.invalide .badge-etat { color: #a1281c; }
.photo-badge { width: 160px; height: 160px; border-radius: 16px; object-fit: cover; margin: 0 auto 14px; box-shadow: var(--ombre); }

/* Parcours d'inscription */
.progression { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 22px; counter-reset: e; }
.progression li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 0.8rem; color: var(--doux); position: relative; }
.progression li span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--blanc); border: 2px solid var(--bord); font-weight: 800; color: var(--doux); z-index: 1; }
.progression li:not(:last-child)::after { content: ''; position: absolute; top: 16px; left: 50%; width: 100%; height: 2px; background: var(--bord); }
.progression li.fait span { background: var(--vert); border-color: var(--vert); color: #fff; }
.progression li.fait:not(:last-child)::after { background: var(--vert); }
.progression li.actuelle span { border-color: var(--vert); color: var(--vert-fonce); box-shadow: 0 0 0 4px var(--vert-clair); }
.progression li.actuelle { color: var(--vert-fonce); font-weight: 700; }
.avantage { text-align: center; }
.icone-avantage { font-size: 2rem; display: block; margin-bottom: 6px; }
.etapes-cartes { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.etapes-cartes li { background: var(--fond); border-radius: var(--rayon); padding: 18px; display: flex; gap: 14px; align-items: flex-start; }
.etapes-cartes .numero { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--vert); color: #fff; display: grid; place-items: center; font-weight: 800; }
.etapes-cartes p { margin: 0; }
.conseils li { margin: 10px 0; }
.rappel-pieces, .ajout-enfant { margin-bottom: 18px; }
.rappel-pieces summary, .ajout-enfant summary { cursor: pointer; font-weight: 700; color: var(--vert-fonce); }
.enfant { display: flex; gap: 14px; align-items: flex-start; }
.enfant h3 { margin: 0 0 4px; font-size: 1.05rem; }
.photo-eleve.vide { display: grid; place-items: center; background: var(--vert-clair); font-size: 2rem; flex: none; }
.appel p { opacity: 0.95; }

@media (max-width: 860px) {
  .burger { display: block; }
  .menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--blanc); flex-direction: column; align-items: stretch; padding: 12px 16px 18px; border-bottom: 4px solid var(--jaune); }
  body.menu-ouvert .menu { display: flex; }
  .langues { margin: 8px 0 0; align-self: flex-start; }
  .marque small { display: none; }
  .grille-3, .grille-2, .deux-colonnes, .pied-grille { grid-template-columns: 1fr; }
  .galerie { grid-template-columns: 1fr; }
  .galerie img { height: 200px; }
  .plan iframe { height: 300px; }
  .progression li { font-size: 0; }
  .progression li.actuelle { font-size: 0.75rem; }
  .bloc { padding: 32px 0; }
}
