/* =====================================================================
   Les Petits Savants — feuille de style
   Concept « blocs de jeu » : contours indigo, ombres décalées dures,
   aplats pastel. Une couleur par matière.

   1. Variables      4. Sections de l'accueil
   2. Base           5. Pages intérieures
   3. Composants     6. Responsive & accessibilité
   ===================================================================== */

/* 1. Variables ---------------------------------------------------- */
:root {
  --page: #fbfaff;
  --ink: #25225a;
  --ink-2: #5a5890;

  --lilac: #dcd3fa;
  --mint: #bdebd3;
  --rose: #ffcfe0;
  --sky: #bfe0fa;
  --butter: #ffe9a8;
  --sun: #ffd84d;
  --wa: #25d366;

  --lilac-d: #5b47c7;
  --mint-d: #1e7f5c;
  --rose-d: #b83a72;
  --sky-d: #2467a8;
  --butter-d: #8f6200;

  --stroke: 2.5px;
  --r-s: 12px;
  --r-m: 20px;
  --r-l: 34px;
  --pop-1: 3px 3px 0 var(--ink);
  --pop-2: 6px 6px 0 var(--ink);

  --f-display: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --f-body: "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-ar: "Cairo", "Noto Naskh Arabic", "Segoe UI", sans-serif;
  --wrap: 1160px;
}

/* 2. Base --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--page);
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
[hidden] { display: none !important; }
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.2vw, 4.7rem); line-height: 1; }
h2 { font-size: clamp(2rem, 4.2vw, 3.05rem); }
h3 { font-size: 1.55rem; }
p { margin: 0 0 1em; max-width: 62ch; }
a { color: inherit; }
ul, ol { padding: 0; margin: 0; list-style: none; }
[id] { scroll-margin-top: 6.5rem; }
:focus-visible { outline: 3px solid var(--lilac-d); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4.5rem; z-index: 100;
  background: var(--sun); border: var(--stroke) solid var(--ink);
  padding: 0.6rem 1.1rem; border-radius: 999px; font-weight: 600;
  transition: top 0.15s;
}
.skip-link:focus { top: 1rem; }
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.icon {
  width: 1.3em; height: 1.3em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.icon--fill { fill: currentColor; stroke: none; }
.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 54ch; }
.ar { font-family: var(--f-ar); font-weight: 800; }

/* 3. Composants --------------------------------------------------- */

/* Boutons « autocollant » : ils s'enfoncent quand on appuie */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.8rem 1.4rem;
  font: 700 1.08rem/1.1 var(--f-display);
  color: var(--ink); text-decoration: none; cursor: pointer;
  background: var(--sun);
  border: var(--stroke) solid var(--ink); border-radius: 999px;
  box-shadow: var(--pop-1);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.btn--wa { background: var(--wa); }
.btn--ghost { background: #fff; }
.btn--lg { padding: 1rem 1.75rem; font-size: 1.2rem; }
.btn--sm { padding: 0.55rem 1.1rem; font-size: 1rem; }

.chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.25rem 0.8rem; font-size: 0.88rem; font-weight: 500;
  background: #fff; border: 2px solid var(--ink); border-radius: 999px;
}
.chip--c { background: var(--c, #fff); }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.link {
  font: 700 1.1rem var(--f-display); text-decoration: underline;
  text-decoration-thickness: 3px; text-underline-offset: 5px;
  text-decoration-color: var(--lilac-d);
}
.link:hover { background: var(--butter); }

/* En-tête */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: var(--stroke) solid var(--ink);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; }
.brand {
  display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none;
  font: 800 1.25rem/0.95 var(--f-display);
}
.brand img { width: 46px; height: 46px; }
.nav { display: flex; align-items: center; gap: 0.2rem; }
.nav a:not(.btn) {
  padding: 0.45rem 0.85rem; border-radius: 999px; border: 2px solid transparent;
  font: 600 1.05rem var(--f-display); text-decoration: none;
}
.nav a:not(.btn):hover { background: var(--lilac); }
.nav a[aria-current="page"] { background: var(--lilac); border-color: var(--ink); }
.nav-cta { margin-left: 0.6rem; }
.nav-toggle {
  display: none; width: 3rem; height: 3rem; padding: 0; cursor: pointer;
  background: var(--sun); border: var(--stroke) solid var(--ink); border-radius: 14px;
  box-shadow: var(--pop-1); place-items: center;
}
.nav-toggle i, .nav-toggle i::before, .nav-toggle i::after {
  display: block; width: 1.3rem; height: 3px; background: var(--ink); border-radius: 3px;
  transition: transform 0.2s, background 0.2s;
}
.nav-toggle i { position: relative; }
.nav-toggle i::before, .nav-toggle i::after { content: ""; position: absolute; left: 0; }
.nav-toggle i::before { top: -7px; }
.nav-toggle i::after { top: 7px; }
.nav-toggle[aria-expanded="true"] i { background: transparent; }
.nav-toggle[aria-expanded="true"] i::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] i::after { transform: translateY(-7px) rotate(-45deg); }

