/* ==========================================================================
   Accueil v2 · direction « Affiche »  (public/accueil-v2.php)
   Préfixe de classes .h2-*, variables --h2-*. Construit sur les tokens de
   styles.css (--paper, --ink, --card) ; le teal reste la couleur de marque.
   ========================================================================== */

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/poppins-latin-700.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/poppins-latin-800.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-var.woff2") format("woff2");
}

/* ------------------------------------------------------------ tokens */

.h2-page, .h2h, .h2f, .h2h-skip {
  --h2-paper: var(--paper, #F7F5F2);
  --h2-ink: var(--ink, #0A0A0A);
  --h2-card: var(--card, #FFFFFF);
  --h2-night: #0A0A0A;
  --h2-teal: #19B4B4;
  --h2-teal-ink: #0B6E6E;           /* teal lisible en texte sur papier (5,5:1) */
  --h2-star: #61E6FF;
  --h2-muted: color-mix(in srgb, var(--h2-ink) 68%, var(--h2-paper));
  --h2-line: color-mix(in srgb, var(--h2-ink) 15%, transparent);
  --h2-field: color-mix(in srgb, var(--h2-ink) 32%, transparent);

  --h2-ff-display: "Poppins", "Segoe UI", system-ui, sans-serif;
  --h2-ff-text: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;

  --h2-s2: 8px;
  --h2-s3: 12px;
  --h2-s4: 16px;
  --h2-s5: 24px;
  --h2-s6: 32px;
  --h2-s7: 48px;
  --h2-s8: 72px;
  --h2-radius: 6px;
  --h2-gutter: clamp(16px, 4vw, 32px);
  --h2-section: clamp(56px, 7vw, 96px);

  /* système de motion (DESIGN.md, section Motion) : transform et opacity seulement */
  --h2-ease-out: cubic-bezier(.16, 1, .3, 1);       /* entrées, sorties, retours */
  --h2-ease-in-out: cubic-bezier(.77, 0, .175, 1);  /* déplacement à l'écran */
  --h2-dur-press: 160ms;                            /* :active */
  --h2-dur-ui: 200ms;                               /* survols, menu, fondus */
  --h2-press-scale: .97;

  font-family: var(--h2-ff-text);
  color: var(--h2-ink);
  background: var(--h2-paper);
  caret-color: var(--h2-teal-ink);
}

:root.dark :is(.h2-page, .h2h, .h2f) { --h2-teal-ink: #4FD8D8; }
@media (prefers-color-scheme: dark) {
  :root:not(.light) :is(.h2-page, .h2h, .h2f) { --h2-teal-ink: #4FD8D8; }
}

.h2-page ::selection { background: var(--h2-teal); color: #0A0A0A; }
.h2-page :focus-visible { outline: 3px solid var(--h2-teal-ink); outline-offset: 3px; border-radius: 2px; }

.h2-wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--h2-gutter);
}

.h2-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ------------------------------------------------------------ texte commun */

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

.h2-title {
  font: 800 clamp(2rem, 1.35rem + 2.6vw, 3.4rem)/1 var(--h2-ff-display);
  letter-spacing: -.035em;
  text-wrap: balance;
}
.h2-subtitle {
  font: 800 clamp(1.45rem, 1.15rem + 1.2vw, 2.1rem)/1.05 var(--h2-ff-display);
  letter-spacing: -.025em;
  text-wrap: balance;
}
.h2-lede {
  max-width: 56ch;
  color: var(--h2-muted);
  font-size: 1.06rem;
  line-height: 1.6;
}

.h2-facts .h2-cat {
  display: inline-flex;
  align-items: center;
  gap: var(--h2-s2);
  color: var(--h2-ink);
  font-weight: 600;
}
.h2-dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cat, var(--h2-teal));
}

.h2-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 18px;
  color: var(--h2-muted);
  font-size: .95rem;
  line-height: 1.5;
  font-variant-numeric: lining-nums;
}
.h2-facts > span { white-space: nowrap; }
.h2-price { color: var(--h2-ink); font-weight: 700; }
.h2-flag {
  color: #B42318;
  font-weight: 700;
}
:root.dark .h2-flag { color: #FF8A80; }
@media (prefers-color-scheme: dark) { :root:not(.light) .h2-flag { color: #FF8A80; } }

.h2-arrow-link,
.h2-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--h2-teal-ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
}
.h2-arrow-link::after,
.h2-links a::after {
  content: "";
  flex: none;
  width: 1em;
  height: 1em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27%3E%3Cpath d=%27M2 8h11M9 4l4 4-4 4%27 fill=%27none%27 stroke=%27%23000%27 stroke-width=%271.8%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27%3E%3Cpath d=%27M2 8h11M9 4l4 4-4 4%27 fill=%27none%27 stroke=%27%23000%27 stroke-width=%271.8%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform var(--h2-dur-ui) var(--h2-ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .h2-arrow-link:hover::after,
  .h2-links a:hover::after { transform: translateX(3px); }
}

/* ------------------------------------------------------------ boutons */

.h2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 2px solid transparent;
  border-radius: var(--h2-radius);
  font: 700 1rem/1.1 var(--h2-ff-display);
  letter-spacing: .005em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--h2-dur-press) var(--h2-ease-out), background-color var(--h2-dur-press) ease,
              border-color var(--h2-dur-press) ease, color var(--h2-dur-press) ease;
}
.h2-btn:hover { text-decoration: none; }
/* retour de pression : le bouton confirme qu'il a entendu le clic (pas sur un bouton inactif) */
.h2-btn:not(.is-disabled):not([disabled]):active { transform: scale(var(--h2-press-scale)); }
.h2-btn--primary { background: var(--h2-teal); color: #0A0A0A; }
.h2-btn--primary:active { background: #149C9C; }
.h2-btn--ghost { border-color: currentColor; color: var(--h2-ink); background: transparent; }
@media (hover: hover) and (pointer: fine) {
  .h2-btn--primary:hover { background: #3CC8C8; }
  .h2-btn--ghost:hover { background: var(--h2-line); }
}
.h2-btn--lg { min-height: 54px; padding: 0 28px; font-size: 1.05rem; }
.h2-btn.is-disabled {
  background: var(--h2-line);
  color: var(--h2-muted);
  cursor: not-allowed;
}
.h2-btn[disabled] { opacity: .7; cursor: progress; }

/* ------------------------------------------------------------ hero : l'affiche */

.h2-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template: 1fr / 1fr;
  min-height: clamp(540px, calc(100svh - 70px - 104px), 820px);  /* laisse le talon visible sous la ligne de flottaison */
  background: var(--h2-night);
  color: #FFFFFF;
}
.h2-hero__media {
  grid-area: 1 / 1;
  position: relative;
  display: block;
  z-index: -1;
  min-height: 0;
  overflow: hidden;
}
/* L'image remplit la zone sans imposer sa hauteur naturelle à la grille. */
.h2-hero__media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 24%;
}
/* Voile encre : dense sur le feuillage où se pose le titre, nul sur les visages. */
.h2-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    /* voile prolongé (variante desktop B) : l'accroche et « Nous écrire » ne passent plus
       sous 4,5:1 sur les sweats blancs de la première rangée */
    linear-gradient(180deg, rgb(10 10 10 / .86) 0%, rgb(10 10 10 / .74) 34%, rgb(10 10 10 / .38) 50%, rgb(10 10 10 / 0) 62%),
    linear-gradient(0deg, rgb(10 10 10 / .4) 0%, rgb(10 10 10 / 0) 18%);
}

.h2-hero__inner {
  grid-area: 1 / 1;
  align-self: start;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: var(--h2-s5);
  padding-top: clamp(28px, 4.5vh, 56px);
  padding-bottom: 120px;
}

.h2-hero__title {
  font: 800 clamp(3rem, 1.2rem + 5.4vw, 6rem)/.9 var(--h2-ff-display);
  letter-spacing: -.04em;
  text-shadow: 0 2px 24px rgb(0 0 0 / .25);
}
.h2-line {
  display: block;
  overflow: hidden;
  padding-bottom: .07em;
  margin-bottom: -.07em;
}
.h2-line > span { display: inline-block; }
.h2-star {
  width: .78em;
  height: .78em;
  margin-right: .1em;
  vertical-align: -.02em;
  overflow: visible;
}
.h2-star path {
  fill: var(--h2-star);
  stroke: var(--h2-star);
  stroke-width: 2.5;
  stroke-linejoin: round;
}

.h2-hero__caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--h2-s4) var(--h2-s6);
}
.h2-hero__sub {
  color: #FFFFFF;
  font: 700 clamp(1.05rem, .95rem + .45vw, 1.3rem)/1.35 var(--h2-ff-display);
  letter-spacing: -.005em;
  text-shadow: 0 1px 12px rgb(0 0 0 / .4);
}
.h2-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--h2-s3) var(--h2-s5);
}
.h2-hero__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #FFFFFF;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
}
.h2-hero__link:hover { color: var(--h2-star); }
.h2-hero :focus-visible { outline-color: var(--h2-star); }

