/* =====================================================================
   Feuille de style unique du site.

   DIRECTION : celle de Squarespace (domains.squarespace.com), relevée
   sur leur page le 31/08/2026 :
     · noir pur sur blanc pur, aucune couleur de fond
     · titres en graisse 300 — LÉGÈRE, pas grasse — très grands
     · interlettrage négatif marqué (-0.045em) et interligne serré (0.95)
     · boutons CARRÉS, sans arrondi, sans ombre
     · beaucoup de blanc, filets fins plutôt que cartes ombrées

   La police de Squarespace, « Clarkson », est propriétaire. Inter en
   graisse 300 en est l'équivalent libre le plus proche : même famille
   de grotesque, même comportement en très grande taille.

   Le bleu et l'orange du logo ne servent plus de fond : ils ne
   subsistent qu'en accents minuscules, sinon l'école perdrait son
   identité au profit d'une page anonyme.
   ===================================================================== */

:root {
  --noir: #000000;
  --encre: #101010;
  --gris: #6f6f6f;
  --gris-clair: #a3a3a3;
  --bord: #e3e3e3;
  --fond-doux: #f7f7f5;
  --blanc: #ffffff;

  /* Accents, employés avec parcimonie */
  --bleu: #00599a;
  --orange: #f4631c;

  --max: 1180px;
}

* { box-sizing: border-box; }

/* Défilement doux réservé aux ancres internes. Le retour en haut lors
   d'un changement de page est forcé en "instant" dans App.jsx : animé,
   il faisait passer par une zone vide. */
html { scroll-behavior: smooth; }

/* La page occupe au moins la hauteur de l'écran : le pied ne remonte
   pas au milieu pendant que les images se chargent. */
main { min-height: 70vh; }

body {
  margin: 0;
  font-family: Inter, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--noir);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--noir); }

h1, h2, h3 {
  font-weight: 300;             /* la signature de la direction */
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 0;
}

.conteneur {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------------------------------------------------------- navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--blanc);
  border-bottom: 1px solid var(--bord);
}
.navbar-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 74px;
  flex-wrap: wrap;
}
.marque {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--noir);
  margin-right: auto;
}
.marque img { width: 40px; height: 40px; }
.marque-nom { font-weight: 500; font-size: 0.95rem; letter-spacing: -0.01em; }
.marque-sous {
  font-size: 0.68rem;
  color: var(--gris-clair);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.liens { display: flex; gap: 2px; flex-wrap: wrap; }
.liens a {
  color: var(--encre);
  text-decoration: none;
  padding: 10px 14px;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  border-bottom: 2px solid transparent;
}
.liens a:hover { color: var(--gris); }
.liens a.actif { border-bottom-color: var(--noir); font-weight: 500; }

.burger {
  display: none;
  background: none;
  border: 1px solid var(--bord);
  color: var(--noir);
  padding: 8px 12px;
  font-size: 1.05rem;
  cursor: pointer;
}

/* ---------------------------------------------------------------- hero */
.hero { position: relative; background: var(--noir); color: var(--blanc); overflow: hidden; }
.hero img.fond {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.62;
}
/* Voile sombre par-dessus la photo : sans lui, un titre blanc posé sur
   des pagnes clairs devient illisible dès qu'on est au soleil. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.34) 45%, rgba(0,0,0,0.62) 100%);
}
.hero-contenu { position: relative; z-index: 1; padding: 132px 28px 140px; text-align: center; }
.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(2.5rem, 7.4vw, 4.6rem);
  letter-spacing: -0.045em;
  line-height: 0.95;
}
.hero p.accroche {
  margin: 0 auto 34px;
  max-width: 640px;
  font-size: clamp(1rem, 2vw, 1.16rem);
  color: rgba(255, 255, 255, 0.86);
  font-weight: 300;
}

/* -------------------------------------------------------------- boutons */
.btn {
  display: inline-block;
  padding: 16px 30px;
  border-radius: 0;                 /* carré, comme chez Squarespace */
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid var(--noir);
  background: var(--noir);
  color: var(--blanc);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--blanc); color: var(--noir); }
