:root {
  --orange: #F28C28;
  --green: #187830;
  --red: #E53935;
  --yellow: #FBC02D;
  --blue: #1E88E5;
  --bright-green: #43A047;
  --lilac: #A78BCA;
  --white: #FFFFFF;
  --soft-orange: #FFF3E6;
  --ink: #1B2A21;
  --muted: #536158;
  --radius: 26px;
  --font-title: "Fredoka", sans-serif;
  --font-body: "Nunito", sans-serif;
  --shadow: 0 20px 55px rgba(27, 42, 33, 0.12);
  --header-height: 78px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 22px);
}

body {
  margin: 0;
  padding-top: var(--header-height);
  color: var(--ink);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body:has(dialog[open]),
body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
}

svg {
  display: block;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-title);
  font-weight: 600;
  line-height: 1.08;
  hyphens: none;
}

h2 {
  margin-bottom: 22px;
  color: var(--green);
  font-size: clamp(2.25rem, 6vw, 4.3rem);
  letter-spacing: -0.035em;
}

h3 {
  font-size: 1.55rem;
}

p:last-child {
  margin-bottom: 0;
}

:focus-visible {
  outline: 4px solid var(--blue);
  outline-offset: 4px;
}

::selection {
  color: var(--ink);
  background: var(--yellow);
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: 82px;
  scroll-margin-top: calc(var(--header-height) + 15px);
}

.section-heading {
  max-width: 790px;
  margin-bottom: 42px;
}

.section-heading > p,
.parents-copy > p,
.tuition-layout p,
.payment-copy > p,
.key-dates-inner p {
  max-width: 660px;
  color: var(--muted);
  font-size: 1.12rem;
}

.no-break {
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  z-index: 10000;
  top: 12px;
  left: 12px;
  padding: 10px 18px;
  border-radius: 10px;
  color: var(--white);
  background: var(--green);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Barre de navigation */
.site-header {
  position: fixed;
  z-index: 900;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-height);
  background: var(--white);
  box-shadow: 0 5px 25px rgba(27, 42, 33, 0.07);
}

.navbar {
  display: flex;
  height: calc(var(--header-height) - 5px);
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  border-radius: 10px;
  background: var(--white);
}

.brand img {
  width: auto;
  height: 54px;
  object-fit: contain;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 5px;
}

.nav-link {
  position: relative;
  padding: 10px 11px;
  border-radius: 12px;
  color: #435047;
  font-size: 0.92rem;
  font-weight: 800;
  white-space: nowrap;
  transition: color 160ms ease, background-color 160ms ease;
}

.nav-link::after {
  position: absolute;
  right: 12px;
  bottom: 4px;
  left: 12px;
  height: 3px;
  border-radius: 3px;
  background: var(--orange);
  content: "";
  opacity: 0;
  transform: scaleX(0.35);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--green);
  background: #F2F8F3;
}

.nav-link.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-cta {
  display: none;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  color: var(--white);
  background: var(--green);
  font-weight: 800;
  white-space: nowrap;
  transition: background-color 160ms ease, transform 160ms ease;
}

.nav-cta:hover,
.nav-cta.is-current {
  background: #115F25;
  transform: translateY(-1px);
}

.header-stripes,
.footer-stripes {
  background: linear-gradient(90deg,
    var(--red) 0 20%,
    var(--yellow) 20% 40%,
    var(--blue) 40% 60%,
    var(--bright-green) 60% 80%,
    var(--lilac) 80% 100%);
}

.header-stripes {
  height: 5px;
}

.menu-toggle,
.menu-close {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 0;
  border-radius: 15px;
  color: var(--green);
  background: var(--soft-orange);
}

.menu-toggle svg,
.menu-close svg {
  width: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
}

