/* ===========================================================================
   SMART SCHOOL — la couche éditoriale
   ---------------------------------------------------------------------------
   POURQUOI CE FICHIER EXISTE

   La première version enchaînait neuf sections de la même forme : un titre
   centré, une grille de cartes en dessous. Neuf fois. Le résultat était
   propre et parfaitement oubliable — un gabarit, pas une marque.

   Ici on casse ce rythme : des blocs asymétriques, des images en pleine
   largeur, un grand nombre qui occupe l'écran, des cartes qui se chevauchent,
   et surtout le MOTIF WAX de leurs supports imprimés — jusqu'ici réduit à un
   filet de 14 px dans le pied de page — promu au rang d'élément de design.

   Et toujours la même règle : rien ne dépend de l'opacité pour être lu.
   =========================================================================== */

/* ======================================================================
   LES ICÔNES DE MARQUE
   Elles remplacent les emoji. currentColor leur donne la couleur du
   contexte : une seule définition sert partout.
   ====================================================================== */
.ic-sv { width: 30px; height: 30px; display: block; color: var(--bleu); }

.carte .ic {
  background: linear-gradient(135deg, var(--bleu-pale), #fff);
  border: 1px solid var(--ligne);
  display: grid; place-items: center;
  position: relative; overflow: hidden;
}
/* Le losange du logo, en filigrane dans le coin de chaque pastille */
.carte .ic::before {
  content: ""; position: absolute; right: -12px; bottom: -12px;
  width: 26px; height: 26px; background: var(--jaune); transform: rotate(45deg) scale(0);
  transform-origin: center; transition: transform var(--t-ample);
}
.carte:hover .ic::before { transform: rotate(45deg) scale(1); }
.carte:hover .ic { background: linear-gradient(135deg, var(--jaune-pale), #fff); }
.carte .ic-sv { position: relative; z-index: 1; }

/* ======================================================================
   LE MOTIF WAX, EN GRAND
   C'est la signature visuelle de leurs flyers. Deux usages : en bande
   de séparation, et en fond de bloc.
   ====================================================================== */
.wax {
  height: 22px;
  background:
    repeating-linear-gradient(135deg, var(--jaune) 0 14px, transparent 14px 28px),
    repeating-linear-gradient(45deg,  var(--bleu) 0 14px, var(--bleu-clair) 14px 28px);
}
.wax-fin { height: 10px; }

/* Les chevrons, comme sur le bas de leur brochure */
.chevrons {
  height: 34px; width: 100%;
  background-image:
    linear-gradient(135deg, var(--jaune) 25%, transparent 25%),
    linear-gradient(225deg, var(--jaune) 25%, transparent 25%),
    linear-gradient(315deg, var(--bleu-clair) 25%, transparent 25%),
    linear-gradient(45deg,  var(--bleu-clair) 25%, transparent 25%);
  background-size: 34px 34px;
  background-position: 0 0, 17px 0, 17px 0, 0 0;
  background-color: var(--bleu-nuit);
}

/* ======================================================================
   LE BLOC ÉDITORIAL ASYMÉTRIQUE
   Texte d'un côté, image de l'autre, décalés — et un grand chiffre ou un
   losange qui mord sur l'image.
   ====================================================================== */
.edito {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 70px);
  align-items: center;
}
.edito.inverse > :first-child { order: 2; }

.edito-texte h2 { margin-bottom: 18px; }
.edito-texte > p { color: var(--encre-douce); font-size: 1.04rem; }

/* L'image, avec le losange de marque qui déborde */
.edito-img {
  position: relative; margin: 0;
  border-radius: var(--r-xl); overflow: visible;
}
.edito-img img {
  width: 100%; border-radius: var(--r-xl);
  box-shadow: var(--o-lg);
  position: relative; z-index: 1;
}
/* Le losange évidé, décalé derrière l'image */
.edito-img::before {
  content: ""; position: absolute; z-index: 0;
  width: 46%; aspect-ratio: 1; border: 3px solid var(--jaune);
  transform: rotate(45deg);
  top: -26px; right: -26px;
  transition: transform var(--t-ample);
}
.edito-img:hover::before { transform: rotate(60deg) scale(1.06); }
.edito.inverse .edito-img::before { right: auto; left: -26px; border-color: var(--bleu-clair); }

/* La pastille de chiffre, posée sur l'angle de l'image */
.edito-pastille {
  position: absolute; z-index: 2; bottom: -22px; left: -22px;
  background: var(--bleu-nuit); color: #fff;
  border-radius: var(--r-lg); padding: 18px 22px;
  box-shadow: var(--o-lg); min-width: 128px;
  transition: transform var(--t-ample);
}
.edito-img:hover .edito-pastille { transform: translateY(-6px); }
.edito-pastille b {
  display: block; font-family: var(--police-titre); font-weight: 800;
  font-size: 2.1rem; line-height: 1; color: var(--jaune);
  font-variant-numeric: tabular-nums;
}
.edito-pastille span { font-size: .8rem; color: rgba(255, 255, 255, .78); }
.edito.inverse .edito-pastille { left: auto; right: -22px; }

/* ======================================================================
   LA LISTE À LOSANGES, pour les blocs éditoriaux
   ====================================================================== */
.liste-dia { list-style: none; padding: 0; margin: 20px 0 0; }
.liste-dia li {
  position: relative; padding-left: 32px; margin-bottom: 13px;
  color: var(--encre-douce);
}
.liste-dia li::before {
  content: ""; position: absolute; left: 4px; top: .48em;
  width: 11px; height: 11px; background: var(--jaune-chaud); transform: rotate(45deg);
  transition: transform var(--t-rapide), background var(--t-rapide);
}
.liste-dia li:hover::before { transform: rotate(135deg) scale(1.25); background: var(--bleu-clair); }
.liste-dia li b { color: var(--bleu-nuit); }

/* ======================================================================
   LA BANDE PLEINE LARGEUR, image en fond
   Elle coupe la page en deux et change complètement le rythme.
   ====================================================================== */
.bande {
  position: relative; overflow: hidden;
  min-height: clamp(360px, 48vw, 520px);
  display: grid; align-items: center;
}
.bande-fond {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  /* Le duotone : la photo prend les couleurs de la marque. C'est ce qui
     fait qu'une photo de téléphone prise sur le vif devient un visuel. */
  filter: grayscale(100%) contrast(1.06);
}
.bande::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(118deg, rgba(4,40,63,.95) 0%, rgba(10,76,124,.86) 48%, rgba(255,206,33,.3) 100%);
  mix-blend-mode: multiply;
}
.bande::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(118deg, rgba(4,40,63,.78) 0%, rgba(4,40,63,.42) 60%, transparent 100%);
}
.bande .wrap { position: relative; z-index: 2; padding-block: clamp(44px, 7vw, 76px); }
.bande h2, .bande h3 { color: #fff; }
.bande p { color: rgba(255, 255, 255, .9); max-width: 56ch; }

/* ======================================================================
   LES CHIFFRES QUI DOMINENT
   Un seul grand nombre par colonne, assez gros pour qu'on le lise de
   loin. Le trait sous le nombre se dessine, il n'apparaît pas.
   ====================================================================== */
.gros-chiffres {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 2px; background: rgba(255, 255, 255, .12);
  border-radius: var(--r-lg); overflow: hidden;
}
.gros-chiffre {
  background: var(--bleu-nuit); padding: 34px 22px; text-align: center;
  transition: background var(--t-moyen);
}
.gros-chiffre:hover { background: var(--bleu-fonce); }
.gros-chiffre b {
  display: block; font-family: var(--police-titre); font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 4rem); line-height: 1; color: var(--jaune);
  font-variant-numeric: tabular-nums; letter-spacing: -.03em;
}
.gros-chiffre i {
  display: block; width: 42px; height: 3px; margin: 14px auto;
  background: var(--jaune-chaud); border-radius: 2px;
  transform: scaleX(0); transform-origin: center;
  transition: transform .7s .2s cubic-bezier(.16, 1, .3, 1);
}
.dev.vu .gros-chiffre i, html:not(.pret) .gros-chiffre i { transform: scaleX(1); }
.gros-chiffre span { display: block; font-size: .92rem; color: rgba(255, 255, 255, .8); }