.btn-contour { background: transparent; color: var(--blanc); border-color: rgba(255,255,255,0.7); }
.btn-contour:hover { background: var(--blanc); color: var(--noir); border-color: var(--blanc); }
.btn-orange { background: var(--noir); color: var(--blanc); border-color: var(--noir); }
.btn-bleu { background: transparent; color: var(--noir); border-color: var(--noir); }
.btn-bleu:hover { background: var(--noir); color: var(--blanc); }
.boutons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ------------------------------------------------------------- sections */
.section { padding: 96px 0; }
.section-claire { background: var(--fond-doux); }
.section h2 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 4.4vw, 3rem);
  letter-spacing: -0.04em;
}
.barre { width: 34px; height: 1px; background: var(--noir); margin-bottom: 34px; }
.chapeau {
  color: var(--gris);
  max-width: 640px;
  margin: 0 0 44px;
  font-size: 1.05rem;
  font-weight: 300;
}

/* ---------------------------------------------------------------- cartes */
.grille { display: grid; gap: 1px; background: var(--bord); }
.grille-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grille-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

/* Grille en filets : les cartes se touchent, séparées d'un trait d'un
   pixel. C'est le motif de Squarespace, et cela supprime les ombres. */
.carte {
  background: var(--blanc);
  border: none;
  border-radius: 0;
  padding: 34px 30px;
  box-shadow: none;
}
.section-claire .carte { background: var(--fond-doux); }
.carte h3 { margin: 0 0 10px; font-size: 1.35rem; letter-spacing: -0.03em; }
.carte p { margin: 0; color: var(--gris); font-size: 0.95rem; font-weight: 300; }
.carte .classes {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gris-clair);
  margin-bottom: 12px;
}

/* -------------------------------------------------------------- chiffres */
.chiffres {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--bord);
}
.chiffre { text-align: center; padding: 40px 16px; background: var(--fond-doux); }
.section:not(.section-claire) .chiffre { background: var(--blanc); }
.chiffre .valeur {
  font-size: clamp(2.4rem, 5.4vw, 3.4rem);
  font-weight: 300;
  letter-spacing: -0.05em;
  line-height: 1;
}
.chiffre .libelle {
  color: var(--gris);
  font-size: 0.84rem;
  margin-top: 12px;
  font-weight: 300;
}

