/* Vulgatic Kalanyiiri — site public. Palette tirée du logo : bleu nuit, or, bleu ciel. */
:root {
  --nuit: #0c1b3d;
  --nuit-2: #16295c;
  --or: #f5b82e;
  --or-fonce: #a86f00;
  --ciel: #4aa3ff;
  --creme: #f6f8fc;
  --papier: #ffffff;
  --texte: #1d2740;
  --doux: #5b667f;
  --trait: #dde3f0;
  --rayon: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--texte);
  background: var(--creme);
}
img { max-width: 100%; height: auto; }
a { color: var(--or-fonce); }
.conteneur { width: min(1080px, 100% - 32px); margin-inline: auto; }

/* ------------------------------------------------------------ en-tête */
.entete { background: var(--nuit); position: sticky; top: 0; z-index: 10; border-bottom: 1px solid #22356b; }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.marque { display: flex; align-items: center; gap: 10px; color: var(--or); font-weight: 800; letter-spacing: .5px; text-decoration: none; font-size: 18px; }
.marque img { width: 38px; height: 38px; }
.menu { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.menu a { color: #dfe7fb; text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: 15px; }
.menu a:hover { background: var(--nuit-2); color: #fff; }
.menu a.principal { background: var(--or); color: var(--nuit); font-weight: 700; }
.menu a.principal:hover { background: #f0c35e; }
@media (max-width: 640px) { .menu a:not(.principal) { display: none; } }

/* ------------------------------------------------------------ héros */
.heros {
  background:
    linear-gradient(90deg, var(--nuit) 0%, var(--nuit) 38%, rgba(12,27,61,.6) 52%, rgba(12,27,61,0) 66%),
    url(img/hero-enfants.webp) calc(100% + 120px) center / auto 100% no-repeat, var(--nuit);
  color: #eef3ff; padding: 72px 0 80px; min-height: 540px; display: flex; align-items: center;
}
.heros .conteneur { display: block; }
.heros .conteneur > div { max-width: 600px; }
.heros h1 { font-size: clamp(30px, 5vw, 48px); line-height: 1.15; margin: 0 0 16px; color: #fff; }
.heros h1 em { font-style: normal; color: var(--or); }
.heros p.chapeau { font-size: 19px; color: #c7d3f2; margin: 0 0 24px; max-width: 34em; }
@media (max-width: 1100px) {
  .heros {
    --l: clamp(520px, 100vw, 700px);
    --h: calc(var(--l) * .6);
    background:
      linear-gradient(90deg, var(--nuit) 0%, rgba(12,27,61,0) 20%, rgba(12,27,61,0) 80%, var(--nuit) 100%) center bottom / var(--l) var(--h) no-repeat,
      linear-gradient(180deg, var(--nuit) 0%, var(--nuit) calc(100% - var(--h) - 20px), rgba(12,27,61,0) calc(100% - var(--h) * .72)),
      url(img/hero-enfants.webp) center bottom / var(--l) var(--h) no-repeat, var(--nuit);
    text-align: center; padding: 44px 0 calc(var(--h) + 24px); display: block; min-height: 0;
  }
  .heros .conteneur > div { margin-inline: auto; }
  .heros p.chapeau { margin-inline: auto; }
  .actions { justify-content: center; }
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.bouton {
  display: inline-block; background: var(--or); color: var(--nuit); font-weight: 800; font-size: 18px;
  padding: 14px 28px; border-radius: 999px; text-decoration: none; border: 0;
  box-shadow: 0 8px 24px rgba(245,184,46,.35); transition: transform .15s, background .15s;
}
.bouton:hover { background: #f0c35e; transform: translateY(-2px); }
.bouton.discret { background: transparent; color: #eef3ff; border: 2px solid #4a5f9c; box-shadow: none; }
.bouton.discret:hover { border-color: var(--or); color: var(--or); }
.petit-texte { font-size: 14px; color: #9fb0da; margin-top: 12px; }

/* ------------------------------------------------------------ chiffres */
.chiffres { background: var(--or); color: var(--nuit); }
.chiffres .conteneur { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); text-align: center; padding: 20px 0; gap: 8px; }
.chiffres strong { display: block; font-size: 34px; line-height: 1.1; }
.chiffres span { font-size: 15px; font-weight: 600; }

/* ------------------------------------------------------------ sections */
section { padding: 64px 0; }
section h2 { font-size: clamp(26px, 4vw, 34px); line-height: 1.2; margin: 0 0 8px; color: var(--nuit); }
section .intro { color: var(--doux); max-width: 42em; margin: 0 0 32px; }
.fond-blanc { background: var(--papier); }
.grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.carte { background: var(--papier); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 24px; }
.fond-blanc .carte { background: var(--creme); }
.carte .pastille { font-size: 34px; line-height: 1; margin-bottom: 10px; display: block; }
.carte h3 { margin: 0 0 6px; font-size: 19px; color: var(--nuit); }
.carte p { margin: 0; color: var(--doux); font-size: 16px; }

/* étapes */
.etapes { counter-reset: e; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.etapes li { counter-increment: e; position: relative; background: var(--papier); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 24px 22px 22px; }
.etapes li::before {
  content: counter(e); position: absolute; top: -16px; left: 20px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--nuit); color: var(--or); font-weight: 800; display: grid; place-items: center;
}
.etapes b { display: block; margin-bottom: 4px; color: var(--nuit); }
.etapes span { color: var(--doux); font-size: 16px; }
code.code { font-family: Consolas, monospace; background: #e8eefb; padding: 1px 6px; border-radius: 6px; font-size: 15px; }

/* classes */
.classes { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.classe { background: var(--nuit); color: #eef3ff; border-radius: var(--rayon); padding: 22px; }
.classe h3 { margin: 0; color: var(--or); font-size: 28px; }
.classe p { margin: 4px 0 0; color: #b9c7ec; font-size: 15px; }
.classe .nb { font-size: 22px; color: #fff; font-weight: 700; }

/* télécharger */
.telecharger { background: linear-gradient(135deg, var(--nuit) 0%, #1c3a85 100%); color: #eef3ff; text-align: center; }
.telecharger h2 { color: #fff; }
.telecharger .intro { color: #c7d3f2; margin-inline: auto; }

/* FAQ */
details { background: var(--papier); border: 1px solid var(--trait); border-radius: 12px; padding: 4px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 700; padding: 12px 0; color: var(--nuit); }
details p { margin: 0 0 14px; color: var(--doux); }

/* contact */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.contact a.carte { text-decoration: none; color: inherit; display: block; }
.contact a.carte:hover { border-color: var(--or); }
.contact strong { display: block; color: var(--nuit); }
.contact span { color: var(--doux); overflow-wrap: anywhere; }

/* pied de page */
.pied { background: var(--nuit); color: #9fb0da; padding: 28px 0; font-size: 14px; text-align: center; }
.pied a { color: var(--or); }

/* photos d'élèves */
.duo { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.duo .photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: center; }
.duo figure { margin: 0; }
.duo figure img { display: block; width: 100%; height: auto; border-radius: var(--rayon); box-shadow: 0 10px 30px rgba(12,27,61,.18); }
.duo figure:first-child { grid-row: span 2; }
.duo figure:last-child img { transform: rotate(1.5deg); }
.duo .texte p { color: var(--doux); margin: 0 0 14px; }
.duo .credit { font-size: 13px; }
@media (max-width: 820px) { .duo { grid-template-columns: 1fr; gap: 24px; } .duo .texte { order: -1; } }
.fond-blanc .etapes li { background: var(--creme); }