/* ------------------------------------------------------------ talon « prochaine activité » */

.h2-stub-wrap {
  position: relative;
  z-index: 2;
  margin-top: -84px;
  filter: drop-shadow(0 22px 28px rgb(10 10 10 / .22)) drop-shadow(0 2px 4px rgb(10 10 10 / .1));
}
.h2-stub {
  --nx: 152px;                       /* position de la perforation */
  --notch: radial-gradient(circle at var(--nx) 0, #0000 11px, #000 11.5px) top / 100% 51% no-repeat,
           radial-gradient(circle at var(--nx) 100%, #0000 11px, #000 11.5px) bottom / 100% 51% no-repeat;
  position: relative;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  grid-template-areas: "date body cta";
  align-items: center;
  column-gap: 40px;
  max-width: 1000px;
  padding: 26px 32px 26px 24px;
  border-radius: var(--h2-radius);
  background: var(--h2-card);
  -webkit-mask: var(--notch);
  mask: var(--notch);
}
.h2-stub::before {
  content: "";
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: var(--nx);
  border-left: 2px dashed var(--h2-line);
}
.h2-stub__date {
  grid-area: date;
  display: grid;
  justify-items: start;
  font-family: var(--h2-ff-display);
}
.h2-stub__date .h2-day {
  font-size: 3.6rem;
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.04em;
  font-variant-numeric: lining-nums tabular-nums;
}
.h2-stub__date .h2-mon {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.h2-stub__body { grid-area: body; min-width: 0; }
.h2-stub__title {
  margin-bottom: 6px;
  font: 700 clamp(1.35rem, 1.1rem + 1vw, 1.9rem)/1.15 var(--h2-ff-display);
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}
.h2-stub__cta { grid-area: cta; }
.h2-stub.is-soldout .h2-stub__title { color: var(--h2-muted); }

/* ------------------------------------------------------------ sections */

.h2-section { padding-block: var(--h2-section); }
.h2-agenda { padding-top: var(--h2-s8); }

.h2-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: var(--h2-s3) var(--h2-s6);
  margin-bottom: var(--h2-s6);
}
.h2-head .h2-lede { grid-column: 1; }
.h2-head .h2-arrow-link { grid-column: 2; grid-row: 1 / span 2; }

.h2-empty {
  max-width: 60ch;
  padding: var(--h2-s5) 0;
  border-top: 2px solid var(--h2-ink);
  font-size: 1.08rem;
  line-height: 1.6;
}
.h2-empty a { color: var(--h2-teal-ink); font-weight: 700; }

/* ------------------------------------------------------------ agenda en rangées */

.h2-rows {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--h2-ink);
}
.h2-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 200px 11rem;
  grid-template-areas: "date main img cta";
  align-items: start;
  gap: var(--h2-s3) var(--h2-s6);
  padding: 28px 0;
  border-bottom: 1px solid var(--h2-line);
}
.h2-row.no-img { grid-template-areas: "date main main cta"; }
/* rangée entièrement cliquable : le lien du titre couvre la rangée,
   « Lire la suite » et le bouton restent au-dessus (D4) */