/* ======================================================================
   LE PARCOURS, en frise verticale
   Remplace la rangée d'étapes toutes identiques.
   ====================================================================== */
.frise-v { position: relative; max-width: 780px; margin-inline: auto; padding-left: 58px; }
/* Le fil qui relie les étapes : il se DESSINE de haut en bas */
.frise-v::before {
  content: ""; position: absolute; left: 23px; top: 10px; bottom: 10px; width: 3px;
  background: linear-gradient(var(--jaune), var(--jaune-chaud), var(--bleu-clair));
  border-radius: 2px; transform: scaleY(0); transform-origin: top;
  transition: transform 1.3s cubic-bezier(.16, 1, .3, 1);
}
.frise-v.vu::before, html:not(.pret) .frise-v::before { transform: scaleY(1); }

.jalon { position: relative; padding-bottom: 34px; }
.jalon:last-child { padding-bottom: 0; }
.jalon .pastille {
  position: absolute; left: -58px; top: 0;
  width: 48px; height: 48px; display: grid; place-items: center;
  background: #fff; border: 3px solid var(--jaune-chaud);
  font-family: var(--police-titre); font-weight: 800; color: var(--bleu-nuit);
  transform: rotate(45deg); border-radius: 12px;
  transition: transform var(--t-ample), background var(--t-moyen);
}
.jalon .pastille i { transform: rotate(-45deg); font-style: normal; }
.jalon:hover .pastille { transform: rotate(135deg); background: var(--jaune); }
.jalon h3 { margin-bottom: 6px; font-size: 1.1rem; }
.jalon p { color: var(--encre-douce); margin: 0; }