/* --------------------------------------------------------------- tableau */
.tableau-enveloppe { overflow-x: auto; border-top: 1px solid var(--noir); }
table { width: 100%; border-collapse: collapse; min-width: 580px; background: transparent; }
th, td {
  padding: 16px 14px;
  text-align: left;
  border-bottom: 1px solid var(--bord);
  font-size: 0.92rem;
  font-weight: 300;
}
thead th {
  background: transparent;
  color: var(--gris);
  font-weight: 500;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  white-space: nowrap;
  border-bottom: 1px solid var(--bord);
}
tbody tr:hover { background: var(--fond-doux); }
td.nombre, th.nombre { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
td strong { font-weight: 500; }
td.vide { color: var(--gris-clair); }
.ligne-cycle td {
  background: transparent;
  font-weight: 500;
  color: var(--gris-clair);
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  padding-top: 30px;
}

/* --------------------------------------------------------------- bourses */
.bourse {
  background: var(--blanc);
  border: none;
  border-radius: 0;
  padding: 0 0 32px;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.grille.bourses-grille { background: transparent; gap: 44px 32px; }
.bourse.phare .prix { color: var(--orange); }
.bourse h3 { font-size: 1.25rem; letter-spacing: -0.03em; }
.bourse .prix {
  font-size: 1.9rem;
  font-weight: 300;
  letter-spacing: -0.045em;
  line-height: 1.05;
}
.bourse .prix small {
  display: block;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--gris);
  margin-top: 6px;
}
.bourse p { margin: 0; color: var(--gris); font-size: 0.93rem; font-weight: 300; }
.bourse-affiche {
  width: 100%;
  /* height:auto est INDISPENSABLE. Sans lui, l'attribut height="933" du
     HTML impose une hauteur fixe de 933 px : la boîte devenait
     353 x 933, et object-fit:cover rognait les affiches sur les côtés —
     titres et montants coupés. */
  height: auto;
  margin: 0 0 6px;
  border-radius: 0;
  border: 1px solid var(--bord);
  /* Réserve la place avant le chargement, pour que la page ne saute pas
     pendant que les douze affiches arrivent. */
  aspect-ratio: 700 / 933;
  background: var(--fond-doux);
}

/* ------------------------------------------------------------- donateurs */
.donateur {
  background: var(--blanc);
  border: none;
  border-radius: 0;
  padding: 40px 26px;
  text-align: center;
  box-shadow: none;
}
.section-claire .donateur { background: var(--fond-doux); }
.donateur .pastille {
  width: 58px; height: 58px; margin: 0 auto 18px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--noir);
  color: var(--noir);
  display: flex; align-items: center; justify-content: center;
  font-weight: 400; font-size: 1.05rem; letter-spacing: 0.02em;
}
.donateur h3 { margin: 0 0 8px; font-size: 1.05rem; font-weight: 400; letter-spacing: -0.02em; }
.donateur p { margin: 0; color: var(--gris); font-size: 0.86rem; font-weight: 300; }

/* --------------------------------------------------------------- galerie */
.galerie { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.photo { border-radius: 0; overflow: hidden; border: none; background: transparent; }
.photo img { width: 100%; height: 260px; object-fit: cover; }
.photo figcaption {
  padding: 14px 0 0;
  font-size: 0.85rem;
  color: var(--gris);
  font-weight: 300;
}

/* ---------------------------------------------------------------- encart */
.encart {
  background: var(--noir);
  color: var(--blanc);
  border-radius: 0;
  padding: 92px 34px;
  text-align: center;
}
.encart h2 { color: var(--blanc); margin-bottom: 16px; }
.encart p {
  color: rgba(255,255,255,0.78);
  max-width: 560px;
  margin: 0 auto 32px;
  font-weight: 300;
}
.encart .btn { background: var(--blanc); color: var(--noir); border-color: var(--blanc); }
.encart .btn:hover { background: transparent; color: var(--blanc); }

.note {
  border-left: 1px solid var(--noir);
  background: transparent;
  padding: 4px 0 4px 20px;
  border-radius: 0;
  color: var(--gris);
  font-size: 0.88rem;
  font-weight: 300;
  max-width: 720px;
}

/* ------------------------------------------------------------------ pied */
.footer {
  background: var(--blanc);
  color: var(--gris);
  padding: 76px 0 34px;
  border-top: 1px solid var(--bord);
}
.footer .grille { background: transparent; gap: 34px; }
.footer h4 {
  color: var(--noir);
  margin: 0 0 16px;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.footer a {
  color: var(--gris);
  text-decoration: none;
  display: block;
  padding: 4px 0;
  font-size: 0.9rem;
  font-weight: 300;
}
.footer a:hover { color: var(--noir); }
.footer p { font-weight: 300; font-size: 0.9rem; }
.footer-bas {
  border-top: 1px solid var(--bord);
  margin-top: 52px; padding-top: 22px;
  font-size: 0.78rem; color: var(--gris-clair);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

/* ------------------------------------------------------------- téléphone */
@media (max-width: 820px) {
  .burger { display: block; }
  .liens { display: none; width: 100%; flex-direction: column; padding-bottom: 14px; }
  .liens.ouvert { display: flex; }
  .liens a { border-bottom: none; padding: 12px 0; }
  .section { padding: 64px 0; }
  .hero-contenu { padding: 84px 24px 92px; }
  .encart { padding: 64px 24px; }
  .photo img { height: 220px; }
}

/* ---------------------------------------------------------- simulateur */
/* Deux colonnes sur grand écran, une seule sur téléphone. Le résultat
   colle en haut de l'écran quand on fait défiler le formulaire : sans
   cela, on choisit à l'aveugle sans voir le total changer. */
.sim { display: grid; grid-template-columns: 1fr 400px; gap: 40px; align-items: start; }

.sim-bloc { border: none; border-top: 1px solid var(--noir); margin: 0 0 34px; padding: 22px 0 0; }
.sim-bloc legend {
  padding: 0 12px 0 0;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gris);
  display: flex; align-items: center; gap: 10px;
}
.sim-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border: 1px solid var(--noir);
  border-radius: 50%; color: var(--noir); font-size: 0.72rem; letter-spacing: 0;
}

.sim-libelle {
  display: block;
  font-size: 0.72rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--gris); margin-bottom: 10px;
}
.sim-select {
  width: 100%; padding: 14px 14px;
  border: 1px solid var(--bord); border-radius: 0;
  background: var(--blanc); color: var(--noir);
  font-family: inherit; font-size: 1rem; font-weight: 300;
  -webkit-appearance: none; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--noir) 50%),
                    linear-gradient(135deg, var(--noir) 50%, transparent 50%);
  background-position: calc(100% - 20px) 22px, calc(100% - 14px) 22px;
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
}
.sim-select:focus { outline: 2px solid var(--noir); outline-offset: 1px; }