.h2-row.is-linked { position: relative; }
.h2-row__link { color: inherit; text-decoration: none; }
.h2-row__link::after { content: ""; position: absolute; inset: 0; }
.h2-row.is-linked .h2-desc,
.h2-row.is-linked .h2-row__cta { position: relative; z-index: 1; }
.h2-row__link:focus-visible { outline: none; }
.h2-row.is-linked:has(.h2-row__link:focus-visible) { outline: 3px solid var(--h2-teal-ink); outline-offset: 4px; border-radius: 2px; }
.h2-row__arrow {
  display: inline-block;
  width: .8em;
  height: .8em;
  margin-left: .35em;
  vertical-align: -.04em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27%3E%3Cpath d=%27M2 8h11M9 4l4 4-4 4%27 fill=%27none%27 stroke=%27%23000%27 stroke-width=%271.8%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27%3E%3Cpath d=%27M2 8h11M9 4l4 4-4 4%27 fill=%27none%27 stroke=%27%23000%27 stroke-width=%271.8%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E") center / contain no-repeat;
  color: var(--h2-teal-ink);
  transition: transform var(--h2-dur-ui) var(--h2-ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .h2-row.is-linked:hover .h2-row__title { color: var(--h2-teal-ink); }
  .h2-row.is-linked:hover .h2-row__arrow { transform: translateX(6px); }
  .h2-row.is-linked:hover .h2-row__img { transform: translateY(-4px); }
}
.h2-row__date {
  grid-area: date;
  display: grid;
  justify-items: start;
  font-family: var(--h2-ff-display);
}
.h2-row__date .h2-day {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: .88;
  letter-spacing: -.045em;
  font-variant-numeric: lining-nums tabular-nums;
}
.h2-row__date .h2-mon { font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.h2-row__main { grid-area: main; min-width: 0; }
.h2-row__title {
  margin: 2px 0 8px;
  font: 700 clamp(1.2rem, 1.05rem + .6vw, 1.5rem)/1.2 var(--h2-ff-display);
  letter-spacing: -.015em;
  overflow-wrap: anywhere;
}
.h2-row__img {
  grid-area: img;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 0;            /* les affiches portent souvent leur texte en haut */
  border-radius: var(--h2-radius);
  background: var(--h2-line);
  transition: transform var(--h2-dur-ui) var(--h2-ease-out);
}
.h2-row__cta { grid-area: cta; align-self: center; justify-self: end; }
.h2-row__cta .h2-btn { width: 100%; }
.h2-row.is-soldout .h2-row__title,
.h2-row.is-soldout .h2-day { color: var(--h2-muted); }
.h2-row.is-soldout .h2-row__img { filter: grayscale(1); opacity: .7; }

.h2-desc__short {
  display: block;
  max-width: 62ch;
  margin-bottom: 10px;
  color: var(--h2-muted);
  line-height: 1.6;
}
.h2-desc { margin: -4px 0 10px; }
.h2-desc > summary { display: inline-flex; align-items: center; min-height: 44px; list-style: none; cursor: pointer; }
.h2-desc > summary::-webkit-details-marker { display: none; }
.h2-desc__more,
.h2-desc__less {
  color: var(--h2-teal-ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  white-space: nowrap;
}
.h2-desc__less { display: none; }
.h2-row__main:has(.h2-desc[open]) > .h2-desc__short,
.h2-desc[open] .h2-desc__more { display: none; }
.h2-desc[open] .h2-desc__less { display: inline-block; }
.h2-desc[open] > summary { order: 2; }
.h2-desc[open] { display: flex; flex-direction: column; }
.h2-desc__full { max-width: 64ch; color: var(--h2-muted); line-height: 1.65; }

/* ------------------------------------------------------------ soutien scolaire */

.h2-school {
  display: grid;
  grid-template-columns: minmax(0, 23rem) minmax(0, 1fr);   /* « Schoolondersteuning » tient en NL */
  gap: var(--h2-s5) var(--h2-s7);
  margin-top: var(--h2-s8);
}
.h2-school__head p { color: var(--h2-muted); line-height: 1.6; max-width: 40ch; }
.h2-terms {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--h2-ink);
}
.h2-term {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--h2-s4) var(--h2-s5);
  padding: 20px 0;
  border-bottom: 1px solid var(--h2-line);
}
.h2-term__poster {
  width: 64px;
  height: 86px;
  object-fit: cover;
  border-radius: 4px;
  background: var(--h2-line);
}
.h2-term:not(:has(.h2-term__poster)) { grid-template-columns: minmax(0, 1fr) auto; }
.h2-school .h2-subtitle { overflow-wrap: break-word; hyphens: auto; }
.h2-term__name {
  margin-bottom: 4px;
  font: 700 1.08rem/1.25 var(--h2-ff-display);
  overflow-wrap: anywhere;
}

/* ------------------------------------------------------------ « Tu es… » */

/* Variante A : Parent (public n°1) en bloc encre avec un CTA plein,
   les trois autres profils en rangées cliquables entières. */
.h2-profiles { padding-top: 0; }
.h2-profiles .h2-title { margin-bottom: var(--h2-s5); }
.h2-profiles__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: var(--h2-s6) var(--h2-s7);
  align-items: start;
  padding-top: var(--h2-s6);
  border-top: 2px solid var(--h2-ink);
}
.h2-pro {
  display: grid;
  gap: var(--h2-s4);
  padding: var(--h2-s6);
  border-radius: var(--h2-radius);
  background: var(--h2-night);
  color: #F7F5F2;
}
.h2-pro__title { font: 800 clamp(2.2rem, 1.6rem + 2vw, 3.4rem)/1 var(--h2-ff-display); letter-spacing: -.04em; }
.h2-pro__txt { max-width: 42ch; color: rgb(247 245 242 / .82); font-size: 1.06rem; line-height: 1.6; }
.h2-pro__cta { justify-self: start; margin-top: var(--h2-s2); }
.h2-pro__more { display: grid; margin: 0; padding: 0; list-style: none; }
.h2-pro .h2-arrow-link { color: var(--h2-star); }
.h2-pro :focus-visible { outline-color: var(--h2-star); }

.h2-pro__rows { margin: 0; padding: 0; list-style: none; }
.h2-pro__row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "name action" "line line";
  align-items: baseline;
  gap: 6px var(--h2-s5);
  padding: 22px var(--h2-s4) 22px 0;
  border-bottom: 1px solid var(--h2-line);
  color: var(--h2-ink);
  text-decoration: none;
  transition: background-color var(--h2-dur-ui) ease;
}
.h2-pro__rows > li:first-child .h2-pro__row { padding-top: 6px; }
.h2-pro__name { grid-area: name; font: 800 clamp(1.5rem, 1.2rem + 1vw, 2.1rem)/1.05 var(--h2-ff-display); letter-spacing: -.03em; }
.h2-pro__line { grid-area: line; max-width: 52ch; color: var(--h2-muted); line-height: 1.55; }
.h2-pro__action {
  grid-area: action;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--h2-teal-ink);
  font-weight: 700;
  white-space: nowrap;
}
.h2-pro__action::after {
  content: "";
  width: 1em;
  height: 1em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27%3E%3Cpath d=%27M2 8h11M9 4l4 4-4 4%27 fill=%27none%27 stroke=%27%23000%27 stroke-width=%271.8%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27%3E%3Cpath d=%27M2 8h11M9 4l4 4-4 4%27 fill=%27none%27 stroke=%27%23000%27 stroke-width=%271.8%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform var(--h2-dur-ui) var(--h2-ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .h2-pro__row:hover { background: color-mix(in srgb, var(--h2-ink) 5%, transparent); }
  .h2-pro__row:hover .h2-pro__action::after { transform: translateX(8px); }
}
.h2-links { margin: 0; padding: 4px 0 0; list-style: none; }

/* ------------------------------------------------------------ mission */

.h2-mission { padding-top: 0; }
.h2-mission__grid {
  position: relative;
  padding-top: var(--h2-s7);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: var(--h2-s6) var(--h2-s8);
  align-items: start;
}
/* Filet aligné sur la largeur de contenu (pas sur le padding du conteneur). */
.h2-mission__grid::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--h2-gutter);
  right: var(--h2-gutter);
  border-top: 2px solid var(--h2-ink);
}
.h2-mission__title {
  font: 800 clamp(2.2rem, 1.3rem + 3.4vw, 4.4rem)/.98 var(--h2-ff-display);
  letter-spacing: -.04em;
  text-wrap: balance;
}
.h2-mission__text { display: grid; gap: 1.1em; max-width: 62ch; font-size: 1.08rem; line-height: 1.7; }
.h2-mission__text p { color: var(--h2-muted); }
.h2-mission__text p:first-child { color: var(--h2-ink); font-size: 1.2rem; line-height: 1.6; }