/* Bandes de couleur à bord festonné */
.band { position: relative; padding: 5.5rem 0; background: var(--band-c); }
.band--lilac { --band-c: var(--lilac); }
.band--mint { --band-c: var(--mint); }
.band--rose { --band-c: var(--rose); }
.band--sky { --band-c: var(--sky); }
.band--butter { --band-c: var(--butter); }
.band--plain { --band-c: var(--page); }
.band--scallop::before {
  content: ""; position: absolute; left: 0; right: 0; top: -17px; height: 18px;
  background: radial-gradient(circle at 50% 100%, var(--band-c) 17px, transparent 18px) 0 0 / 36px 18px repeat-x;
}
.section-head { margin-bottom: 3rem; max-width: 46rem; }
.section-head p { font-size: 1.15rem; color: var(--ink-2); }

/* Pied de page */
.site-footer { background: var(--ink); color: #eeeaff; padding: 4rem 0 2rem; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; }
.site-footer h2 { font-size: 1.2rem; color: var(--sun); margin-bottom: 0.8rem; }
.site-footer li { margin-bottom: 0.35rem; }
.site-footer a { text-decoration-color: rgba(255, 255, 255, 0.35); text-underline-offset: 4px; }
.site-footer a:hover { color: var(--sun); }
.site-footer .brand { color: #fff; margin-bottom: 1rem; }
.site-footer .brand img { background: var(--lilac); border-radius: 50%; padding: 4px; }
.footer-note { font-size: 0.95rem; color: #c9c3ee; }
.legal { margin: 3rem 0 0; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.18); font-size: 0.9rem; color: #c9c3ee; max-width: none; }

/* Bouton WhatsApp flottant */
.wa-float {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 60;
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.1rem; font: 700 1.05rem var(--f-display);
  color: var(--ink); text-decoration: none; background: var(--wa);
  border: var(--stroke) solid var(--ink); border-radius: 999px; box-shadow: var(--pop-1);
  transition: transform 0.12s, box-shadow 0.12s;
}
.wa-float:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.wa-float .icon { width: 1.5rem; height: 1.5rem; }

/* 4. Accueil ------------------------------------------------------ */
.hero {
  position: relative; overflow-x: clip; padding: 3.5rem 0 6rem; background-color: var(--lilac);
  background-image: radial-gradient(rgba(37, 34, 90, 0.13) 1.6px, transparent 1.7px);
  background-size: 24px 24px;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3rem; align-items: center; }
.hero h1 { margin-bottom: 0.45em; }
.hero .lead { color: var(--ink); opacity: 0.85; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 1.8rem 0 2rem; }
.trust { display: grid; gap: 0.55rem; }
.trust li { display: flex; align-items: center; gap: 0.7rem; font-weight: 500; }
.trust .icon { width: 2rem; height: 2rem; padding: 0.4rem; background: #fff; border: 2px solid var(--ink); border-radius: 50%; }

/* Plateau de tuiles interactives */
.board { position: relative; padding: 0 0 3.8rem 1.2rem; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.tile {
  position: relative; display: grid; place-items: center; aspect-ratio: 1;
  padding: 0; cursor: pointer; font: inherit; color: var(--ink);
  background: var(--c); border: var(--stroke) solid var(--ink); border-radius: 26px;
  box-shadow: var(--pop-2);
  transform: rotate(var(--rot, 0deg));
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.tile:hover { transform: rotate(0deg) translate(-2px, -3px); box-shadow: 9px 10px 0 var(--ink); }
.tile:active { transform: rotate(0deg) translate(4px, 5px); box-shadow: 1px 1px 0 var(--ink); }
.tile-face {
  grid-area: 1 / 1; font: 800 clamp(3rem, 7vw, 5rem)/1 var(--f-display);
  transition: opacity 0.2s, transform 0.25s;
}
.tile-face--ar { font-family: var(--f-ar); }
.tile-back { opacity: 0; transform: scale(0.6) rotate(-8deg); font-size: clamp(1.7rem, 4vw, 2.7rem); }
.tile.is-said .tile-front { opacity: 0; transform: scale(0.6) rotate(8deg); }
.tile.is-said .tile-back { opacity: 1; transform: none; }
.tile-name {
  position: absolute; left: 0.7rem; bottom: 0.7rem;
  padding: 0.1rem 0.7rem; font: 700 0.95rem var(--f-display);
  background: #fff; border: 2px solid var(--ink); border-radius: 999px;
}
.board-hint { margin: 1.4rem 0 0 0.4rem; max-width: 58%; font-size: 0.95rem; font-weight: 500; }
.owl {
  position: absolute; right: 0; bottom: -0.4rem; width: clamp(100px, 15vw, 140px);
  transform-origin: 50% 100%; pointer-events: none;
}
.owl--wiggle { animation: wiggle 0.6s ease; }
@keyframes wiggle {
  0%, 100% { transform: rotate(0); } 20% { transform: rotate(-9deg); }
  45% { transform: rotate(7deg); } 70% { transform: rotate(-4deg); }
}
/* Seule animation jouée au chargement : les tuiles tombent une à une */
.hero .tile { animation: drop 0.7s cubic-bezier(0.3, 1.35, 0.5, 1) both; animation-delay: calc(var(--i) * 110ms + 100ms); }
@keyframes drop { from { opacity: 0; translate: 0 -40px; } to { opacity: 1; translate: 0 0; } }

/* Les quatre matières */
.subjects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.4rem; padding-bottom: 2.5rem; }
.subject {
  display: grid; gap: 0.9rem; align-content: start; padding: 1.1rem 1.1rem 1.6rem;
  background: var(--c); border: var(--stroke) solid var(--ink); border-radius: var(--r-l);
  box-shadow: var(--pop-2);
}
.subject:nth-child(even) { transform: translateY(2.2rem); }
.subject-art {
  position: relative; overflow: hidden; border: var(--stroke) solid var(--ink);
  border-radius: var(--r-m); background: #fff;
}
.subject-art img { width: 100%; height: auto; }
.sticker {
  position: absolute; right: 0.8rem; top: 0.8rem; z-index: 2;
  display: grid; place-items: center; min-width: 3.6rem; height: 3.6rem; padding: 0 0.7rem;
  font: 800 1.7rem/1 var(--f-display); background: #fff;
  border: var(--stroke) solid var(--ink); border-radius: 50%; transform: rotate(-9deg);
}
.sticker.ar { font-family: var(--f-ar); font-size: 2rem; }
.subject h3 { margin: 0.4rem 0.4rem 0; font-size: 1.9rem; }
.subject p { margin: 0 0.4rem; }
.subject .tags, .subject .link { margin: 0 0.4rem; }
.subject .link { justify-self: start; }

/* Raisons de nous faire confiance : liste, pas cartes */
.why { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 4rem; align-items: start; }
.why-head { position: sticky; top: 7rem; }
.reasons li { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; padding: 1.6rem 0; border-bottom: 2.5px dashed var(--ink); }
.reasons li:first-child { padding-top: 0; }
.reasons li:last-child { border-bottom: 0; }
.reasons .dot {
  display: grid; place-items: center; width: 3.6rem; height: 3.6rem;
  background: var(--c); border: var(--stroke) solid var(--ink); border-radius: 50%;
  box-shadow: var(--pop-1);
}
.reasons .dot .icon { width: 1.7rem; height: 1.7rem; }
.reasons h3 { font-size: 1.4rem; margin-bottom: 0.2rem; }
.reasons p { margin: 0; color: var(--ink-2); }

/* Défi de calcul mental */
.defi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.panel {
  background: #fff; border: var(--stroke) solid var(--ink); border-radius: var(--r-l);
  box-shadow: var(--pop-2); padding: 1.6rem;
}
.defi-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem; font-weight: 500; font-size: 0.95rem; }
.defi-top b { font: 800 1.2rem var(--f-display); }
.levels { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 0.5rem; padding: 0; border: 0; }
.level {
  padding: 0.3rem 0.9rem; font: 600 0.95rem var(--f-display); cursor: pointer;
  background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: 999px;
}
.level[aria-pressed="true"] { background: var(--butter); box-shadow: 2px 2px 0 var(--ink); }
.defi-q { margin: 1rem 0; text-align: center; font: 800 clamp(2.6rem, 6vw, 3.8rem)/1.1 var(--f-display); max-width: none; }
.defi-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.opt {
  padding: 0.9rem 0.4rem; font: 800 1.7rem var(--f-display); cursor: pointer; color: var(--ink);
  background: var(--sky); border: var(--stroke) solid var(--ink); border-radius: var(--r-m);
  box-shadow: var(--pop-1); transition: transform 0.1s, box-shadow 0.1s;
}
.opt:hover:not(:disabled) { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.opt:active:not(:disabled) { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.opt.is-right { background: var(--mint); animation: wiggle 0.5s; }
.opt.is-wrong { background: var(--rose); opacity: 0.6; }
.opt:disabled { cursor: default; }
.defi-msg { min-height: 1.8em; margin: 1rem 0 0; text-align: center; font: 700 1.2rem var(--f-display); max-width: none; }

/* Déroulé d'un cours en 4 temps (c'est bien une suite : numérotation utile) */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding-top: 1.4rem; }
.step {
  position: relative; padding: 2rem 1.3rem 1.4rem; background: #fff;
  border: var(--stroke) solid var(--ink); border-radius: var(--r-m);
}
.step-n {
  position: absolute; top: -1.4rem; left: 1.1rem; display: grid; place-items: center;
  width: 2.9rem; height: 2.9rem; font: 800 1.4rem var(--f-display);
  background: var(--c); border: var(--stroke) solid var(--ink); border-radius: 50%;
}
.step h3 { font-size: 1.35rem; margin-bottom: 0.15rem; }
.step small { display: block; margin-bottom: 0.6rem; font-weight: 500; color: var(--ink-2); }
.step p { margin: 0; font-size: 0.98rem; }

/* Témoignages : bulles de BD */
.quotes-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.arrows { display: flex; gap: 0.6rem; }
.arrow {
  display: grid; place-items: center; width: 3.1rem; height: 3.1rem; padding: 0; cursor: pointer;
  background: #fff; color: var(--ink); border: var(--stroke) solid var(--ink); border-radius: 50%;
  box-shadow: var(--pop-1);
}
.arrow:active { transform: translate(3px, 3px); box-shadow: none; }
.arrow--prev .icon { transform: scaleX(-1); }
.quotes {
  display: flex; gap: 1.6rem; overflow-x: auto; padding: 0.4rem 0.4rem 2.4rem;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.quotes::-webkit-scrollbar { display: none; }
.quote { flex: 0 0 min(23rem, 84%); scroll-snap-align: start; margin: 0; }
.quote blockquote {
  position: relative; margin: 0 0 1.6rem; padding: 1.5rem 1.5rem 1.6rem;
  font: 600 1.3rem/1.35 var(--f-display); background: #fff;
  border: var(--stroke) solid var(--ink); border-radius: var(--r-m); box-shadow: var(--pop-1);
}
.quote blockquote::after {
  content: ""; position: absolute; left: 2rem; bottom: -1.05rem; width: 1.6rem; height: 1.6rem;
  background: #fff; border-right: var(--stroke) solid var(--ink); border-bottom: var(--stroke) solid var(--ink);
  transform: rotate(45deg) skew(8deg, 8deg);
}
.quote figcaption { margin-left: 1rem; font-size: 0.95rem; font-weight: 500; }
.sample-note { margin: 0; font-size: 0.9rem; font-weight: 500; color: var(--ink-2); }

/* Bande d'appel final */
.cta-band { text-align: center; }
.cta-band .wrap { display: grid; justify-items: center; }
.cta-band p { font-size: 1.2rem; }
.slots { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem; margin: 0.5rem 0 2rem; }

/* 5. Pages intérieures ------------------------------------------- */
.page-hero { position: relative; padding: 3.5rem 0 5.5rem; background: var(--band-c); }
.page-hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 3rem; align-items: center; }
.page-hero h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); }
.page-hero .lead { color: var(--ink); opacity: 0.85; }
.hero-figure {
  border: var(--stroke) solid var(--ink); border-radius: var(--r-l); box-shadow: var(--pop-2);
  overflow: hidden; background: #fff; transform: rotate(2deg);
}
.hero-figure img { width: 100%; height: auto; }

/* Formatrice */
.about { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 4rem; align-items: start; }
.about-photo { position: sticky; top: 7rem; }
.photo-note { margin: 0.8rem 0 0; font-size: 0.9rem; color: var(--ink-2); }
.bigquote {
  margin: 2rem 0; padding: 1.6rem 1.8rem; font: 700 1.6rem/1.3 var(--f-display);
  background: var(--butter); border: var(--stroke) solid var(--ink); border-radius: var(--r-m);
  box-shadow: var(--pop-1);
}
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.value { padding: 1.5rem; background: var(--c); border: var(--stroke) solid var(--ink); border-radius: var(--r-m); }
.value:nth-child(2) { border-radius: 40px 14px 40px 14px; }
.value:nth-child(3) { border-radius: 14px 40px 14px 40px; }
.value h3 { font-size: 1.4rem; }
.value p { margin: 0; }
.path { margin: 1.5rem 0 0 0.9rem; padding-left: 2rem; border-left: 3px dashed var(--ink); }
.path li { position: relative; padding-bottom: 1.8rem; }
.path li::before {
  content: ""; position: absolute; left: -2.85rem; top: 0.35rem; width: 1.2rem; height: 1.2rem;
  background: var(--c, var(--sun)); border: var(--stroke) solid var(--ink); border-radius: 50%;
}
.path h3 { font-size: 1.3rem; margin-bottom: 0.1rem; }
.path p { margin: 0; color: var(--ink-2); }

/* Cours */
.course { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; padding: 3rem 0; }
.course:nth-of-type(even) .course-art { order: -1; }
.course-art {
  position: relative; background: var(--c); border: var(--stroke) solid var(--ink);
  border-radius: var(--r-l); box-shadow: var(--pop-2); padding: 1rem;
}
.course-art .subject-art { border-radius: var(--r-m); }
.course h2 { margin-bottom: 0.3em; }
.checks { display: grid; gap: 0.6rem; margin: 1.2rem 0; }
.checks li { display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; align-items: start; }
.checks .icon { width: 1.55rem; height: 1.55rem; padding: 0.25rem; margin-top: 0.1rem; background: var(--c); border: 2px solid var(--ink); border-radius: 50%; }
.who { margin: 1.2rem 0 1.6rem; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; font-weight: 500; }

.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.6rem; }
.filter {
  padding: 0.45rem 1.1rem; font: 700 1.02rem var(--f-display); cursor: pointer; color: var(--ink);
  background: #fff; border: var(--stroke) solid var(--ink); border-radius: 999px;
}
.filter[aria-pressed="true"] { background: var(--c, var(--sun)); box-shadow: var(--pop-1); }
.table-wrap { overflow-x: auto; background: #fff; border: var(--stroke) solid var(--ink); border-radius: var(--r-m); box-shadow: var(--pop-2); }
.schedule { width: 100%; min-width: 36rem; border-collapse: collapse; }
.schedule th, .schedule td { padding: 0.85rem 1.1rem; text-align: left; border-bottom: 2px dashed rgba(37, 34, 90, 0.3); }
.schedule thead th { font: 700 1.05rem var(--f-display); background: var(--butter); border-bottom: var(--stroke) solid var(--ink); }
.schedule tbody tr:last-child td { border-bottom: 0; }
.schedule td:first-child { font-weight: 600; }
.schedule [hidden] { display: none; }
.table-note { margin-top: 1.2rem; font-size: 0.95rem; color: var(--ink-2); }

/* Méthodes */
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.8rem; }
.principle {
  display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; padding: 1.6rem;
  background: #fff; border: var(--stroke) solid var(--ink); border-radius: var(--r-l);
}
.principle .dot { display: grid; place-items: center; width: 3.6rem; height: 3.6rem; background: var(--c); border: var(--stroke) solid var(--ink); border-radius: 50%; }
.principle .dot .icon { width: 1.7rem; height: 1.7rem; }
.principle h3 { font-size: 1.4rem; margin-bottom: 0.2rem; }
.principle p { margin: 0; color: var(--ink-2); }

.tabs-grid { display: grid; gap: 1.6rem; }
.tablist { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.tab {
  padding: 0.55rem 1.3rem; font: 700 1.1rem var(--f-display); cursor: pointer; color: var(--ink);
  background: #fff; border: var(--stroke) solid var(--ink); border-radius: 999px;
}
.tab[aria-selected="true"] { background: var(--c); box-shadow: var(--pop-1); }
.tabpanel { padding: 1.8rem; background: var(--c); border: var(--stroke) solid var(--ink); border-radius: var(--r-l); box-shadow: var(--pop-2); }
.tabpanel[hidden] { display: none; }
.tabpanel h3 { margin-bottom: 0.6rem; }
.stages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1.2rem; }
.stage { padding: 1rem 1.1rem; background: #fff; border: 2px solid var(--ink); border-radius: var(--r-s); }
.stage b { display: block; font: 800 1.15rem var(--f-display); }
.stage span { font-size: 0.95rem; color: var(--ink-2); }

.notebook-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.notebook {
  padding: 1.6rem 1.6rem 1.4rem 2.4rem; background: #fff; border: var(--stroke) solid var(--ink);
  border-radius: 14px 30px 30px 14px; box-shadow: var(--pop-2); transform: rotate(-1.5deg);
  background-image: repeating-linear-gradient(transparent 0 33px, rgba(91, 71, 199, 0.18) 33px 35px);
  position: relative;
}
.notebook::before { content: ""; position: absolute; left: 0.9rem; top: 1rem; bottom: 1rem; width: 0; border-left: 3px dotted var(--ink); opacity: 0.4; }
.notebook h3 { font-size: 1.3rem; }
.skill { display: grid; grid-template-columns: 7.5rem 1fr; align-items: center; gap: 0.8rem; margin: 0.5rem 0; font-weight: 500; }
.stars { display: flex; gap: 0.2rem; }
.stars .icon { width: 1.4rem; height: 1.4rem; fill: var(--sun); stroke: var(--ink); stroke-width: 1.8; }
.stars .off { fill: #fff; opacity: 0.8; }
.notebook .word { margin: 1rem 0 0; padding: 0.7rem 1rem; background: var(--butter); border: 2px solid var(--ink); border-radius: var(--r-s); font-size: 0.97rem; }
.avoid { display: grid; gap: 0.7rem; margin-top: 1.4rem; }
.avoid li { display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; align-items: start; }
.avoid .icon { width: 1.5rem; height: 1.5rem; padding: 0.2rem; background: var(--rose); border: 2px solid var(--ink); border-radius: 50%; }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1.4rem; }
.shot { position: relative; margin: 0; }
.shot--wide { grid-column: span 2; }
.shot[hidden] { display: none; }
.shot button {
  position: relative; display: block; width: 100%; padding: 0; overflow: hidden; cursor: zoom-in;
  background: #fff; border: var(--stroke) solid var(--ink); border-radius: var(--r-m); box-shadow: var(--pop-1);
  transition: transform 0.15s, box-shadow 0.15s;
}
.shot button:hover { transform: translate(-2px, -3px) rotate(-0.6deg); box-shadow: 6px 7px 0 var(--ink); }
.shot img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.shot--wide img { aspect-ratio: 8 / 3.9; }
.shot figcaption {
  position: absolute; left: 0.7rem; bottom: 0.7rem; right: 0.7rem; pointer-events: none;
  display: inline-block; width: fit-content; max-width: calc(100% - 1.4rem);
  padding: 0.15rem 0.8rem; font: 700 0.95rem var(--f-display); background: #fff;
  border: 2px solid var(--ink); border-radius: 999px;
}
.lightbox { width: min(56rem, 94vw); padding: 1rem; background: var(--page); border: var(--stroke) solid var(--ink); border-radius: var(--r-l); box-shadow: var(--pop-2); }
.lightbox::backdrop { background: rgba(37, 34, 90, 0.65); }
.lightbox img { width: 100%; height: auto; border: var(--stroke) solid var(--ink); border-radius: var(--r-m); }
.lightbox-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 0.9rem; }
.lightbox-bar p { margin: 0; font: 700 1.2rem var(--f-display); }
.notice {
  display: grid; grid-template-columns: auto 1fr; gap: 0.9rem; align-items: start; margin-bottom: 2rem;
  padding: 1rem 1.3rem; font-size: 0.97rem; background: var(--butter);
  border: var(--stroke) solid var(--ink); border-radius: var(--r-m);
}
.notice .icon { margin-top: 0.15rem; }
.notice p { margin: 0; max-width: none; }

/* Tarifs */
.switch { display: inline-flex; padding: 0.3rem; gap: 0.3rem; background: #fff; border: var(--stroke) solid var(--ink); border-radius: 999px; margin-bottom: 2.4rem; }
.switch button { padding: 0.45rem 1.3rem; font: 700 1.05rem var(--f-display); cursor: pointer; color: var(--ink); background: transparent; border: 0; border-radius: 999px; }
.switch button[aria-pressed="true"] { background: var(--sun); box-shadow: inset 0 0 0 2px var(--ink); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; align-items: start; }
.plan {
  position: relative; padding: 1.8rem; background: var(--c); border: var(--stroke) solid var(--ink);
  border-radius: var(--r-l); box-shadow: var(--pop-2);
}
.plan::before { /* perforation façon ticket */
  content: ""; position: absolute; left: 1.2rem; right: 1.2rem; top: 8.6rem; border-top: 2.5px dashed var(--ink); opacity: 0.55;
}
.plan--best { transform: translateY(-0.8rem); }
.plan-flag {
  position: absolute; top: -1.05rem; right: 1.4rem; padding: 0.15rem 0.9rem;
  font: 700 0.95rem var(--f-display); background: var(--sun); border: var(--stroke) solid var(--ink); border-radius: 999px; transform: rotate(3deg);
}
.plan h3 { font-size: 1.5rem; margin-bottom: 0.2rem; }
.plan-for { min-height: 3.2em; margin: 0 0 0.6rem; font-size: 0.97rem; }
.price { margin: 1.6rem 0 1.4rem; font: 800 3.4rem/1 var(--f-display); }
.price small { font: 500 1rem var(--f-body); }
.pricing [data-when] { display: none; }
.pricing[data-mode="session"] [data-when="session"], .pricing[data-mode="month"] [data-when="month"] { display: inline; }
.plan .checks { margin-bottom: 1.6rem; }
.plan .btn { width: 100%; }
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 3.5rem; }
.perk { padding: 1.2rem 1.4rem; background: #fff; border: var(--stroke) solid var(--ink); border-radius: var(--r-m); }
.perk b { font: 800 1.2rem var(--f-display); display: block; }
.perk p { margin: 0.2rem 0 0; font-size: 0.97rem; color: var(--ink-2); }

/* Contact & inscription */
.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 3.5rem; align-items: start; }
.contact-cards { display: grid; gap: 1.1rem; position: sticky; top: 7rem; }
.contact-card {
  display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: center; padding: 1rem 1.2rem;
  background: var(--c, #fff); border: var(--stroke) solid var(--ink); border-radius: var(--r-m);
  text-decoration: none;
}
a.contact-card { box-shadow: var(--pop-1); transition: transform 0.12s, box-shadow 0.12s; }
a.contact-card:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.contact-card .dot { display: grid; place-items: center; width: 3rem; height: 3rem; background: #fff; border: 2px solid var(--ink); border-radius: 50%; }
.contact-card b { display: block; font: 700 1.15rem var(--f-display); line-height: 1.2; }
.contact-card span { font-size: 0.95rem; }
.hours { margin: 0.4rem 0 0; font-size: 0.95rem; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.15rem 0; border-bottom: 1.5px dashed rgba(37, 34, 90, 0.3); }

.form { display: grid; gap: 1.5rem; }
.form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.form legend { padding: 0; margin-bottom: 0.7rem; font: 700 1.25rem var(--f-display); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 500; font-size: 0.97rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.8rem 1rem; font: inherit; color: var(--ink);
  background: #fff; border: var(--stroke) solid var(--ink); border-radius: 14px;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: 4px 4px 0 var(--lilac-d); }
.field [aria-invalid="true"] { border-color: var(--rose-d); background: #fff6fa; }
.error { min-height: 1.2em; margin: 0; font-size: 0.9rem; font-weight: 600; color: var(--rose-d); }
.choices { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.55rem 1.2rem;
  font: 700 1.05rem var(--f-display); background: #fff; border: var(--stroke) solid var(--ink); border-radius: 999px;
}
.choice input:checked + span { background: var(--c, var(--sun)); box-shadow: var(--pop-1); }
.choice input:focus-visible + span { outline: 3px solid var(--lilac-d); outline-offset: 3px; }
.consent { display: grid; grid-template-columns: auto 1fr; gap: 0.8rem; align-items: start; font-size: 0.95rem; }
.consent input { width: 1.5rem; height: 1.5rem; margin: 0.15rem 0 0; accent-color: var(--lilac-d); }
.trap { position: absolute; left: -9999px; }
.form-result { padding: 1.6rem; text-align: center; background: var(--mint); border: var(--stroke) solid var(--ink); border-radius: var(--r-l); box-shadow: var(--pop-2); }
.form-result[hidden] { display: none; }
.form-result p { margin-inline: auto; }
.form-alt { margin: 0; font-size: 0.95rem; }

.faq { display: grid; gap: 1rem; max-width: 52rem; }
.faq details { background: #fff; border: var(--stroke) solid var(--ink); border-radius: var(--r-m); }
.faq summary {
  position: relative; padding: 1.1rem 3.6rem 1.1rem 1.4rem; font: 700 1.25rem var(--f-display);
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 1rem; top: 50%; translate: 0 -50%;
  display: grid; place-items: center; width: 2rem; height: 2rem; font-size: 1.5rem; line-height: 1;
  background: var(--sun); border: 2px solid var(--ink); border-radius: 50%; transition: rotate 0.2s;
}
.faq details[open] summary::after { rotate: 45deg; }
.faq details[open] { background: var(--butter); }
.faq details p { padding: 0 1.4rem 1.2rem; margin: 0; }

/* Page 404 */
.lost { text-align: center; padding: 5rem 0; }
.lost .owl-lost { width: 180px; margin: 0 auto 1.5rem; }
.lost p { margin-inline: auto; }

/* 6. Responsive & accessibilité ---------------------------------- */
@media (max-width: 1020px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 30rem; margin-inline: auto; }
  .plan--best { transform: none; }
  .plan::before { top: 8.6rem; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 2.6rem; }
  .stages { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .nav-toggle { display: grid; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0.3rem;
    padding: 1rem 1.25rem 1.4rem; background: var(--page); border-bottom: var(--stroke) solid var(--ink);
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .nav a:not(.btn) { padding: 0.7rem 1rem; }
  .nav-cta { margin: 0.6rem 0 0; justify-content: center; }
  .band { padding: 4rem 0; }
  .hero { padding-bottom: 4.5rem; }
  .hero-grid, .why, .defi-grid, .page-hero-grid, .about, .course, .notebook-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .board { max-width: 30rem; }
  .why-head, .about-photo, .contact-cards { position: static; }
  .about-photo { max-width: 22rem; }
  .course { padding: 1.5rem 0; }
  .course:nth-of-type(even) .course-art { order: 0; }
  .subjects { grid-template-columns: 1fr; gap: 1.8rem; padding-bottom: 0; }
  .subject:nth-child(even) { transform: none; }
  .principles, .perks { grid-template-columns: 1fr; }
  .hero-figure { max-width: 22rem; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .steps, .stages, .row { grid-template-columns: 1fr; }
  .defi-opts { gap: 0.5rem; }
  .shot--wide { grid-column: auto; }
  .shot--wide img { aspect-ratio: 4 / 3; }
  .wa-float span { display: none; }
  .wa-float { padding: 0.8rem; }
  .skill { grid-template-columns: 1fr; gap: 0.1rem; }
  .brand { font-size: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}