.sim-choix {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 13px 14px; margin-bottom: 8px;
  border: 1px solid var(--bord); cursor: pointer;
  transition: border-color .12s, background .12s;
}
.sim-choix:hover { border-color: var(--gris); }
.sim-choix:has(input:checked) { border-color: var(--noir); background: var(--fond-doux); }
.sim-choix input { margin-top: 4px; accent-color: var(--noir); width: 17px; height: 17px; flex: none; }
.sim-choix-texte { display: block; line-height: 1.35; }
.sim-choix-texte strong { font-weight: 500; font-size: 0.96rem; }
.sim-choix-texte small { display: block; color: var(--gris); font-size: 0.82rem; margin-top: 3px; }

.sim-aide { color: var(--gris); font-size: 0.84rem; font-weight: 300; margin: 12px 0 0; }

.sim-resultat { position: relative; }
.sim-collant { position: sticky; top: 96px; border: 1px solid var(--noir); padding: 28px 24px; }
.sim-etiquette {
  font-size: 0.68rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--gris);
}
.sim-montant {
  font-size: clamp(2rem, 4.6vw, 2.8rem); font-weight: 300;
  letter-spacing: -0.05em; line-height: 1.05; margin-top: 6px;
}
.sim-euros { color: var(--gris); font-size: 0.92rem; font-weight: 300; margin-top: 4px; }

.sim-table { width: 100%; min-width: 0; margin-top: 22px; border-collapse: collapse; }
.sim-table td { padding: 10px 0; border-bottom: 1px solid var(--bord); font-size: 0.88rem; }
.sim-table td.nombre { text-align: right; white-space: nowrap; }
.sim-table tfoot td { border-bottom: none; border-top: 1px solid var(--noir); font-weight: 500; }
.sim-sous { color: var(--gris); font-size: 0.78rem; margin-top: 2px; }

.sim-boutons { display: flex; flex-direction: column; gap: 8px; margin-top: 22px; }
.sim-boutons .btn { text-align: center; cursor: pointer; font-family: inherit; width: 100%; }

.sim-message {
  margin-top: 14px; padding: 12px 14px;
  border-left: 2px solid var(--orange);
  background: var(--fond-doux);
  font-size: 0.85rem; color: var(--gris);
}
.sim-message.ok { border-left-color: var(--noir); }