/* ------------------------------------------------------------ pôles (champ encre) */

.h2-poles {
  padding-block: var(--h2-section);
  background: var(--h2-night);
  color: #F7F5F2;
}
:root.dark .h2-poles { background: #05070A; border-block: 1px solid rgb(255 255 255 / .08); }
@media (prefers-color-scheme: dark) {
  :root:not(.light) .h2-poles { background: #05070A; border-block: 1px solid rgb(255 255 255 / .08); }
}
.h2-poles__title {
  margin-bottom: var(--h2-s6);
  color: #F7F5F2;
}
.h2-poles__list { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgb(247 245 242 / .2); }
/* Variante A : le nom au-dessus de sa description, aucune collision possible
   quelle que soit la langue ou la longueur du texte. */
.h2-poles__list > li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "name tag" "txt txt";
  align-items: baseline;
  gap: var(--h2-s3) var(--h2-s6);
  padding: 28px 0;
  border-bottom: 1px solid rgb(247 245 242 / .2);
}
.h2-poles__name {
  grid-area: name;
  color: #F7F5F2;
  font: 800 clamp(2rem, 1.1rem + 3.2vw, 3.6rem)/1 var(--h2-ff-display);
  letter-spacing: -.045em;
  text-decoration: none;
  overflow-wrap: anywhere;
}
a.h2-poles__name { display: inline-flex; align-items: center; gap: .3em; justify-self: start; padding-block: 6px; }
a.h2-poles__name.is-out::after {
  content: "";
  width: .55em;
  height: .55em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27%3E%3Cpath d=%27M2 8h11M9 4l4 4-4 4%27 fill=%27none%27 stroke=%27%23000%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27%3E%3Cpath d=%27M2 8h11M9 4l4 4-4 4%27 fill=%27none%27 stroke=%27%23000%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform var(--h2-dur-ui) var(--h2-ease-out);
}
@media (hover: hover) and (pointer: fine) {
  a.h2-poles__name:hover { color: var(--h2-star); text-decoration: none; }
  a.h2-poles__name.is-out:hover::after { transform: translateX(6px); }
}
.h2-poles__tag { grid-area: tag; }
.h2-poles__txt { grid-area: txt; }
.h2-poles__list > li.is-here .h2-poles__name { color: var(--h2-teal); }
.h2-poles__txt { max-width: 62ch; color: rgb(247 245 242 / .82); font-size: 1.06rem; line-height: 1.6; }
.h2-poles__tag { color: rgb(247 245 242 / .7); font-size: .9rem; font-weight: 600; white-space: nowrap; }
.h2-poles__list > li.is-here .h2-poles__tag { color: var(--h2-star); }
.h2-poles :focus-visible { outline-color: var(--h2-star); }

/* ------------------------------------------------------------ contact + vidéo */

.h2-contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--h2-s7) var(--h2-s8);
  align-items: start;
}
.h2-contact__form .h2-lede { margin: var(--h2-s3) 0 var(--h2-s6); }
.h2-form { display: grid; gap: var(--h2-s5); max-width: 36rem; }
.h2-field { display: grid; gap: 6px; }
.h2-field label { font-weight: 700; font-size: .95rem; }
.h2-field input,
.h2-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1.5px solid var(--h2-field);
  border-radius: var(--h2-radius);
  background: var(--h2-card);
  color: var(--h2-ink);
  font: inherit;
  font-size: 1rem;
  transition: none;          /* le focus arrive au clavier : jamais animé */
}
.h2-field textarea { resize: vertical; min-height: 140px; line-height: 1.55; }
.h2-field input:focus,
.h2-field textarea:focus {
  outline: none;
  border-color: var(--h2-teal-ink);
  box-shadow: 0 0 0 3px rgb(25 180 180 / .3);
}
.h2-form .h2-btn { justify-self: start; }
.h2-hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.h2-feedback {
  padding: 12px 14px;
  border-radius: var(--h2-radius);
  font-weight: 600;
  line-height: 1.45;
}
.h2-feedback.is-ok { background: color-mix(in srgb, #16A34A 14%, var(--h2-card)); }
.h2-feedback.is-error { background: color-mix(in srgb, #DC2626 14%, var(--h2-card)); }
.h2-direct { margin-top: var(--h2-s5); color: var(--h2-muted); }
.h2-direct a,
.h2-video__note a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--h2-teal-ink);
  font-weight: 700;
}

.h2-video .h2-subtitle { margin-bottom: var(--h2-s4); }
.h2-video__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--h2-radius);
  background: var(--h2-night);
}
.h2-video__poster {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.h2-video__poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.h2-video__play {
  position: relative;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--h2-teal);
  color: #0A0A0A;
  box-shadow: 0 10px 30px -8px rgb(0 0 0 / .6);
  transition: transform var(--h2-dur-press) var(--h2-ease-out), opacity var(--h2-dur-press) var(--h2-ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .h2-video__poster:hover .h2-video__play { transform: scale(1.04); }
}
.h2-video__poster:active .h2-video__play { transform: scale(var(--h2-press-scale)); }
.h2-video__poster[aria-busy] .h2-video__play { opacity: .6; transform: scale(.94); }  /* clic pris en compte */
.h2-video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.h2-video__note { margin-top: var(--h2-s3); color: var(--h2-muted); font-size: .92rem; line-height: 1.55; }

/* ------------------------------------------------------------ mouvement : un seul moment au chargement */

@media (prefers-reduced-motion: no-preference) {
  .h2-line > span { animation: h2-rise 1s var(--h2-ease-out) both; }
  .h2-line:nth-child(2) > span { animation-delay: .12s; }
  .h2-star path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    fill-opacity: 0;
    animation: h2-draw .9s .5s cubic-bezier(.65, 0, .35, 1) forwards, h2-fill .45s 1.25s ease-out forwards;
  }
  .h2-hero__caption { animation: h2-fade .8s .35s ease-out both; }
  .h2-stub { animation: h2-stub-in .9s .45s var(--h2-ease-out) both; }
}
@keyframes h2-rise { from { transform: translateY(108%); } }
@keyframes h2-draw { to { stroke-dashoffset: 0; } }
@keyframes h2-fill { to { fill-opacity: 1; } }
@keyframes h2-fade { from { opacity: 0; } }
@keyframes h2-stub-in { from { opacity: 0; transform: translateY(24px); } }