.mobile-menu {
  position: fixed;
  z-index: 1200;
  inset: 0;
  overflow: auto;
  opacity: 0;
  transition: opacity 200ms ease;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu.is-open {
  opacity: 1;
}

.mobile-menu-bands {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.mobile-menu-bands span:nth-child(1) { background: var(--red); }
.mobile-menu-bands span:nth-child(2) { background: var(--yellow); }
.mobile-menu-bands span:nth-child(3) { background: var(--blue); }
.mobile-menu-bands span:nth-child(4) { background: var(--bright-green); }
.mobile-menu-bands span:nth-child(5) { background: var(--lilac); }

.mobile-menu-inner {
  position: relative;
  display: flex;
  width: min(480px, calc(100% - 40px));
  min-height: 100%;
  margin-inline: auto;
  flex-direction: column;
  padding-block: 18px 35px;
}

.mobile-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.mobile-menu-top .brand {
  padding: 4px 9px;
  border-radius: 15px;
}

.mobile-menu-top .brand img {
  height: 50px;
}

.menu-close {
  flex: 0 0 auto;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 6px 20px rgba(27, 42, 33, 0.14);
}

.mobile-nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding-block: 35px;
}

.mobile-nav .nav-link {
  padding: 15px 22px;
  border: 3px solid transparent;
  border-radius: 18px;
  color: var(--green);
  background: var(--white);
  box-shadow: 0 7px 0 rgba(27, 42, 33, 0.12);
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 600;
  text-align: center;
}

.mobile-nav .nav-link::after {
  display: none;
}

.mobile-nav .nav-link:hover,
.mobile-nav .nav-link.is-active {
  border-color: var(--ink);
  color: var(--green);
  background: var(--white);
}

.mobile-nav .nav-cta {
  display: inline-flex;
  min-height: 57px;
  margin-top: 8px;
  border: 3px solid var(--white);
  font-family: var(--font-title);
  font-size: 1.3rem;
}

.whatsapp-float {
  position: fixed;
  z-index: 790;
  right: 18px;
  bottom: 20px;
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  border: 3px solid var(--white);
  border-radius: 50%;
  color: var(--white);
  background: #167A3E;
  box-shadow: 0 8px 24px rgba(27, 42, 33, 0.25);
  transition: transform 180ms ease;
}

.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.04);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Boutons */
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button svg,
.text-link svg {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button-primary {
  color: var(--white);
  background: var(--green);
  box-shadow: 0 8px 20px rgba(24, 120, 48, 0.18);
}

.button-primary:hover {
  background: #115F25;
}

.button-light {
  color: var(--green);
  background: var(--white);
}

.button-whatsapp {
  color: var(--white);
  background: #146C38;
}

.button-outline {
  border-color: var(--green);
  color: var(--green);
  background: transparent;
}

.button-outline:hover {
  background: #EDF7EF;
}

.button-full {
  width: 100%;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--green);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(24, 120, 48, 0.35);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.text-link:hover {
  text-decoration-color: currentColor;
}

/* Décors peints et illustrations */
.painted-edge {
  position: absolute;
  z-index: 1;
  width: 110px;
  height: 260px;
  pointer-events: none;
}

.painted-edge path {
  transform-box: fill-box;
  transform-origin: top;
}

.wind-doodle {
  position: absolute;
  z-index: 1;
  width: 180px;
  color: var(--white);
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  opacity: 0.72;
  pointer-events: none;
  animation: gentle-float 7s ease-in-out infinite;
}

.section-doodle {
  position: absolute;
  width: 130px;
  fill: none;
  stroke: var(--orange);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.22;
  pointer-events: none;
  animation: gentle-float 8s ease-in-out infinite;
}

@keyframes gentle-float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}