/* ======================================================================
   LES CARTES QUI SE CHEVAUCHENT
   Une mise en page qu'on ne voit pas sur un gabarit.
   ====================================================================== */
.empilees { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.empilees > * { transition: transform var(--t-ample), box-shadow var(--t-ample); }
@media (min-width: 900px) {
  .empilees > :nth-child(even) { transform: translateY(32px); }
  .empilees > :nth-child(even):hover { transform: translateY(24px); }
}

/* ======================================================================
   LA CITATION DE MARQUE
   Leur phrase d'institution, mise en valeur plutôt que noyée.
   ====================================================================== */
.citation {
  position: relative; max-width: 900px; margin-inline: auto; text-align: center;
  padding: clamp(28px, 5vw, 52px) clamp(20px, 5vw, 60px);
}
.citation::before {
  content: "«"; position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
  font-family: var(--police-titre); font-size: 7rem; line-height: 1; color: var(--jaune);
}
.citation p {
  font-family: var(--police-titre); font-weight: 700;
  font-size: clamp(1.25rem, 3vw, 1.85rem); line-height: 1.38;
  color: var(--bleu-nuit); margin: 26px 0 0; text-wrap: balance;
}
.sect-bleu .citation p { color: #fff; }

/* ======================================================================
   LE HÉROS, VERSION FORTE
   ====================================================================== */
.hero-eclat {
  position: absolute; z-index: 0; pointer-events: none;
  width: min(62vw, 720px); aspect-ratio: 1;
  border: 2px solid rgba(255, 206, 33, .22);
  transform: rotate(45deg);
  top: 50%; right: -16%; margin-top: -31vw;
  animation: tournerLent 60s linear infinite;
}
.hero-eclat::before, .hero-eclat::after {
  content: ""; position: absolute; inset: 14%;
  border: 2px solid rgba(255, 255, 255, .1);
}
.hero-eclat::after { inset: 30%; border-color: rgba(255, 206, 33, .16); }
@keyframes tournerLent { to { transform: rotate(405deg); } }

/* La photo du héros, en losange tronqué — la forme de la marque */
.hero-photo { position: relative; }
.hero-photo::before {
  content: ""; position: absolute; z-index: 2; inset: auto auto -16px -16px;
  width: 92px; height: 92px; background: var(--jaune);
  clip-path: polygon(0 100%, 0 0, 100% 100%);
}
.hero-photo::after {
  content: ""; position: absolute; z-index: 2; inset: -16px -16px auto auto;
  width: 92px; height: 92px; border: 3px solid rgba(255, 255, 255, .34);
  transform: rotate(45deg);
}

/* ======================================================================
   ADAPTATION
   ====================================================================== */
@media (max-width: 900px) {
  .edito { grid-template-columns: 1fr; gap: 34px; }
  .edito.inverse > :first-child { order: 0; }
  .edito-img::before { width: 38%; top: -16px; right: -14px; }
  .edito.inverse .edito-img::before { left: -14px; }
  .edito-pastille { bottom: -16px; left: -12px; padding: 14px 18px; min-width: 110px; }
  .edito.inverse .edito-pastille { right: -12px; left: auto; }
  .hero-eclat { width: 92vw; right: -40%; margin-top: -46vw; }
}

@media (max-width: 620px) {
  .frise-v { padding-left: 46px; }
  .frise-v::before { left: 18px; }
  .jalon .pastille { left: -46px; width: 38px; height: 38px; font-size: .95rem; }
  .edito-pastille b { font-size: 1.6rem; }
  .hero-photo::before, .hero-photo::after { width: 58px; height: 58px; }
  .citation::before { font-size: 4.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-eclat { animation: none; }
  .frise-v::before, .gros-chiffre i { transform: none !important; }
  .empilees > :nth-child(even) { transform: none !important; }
}

@media print {
  .wax, .chevrons, .hero-eclat, .edito-img::before { display: none !important; }
  .bande::before, .bande::after, .bande-fond { display: none !important; }
  .bande h2, .bande p { color: #000 !important; }
}