/* ------------------------------------------------------------ responsive */

@media (max-width: 1080px) {
  .h2-row { grid-template-columns: 96px minmax(0, 1fr) 160px; grid-template-areas: "date main img" "date cta cta"; }
  .h2-row.no-img { grid-template-areas: "date main main" "date cta cta"; }
  .h2-row__cta { justify-self: start; }
  .h2-row__cta .h2-btn { width: auto; }
  .h2-school { grid-template-columns: 1fr; }
  /* CTA des trimestres alignés sur ceux des activités : sous le texte, à gauche */
  .h2-term { grid-template-columns: auto minmax(0, 1fr); }
  .h2-term > .h2-btn { grid-column: 2; justify-self: start; }
  .h2-term:not(:has(.h2-term__poster)) { grid-template-columns: minmax(0, 1fr); }
  .h2-term:not(:has(.h2-term__poster)) > .h2-btn { grid-column: 1; }
  .h2-profiles__grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .h2-hero__inner { grid-template-columns: 1fr; align-items: start; }
  .h2-mission__grid,
  .h2-contact__grid { grid-template-columns: 1fr; }
}

/* Tablette en portrait : le hero plafonnait à 820 px et poussait le talon sous la bannière. */
@media (min-width: 720px) and (orientation: portrait) {
  .h2-hero { min-height: min(640px, 60svh); }
}

@media (max-width: 719px) {
  /* Variante mobile A : photo carrée, titre sur la photo, légende et CTA sur encre,
     talon compact qui chevauche. Titre, CTA et prochaine activité tiennent au-dessus
     de la bannière cookies compacte. */
  .h2-hero { grid-template: auto auto / 1fr; min-height: 0; }
  .h2-hero__media { grid-area: 1 / 1; aspect-ratio: 1 / 1; max-height: 46svh; }
  .h2-hero__media img { object-position: 50% 100%; }
  .h2-hero__media::after {
    background:
      linear-gradient(180deg, rgb(10 10 10 / .82) 0%, rgb(10 10 10 / .5) 30%, rgb(10 10 10 / 0) 55%),
      linear-gradient(0deg, rgb(10 10 10 / 1) 0%, rgb(10 10 10 / 0) 20%);
  }
  .h2-hero__inner { display: contents; }
  .h2-hero__title { grid-area: 1 / 1; align-self: start; padding: 16px var(--h2-gutter) 0; font-size: clamp(2.5rem, 11.5vw, 3.4rem); }
  .h2-hero__caption { grid-area: 2 / 1; gap: var(--h2-s3); padding: 0 var(--h2-gutter) 44px; }
  .h2-hero__sub { font-size: 1rem; }
  .h2-hero__actions { gap: var(--h2-s3) var(--h2-s5); }
  .h2-stub-wrap { margin-top: -32px; }
  .h2-stub {
    --nx: 68px;
    grid-template-columns: 52px minmax(0, 1fr);
    grid-template-areas: "date body" "cta cta";
    column-gap: 30px;
    row-gap: 12px;
    padding: 16px 16px 16px 14px;
  }
  .h2-stub::before { top: 12px; bottom: auto; height: 62px; }
  .h2-stub__date .h2-day { font-size: 2.3rem; }
  .h2-stub__date .h2-mon { font-size: .8rem; }
  .h2-stub__title { margin-bottom: 2px; font-size: 1.15rem; }
  .h2-stub .h2-facts { gap: 0 12px; font-size: .88rem; }
  .h2-stub__cta .h2-btn { width: 100%; min-height: 48px; }
  .h2-head { grid-template-columns: 1fr; }
  .h2-head .h2-arrow-link { grid-column: 1; grid-row: auto; justify-self: start; }
  .h2-row {
    grid-template-columns: 60px minmax(0, 1fr);
    grid-template-areas: "date main" "date cta";
    column-gap: var(--h2-s4);
    padding: 24px 0;
  }
  .h2-row.no-img { grid-template-areas: "date main" "date cta"; }
  .h2-row__date .h2-day { font-size: 2.3rem; }
  .h2-row__date .h2-mon { font-size: .85rem; }
  .h2-row__img { display: none; }   /* rangées compactes : pas de couverture pleine largeur en mobile */
  .h2-row__cta .h2-btn { width: 100%; }
  .h2-row__cta { justify-self: stretch; }
  .h2-term__poster { display: none; }
  .h2-term,
  .h2-term:not(:has(.h2-term__poster)) { grid-template-columns: minmax(0, 1fr); }
  .h2-term > .h2-btn { grid-column: 1; justify-self: stretch; }
  .h2-pro { padding: var(--h2-s5); }
  .h2-pro__cta { justify-self: stretch; }
  .h2-pro__line { display: none; }     /* rangées mobiles : nom + action, le texte long reste en desktop */
  .h2-pro__row { grid-template-areas: "name action"; padding-block: 18px; }
  .h2-poles__list > li { grid-template-columns: 1fr; grid-template-areas: "name" "tag" "txt"; gap: 6px; }
  .h2-form .h2-btn { justify-self: stretch; }
}

/* Petits téléphones (360 px) : photo en 5:4 pour garder le bouton du talon au-dessus de la bannière. */
@media (max-width: 374px) {
  .h2-hero__media { aspect-ratio: 5 / 4; }
}

/* ------------------------------------------------------------ header v2 (variante A : papier + filet encre) */

.h2h-skip {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1001;
  padding: 10px 16px;
  border-radius: var(--h2-radius);
  background: var(--h2-ink);
  color: var(--h2-paper);
  font-weight: 700;
  transform: translateY(-160%);
}
.h2h-skip:focus { transform: none; }