.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-ready .paint-reveal {
  opacity: 0;
  transform: scaleY(0.25);
  transform-origin: top;
  transition: opacity 500ms ease, transform 800ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.reveal-ready .paint-reveal.is-visible {
  opacity: 1;
  transform: scaleY(1);
}

/* Ouverture */
.hero {
  position: relative;
  display: flex;
  min-height: calc(100svh - var(--header-height));
  align-items: flex-end;
  overflow: hidden;
  color: var(--ink);
  background: #283B2E;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: 50% 22%;
}

.hero-shade {
  background: linear-gradient(180deg, rgba(12, 24, 16, 0.02) 20%, rgba(12, 24, 16, 0.12) 50%, rgba(12, 24, 16, 0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 190px;
  padding-bottom: 38px;
}

.hero-panel {
  position: relative;
  max-width: 750px;
  padding: 28px 25px;
  border-radius: 28px 28px 28px 7px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 22px 55px rgba(12, 24, 16, 0.25);
  animation: hero-panel-in 750ms 1.6s both;
}

.hero-panel::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 8px;
  border-radius: 28px 0 0 7px;
  background: linear-gradient(180deg, var(--red) 0 20%, var(--yellow) 20% 40%, var(--blue) 40% 60%, var(--bright-green) 60% 80%, var(--lilac) 80%);
  content: "";
}

@keyframes hero-panel-in {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-logo {
  position: absolute;
  top: -54px;
  left: 22px;
  display: grid;
  width: 92px;
  height: 82px;
  place-items: center;
  border-radius: 23px;
  background: var(--white);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
  transform: rotate(-3deg);
}

.hero-logo img {
  width: 78px;
  height: auto;
}

.eyebrow {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.hero-eyebrow {
  margin: 12px 0 15px;
  color: var(--green);
}

.hero h1 {
  max-width: 900px;
  margin-bottom: 20px;
  color: var(--green);
  font-size: clamp(2.8rem, 8vw, 5.8rem);
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero-intro {
  max-width: 690px;
  margin-bottom: 26px;
  color: #435047;
  font-size: 1.03rem;
}

.hero-scroll {
  position: absolute;
  z-index: 3;
  right: 22px;
  bottom: 35px;
  display: none;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 2px solid var(--white);
  border-radius: 50%;
  color: var(--white);
  background: rgba(27, 42, 33, 0.35);
}

.hero-scroll svg {
  width: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero .wind-doodle {
  top: 35px;
  right: 25px;
}

.opening-curtain {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  pointer-events: none;
  animation: curtain-remove 0s 2.25s forwards;
}

.opening-curtain span {
  transform: translateY(0);
  animation: curtain-lift 0.8s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

.opening-curtain span:nth-child(1) { animation-delay: 0.35s; }
.opening-curtain span:nth-child(2) { animation-delay: 0.47s; }
.opening-curtain span:nth-child(3) { animation-delay: 0.59s; }
.opening-curtain span:nth-child(4) { animation-delay: 0.71s; }
.opening-curtain span:nth-child(5) { animation-delay: 0.83s; }
.opening-curtain span:nth-child(6) { animation-delay: 0.95s; }

.curtain-red { background: var(--red); }
.curtain-yellow { background: var(--yellow); }
.curtain-blue { background: var(--blue); }
.curtain-green { background: var(--bright-green); }
.curtain-lilac { background: var(--lilac); }
.curtain-white { background: var(--white); }

@keyframes curtain-lift {
  to { transform: translateY(-102%); }
}

@keyframes curtain-remove {
  to { visibility: hidden; }
}

/* Chiffre clé */
.success {
  position: relative;
  overflow: hidden;
  background: var(--orange);
}

.success-stripes,
.enrollment-hero-stripes {
  background: linear-gradient(90deg,
    var(--red) 0 16.666%,
    var(--yellow) 16.666% 33.332%,
    var(--blue) 33.332% 49.998%,
    var(--bright-green) 49.998% 66.664%,
    var(--lilac) 66.664% 83.33%,
    var(--white) 83.33% 100%);
}

.success-stripes {
  position: absolute;
  inset: 0;
  opacity: 0.94;
}

.success-stripes::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 0 8%, rgba(255,255,255,0.09) 8% 8.5%, transparent 8.5% 28%, rgba(255,255,255,0.08) 28% 28.5%, transparent 28.5%);
  content: "";
}

.success-inner {
  position: relative;
  display: grid;
  margin-block: 58px;
  padding: 42px 25px;
  border: 8px solid var(--white);
  border-radius: 32px 32px 32px 8px;
  color: var(--white);
  background: var(--green);
  box-shadow: var(--shadow);
  text-align: center;
}

.success-number {
  margin-bottom: 5px;
  font-family: var(--font-title);
  font-size: clamp(5.3rem, 21vw, 11rem);
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 0.95;
}

.success-lead {
  max-width: 600px;
  margin: 10px auto 18px;
  font-family: var(--font-title);
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 500;
  line-height: 1.2;
}

.success-note {
  max-width: 610px;
  margin-inline: auto;
  color: #E6F3E8;
  font-size: 0.98rem;
}

/* Frise du parcours */
.journey {
  overflow: hidden;
}

.journey .section-doodle {
  top: 45px;
  right: 4%;
}

.heading-with-controls {
  max-width: none;
}

.timeline-controls {
  display: flex;
  gap: 10px;
}

.round-button {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 2px solid var(--green);
  border-radius: 50%;
  color: var(--green);
  background: var(--white);
}

.round-button:hover {
  color: var(--white);
  background: var(--green);
}

.round-button:disabled {
  cursor: default;
  opacity: 0.35;
}

.round-button svg {
  width: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.timeline-viewport {
  overflow-x: auto;
  padding: 10px max(20px, calc((100vw - 1160px) / 2)) 28px;
  scroll-padding-inline: 20px;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--orange) var(--soft-orange);
  scrollbar-width: thin;
}

.timeline-track {
  position: relative;
  display: flex;
  width: max-content;
  margin: 0;
  padding: 22px 0 0;
  list-style: none;
}

.timeline-track::before {
  position: absolute;
  top: 128px;
  right: 0;
  left: 0;
  height: 5px;
  border-radius: 5px;
  background: #DDE7DF;
  content: "";
}

.journey-card {
  position: relative;
  width: min(82vw, 310px);
  min-height: 390px;
  margin-right: 22px;
  padding: 22px 24px 30px;
  border: 2px solid #EEF1ED;
  border-radius: 28px 28px 28px 8px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(27, 42, 33, 0.07);
  scroll-snap-align: start;
}

.journey-illustration {
  display: grid;
  width: 100%;
  height: 92px;
  place-items: center;
  border-radius: 18px;
}

.journey-illustration svg {
  width: 105px;
  height: 84px;
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.journey-dot {
  position: relative;
  z-index: 1;
  display: block;
  width: 23px;
  height: 23px;
  margin: 9px auto 25px;
  border: 5px solid var(--white);
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px currentColor;
}

.journey-card h3 {
  margin-bottom: 13px;
}

.journey-card p {
  margin: 0;
  color: #435047;
  font-size: 0.98rem;
}

.card-red { color: #B82522; }
.card-red .journey-illustration { background: #FDECEB; }
.card-yellow { color: #755900; }
.card-yellow .journey-illustration { background: #FFF6D9; }
.card-blue { color: #1164AD; }
.card-blue .journey-illustration { background: #EAF4FD; }
.card-green { color: var(--green); }
.card-green .journey-illustration { background: #EAF6EC; }
.card-lilac { color: #654785; }
.card-lilac .journey-illustration { background: #F3EDF8; }

/* Mosaïque et aparté */
.school-life {
  overflow: hidden;
  background: var(--soft-orange);
}

.school-life::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 15px;
  background: var(--white);
  clip-path: polygon(0 0, 100% 0, 100% 35%, 91% 80%, 81% 40%, 69% 90%, 56% 35%, 43% 75%, 30% 30%, 17% 85%, 7% 40%, 0 75%);
  content: "";
}

.life-layout {
  display: grid;
  gap: 32px;
  align-items: start;
}

.mosaic {
  display: grid;
  gap: 24px;
  margin-bottom: 30px;
}

.mosaic-item {
  min-width: 0;
  margin: 0;
}

.photo-button {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 160px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 24px 24px 24px 7px;
  background: #E9DED2;
}

.photo-button img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 516px;
  transition: transform 300ms ease;
}

.photo-button:hover img {
  transform: scale(1.025);
}

.photo-zoom {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 50%;
  color: var(--green);
  background: var(--white);
  box-shadow: 0 5px 20px rgba(27, 42, 33, 0.18);
}

.photo-zoom svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.mosaic-item figcaption {
  padding: 10px 5px 0;
  color: #465248;
  font-size: 0.91rem;
  font-weight: 700;
}

.did-you-know {
  position: relative;
  overflow: hidden;
  margin: 0 0 30px;
  padding: 32px 28px;
  border-radius: 27px 27px 27px 7px;
  color: var(--white);
  background: var(--green);
  box-shadow: 12px 12px 0 var(--yellow);
}

.did-you-know::after {
  position: absolute;
  right: -20px;
  bottom: -35px;
  width: 110px;
  height: 150px;
  background: linear-gradient(90deg, var(--red) 0 20%, var(--yellow) 20% 40%, var(--blue) 40% 60%, var(--bright-green) 60% 80%, var(--lilac) 80%);
  clip-path: polygon(5% 4%, 25% 0, 43% 5%, 65% 1%, 87% 6%, 100% 0, 96% 100%, 0 96%);
  content: "";
  opacity: 0.7;
  transform: rotate(-8deg);
}

.did-you-know h3 {
  position: relative;
  z-index: 1;
  margin-bottom: 13px;
  color: var(--yellow);
  font-size: 1.7rem;
}

.did-you-know p {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.4;
}

/* Espace parents */
.parents {
  overflow: hidden;
  background: var(--white);
}

.parents-band {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 12px;
  background: linear-gradient(180deg, var(--red) 0 20%, var(--yellow) 20% 40%, var(--blue) 40% 60%, var(--bright-green) 60% 80%, var(--lilac) 80%);
  clip-path: polygon(0 0, 85% 0, 60% 12%, 100% 24%, 65% 39%, 90% 53%, 55% 68%, 100% 82%, 70% 100%, 0 100%);
}

.parents-layout {
  display: grid;
  gap: 45px;
  align-items: center;
}

.parents .section-doodle {
  right: 3%;
  bottom: 25px;
}

.phone {
  position: relative;
  width: min(100%, 335px);
  margin-inline: auto;
  padding: 18px 12px 24px;
  border: 7px solid var(--ink);
  border-radius: 43px;
  background: var(--ink);
  box-shadow: 18px 22px 0 var(--yellow), var(--shadow);
}

.phone-speaker {
  position: absolute;
  z-index: 2;
  top: 9px;
  left: 50%;
  width: 72px;
  height: 7px;
  border-radius: 10px;
  background: var(--ink);
  transform: translateX(-50%);
}

.phone-screen {
  overflow: hidden;
  padding: 31px 17px 18px;
  border-radius: 27px;
  background: #F8FAF7;
}

.phone .field {
  margin-bottom: 12px;
}

.phone .field label {
  font-size: 0.74rem;
}

.phone .field input {
  min-height: 42px;
  padding: 8px 11px;
  border-radius: 10px;
  font-size: 0.86rem;
}

.phone .button {
  min-height: 43px;
  padding: 9px 15px;
  font-size: 0.85rem;
}

.phone-announcements {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}

.phone-announcements article {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px;
  border: 1px solid #E4EAE4;
  border-radius: 12px;
  background: var(--white);
}

.phone-announcements h3 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.35;
}

.example-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--orange);
}

.phone-home {
  width: 85px;
  height: 5px;
  margin: 15px auto 0;
  border-radius: 10px;
  background: #778079;
}

/* Formulaires */
.field {
  margin-bottom: 20px;
}

.field label,
.level-fieldset > legend {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 0.91rem;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 51px;
  padding: 12px 15px;
  border: 2px solid #D9E2DB;
  border-radius: 13px;
  outline: none;
  background: var(--white);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field textarea {
  min-height: 115px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.15);
}

/* Infos pratiques */
.practical {
  background: var(--soft-orange);
}

.practical-grid {
  display: grid;
  gap: 18px;
}

.info-block {
  position: relative;
  display: flex;
  min-height: 280px;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px;
  border-radius: 25px 25px 25px 7px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(103, 66, 25, 0.06);
}

.info-block::after {
  position: absolute;
  top: 0;
  right: 25px;
  width: 42px;
  height: 8px;
  border-radius: 0 0 8px 8px;
  background: var(--orange);
  content: "";
}

.info-block:nth-child(2)::after { background: var(--blue); }
.info-block:nth-child(3)::after { background: var(--bright-green); }

.info-block h3 {
  margin: 21px 0 12px;
  color: var(--green);
}

.info-block p {
  margin-bottom: 20px;
  color: #4E5A51;
}

.info-block .text-link {
  margin-top: auto;
}

.info-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 16px;
}

.info-icon svg {
  width: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-red { color: #B82522; background: #FDECEB; }
.icon-blue { color: #1164AD; background: #EAF4FD; }
.icon-green { color: var(--green); background: #EAF6EC; }

/* Contact */
.contact-layout {
  display: grid;
  overflow: hidden;
  border-radius: 28px 28px 28px 8px;
  background: var(--soft-orange);
  box-shadow: var(--shadow);
}

.map-wrap {
  min-height: 360px;
  background: #E2E9E2;
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
}

.contact-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 26px;
}

.contact-card address {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 28px;
  font-style: normal;
}

.contact-address {
  margin-bottom: 12px;
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.35;
}

.contact-card address a {
  color: var(--green);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-actions .button {
  padding-inline: 18px;
}

/* Pied de page */
.footer {
  color: var(--white);
  background: #123B22;
}

.footer-stripes {
  height: 9px;
}

.footer-grid {
  display: grid;
  gap: 28px;
  padding-block: 45px 32px;
}

.footer-brand img {
  width: 104px;
  height: auto;
  margin-bottom: 17px;
  padding: 5px;
  border-radius: 15px;
  background: var(--white);
}

.footer-brand p {
  max-width: 330px;
  margin: 0;
  font-family: var(--font-title);
  font-size: 1.15rem;
  line-height: 1.35;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.footer-contact a {
  color: #F2FAF3;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-hours {
  margin: 0;
  color: #D5E8D9;
  font-size: 0.94rem;
}

.footer-credit {
  margin: 0;
  padding: 17px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: #D5E8D9;
  font-size: 0.82rem;
  text-align: center;
}

/* Fenêtres */
dialog {
  padding: 0;
  border: 0;
}

dialog::backdrop {
  background: rgba(12, 25, 16, 0.78);
  backdrop-filter: blur(4px);
}

.dialog-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: var(--white);
}

.dialog-close svg {
  width: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.lightbox {
  width: min(920px, calc(100% - 30px));
  max-height: 90vh;
  overflow: auto;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.lightbox img {
  width: auto;
  max-width: 100%;
  max-height: 75vh;
  margin-inline: auto;
  border-radius: 24px 24px 0 0;
}

.lightbox p {
  margin: 0;
  padding: 18px 24px;
  font-weight: 800;
  text-align: center;
}

.demo-modal {
  width: min(480px, calc(100% - 34px));
  padding: 36px 28px 28px;
  border-radius: 26px;
  background: var(--white);
  box-shadow: var(--shadow);
  text-align: center;
}

.demo-modal p {
  margin-bottom: 25px;
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.35;
}

.demo-modal-mark {
  display: flex;
  width: 72px;
  height: 48px;
  margin: 0 auto 20px;
  overflow: hidden;
  border-radius: 14px;
}

.demo-modal-mark span {
  flex: 1;
}

.demo-modal-mark span:nth-child(1) { background: var(--red); }
.demo-modal-mark span:nth-child(2) { background: var(--yellow); }
.demo-modal-mark span:nth-child(3) { background: var(--blue); }
.demo-modal-mark span:nth-child(4) { background: var(--bright-green); }
.demo-modal-mark span:nth-child(5) { background: var(--lilac); }

/* Page inscriptions */
.enrollment-page .opening-curtain {
  display: none;
}

.enrollment-hero {
  position: relative;
  overflow: hidden;
  padding-block: 70px;
  background: var(--soft-orange);
}

.enrollment-hero-stripes {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 18px;
  clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%, 22% 85%, 0 68%, 25% 49%, 5% 30%, 28% 14%);
}

.enrollment-hero-content {
  position: relative;
  display: grid;
  gap: 25px;
  align-items: center;
}

.enrollment-logo {
  display: grid;
  width: 112px;
  height: 103px;
  place-items: center;
  border-radius: 26px;
  background: var(--white);
  box-shadow: var(--shadow);
  transform: rotate(-3deg);
}

.enrollment-logo img {
  width: 96px;
  height: auto;
}

.enrollment-hero h1 {
  margin-bottom: 18px;
  color: var(--green);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  letter-spacing: -0.045em;
}

.enrollment-hero p {
  max-width: 610px;
  margin: 0;
  color: var(--muted);
  font-size: 1.13rem;
}

.enrollment-steps {
  padding-bottom: 65px;
}

.steps-line {
  position: relative;
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps-line li {
  position: relative;
  padding: 24px;
  border: 2px solid #E8EEE9;
  border-radius: 23px 23px 23px 7px;
  background: var(--white);
}

.step-number {
  display: grid;
  width: 47px;
  height: 47px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 50%;
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 600;
}

.steps-line h2 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 1.5rem;
  letter-spacing: 0;
}

.steps-line p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.step-red .step-number { color: var(--white); background: var(--red); }
.step-yellow .step-number { color: var(--ink); background: var(--yellow); }
.step-blue .step-number { color: var(--white); background: var(--blue); }
.step-green .step-number { color: var(--white); background: var(--bright-green); }

.pre-enrollment {
  background: var(--soft-orange);
}

.pre-enrollment h2 {
  overflow-wrap: normal;
  word-break: normal;
}

.form-layout {
  display: grid;
  gap: 35px;
}

.form-progress {
  display: flex;
  gap: 12px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.form-progress li {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: #67736A;
  text-align: center;
}

.form-progress li > span {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: #DDE2DD;
  box-shadow: 0 0 0 1px #DDE2DD;
  font-family: var(--font-title);
  font-weight: 600;
}

.form-progress small {
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.25;
}

.form-progress .is-active > span,
.form-progress .is-complete > span {
  color: var(--white);
  box-shadow: 0 0 0 2px currentColor;
}

.form-progress .progress-red.is-active > span,
.form-progress .progress-red.is-complete > span { background: var(--red); }
.form-progress .progress-yellow.is-active > span,
.form-progress .progress-yellow.is-complete > span { color: var(--ink); background: var(--yellow); }
.form-progress .progress-blue.is-active > span,
.form-progress .progress-blue.is-complete > span { background: var(--blue); }

.step-form,
.payment-form {
  padding: 28px 22px;
  border-radius: 27px 27px 27px 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.form-step {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.form-step[hidden] {
  display: none;
}

.form-step > legend {
  margin-bottom: 27px;
  color: var(--green);
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 600;
}

.form-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
}

.form-buttons-end {
  justify-content: flex-end;
}

.level-fieldset,
.operator-fieldset {
  min-width: 0;
  margin: 5px 0 0;
  padding: 0;
  border: 0;
}

.level-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.choice-pill {
  position: relative;
  cursor: pointer;
}

.choice-pill input,
.operator input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.choice-pill span {
  display: block;
  padding: 10px 16px;
  border: 2px solid #D9E2DB;
  border-radius: 999px;
  font-weight: 800;
}

.choice-pill input:checked + span {
  border-color: var(--green);
  color: var(--white);
  background: var(--green);
}

.choice-pill input:focus-visible + span,
.operator input:focus-visible + span {
  outline: 4px solid var(--blue);
  outline-offset: 3px;
}

.form-summary {
  margin: 24px 0 0;
  padding: 18px;
  border-radius: 16px;
  background: var(--soft-orange);
}

.form-summary > div {
  display: grid;
  gap: 1px;
  padding-block: 9px;
  border-bottom: 1px solid #E8D9C8;
}

.form-summary > div:last-child {
  border-bottom: 0;
}

.form-summary dt {
  color: #5D665F;
  font-size: 0.75rem;
  font-weight: 800;
}

.form-summary dd {
  margin: 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.form-alternative {
  margin: 32px 20px 0;
  text-align: center;
}

.tuition {
  background: var(--white);
}

.tuition-layout {
  display: grid;
  gap: 28px;
  align-items: center;
}

.tuition-layout .button-row {
  align-items: flex-start;
  flex-direction: column;
}

.mobile-money {
  background: #F1F8F2;
}

.payment-layout {
  display: grid;
  gap: 35px;
  align-items: start;
}

.payment-fields {
  display: grid;
}

.operator-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.operator {
  position: relative;
  cursor: pointer;
}

.operator > span {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  border: 3px solid transparent;
  border-radius: 17px;
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

.operator-orange > span { color: #783500; background: #FFE5CC; }
.operator-mtn > span { color: #584300; background: #FFF0A8; }
.operator-moov > span { color: var(--white); background: #1766A0; }
.operator-wave > span { color: var(--white); background: #287FB8; }

.operator input:checked + span {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--ink);
}

.key-dates {
  background: var(--white);
}

.key-dates-inner {
  display: grid;
  gap: 30px;
  align-items: center;
}

.calendar-illustration {
  display: grid;
  width: 180px;
  height: 180px;
  margin-inline: auto;
  place-items: center;
  border-radius: 42px;
  background: var(--soft-orange);
  transform: rotate(-3deg);
}

.calendar-illustration svg {
  width: 140px;
  fill: var(--white);
  stroke: var(--green);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.calendar-illustration .calendar-check {
  fill: none;
  stroke: var(--orange);
}

/* Tablette */
@media (min-width: 640px) {
  .container {
    width: min(1160px, calc(100% - 72px));
  }

  .section {
    padding-block: 100px;
  }

  .hero-content {
    padding-bottom: 50px;
  }

  .hero-panel {
    padding: 34px 38px;
  }

  .hero-scroll {
    display: grid;
  }

  .success-inner {
    margin-block: 75px;
    padding: 52px;
  }

  .heading-with-controls {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
  }

  .heading-with-controls > div:first-child {
    max-width: 800px;
  }

  .timeline-controls {
    flex: 0 0 auto;
    padding-bottom: 7px;
  }

  .mosaic {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }

  .mosaic-main {
    grid-row: span 2;
  }

  .mosaic-entry {
    grid-column: 1 / -1;
  }

  .practical-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .info-block:last-child {
    grid-column: 1 / -1;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr;
  }

  .footer-hours {
    grid-column: 1 / -1;
  }

  .enrollment-hero-content {
    grid-template-columns: auto 1fr;
    gap: 40px;
  }

  .steps-line {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-progress small {
    font-size: 0.8rem;
  }

  .step-form,
  .payment-form {
    padding: 38px;
  }

  .form-summary > div {
    grid-template-columns: 1fr 1.2fr;
    gap: 20px;
  }

  .payment-fields {
    grid-template-columns: repeat(2, 1fr);
    gap: 0 16px;
  }

  .payment-fields .field:last-child {
    grid-column: 1 / -1;
  }

  .operator-options {
    grid-template-columns: repeat(4, 1fr);
  }

  .key-dates-inner {
    grid-template-columns: 200px 1fr;
    gap: 55px;
  }
}

/* Navigation ordinateur */
@media (min-width: 900px) {
  :root {
    --header-height: 86px;
  }

  .brand img {
    height: 60px;
  }

  .desktop-nav,
  .nav-cta {
    display: flex;
  }

  .menu-toggle,
  .mobile-menu {
    display: none !important;
  }
}

/* Ordinateur */
@media (min-width: 960px) {
  body {
    font-size: 18px;
  }

  .navbar {
    gap: 14px;
  }

  .desktop-nav {
    margin-left: auto;
  }

  .nav-link {
    padding-inline: 12px;
  }

  .whatsapp-float {
    right: 26px;
    bottom: 26px;
    width: 64px;
    height: 64px;
  }

  .hero-content {
    padding-top: 140px;
    padding-bottom: 65px;
  }

  .hero-panel {
    max-width: 720px;
  }

  .hero-logo {
    width: 104px;
    height: 93px;
  }

  .hero-logo img {
    width: 89px;
  }

  .hero-intro {
    font-size: 1.1rem;
  }

  .hero-scroll {
    right: 42px;
    bottom: 40px;
  }

  .success-inner {
    grid-template-columns: auto 1fr;
    column-gap: 45px;
    align-items: center;
    padding: 55px 65px;
    text-align: left;
  }

  .success-number {
    grid-row: span 2;
    margin: 0;
  }

  .success-lead,
  .success-note {
    margin-right: 0;
    margin-left: 0;
  }

  .success-lead {
    align-self: end;
  }

  .success-note {
    align-self: start;
  }

  .life-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 40px;
  }

  .life-aside {
    position: sticky;
    top: calc(var(--header-height) + 35px);
    padding-top: 85px;
  }

  .did-you-know {
    margin-bottom: 35px;
    transform: rotate(2deg);
  }

  .parents-layout {
    grid-template-columns: 1fr 0.9fr;
    gap: 90px;
  }

  .parents-copy {
    padding-left: 25px;
  }

  .parents-copy h2 {
    font-size: clamp(3.2rem, 5vw, 5rem);
  }

  .phone {
    margin-right: 45px;
  }

  .practical-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }

  .info-block:last-child {
    grid-column: auto;
  }

  .info-block:nth-child(2) {
    margin-top: 35px;
  }

  .info-block:nth-child(3) {
    margin-top: 70px;
  }

  .contact-layout {
    grid-template-columns: minmax(0, 1.55fr) minmax(330px, 0.85fr);
  }

  .map-wrap,
  .map-wrap iframe {
    min-height: 520px;
  }

  .contact-card {
    padding: 45px 38px;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 50px;
    align-items: center;
    padding-block: 48px 38px;
  }

  .footer-hours {
    grid-column: auto;
  }

  .enrollment-hero {
    padding-block: 85px;
  }

  .enrollment-hero-stripes {
    width: 30px;
  }

  .enrollment-hero-content {
    gap: 60px;
  }

  .steps-line {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }

  .steps-line::before {
    position: absolute;
    z-index: 0;
    top: 47px;
    right: 10%;
    left: 10%;
    height: 4px;
    background: #DFE8E0;
    content: "";
  }

  .steps-line li {
    z-index: 1;
  }

  .form-layout {
    grid-template-columns: 0.75fr 1.25fr;
    gap: 60px;
    align-items: start;
  }

  .form-intro {
    position: sticky;
    top: calc(var(--header-height) + 35px);
  }

  .form-progress {
    max-width: 300px;
  }

  .tuition-layout {
    grid-template-columns: 1fr auto;
    gap: 60px;
  }

  .tuition-layout .button-row {
    max-width: 340px;
  }

  .payment-layout {
    grid-template-columns: 0.72fr 1.28fr;
    gap: 65px;
  }

  .payment-copy {
    padding-top: 30px;
  }
}

@media (min-width: 1280px) {
  .section {
    padding-block: 120px;
  }

  .hero-content {
    padding-bottom: 80px;
  }

  .journey-card {
    width: 320px;
  }

  .enrollment-hero {
    padding-block: 100px;
  }

  .life-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 55px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .opening-curtain {
    animation: reduced-curtain 0.4s ease forwards;
  }

  .opening-curtain span {
    animation: none;
  }

  .reveal-ready .reveal,
  .reveal-ready .paint-reveal {
    transform: none;
    transition: opacity 0.01ms linear;
  }

  .wind-doodle,
  .section-doodle {
    animation: none;
  }

  @keyframes reduced-curtain {
    to { opacity: 0; visibility: hidden; }
  }
}