@media (max-width: 900px) {
  .sim { grid-template-columns: 1fr; gap: 28px; }
  /* Sur téléphone le résultat passe AVANT le formulaire : on voit le
     total en arrivant, puis on ajuste en dessous. */
  .sim-resultat { order: -1; }
  .sim-collant { position: static; }
}

/* ------------------------------------------------- simulateur, enfants */
.sim-enfant { border: 1px solid var(--bord); padding: 20px; margin-bottom: 14px; }
.sim-enfant-tete {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.7rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--gris);
  margin-bottom: 16px;
}
.sim-retirer {
  border: none; background: none; cursor: pointer; padding: 0;
  font-family: inherit; font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gris); text-decoration: underline;
}
.sim-retirer:hover { color: var(--noir); }

.sim-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Options en pastilles : cinq cases à cocher empilées prendraient tout
   l'écran d'un téléphone, multiplié par le nombre d'enfants. */
.sim-cases { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.sim-case {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 9px 12px; border: 1px solid var(--bord);
  cursor: pointer; flex: 1 1 150px; transition: border-color .12s, background .12s;
}
.sim-case.active { border-color: var(--noir); background: var(--fond-doux); }
.sim-case input { margin-top: 3px; accent-color: var(--noir); width: 15px; height: 15px; flex: none; }
.sim-case strong { font-weight: 500; font-size: 0.86rem; display: block; }
.sim-case small { display: block; color: var(--gris); font-size: 0.74rem; margin-top: 2px; }

.sim-ajouter {
  width: 100%; padding: 14px;
  border: 1px dashed var(--gris); background: none; cursor: pointer;
  font-family: inherit; font-size: 0.86rem; font-weight: 500;
  letter-spacing: 0.02em; color: var(--noir);
}
.sim-ajouter:hover { border-color: var(--noir); background: var(--fond-doux); }

.sim-bloc-enfant { margin-top: 20px; }
.sim-bloc-tete {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 0.7rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--gris);
  padding-bottom: 6px; border-bottom: 1px solid var(--noir);
}
.sim-bloc-tete span { font-size: 0.95rem; letter-spacing: -0.02em; color: var(--noir); }
.sim-remise td { color: var(--orange); }

.sim-reduction {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px; margin-top: 18px; padding: 12px 14px;
  border-left: 2px solid var(--orange); background: var(--fond-doux);
  font-size: 0.85rem;
}
.sim-reduction span { color: var(--orange); font-weight: 500; white-space: nowrap; }

@media (max-width: 520px) {
  .sim-duo { grid-template-columns: 1fr; }
  .sim-case { flex: 1 1 100%; }
}

/* ------------------------------------ simulateur : angles arrondis
   Le reste du site suit Squarespace, donc du carré. Le simulateur est
   un outil qu'on manipule, pas une page qu'on lit : les angles doux y
   rendent les zones cliquables plus évidentes et l'ensemble moins
   sévère. C'est une exception assumée, limitée à cette section. */
#simulateur .sim-enfant,
#simulateur .sim-collant,
#simulateur .sim-bloc-enfant .sim-table { border-radius: 14px; }

#simulateur .sim-select,
#simulateur .sim-choix,
#simulateur .sim-case,
#simulateur .sim-ajouter,
#simulateur .sim-boutons .btn { border-radius: 10px; }

#simulateur .sim-reduction,
#simulateur .sim-message { border-radius: 0 10px 10px 0; }

#simulateur .sim-num { border-radius: 50%; }

/* La flèche du menu déroulant doit suivre l'arrondi, sinon elle touche
   le bord. */
#simulateur .sim-select {
  background-position: calc(100% - 22px) 22px, calc(100% - 16px) 22px;
}

#simulateur .sim-retirer { border-radius: 6px; padding: 2px 6px; }
#simulateur .sim-collant { padding: 30px 26px; }