.h2h {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--h2-paper);
  color: var(--h2-ink);
  border-bottom: 2px solid var(--h2-ink);
}
.h2h a { color: inherit; }
.h2h :focus-visible { outline: 3px solid var(--h2-teal-ink); outline-offset: 3px; border-radius: 2px; }
.h2h__bar {
  display: flex;
  align-items: center;
  gap: var(--h2-s5);
  max-width: 1440px;
  min-height: 74px;
  margin-inline: auto;
  padding: 0 max(var(--h2-gutter), env(safe-area-inset-right)) 0 max(var(--h2-gutter), env(safe-area-inset-left));
}
.h2h__brand { display: inline-flex; flex: none; border-radius: 10px; }
.h2h__brand img { display: block; width: 44px; height: 44px; border-radius: 10px; }
.h2h__nav { flex: 1; min-width: 0; }
.h2h__nav ul { display: flex; flex-wrap: wrap; gap: 4px 30px; margin: 0; padding: 0; list-style: none; }
.h2h__nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: color-mix(in srgb, var(--h2-ink) 78%, var(--h2-paper));
  font: 700 .95rem/1 var(--h2-ff-text);
  text-decoration: none;
}
.h2h__nav a[aria-current="page"] { color: var(--h2-ink); }
.h2h__nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -14px;
  height: 3px;
  background: var(--h2-teal);
}
.h2h__tools { display: flex; align-items: center; gap: var(--h2-s4); margin-left: auto; }
.h2h__langs { display: flex; margin: 0; font: 700 .88rem/1 var(--h2-ff-text); }
.h2h__langs a {
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  min-height: 44px;
  color: color-mix(in srgb, var(--h2-ink) 60%, var(--h2-paper));
  text-decoration: none;
}
.h2h__langs a[aria-current="true"] { color: var(--h2-ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.h2h__icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--h2-ink);
  cursor: pointer;
}
.h2h__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.h2h__sun { display: none; }
:root.dark .h2h__sun { display: block; }
:root.dark .h2h__moon { display: none; }
.h2h__login {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 2px solid var(--h2-ink);
  border-radius: var(--h2-radius);
  font: 700 .95rem/1 var(--h2-ff-display);
  text-decoration: none;
  transition: transform var(--h2-dur-press) var(--h2-ease-out), background-color var(--h2-dur-press) ease;
}
.h2h__login:active { transform: scale(var(--h2-press-scale)); }
.h2h__burger { display: none; }
@media (hover: hover) and (pointer: fine) {
  .h2h__nav a:hover { color: var(--h2-ink); }
  .h2h__icon:hover { background: var(--h2-line); }
  .h2h__login:hover { background: var(--h2-line); }
}

/* Mobile et tablette : logo et burger. Langue, thème et connexion passent dans
   le menu : plus de débordement à 360 px. */
@media (max-width: 1024px) {
  .h2h__bar { min-height: 60px; gap: var(--h2-s3); }
  .h2h__nav,
  .h2h__langs,
  .h2h__icon,
  .h2h__login { display: none; }
  .h2h__burger {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--h2-ink);
    cursor: pointer;
  }
  .h2h__burger svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  /* Sans JS, le burger ne peut pas s'ouvrir : les liens restent dans la barre, sur plusieurs lignes. */
  :root:not(.h2-js) .h2h__bar { flex-wrap: wrap; padding-block: 8px; }
  :root:not(.h2-js) .h2h__nav { display: block; flex-basis: 100%; order: 3; }
  :root:not(.h2-js) .h2h__nav ul { gap: 0 18px; }
  :root:not(.h2-js) .h2h__langs,
  :root:not(.h2-js) .h2h__login { display: flex; }
  :root:not(.h2-js) .h2h__burger { display: none; }
}

/* Menu ouvert plein écran (variante 5 bis B : fond papier). */
.h2h__menu {
  position: fixed;
  inset: 0;
  z-index: 1002;
  display: flex;
  flex-direction: column;
  gap: var(--h2-s4);
  overflow-y: auto;
  padding: 8px max(var(--h2-gutter), env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(var(--h2-gutter), env(safe-area-inset-left));
  background: var(--h2-paper);
  color: var(--h2-ink);
}
.h2h__menu[hidden] { display: none; }
.h2h__menu-top { display: flex; align-items: center; justify-content: space-between; min-height: 52px; }
.h2h__close {
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--h2-ink);
  font: 700 1rem/1 var(--h2-ff-text);
  text-decoration: underline;
  text-underline-offset: 5px;
  cursor: pointer;
}
.h2h__menu-links { margin: 0; padding: 0; list-style: none; }
.h2h__menu-links a {
  display: flex;
  align-items: center;
  min-height: 64px;
  border-bottom: 1px solid var(--h2-line);
  font: 800 clamp(1.8rem, 1.4rem + 2vw, 2.4rem)/1 var(--h2-ff-display);
  letter-spacing: -.035em;
  text-decoration: none;
}
.h2h__menu-links a[aria-current="page"] { color: var(--h2-teal-ink); }
.h2h__menu-label { margin: var(--h2-s3) 0 0; color: var(--h2-muted); font-size: .85rem; font-weight: 700; }
.h2h__menu-langs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--h2-s3); margin: 0; }
.h2h__menu-langs a {
  display: grid;
  place-items: center;
  min-height: 48px;
  border: 2px solid var(--h2-ink);
  border-radius: var(--h2-radius);
  font: 700 1rem/1 var(--h2-ff-display);
  text-decoration: none;
}
.h2h__menu-langs a[aria-current="true"] { background: var(--h2-ink); color: var(--h2-paper); }
.h2h__switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--h2-ink);
  font: 700 1rem/1 var(--h2-ff-text);
  cursor: pointer;
}
.h2h__knob {
  position: relative;
  width: 52px;
  height: 30px;
  border-radius: 15px;
  background: color-mix(in srgb, var(--h2-ink) 22%, transparent);
  transition: background-color var(--h2-dur-ui) ease;
}
.h2h__knob::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--h2-card);
  box-shadow: 0 1px 3px rgb(0 0 0 / .3);
  transition: transform var(--h2-dur-ui) var(--h2-ease-out);
}
.h2h__switch[aria-checked="true"] .h2h__knob { background: var(--h2-teal); }
.h2h__switch[aria-checked="true"] .h2h__knob::after { transform: translateX(22px); }
.h2h__menu-login { width: 100%; min-height: 54px; }
.h2h__menu-wa { display: inline-flex; align-items: center; min-height: 44px; color: var(--h2-teal-ink) !important; font-weight: 700; }
:root.h2h-locked,
:root.h2h-locked body { overflow: hidden; }

