/* L'école page only. */

.ecole-section { scroll-margin-top: 72px; }

/* Photo captions (white pill, bottom left) */
.photo-a-venir__legende { z-index: 1; font-weight: 700; }
.photo-a-venir__legende img { width: 16px; height: 16px; flex: none; }
.photo-a-venir > img { width: 44px; height: 44px; }
.legende-courte { display: none; }

/* Page banner */
.ecole-bandeau__motif { left: calc(50% + 420px); top: -60px; width: 380px; height: 380px; }
.bandeau .sur-titre { margin-top: 0; }
.reperes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; }
.reperes > div { display: flex; flex-direction: column; gap: 2px; }
.reperes > div + div { padding-left: 20px; border-left: 1px solid var(--bordure-claire); }
.reperes__valeur { font-size: 28px; line-height: 34px; color: var(--marque-prairie); }
.reperes dd { margin: 0; font-size: 14px; line-height: 20px; color: var(--texte-secondaire); }
.ecole-bandeau__photo { height: 440px; }

/* History */
.histoire__titre { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: end; margin-bottom: 52px; }
.histoire__pile { gap: 12px; align-items: flex-start; }
.frise-chrono { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.etape { display: flex; flex-direction: column; gap: 8px; padding-right: 28px; }
.etape__repere { position: relative; display: block; height: 22px; margin: 0 -28px 10px 0; }
.etape__repere::before {
  content: ""; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%;
  background: var(--marque-prairie); box-shadow: inset 0 0 0 5px var(--fond-menthe); z-index: 1;
}
.etape__repere::after { content: ""; position: absolute; left: 22px; right: 0; top: 10px; height: 2px; background: var(--bordure-claire); }
.etape--actuelle .etape__repere::before { background: var(--action-orange); box-shadow: inset 0 0 0 5px var(--fond-jaune-doux); }
.etape--actuelle .etape__repere::after { display: none; }
.etape__annee { font-size: 40px; line-height: 50px; color: var(--marque-prairie); }
.etape--actuelle .etape__annee { color: var(--texte-sur-titre); }

/* Word from the head of school */
.direction__motif { right: -70px; top: 446px; width: 300px; height: 300px; }
.direction { display: grid; grid-template-columns: 440px minmax(0, 1fr); gap: 72px; align-items: center; }
.direction__photo { height: 520px; border: 0; }
.direction__texte { gap: 18px; align-items: flex-start; }
.direction__citation { gap: 18px; }
.direction__guillemet { font-size: 96px; line-height: 64px; height: 64px; color: var(--action-orange); }
.direction__lettre { font-size: 20px; line-height: 30px; color: var(--texte-principal); }
.direction__signature { display: flex; flex-direction: column; gap: 2px; }
.direction__nom { font-weight: 700; font-size: 20px; line-height: 26px; color: var(--marque-foret); }

/* Values */
.valeurs__titre { margin-bottom: 44px; }
.valeurs__titre .stack { gap: 12px; }
.valeur { display: flex; flex-direction: column; overflow: hidden; border-radius: 24px; }
.valeur__illustration { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; height: 210px; }
.valeur__illustration img { width: 84px; height: 84px; }
.valeur__nom { font-size: 28px; line-height: 34px; color: var(--texte-inverse); }
.valeur__nom--sombre { color: var(--action-texte); }
.valeur__contenu { display: flex; flex-direction: column; gap: 12px; padding: 24px 26px 28px; }
.valeur__texte { font-size: 18px; line-height: 28px; color: var(--texte-principal); }

/* Facilities */
.infrastructures__titre .stack { max-width: 1003px; gap: 12px; }
.infrastructures { display: grid; grid-template-columns: minmax(0, 568fr) minmax(0, 584fr); gap: 24px; height: 520px; }
.infrastructures__grande { height: 100%; }
.infrastructures__mosaique { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 24px; }
.infrastructures__mosaique > * { min-height: 0; }
.infrastructures .photo-a-venir { border: 0; }

/* Official approvals */
.agrements__motif { left: -70px; top: 488px; width: 220px; height: 220px; }
.agrements { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.agrements__texte { gap: 16px; }
.agrements__liste { gap: 14px; }
.decision { display: flex; align-items: flex-start; gap: 18px; padding: 22px; background: var(--fond-carte); border: 1px solid var(--bordure-claire); border-radius: 20px; }
.decision__picto { display: flex; align-items: center; justify-content: center; flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--fond-menthe); }
.decision__picto img { width: 26px; height: 26px; }
.decision__texte { gap: 6px; align-items: flex-start; min-width: 0; }
.decision__texte p { color: var(--texte-principal); }

/* Call to action */
.ecole-cta__motif { left: -90px; top: -90px; width: 240px; height: 240px; }
.cta > .container { position: relative; z-index: 1; }
.cta .buttons { flex: none; }
.ecole-btn--blanc { background: var(--fond-carte); color: var(--marque-foret); }
.ecole-btn--blanc:hover { background: var(--fond-menthe); }

@media (max-width: 1180px) {
  .ecole-bandeau__motif { display: none; }
  .direction { grid-template-columns: 360px minmax(0, 1fr); gap: 48px; }
}
@media (max-width: 1000px) {
  .ecole-bandeau__photo { height: 380px; }
  .histoire__titre, .agrements { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .frise-chrono { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .etape:nth-child(2n) .etape__repere::after { display: none; }
  .direction { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .direction__photo { height: 420px; }
  .infrastructures { grid-template-columns: minmax(0, 1fr); height: auto; }
  .infrastructures__grande { height: 400px; }
  .infrastructures__mosaique { grid-template-rows: repeat(2, 248px); }
  .agrements__motif { display: none; }
}
@media (max-width: 720px) {
  .reperes { gap: 12px; }
  .reperes > div + div { padding-left: 12px; }
  .reperes__valeur { font-family: var(--font-texte); font-size: 20px; line-height: 26px; }
  .reperes dd { font-size: 12px; }
  .ecole-bandeau__photo { height: 240px; border-radius: 20px; }
  .histoire__titre { gap: 14px; margin-bottom: 14px; }
  /* Timeline becomes vertical: marker column on the left */
  .frise-chrono { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .etape { position: relative; padding: 0 0 28px 36px; }
  .etape__repere { position: absolute; left: 0; top: 0; bottom: 0; width: 22px; height: auto; margin: 0; }
  .etape__repere::after, .etape:nth-child(2n) .etape__repere::after { display: block; left: 10px; right: auto; top: 22px; bottom: 0; width: 2px; height: auto; }
  .etape.etape--actuelle:last-child .etape__repere::after { display: none; }
  .etape__annee { font-size: 28px; line-height: 34px; }
  .direction { display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
  .direction__texte { display: contents; }
  .direction__texte > .sur-titre { order: -1; }
  .direction__motif { top: -40px; right: -60px; width: 200px; height: 200px; }
  .direction__photo { height: 300px; }
  .direction__lettre { font-size: 18px; line-height: 28px; }
  .direction__citation { gap: 14px; }
  .direction__guillemet { font-size: 60px; line-height: 22px; height: 22px; margin-top: 14px; }
  .valeur__illustration { height: 160px; }
  .valeur__texte { font-size: 16px; line-height: 24px; }
  .infrastructures__grande { height: 240px; border-radius: 20px; }
  .infrastructures__mosaique { gap: 11px; grid-template-rows: repeat(2, 130px); }
  .infrastructures__mosaique > * { border-radius: 20px; }
  .infrastructures__mosaique .photo-a-venir__legende { left: 12px; bottom: 12px; gap: 6px; padding: 5px 10px; font-size: 12px; }
  .infrastructures__mosaique .photo-a-venir__legende img { width: 14px; height: 14px; }
  .legende-large { display: none; }
  .legende-courte { display: inline; }
  .infrastructures__mosaique .photo-a-venir > img { width: 36px; height: 36px; }
  .decision { padding: 22px; }
  .ecole-cta__motif { left: -60px; top: -60px; width: 180px; height: 180px; }
  .cta .buttons { width: 100%; }
}