:root.dark .h2h,
:root.dark .h2h__menu { background: #0B0D10; color: #F3F1ED; border-color: #F3F1ED; }
@media (prefers-color-scheme: dark) {
  :root:not(.light) .h2h,
  :root:not(.light) .h2h__menu { background: #0B0D10; color: #F3F1ED; border-color: #F3F1ED; }
}
:root.dark .h2h { --h2-ink: #F3F1ED; --h2-paper: #0B0D10; --h2-line: rgb(243 241 237 / .16); }
/* le logo est noir sur transparent : en thème sombre il lui faut son fond papier */
:root.dark .h2h__brand img { background: #F7F5F2; }
@media (prefers-color-scheme: dark) { :root:not(.light) .h2h__brand img { background: #F7F5F2; } }

/* ------------------------------------------------------------ footer v2 (variante 6A : champ encre) */

.h2f {
  padding: var(--h2-section) 0 calc(28px + env(safe-area-inset-bottom));
  background: var(--h2-night);
  color: #F7F5F2;
  font-family: var(--h2-ff-text);
}
:root.dark .h2f { background: #05070A; border-top: 1px solid rgb(255 255 255 / .08); }
.h2f__inner { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--h2-gutter); }
.h2f a { color: #F7F5F2; }
.h2f :focus-visible { outline: 3px solid var(--h2-star); outline-offset: 3px; border-radius: 2px; }
.h2f__top {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--h2-s5);
  padding-bottom: var(--h2-s6);
  border-bottom: 1px solid rgb(247 245 242 / .2);
}
.h2f__sign { margin: 0; font: 800 clamp(2.4rem, 1.6rem + 3vw, 3.8rem)/.95 var(--h2-ff-display); letter-spacing: -.04em; }
.h2f__star { width: .78em; height: .78em; margin-right: .1em; vertical-align: -.02em; fill: var(--h2-star); stroke: var(--h2-star); stroke-width: 2.5; stroke-linejoin: round; }
.h2f .h2f__wa { color: #0A0A0A; }
.h2f__cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--h2-s6);
  padding: var(--h2-s6) 0;
  border-bottom: 1px solid rgb(247 245 242 / .2);
}
.h2f__col h2 { margin: 0 0 var(--h2-s3); font: 700 1rem/1.2 var(--h2-ff-display); }
.h2f__col ul { margin: 0; padding: 0; list-style: none; }
.h2f__col address { display: grid; font-style: normal; }
.h2f__col a,
.h2f__col span { display: inline-flex; align-items: center; min-height: 36px; color: rgb(247 245 242 / .8); line-height: 1.4; }
.h2f__col a { text-decoration: underline; text-decoration-color: rgb(247 245 242 / .35); text-underline-offset: 4px; }
.h2f__bottom { margin: 0; padding-top: var(--h2-s5); color: rgb(247 245 242 / .7); font-size: .9rem; }
@media (hover: hover) and (pointer: fine) {
  .h2f__col a:hover { color: var(--h2-star); text-decoration-color: currentColor; }
}
@media (max-width: 860px) { .h2f__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) {
  .h2f__cols { grid-template-columns: 1fr; gap: var(--h2-s5); }
  .h2f__wa { width: 100%; }
}

/* ------------------------------------------------------------ bannière cookies compacte (v2 seulement, D5) */
/* home-v2.css n'est chargé que sur l'accueil v2 : le reste du site garde la bannière d'origine.
   Même DOM et mêmes boutons (cookie-consent.js), on ne fait que la resserrer : environ 120 px
   de haut en mobile au lieu de 227, pour laisser voir titre, CTA et prochaine activité. */
#cookie-consent-banner { font-family: var(--h2-ff-text, "Plus Jakarta Sans", system-ui, sans-serif); }
#cookie-consent-banner .cookie-banner-content { gap: 10px 20px; padding: 12px max(16px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
#cookie-consent-banner .cookie-banner-text h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#cookie-consent-banner .cookie-banner-text p { margin: 0; font-size: 13px; line-height: 1.4; }
#cookie-consent-banner .cookie-link { display: inline; margin-left: 4px; color: #61E6FF; font-weight: 700; }
#cookie-consent-banner .cookie-btn { min-height: 44px; font-family: inherit; font-weight: 700; }
@media (max-width: 768px) {
  #cookie-consent-banner .cookie-banner-content { flex-direction: column; align-items: stretch; }
  #cookie-consent-banner .cookie-banner-text { display: flex; flex-wrap: wrap; align-items: baseline; }
  #cookie-consent-banner .cookie-banner-actions { display: grid; grid-template-columns: auto 1fr 1fr; gap: 8px; }
  #cookie-consent-banner .cookie-btn { width: auto; padding: 0 12px; }
  #cookie-consent-banner .cookie-btn-accept { grid-column: auto; }   /* cookie-consent.css le passe en pleine largeur */
  #cookie-consent-banner .cookie-btn-settings { padding: 0 4px; border: 0; background: transparent; text-decoration: underline; text-underline-offset: 4px; }
}

/* ------------------------------------------------------------ réduire les animations */
/* Moins et plus doux, pas zéro : on garde les changements de couleur, on retire tout déplacement. */
@media (prefers-reduced-motion: reduce) {
  .h2-btn:active,
  .h2h__login:active,
  .h2-video__poster:active .h2-video__play,
  .h2-video__poster:hover .h2-video__play,
  .h2-row.is-linked:hover .h2-row__img,
  .h2-row.is-linked:hover .h2-row__arrow,
  .h2-pro__row:hover .h2-pro__action::after,
  a.h2-poles__name.is-out:hover::after,
  .h2-arrow-link:hover::after,
  .h2-links a:hover::after { transform: none; }
  .h2h__knob::after { transition: none; }
}

/* ============================================================ pages v2 (agenda, vidéos, recrutement, soutien scolaire) */

/* ---- agenda : filtres */
.h2a__head { margin-bottom: var(--h2-s5); }
.h2a__title { font-size: clamp(2.6rem, 1.6rem + 4vw, 4.6rem); }
.h2a__filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: end;
  gap: var(--h2-s4);
  margin-bottom: var(--h2-s6);
  padding: var(--h2-s5) 0;
  border-top: 2px solid var(--h2-ink);
}
.h2a__field { display: grid; gap: 6px; }
.h2a__field label { font-weight: 700; font-size: .9rem; }
.h2a__field select {
  min-height: 48px;
  padding: 0 40px 0 14px;
  border: 1.5px solid var(--h2-field);
  border-radius: var(--h2-radius);
  background: var(--h2-card) url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27%3E%3Cpath d=%27M4 6l4 4 4-4%27 fill=%27none%27 stroke=%27%230A0A0A%27 stroke-width=%271.8%27 stroke-linecap=%27round%27/%3E%3C/svg%3E") right 12px center / 16px no-repeat;
  color: var(--h2-ink);
  font: inherit;
  appearance: none;
}
.h2a__field select:focus { outline: none; border-color: var(--h2-teal-ink); box-shadow: 0 0 0 3px rgb(25 180 180 / .3); }
.h2a__actions { display: flex; align-items: center; gap: var(--h2-s4); }
:root.h2-js .h2a__actions .h2-btn { display: none; }   /* avec JS, le filtre s applique au changement */
:root.h2-js .h2a__actions { min-height: 48px; }

/* ---- vidéos : grille, onglets, publications */
.h2v__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--h2-s6) var(--h2-s5); margin: 0; padding: 0; list-style: none; }
.h2v__item { display: grid; gap: var(--h2-s2); align-content: start; }
.h2v__name { margin-top: var(--h2-s2); font: 700 1.15rem/1.25 var(--h2-ff-display); letter-spacing: -.015em; }
.h2v__yt { display: inline-flex; align-items: center; min-height: 44px; color: var(--h2-teal-ink); font-weight: 700; }
.h2v-social { padding-top: 0; }
.h2v__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--h2-s4); }
.h2v__tabs button {
  min-height: 44px;
  padding: 0 18px;
  border: 2px solid var(--h2-ink);
  border-radius: 999px;
  background: transparent;
  color: var(--h2-ink);
  font: 700 .95rem/1 var(--h2-ff-display);
  cursor: pointer;
  transition: transform var(--h2-dur-press) var(--h2-ease-out), background-color var(--h2-dur-press) ease;
}
.h2v__tabs button[aria-selected="true"] { background: var(--h2-ink); color: var(--h2-paper); }
.h2v__tabs button:active { transform: scale(var(--h2-press-scale)); }
.h2v__consent {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--h2-s4);
  margin-bottom: var(--h2-s5);
  padding: var(--h2-s5);
  border-radius: var(--h2-radius);
  background: var(--h2-night);
  color: #F7F5F2;
}
.h2v__consent p { max-width: 60ch; color: rgb(247 245 242 / .85); line-height: 1.55; }
.h2v__consent[hidden] { display: none; }
.h2v__posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--h2-s5); margin: 0; padding: 0; list-style: none; }
.h2v__post[hidden] { display: none; }
.h2v__post iframe { display: block; width: 100%; height: 620px; border: 0; border-radius: var(--h2-radius); background: var(--h2-card); }
.h2v__more { display: flex; flex-wrap: wrap; gap: var(--h2-s2) var(--h2-s6); margin-top: var(--h2-s5); }

/* ---- recrutement */
.h2r__hero { padding: var(--h2-section) 0 var(--h2-s6); background: var(--h2-night); color: #F7F5F2; }
.h2r__kicker { margin-bottom: var(--h2-s3); color: var(--h2-star); font: 700 1rem/1.2 var(--h2-ff-display); }
.h2r__title { font: 800 clamp(2.6rem, 1.4rem + 5vw, 5.4rem)/.95 var(--h2-ff-display); letter-spacing: -.045em; text-wrap: balance; }
.h2r__intro { max-width: 52ch; margin-top: var(--h2-s4); font-size: 1.15rem; line-height: 1.6; opacity: .85; }
.h2s__hero .h2r__intro { opacity: 1; color: var(--h2-muted); }
.h2r__list { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--h2-ink); }
.h2r__row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--h2-s5);
  padding: 28px var(--h2-s4) 28px 0;
  border-bottom: 1px solid var(--h2-line);
  color: var(--h2-ink);
  text-decoration: none;
  transition: background-color var(--h2-dur-ui) ease;
}
.h2r__num { font: 800 3rem/1 var(--h2-ff-display); letter-spacing: -.04em; color: var(--h2-teal-ink); }
.h2r__body { display: grid; gap: 6px; }
.h2r__name { font: 800 clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem)/1.05 var(--h2-ff-display); letter-spacing: -.03em; }
.h2r__txt { max-width: 60ch; color: var(--h2-muted); line-height: 1.55; }
.h2r__facts { color: var(--h2-ink); font-size: .92rem; font-weight: 600; }
@media (hover: hover) and (pointer: fine) {
  .h2r__row:hover { background: color-mix(in srgb, var(--h2-ink) 5%, transparent); }
  .h2r__row:hover .h2-pro__action::after { transform: translateX(8px); }
}

/* ---- soutien scolaire */
.h2s__hero { padding: var(--h2-section) 0 var(--h2-s6); }
.h2s__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--h2-s6) var(--h2-s8); align-items: end; }
.h2s__features { margin-top: var(--h2-s4); font-weight: 700; line-height: 1.6; }
.h2s__facts { display: grid; gap: 0; margin: 0; border-top: 2px solid var(--h2-ink); }
.h2s__facts > div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: var(--h2-s4); padding: 14px 0; border-bottom: 1px solid var(--h2-line); }
.h2s__facts dt { color: var(--h2-muted); font-weight: 700; }
.h2s__facts dd { margin: 0; font-weight: 600; }
.h2s__terms-title { margin-bottom: var(--h2-s5); }
.h2-term.is-full .h2-term__name { color: var(--h2-muted); }
.h2s__back { margin-bottom: var(--h2-s5); }
.h2s-term .h2-head { grid-template-columns: 1fr; justify-items: start; }
.h2s__dates-title { margin: var(--h2-s7) 0 var(--h2-s4); }
.h2s__count { color: var(--h2-muted); font: 600 1rem/1 var(--h2-ff-text); letter-spacing: 0; }
.h2s__months { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--h2-s5); }
.h2s__month { padding-top: var(--h2-s3); border-top: 2px solid var(--h2-ink); }
.h2s__month h3 { margin-bottom: var(--h2-s3); font: 700 1rem/1.2 var(--h2-ff-display); text-transform: uppercase; letter-spacing: .04em; }
.h2s__month ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.h2s__month .h2-day {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--h2-line);
  border-radius: var(--h2-radius);
  font: 800 1.2rem/1 var(--h2-ff-display);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 1080px) {
  .h2v__grid, .h2v__posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h2a__filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .h2a__actions { grid-column: 1 / -1; }
}
@media (max-width: 719px) {
  .h2a__filters { grid-template-columns: 1fr; }
  .h2v__grid, .h2v__posts { grid-template-columns: 1fr; }
  .h2s__grid { grid-template-columns: 1fr; }
  .h2r__row { grid-template-columns: 40px minmax(0, 1fr); }
  .h2r__row .h2-pro__action { grid-column: 2; }
  .h2r__num { font-size: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .h2v__tabs button:active,
  .h2r__row:hover .h2-pro__action::after { transform: none; }
}
/* correctifs de capture : action des rangées recrutement, respiration des titres */
.h2r__row .h2-pro__action { grid-area: auto; }
.h2r__title { line-height: 1; }
.h2r__intro { margin-top: var(--h2-s6); }
.h2s__terms-title { margin-bottom: var(--h2-s6); }
