/* Thèmes modernes des sites d'écoles Educatii — une feuille unique, sans dépendance.
   Les gabarits sont communs ; chaque thème ([data-theme] sur <html>) redéfinit les jetons de design
   (palette, typographies, rayons, ombres) et quelques variantes de mise en page (héros, en-tête, cartes).
   --brand / --accent : palette du thème ou couleurs de l'école (injectées dans <head>). */

/* ============================================================ jetons */
:root {
  --brand: #4f6bd8;
  --accent: #8a3fa0;
  --bg: #ffffff;
  --bg-2: #f6f7fb;
  --surface: #ffffff;
  --ink: #141824;
  --ink-2: #4a5163;
  --ink-3: #7b8294;
  --line: #e6e8ef;
  --on-brand: #ffffff;
  --brand-ink: color-mix(in oklab, var(--brand) 72%, #0b1020);
  --brand-soft: color-mix(in oklab, var(--brand) 10%, var(--surface));
  --accent-soft: color-mix(in oklab, var(--accent) 12%, var(--surface));
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: var(--font-body);
  --head-weight: 800;
  --head-spacing: -.02em;
  --radius: 18px;
  --radius-sm: 10px;
  --btn-radius: 999px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .06);
  --shadow-lg: 0 24px 60px rgba(16, 24, 40, .14);
  --header-bg: rgba(255, 255, 255, .86);
  --hero-bg: radial-gradient(1200px 500px at 85% -10%, color-mix(in oklab, var(--accent) 80%, transparent), transparent 60%), linear-gradient(135deg, var(--brand-ink), var(--brand) 55%, var(--accent));
  --hero-overlay: linear-gradient(90deg, rgba(8, 12, 28, .78), rgba(8, 12, 28, .35) 60%, rgba(8, 12, 28, .15)), linear-gradient(0deg, rgba(8, 12, 28, .5), transparent 45%);
  --pagehead-bg: linear-gradient(135deg, var(--brand-ink), var(--brand) 60%, var(--accent));
  --footer-bg: #0e1220;
  --wrap: 1180px;
  --header-h: 72px;
}

/* ============================================================ base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* position d'arrivée sur une ancre : sous l'en-tête et le sous-menu collants */
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
.hz-subnav ~ * [id], .hz-subnav ~ [id] { scroll-margin-top: calc(var(--header-h) + 72px); }
/* les images de contenu réservent leur place : moins de décalage pendant le chargement */
.hz-prose img[width][height] { aspect-ratio: attr(width type(<number>)) / attr(height type(<number>)); }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--bg); line-height: 1.65; font-size: 16px; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; letter-spacing: var(--head-spacing); margin: 0 0 .5em; font-weight: var(--head-weight); }
h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem); }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid color-mix(in oklab, var(--brand) 60%, #fff); outline-offset: 2px; border-radius: 6px; }
::selection { background: color-mix(in oklab, var(--brand) 25%, transparent); }

.hz-wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.hz-wrap--narrow { width: min(100% - 32px, 820px); margin-inline: auto; }
.hz-skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.hz-skip:focus { left: 8px; }
.hz-muted { color: var(--ink-2); }
.hz-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hz-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.hz-eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }

/* ============================================================ boutons */
.hz-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: var(--btn-radius); font: 700 .95rem/1 var(--font-body); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; white-space: nowrap; }
.hz-btn:hover { transform: translateY(-1px); }
.hz-btn--primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 8px 20px color-mix(in oklab, var(--brand) 30%, transparent); }
.hz-btn--primary:hover { background: var(--brand-ink); }
.hz-btn--light { background: #fff; color: #141824; }
.hz-btn--ghost { border-color: color-mix(in oklab, #fff 55%, transparent); color: #fff; }
.hz-btn--ghost:hover { background: rgba(255, 255, 255, .12); }
.hz-btn--outline { border-color: var(--line); color: var(--ink); background: var(--surface); }
.hz-btn--sm { min-height: 38px; padding: 0 16px; font-size: .85rem; }
.hz-btn--block { width: 100%; }
/* icônes dans les boutons et pastilles : toujours à la taille du texte */
.hz-btn svg, .hz-chip svg, .hz-crumbs svg, .hz-infocard a svg { width: 1.15em; height: 1.15em; flex: none; }
svg:not([width]):not([class]) { max-width: 100%; }

/* ============================================================ annonces */
.hz-notice { background: var(--ink); color: var(--bg); font-size: .9rem; }
.hz-notice .hz-wrap { display: flex; align-items: center; gap: 14px; min-height: 42px; }
.hz-notice__viewport { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.hz-notice__tag { flex: none; background: var(--accent); color: #fff; padding: 3px 10px; border-radius: 999px; font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }
.hz-notice__track { display: flex; gap: 48px; white-space: nowrap; width: max-content; animation: hz-marquee 40s linear infinite; }
.hz-notice__track p { display: inline; margin: 0; }
.hz-notice a { color: inherit; }
.hz-notice:hover .hz-notice__track { animation-play-state: paused; }
@keyframes hz-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================ en-tête */
.hz-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.hz-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(16, 24, 40, .06); }
.hz-header .hz-wrap { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.hz-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; flex: 0 1 auto; }
.hz-brand > span { min-width: 0; }
.hz-brand img { width: 46px; height: 46px; object-fit: contain; border-radius: 10px; background: #fff; }
.hz-brand strong { display: block; font-family: var(--font-head); font-size: 1.02rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 32ch; }
.hz-brand small { display: block; color: var(--ink-3); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40ch; }
.hz-nav { margin-left: auto; display: flex; align-items: center; gap: 2px; flex: none; }
@media (max-width: 1480px) and (min-width: 1241px) { .hz-brand strong { max-width: 22ch; } .hz-brand small { max-width: 26ch; } .hz-nav__link { padding: 10px 9px; font-size: .9rem; } }
.hz-nav__item { position: relative; }
.hz-nav__link { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .94rem; background: none; border: 0; cursor: pointer; font-family: inherit; }
.hz-nav__link:hover, .hz-nav__item:focus-within > .hz-nav__link, .hz-nav__link.is-current { background: var(--bg-2); }
.hz-nav__link svg { width: 14px; height: 14px; transition: transform .2s; }
.hz-nav__menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px; padding: 8px; list-style: none; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s ease; }
.hz-nav__item:hover > .hz-nav__menu, .hz-nav__item:focus-within > .hz-nav__menu, .hz-nav__item.is-open > .hz-nav__menu { opacity: 1; visibility: visible; transform: none; }
.hz-nav__menu a { display: block; padding: 10px 12px; border-radius: 9px; color: var(--ink); text-decoration: none; font-weight: 500; }
.hz-nav__menu a:hover { background: var(--brand-soft); color: var(--brand-ink); }
.hz-header__actions { display: flex; align-items: center; gap: 8px; }
.hz-lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.hz-lang a { padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; text-decoration: none; color: var(--ink-2); }
.hz-lang a[aria-current="true"] { background: var(--ink); color: var(--bg); }
.hz-burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; align-items: center; justify-content: center; }
.hz-burger span, .hz-burger span::before, .hz-burger span::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: .2s; }
.hz-burger span::before, .hz-burger span::after { content: ""; position: absolute; left: 0; }
.hz-burger span::before { top: -6px; } .hz-burger span::after { top: 6px; }
.hz-open .hz-burger span { background: transparent; }
.hz-open .hz-burger span::before { top: 0; transform: rotate(45deg); }
.hz-open .hz-burger span::after { top: 0; transform: rotate(-45deg); }

/* ============================================================ héros (accueil) */
.hz-hero { position: relative; isolation: isolate; color: #fff; overflow: hidden; }
.hz-hero__bg { position: absolute; inset: 0; z-index: -2; background: var(--hero-bg); }
.hz-hero__slides { position: absolute; inset: 0; }
.hz-hero__slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.hz-hero__slides img.is-active { opacity: 1; animation: hz-kenburns 9s ease-out both; }
@keyframes hz-kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
.hz-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--hero-overlay); pointer-events: none; }
.hz-hero .hz-wrap { min-height: min(78vh, 680px); display: grid; align-content: center; padding-block: 96px 120px; }
.hz-hero__content { max-width: 680px; }
.hz-hero .hz-eyebrow { color: #fff; opacity: .9; }
.hz-hero p.lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); opacity: .92; max-width: 56ch; }
.hz-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hz-hero__dots { position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%); display: flex; gap: 8px; }
.hz-hero__dots button { width: 10px; height: 10px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .45); cursor: pointer; padding: 0; transition: width .3s; }
.hz-hero__dots button[aria-current="true"] { width: 28px; background: #fff; }

/* ============================================================ en-tête des pages intérieures */
.hz-pagehead { position: relative; isolation: isolate; color: #fff; background: var(--pagehead-bg); overflow: hidden; }
.hz-pagehead__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hz-pagehead--img::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--hero-overlay); }
.hz-pagehead::before { content: ""; position: absolute; z-index: -1; right: -120px; top: -160px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .16), transparent 65%); }
.hz-pagehead .hz-wrap { padding-block: clamp(56px, 7vw, 96px) clamp(56px, 6vw, 88px); }
.hz-pagehead h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); margin-bottom: .25em; }
.hz-pagehead p { max-width: 60ch; opacity: .9; font-size: 1.08rem; margin: 0; }
.hz-crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 18px; font-size: .85rem; opacity: .85; }
.hz-crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.hz-crumbs a { color: inherit; text-decoration: none; }
.hz-crumbs a:hover { text-decoration: underline; }

/* sous-navigation des pages à sections */
.hz-subnav { position: sticky; top: var(--header-h); z-index: 30; background: var(--header-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.hz-subnav .hz-wrap { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-block: 10px; }
.hz-subnav .hz-wrap::-webkit-scrollbar { display: none; }
.hz-subnav a { flex: none; padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .9rem; border: 1px solid transparent; }
.hz-subnav a:hover, .hz-subnav a.is-active { background: var(--brand-soft); color: var(--brand-ink); border-color: color-mix(in oklab, var(--brand) 20%, transparent); }

/* ============================================================ chiffres clés */
.hz-stats { position: relative; margin-top: -64px; z-index: 2; }
.hz-stats__grid { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--line); }
.hz-stat { padding: 26px 24px; display: flex; gap: 14px; align-items: center; }
.hz-stat + .hz-stat { border-left: 1px solid var(--line); }
.hz-stat__icon { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); }
.hz-stat__icon svg { width: 24px; height: 24px; }
.hz-stat b { display: block; font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; line-height: 1.1; }
.hz-stat span { color: var(--ink-3); font-size: .85rem; }

/* ============================================================ sections & grilles */
.hz-section { padding-block: clamp(64px, 8vw, 110px); }
.hz-section--tight { padding-block: clamp(40px, 5vw, 64px); }
.hz-section--alt { background: var(--bg-2); }
.hz-section__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.hz-section__head p { max-width: 60ch; margin: 0; color: var(--ink-2); }
.hz-grid { display: grid; gap: 24px; }
.hz-grid--2 { grid-template-columns: repeat(2, 1fr); }
.hz-grid--3 { grid-template-columns: repeat(3, 1fr); }
.hz-grid--4 { grid-template-columns: repeat(4, 1fr); }
.hz-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.hz-sticky { position: sticky; top: calc(var(--header-h) + 24px); }

/* ============================================================ cartes */
.hz-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.hz-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.hz-card__media { aspect-ratio: 16 / 10; background: var(--brand-soft); overflow: hidden; }
.hz-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.hz-card:hover .hz-card__media img { transform: scale(1.05); }
.hz-card__media--placeholder { display: grid; place-items: center; color: var(--brand); background: linear-gradient(135deg, var(--brand-soft), var(--accent-soft)); }
.hz-card__media--placeholder svg { width: 42px; height: 42px; opacity: .6; }
.hz-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.hz-card__meta { font-size: .78rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }
.hz-card__title { font-size: 1.08rem; font-weight: 700; margin: 0; font-family: var(--font-head); }
.hz-card__title a { color: var(--ink); text-decoration: none; }
.hz-card__title a::after { content: ""; position: absolute; inset: 0; }
.hz-card__text { color: var(--ink-2); font-size: .93rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hz-card__foot { margin-top: auto; padding-top: 10px; font-size: .82rem; color: var(--ink-3); display: flex; gap: 12px; flex-wrap: wrap; }
.hz-badge { align-self: flex-start; display: inline-block; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }

/* accès rapides */
.hz-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.hz-quick a { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: .2s; }
.hz-quick a:hover { border-color: color-mix(in oklab, var(--brand) 45%, transparent); box-shadow: var(--shadow); transform: translateY(-3px); }
.hz-icon { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--brand), var(--accent)); }
.hz-icon svg { width: 22px; height: 22px; }
.hz-quick strong { font-size: 1.02rem; font-family: var(--font-head); }
.hz-quick span:not(.hz-icon) { color: var(--ink-3); font-size: .88rem; }

/* ============================================================ contenu riche (éditeur) */
.hz-prose { font-size: 1.05rem; color: var(--ink-2); overflow-wrap: anywhere; }
.hz-prose > :first-child { margin-top: 0; }
.hz-prose h1, .hz-prose h2, .hz-prose h3, .hz-prose h4 { color: var(--ink); margin: 1.6em 0 .6em; }
.hz-prose h1 { font-size: 1.9rem; } .hz-prose h2 { font-size: 1.55rem; } .hz-prose h3 { font-size: 1.25rem; }
.hz-prose img { border-radius: var(--radius-sm); margin: 1.4em auto; height: auto !important; }
.hz-prose figure { margin: 1.4em 0; max-width: 100%; }
.hz-prose figcaption { font-size: .85rem; color: var(--ink-3); text-align: center; }
.hz-prose ul, .hz-prose ol { padding-left: 1.3em; }
.hz-prose li { margin: .35em 0; }
.hz-prose blockquote { margin: 1.5em 0; padding: 18px 22px; border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink); font-style: italic; }
.hz-prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .95rem; display: block; overflow-x: auto; }
.hz-prose th, .hz-prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.hz-prose th { background: var(--bg-2); color: var(--ink); }
.hz-prose iframe, .hz-prose video { max-width: 100%; border-radius: var(--radius-sm); }
.hz-prose [style*="font-family"] { font-family: inherit !important; }

.hz-quote { position: relative; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.hz-quote::before { content: "“"; position: absolute; top: -26px; left: 24px; font: 800 120px/1 Georgia, serif; color: var(--accent); opacity: .35; }

/* ============================================================ frise (histoire) */
.hz-timeline { position: relative; display: grid; gap: 28px; padding-left: 36px; }
.hz-timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--brand), var(--accent)); border-radius: 2px; }
.hz-step { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 24px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.hz-step::before { content: ""; position: absolute; left: -32px; top: 26px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 4px solid var(--brand); }
.hz-step__date { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: var(--brand-ink); margin-bottom: 6px; }
.hz-step img { border-radius: var(--radius-sm); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.hz-step--noimg { grid-template-columns: 1fr; }

/* ============================================================ équipe */
.hz-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; }
.hz-person { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-align: center; transition: .2s; }
.hz-person:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.hz-person[hidden] { display: none; }
.hz-person__photo { aspect-ratio: 1; background: linear-gradient(135deg, var(--brand-soft), var(--accent-soft)); display: grid; place-items: center; overflow: hidden; }
.hz-person__photo img { width: 100%; height: 100%; object-fit: cover; }
.hz-person__photo span { font: 800 2.6rem var(--font-head); color: var(--brand); }
.hz-person__body { padding: 16px 16px 20px; }
.hz-person h3 { margin: 0 0 4px; font-size: 1.02rem; }
.hz-person__role { color: var(--accent); font-weight: 700; font-size: .85rem; }
.hz-person__dept { color: var(--ink-3); font-size: .82rem; }
.hz-person__contact { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.hz-person__contact a { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-2); color: var(--ink-2); }
.hz-person__contact a:hover { background: var(--brand); color: #fff; }
.hz-person__contact svg { width: 16px; height: 16px; }
.hz-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.hz-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-weight: 600; font-size: .88rem; text-decoration: none; cursor: pointer; font-family: inherit; }
.hz-chip:hover, .hz-chip[aria-pressed="true"], .hz-chip.is-active { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }

/* ============================================================ image + texte (infrastructures, clubs) */
.hz-features { display: grid; gap: clamp(32px, 5vw, 64px); }
.hz-feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.hz-feature:nth-child(even) .hz-feature__media { order: 2; }
.hz-feature__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--brand-soft), var(--accent-soft)); box-shadow: var(--shadow); }
.hz-feature__media img { width: 100%; height: 100%; object-fit: cover; }
.hz-feature h3 { font-size: clamp(1.3rem, 1.1rem + .6vw, 1.7rem); }

.hz-logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.hz-partner { display: flex; gap: 16px; align-items: flex-start; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.hz-partner img { width: 72px; height: 72px; object-fit: contain; border-radius: 12px; background: #fff; border: 1px solid var(--line); flex: none; }
.hz-partner h3 { margin: 0 0 4px; font-size: 1rem; }
.hz-partner p { margin: 0 0 8px; color: var(--ink-2); font-size: .9rem; }
.hz-partner__links { display: flex; gap: 12px; flex-wrap: wrap; font-size: .85rem; font-weight: 600; }

/* ============================================================ accordéons, tableaux */
.hz-accordion { display: grid; gap: 12px; }
.hz-accordion details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.hz-accordion summary { list-style: none; cursor: pointer; padding: 16px 20px; display: flex; align-items: center; gap: 16px; font-weight: 700; font-family: var(--font-head); }
.hz-accordion summary::-webkit-details-marker { display: none; }
.hz-accordion summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); font-size: 1.2rem; transition: transform .2s; }
.hz-accordion details[open] summary::after { transform: rotate(45deg); }
.hz-accordion summary small { color: var(--ink-3); font-weight: 500; font-family: var(--font-body); margin-left: auto; }
.hz-accordion__body { padding: 0 20px 20px; }
.hz-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.hz-table { width: 100%; border-collapse: collapse; font-size: .93rem; background: var(--surface); }
.hz-table th { text-align: left; background: var(--bg-2); color: var(--ink-2); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.hz-table th, .hz-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.hz-table tr:last-child td { border-bottom: 0; }
.hz-table .num { text-align: center; font-variant-numeric: tabular-nums; }

/* explorateur de classes (pédagogie) */
.hz-explorer { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; }
.hz-explorer__side { position: sticky; top: calc(var(--header-h) + 72px); display: grid; gap: 10px; }
.hz-explorer__search { min-height: 42px; }
.hz-explorer__list { display: grid; gap: 4px; max-height: min(62vh, 560px); overflow-y: auto; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); scrollbar-width: thin; }
.hz-explorer__tab { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); font: 600 .93rem var(--font-body); cursor: pointer; }
.hz-explorer__tab small { min-width: 26px; padding: 1px 7px; border-radius: 999px; background: var(--bg-2); color: var(--ink-3); font-size: .75rem; text-align: center; }
.hz-explorer__tab:hover { background: var(--bg-2); }
.hz-explorer__tab.is-active { background: var(--brand); color: var(--on-brand); }
.hz-explorer__tab.is-active small { background: rgba(255, 255, 255, .22); color: inherit; }
.hz-explorer__tab[hidden] { display: none; }
.hz-explorer__main { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 2.5vw, 28px); min-height: 320px; }
.hz-explorer__head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: flex-start; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.hz-explorer__head h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); margin: 4px 0 0; }
.hz-explorer__totals { display: flex; gap: 10px; }
.hz-explorer__totals div { text-align: center; padding: 8px 14px; border-radius: 12px; background: var(--brand-soft); min-width: 78px; }
.hz-explorer__totals b { display: block; font: 800 1.25rem var(--font-head); color: var(--brand-ink); }
.hz-explorer__totals span { font-size: .72rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.hz-subjects { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.hz-subjects li { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); display: grid; gap: 6px; }
.hz-subjects strong { font-size: .95rem; line-height: 1.3; }
.hz-subjects span { display: flex; flex-wrap: wrap; gap: 6px; }
.hz-subjects em { font-style: normal; font-size: .75rem; padding: 2px 8px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); }
.hz-subjects em.coef { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
@media (max-width: 860px) {
  .hz-explorer { grid-template-columns: 1fr; }
  .hz-explorer__side { position: sticky; top: calc(var(--header-h) + 56px); z-index: 5; background: var(--bg); padding-block: 6px; }
  .hz-explorer__list { display: flex; overflow-x: auto; max-height: none; padding: 4px; }
  .hz-explorer__tab { flex: none; width: auto; }
}

/* ============================================================ agenda */
.hz-events { display: grid; gap: 14px; }
.hz-event { display: flex; gap: 18px; align-items: center; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.hz-event--past { opacity: .62; }
.hz-event__date { flex: none; width: 66px; text-align: center; border-radius: 12px; background: var(--brand-soft); color: var(--brand-ink); padding: 8px 0; line-height: 1.1; }
.hz-event__date b { display: block; font-size: 1.5rem; font-family: var(--font-head); }
.hz-event__date span { font-size: .72rem; text-transform: uppercase; font-weight: 700; }
.hz-event__img { flex: none; width: 96px; height: 72px; border-radius: 10px; object-fit: cover; margin-left: auto; }
.hz-event h3 { margin: 0 0 2px; font-size: 1rem; }
.hz-event p { margin: 0; color: var(--ink-3); font-size: .88rem; }
.hz-month { font: 800 1.1rem var(--font-head); color: var(--ink); margin: 22px 0 4px; text-transform: capitalize; }

/* ============================================================ galerie */
.hz-gallery { columns: 3 260px; column-gap: 16px; }
.hz-gallery a { display: block; margin: 0 0 16px; border-radius: 14px; overflow: hidden; break-inside: avoid; position: relative; }
.hz-gallery img { width: 100%; transition: transform .5s; }
.hz-gallery a:hover img { transform: scale(1.04); }
.hz-gallery figcaption { position: absolute; inset: auto 0 0 0; padding: 28px 14px 12px; color: #fff; font-size: .85rem; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); opacity: 0; transition: opacity .2s; }
.hz-gallery a:hover figcaption, .hz-gallery a:focus figcaption { opacity: 1; }
.hz-lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(5, 8, 18, .94); display: none; align-items: center; justify-content: center; padding: 24px; }
.hz-lightbox.is-open { display: flex; }
.hz-lightbox img { max-height: 84vh; max-width: 92vw; border-radius: 12px; }
.hz-lightbox p { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #fff; margin: 0; padding: 0 60px; }
.hz-lightbox button { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.6rem; cursor: pointer; }
.hz-lightbox__close { top: 18px; right: 18px; }
.hz-lightbox__prev { left: 18px; top: 50%; transform: translateY(-50%); }
.hz-lightbox__next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ============================================================ formulaires, contact */
.hz-form { display: grid; gap: 16px; }
.hz-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hz-field { display: grid; gap: 6px; }
.hz-field label { font-weight: 600; font-size: .9rem; }
.hz-input { width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: inherit; transition: border-color .15s, box-shadow .15s; }
textarea.hz-input { min-height: 150px; resize: vertical; }
.hz-input:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in oklab, var(--brand) 18%, transparent); }
.hz-check { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.hz-alert { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--brand-soft); color: var(--brand-ink); border: 1px solid color-mix(in oklab, var(--brand) 25%, transparent); margin-bottom: 16px; }
.hz-alert--error { background: #fdecec; color: #8a1c1c; border-color: #f5c2c2; }
.hz-contact { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 32px; align-items: start; }
.hz-infocard { display: flex; gap: 14px; padding: 18px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.hz-infocard + .hz-infocard { margin-top: 12px; }
.hz-infocard .hz-icon { width: 42px; height: 42px; border-radius: 12px; }
.hz-infocard strong { display: block; font-size: .95rem; }
.hz-infocard span:not(.hz-icon) { color: var(--ink-2); font-size: .9rem; }
.hz-infocard .hz-icon, .hz-quick .hz-icon, .hz-card .hz-icon, .hz-panel .hz-icon { color: #fff; }
.hz-map { border: 0; width: 100%; height: 320px; border-radius: var(--radius); margin-top: 24px; }
.hz-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow); }

/* ============================================================ blog & article */
.hz-article__cover { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 8; margin: -56px 0 36px; position: relative; z-index: 2; box-shadow: var(--shadow-lg); background: var(--bg-2); }
.hz-article__cover img { width: 100%; height: 100%; object-fit: cover; }
.hz-article__meta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; font-size: .9rem; opacity: .92; }
.hz-article__meta a { color: inherit; }
.hz-share { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); align-items: center; }
.hz-share strong { margin-right: 6px; }
.hz-side h4 { font-size: 1rem; margin-bottom: 14px; }
.hz-side + .hz-side { margin-top: 32px; }
.hz-side__item { display: grid; grid-template-columns: 72px 1fr; gap: 12px; text-decoration: none; color: var(--ink); padding: 10px 0; border-bottom: 1px solid var(--line); align-items: center; }
.hz-side__item img, .hz-side__item .ph { width: 72px; height: 56px; object-fit: cover; border-radius: 8px; background: var(--brand-soft); }
.hz-side__item b { font-size: .9rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hz-pager { margin-top: 36px; display: flex; justify-content: center; }
.hz-pager ul, .hz-pager .pagination { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.hz-pager a, .hz-pager span { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); background: var(--surface); font-weight: 600; }
.hz-pager .active > *, .hz-pager .current { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.hz-pager .disabled > * { opacity: .4; }

/* documents (banque d'épreuves, bulletins) */
.hz-docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.hz-doc { display: flex; gap: 14px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); align-items: flex-start; }
.hz-doc__ico { flex: none; width: 44px; height: 52px; border-radius: 8px; display: grid; place-items: center; font-size: .7rem; font-weight: 800; color: #fff; background: var(--accent); text-transform: uppercase; }
.hz-doc h3 { margin: 0 0 4px; font-size: .98rem; }
.hz-doc p { margin: 0 0 10px; color: var(--ink-3); font-size: .85rem; }
.hz-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.hz-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 24px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.hz-toolbar .hz-field { flex: 1 1 180px; }

/* ============================================================ connexion */
.hz-auth { min-height: calc(100vh - var(--header-h)); display: grid; grid-template-columns: 1fr 1fr; }
.hz-auth__aside { position: relative; isolation: isolate; color: #fff; background: var(--pagehead-bg); display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(32px, 5vw, 64px); overflow: hidden; }
.hz-auth__aside img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hz-auth__aside::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--hero-overlay); }
.hz-auth__main { display: grid; place-items: center; padding: 48px 24px; background: var(--bg); }
.hz-auth__box { width: min(420px, 100%); }
.hz-auth__box h1 { font-size: 2rem; }

/* ============================================================ appel à l'action, pied de page */
.hz-cta { border-radius: calc(var(--radius-sm) + 14px); padding: clamp(32px, 5vw, 64px); color: #fff; background: radial-gradient(600px 300px at 100% 0, color-mix(in oklab, var(--accent) 70%, transparent), transparent), linear-gradient(135deg, var(--brand-ink), var(--brand)); display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.hz-cta h2 { margin-bottom: .3em; color: #fff; }
.hz-cta__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.hz-footer { background: var(--footer-bg); color: #c9cede; padding-block: 64px 28px; font-size: .93rem; }
.hz-footer a { color: #fff; text-decoration: none; }
.hz-footer a:hover { text-decoration: underline; }
.hz-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.hz-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.hz-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hz-footer__brand { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.hz-footer__brand img { width: 52px; height: 52px; object-fit: contain; background: #fff; border-radius: 12px; }
.hz-social { display: flex; gap: 10px; margin-top: 16px; }
.hz-social a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); }
.hz-social a:hover { background: var(--brand); text-decoration: none; }
.hz-social svg { width: 18px; height: 18px; fill: #fff; }
.hz-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: #8c93a8; font-size: .84rem; }
.hz-fab { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: grid; gap: 10px; }
.hz-fab a, .hz-fab button { width: 52px; height: 52px; border-radius: 999px; display: grid; place-items: center; border: 0; cursor: pointer; box-shadow: var(--shadow-lg); }
.hz-fab__wa { background: #25d366; }
.hz-fab__wa svg { width: 26px; height: 26px; fill: #fff; }
.hz-fab__top { background: var(--surface); color: var(--ink); opacity: 0; pointer-events: none; transition: opacity .2s; }
.hz-fab__top.is-visible { opacity: 1; pointer-events: auto; }
.hz-fab__top svg { width: 20px; height: 20px; }
.hz-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.hz-reveal.is-visible { opacity: 1; transform: none; }
.hz-empty { text-align: center; padding: 48px 24px; border: 2px dashed var(--line); border-radius: var(--radius); color: var(--ink-3); background: var(--surface); }
.hz-empty svg { width: 44px; height: 44px; margin: 0 auto 12px; opacity: .5; display: block; }
.hz-preview-bar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 95; background: #111; color: #fff; padding: 10px 12px 10px 18px; border-radius: 999px; display: flex; gap: 12px; align-items: center; font-size: .88rem; box-shadow: 0 12px 40px rgba(0, 0, 0, .35); max-width: calc(100% - 32px); }
.hz-preview-bar a { color: #fff; font-weight: 700; text-decoration: none; padding: 0 6px; }
.hz-preview-bar form { margin: 0; display: flex; }
.hz-preview-bar__apply { border: 0; border-radius: 999px; padding: 8px 14px; background: #fff; color: #111; font: 700 .85rem var(--font-body); cursor: pointer; }
.hz-theme-fab { position: fixed; left: 18px; bottom: 18px; z-index: 95; padding: 12px 16px; border-radius: 999px; background: #111; color: #fff; font-weight: 700; font-size: .88rem; text-decoration: none; box-shadow: 0 12px 30px rgba(0, 0, 0, .3); }
.hz-theme-fab:hover { transform: translateY(-2px); }
.hz-preview-bar select { border-radius: 999px; padding: 6px 10px; border: 0; font: inherit; }

/* ============================================================ LES THÈMES */
/* Savane — terre et ocre, titres à empattements, formes organiques */
[data-theme="savane"] { --bg: #fbf6ef; --bg-2: #f3e9da; --surface: #fffdf9; --ink: #2b1d14; --ink-2: #5d4a3c; --ink-3: #8b7766; --line: #eadccb;
  --font-body: "Karla", system-ui, sans-serif; --font-head: "Fraunces", Georgia, serif; --head-spacing: -.01em;
  --radius: 26px 6px 26px 6px; --radius-sm: 14px 4px 14px 4px; --btn-radius: 14px 4px 14px 4px; --header-bg: rgba(251, 246, 239, .92); --footer-bg: #2b1d14;
  --hero-overlay: linear-gradient(90deg, rgba(43, 29, 20, .82), rgba(43, 29, 20, .35) 65%, rgba(43, 29, 20, .1)); }
[data-theme="savane"] .hz-hero::before, [data-theme="savane"] .hz-pagehead::before { content: ""; position: absolute; z-index: 1; inset: auto 0 -1px 0; height: 40px; width: auto; border-radius: 0; background: var(--bg); -webkit-mask: radial-gradient(40px 28px at 50% 100%, #000 98%, transparent) 0 0 / 80px 40px repeat-x; mask: radial-gradient(40px 28px at 50% 100%, #000 98%, transparent) 0 0 / 80px 40px repeat-x; }
[data-theme="savane"] .hz-eyebrow::before { width: 10px; height: 10px; border-radius: 50%; }
[data-theme="savane"] .hz-icon { border-radius: 50% 50% 50% 8px; }

/* Océan — bleus et turquoises, vagues */
[data-theme="ocean"] { --bg: #f7fcfd; --bg-2: #e9f6f9; --ink: #0c2a3a; --ink-2: #3e5d6c; --ink-3: #6b8796; --line: #d8eaf0;
  --font-body: "Manrope", system-ui, sans-serif; --radius: 22px; --header-bg: rgba(247, 252, 253, .9); --footer-bg: #07202d;
  --hero-overlay: linear-gradient(0deg, rgba(4, 38, 56, .86), rgba(4, 38, 56, .25) 70%); }
[data-theme="ocean"] .hz-hero .hz-wrap { align-content: end; }
[data-theme="ocean"] .hz-hero::before, [data-theme="ocean"] .hz-pagehead::before { content: ""; position: absolute; inset: auto 0 -1px 0; top: auto; right: 0; width: auto; height: 60px; z-index: 1; border-radius: 0; background: var(--bg); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 34C240 0 480 0 720 34s480 34 720 0v26H0z'/%3E%3C/svg%3E") 0 0 / 100% 100%; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 34C240 0 480 0 720 34s480 34 720 0v26H0z'/%3E%3C/svg%3E") 0 0 / 100% 100%; }

/* Académie — bleu nuit et or, prestige, angles nets, héros centré */
[data-theme="academie"] { --bg: #fbfaf6; --bg-2: #f1eee4; --ink: #121a2e; --ink-2: #444d63; --ink-3: #7a8193; --line: #e4dfd0;
  --font-body: "Source Sans 3", system-ui, sans-serif; --font-head: "Playfair Display", Georgia, serif; --head-weight: 700; --head-spacing: 0;
  --radius: 4px; --radius-sm: 2px; --btn-radius: 2px; --footer-bg: #0d1426; --header-bg: rgba(251, 250, 246, .95);
  --hero-overlay: linear-gradient(0deg, rgba(13, 20, 38, .88), rgba(13, 20, 38, .55)); --pagehead-bg: linear-gradient(180deg, #16264a, #0d1426); }
[data-theme="academie"] .hz-hero .hz-wrap, [data-theme="academie"] .hz-pagehead .hz-wrap { text-align: center; justify-items: center; }
[data-theme="academie"] .hz-hero__content, [data-theme="academie"] .hz-pagehead p { margin-inline: auto; }
[data-theme="academie"] .hz-hero__cta, [data-theme="academie"] .hz-crumbs { justify-content: center; }
[data-theme="academie"] .hz-eyebrow { letter-spacing: .25em; }
[data-theme="academie"] .hz-eyebrow::before, [data-theme="academie"] .hz-eyebrow::after { content: ""; width: 36px; height: 1px; background: currentColor; }
[data-theme="academie"] .hz-header { border-top: 4px solid var(--accent); }
[data-theme="academie"] .hz-btn--primary { background: var(--accent); color: #121a2e; box-shadow: none; }
[data-theme="academie"] .hz-btn { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }
[data-theme="academie"] .hz-card:hover { transform: none; }
[data-theme="academie"] .hz-pagehead::before { display: none; }
[data-theme="academie"] .hz-icon, [data-theme="academie"] .hz-infocard .hz-icon, [data-theme="academie"] .hz-quick .hz-icon, [data-theme="academie"] .hz-card .hz-icon, [data-theme="academie"] .hz-panel .hz-icon { background: #121a2e; color: var(--accent); }

/* Éveil — maternelle/primaire : joyeux, très arrondi */
[data-theme="eveil"] { --bg: #fffaf3; --bg-2: #fff1de; --ink: #2d2a32; --ink-2: #57525e; --ink-3: #8a8492; --line: #f1e3cf;
  --font-body: "Nunito", system-ui, sans-serif; --font-head: "Baloo 2", "Nunito", sans-serif; --head-spacing: 0;
  --radius: 28px; --radius-sm: 18px; --header-bg: rgba(255, 250, 243, .93); --footer-bg: #2d2a32;
  --hero-bg: radial-gradient(circle at 12% 22%, #ffd34e 0 90px, transparent 91px), radial-gradient(circle at 88% 78%, #7bd389 0 120px, transparent 121px), linear-gradient(135deg, var(--brand), var(--accent));
  --pagehead-bg: radial-gradient(circle at 92% 12%, #ffd34e 0 70px, transparent 71px), radial-gradient(circle at 6% 92%, #7bd389 0 60px, transparent 61px), linear-gradient(135deg, var(--brand), var(--accent));
  --hero-overlay: linear-gradient(90deg, rgba(45, 42, 50, .62), rgba(45, 42, 50, .1)); }
[data-theme="eveil"] .hz-card, [data-theme="eveil"] .hz-quick a, [data-theme="eveil"] .hz-person, [data-theme="eveil"] .hz-event { border-width: 2px; }
[data-theme="eveil"] .hz-quick a:nth-child(4n+1) .hz-icon, [data-theme="eveil"] .hz-infocard:nth-child(4n+1) .hz-icon { background: #ef5b3c; }
[data-theme="eveil"] .hz-quick a:nth-child(4n+2) .hz-icon, [data-theme="eveil"] .hz-infocard:nth-child(4n+2) .hz-icon { background: #2fa7e0; }
[data-theme="eveil"] .hz-quick a:nth-child(4n+3) .hz-icon, [data-theme="eveil"] .hz-infocard:nth-child(4n+3) .hz-icon { background: #f2b705; }
[data-theme="eveil"] .hz-quick a:nth-child(4n+4) .hz-icon, [data-theme="eveil"] .hz-infocard:nth-child(4n+4) .hz-icon { background: #3fb36b; }
[data-theme="eveil"] .hz-stat__icon, [data-theme="eveil"] .hz-icon { border-radius: 50%; }
[data-theme="eveil"] .hz-pagehead::before { display: none; }

/* Épure — minimal noir et blanc, héros scindé */
[data-theme="minimal"] { --ink: #0f0f0f; --ink-2: #3d3d3d; --ink-3: #777; --line: #e4e4e0; --bg-2: #f4f4f2;
  --font-body: "Inter Tight", system-ui, sans-serif; --head-spacing: -.045em; --radius: 0px; --radius-sm: 0px; --btn-radius: 0px;
  --shadow: none; --shadow-lg: 0 0 0 1px #0f0f0f; --header-bg: #fff; --footer-bg: #0f0f0f; --pagehead-bg: #0f0f0f; --hero-bg: #f4f4f2; }
[data-theme="minimal"] h1 { font-size: clamp(2.6rem, 1.6rem + 4.5vw, 5.2rem); }
[data-theme="minimal"] .hz-hero { color: var(--ink); background: var(--bg); }
[data-theme="minimal"] .hz-hero::after { display: none; }
[data-theme="minimal"] .hz-hero__bg { left: 52%; }
[data-theme="minimal"] .hz-hero__content { max-width: 48%; }
[data-theme="minimal"] .hz-hero .hz-eyebrow { color: var(--accent); opacity: 1; }
[data-theme="minimal"] .hz-hero .hz-btn--light { background: var(--ink); color: #fff; }
[data-theme="minimal"] .hz-hero .hz-btn--ghost { color: var(--ink); border-color: var(--ink); }
[data-theme="minimal"] .hz-hero__dots { left: 76%; }
[data-theme="minimal"] .hz-hero__dots button { background: rgba(0, 0, 0, .25); }
[data-theme="minimal"] .hz-hero__dots button[aria-current="true"] { background: var(--ink); }
[data-theme="minimal"] .hz-btn--primary { background: var(--ink); box-shadow: none; }
[data-theme="minimal"] .hz-icon, [data-theme="minimal"] .hz-cta { background: var(--ink); }
[data-theme="minimal"] .hz-card:hover { transform: none; box-shadow: 0 0 0 2px var(--ink); }
[data-theme="minimal"] .hz-pagehead::before { display: none; }
[data-theme="minimal"] .hz-eyebrow::before { width: 8px; height: 8px; background: var(--accent); }

/* Forêt — verts naturels */
[data-theme="foret"] { --bg: #f7f9f4; --bg-2: #eaf0e3; --ink: #14261c; --ink-2: #45584b; --ink-3: #76877b; --line: #dbe5d3;
  --font-body: "DM Sans", system-ui, sans-serif; --radius: 16px; --header-bg: rgba(247, 249, 244, .92); --footer-bg: #0f1f16;
  --hero-overlay: linear-gradient(90deg, rgba(10, 30, 18, .82), rgba(10, 30, 18, .2)); }
[data-theme="foret"] .hz-eyebrow::before { width: 14px; height: 14px; border-radius: 0 70% 0 70%; }
[data-theme="foret"] .hz-icon { border-radius: 0 50% 0 50%; }

/* Aurore — dégradés lever de soleil */
[data-theme="aurore"] { --bg: #fffaf8; --bg-2: #fff0ea; --ink: #2a1520; --ink-2: #5f4450; --ink-3: #957a86; --line: #f6dfd6;
  --font-body: "Outfit", system-ui, sans-serif; --radius: 20px; --header-bg: rgba(255, 250, 248, .92); --footer-bg: #2a1520;
  --hero-bg: linear-gradient(120deg, #6a1b9a, var(--brand) 45%, var(--accent)); --pagehead-bg: linear-gradient(120deg, #6a1b9a, var(--brand) 50%, var(--accent));
  --hero-overlay: linear-gradient(120deg, rgba(106, 27, 154, .75), rgba(214, 51, 108, .45) 50%, rgba(245, 159, 0, .2)); }
[data-theme="aurore"] .hz-btn--primary { background: linear-gradient(90deg, var(--brand), var(--accent)); }
[data-theme="aurore"] .hz-section h2, [data-theme="aurore"] .hz-prose h2 { background: linear-gradient(90deg, var(--ink), var(--brand)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Nuit — mode sombre */
[data-theme="nuit"] { color-scheme: dark; --bg: #0d1020; --bg-2: #13172b; --surface: #171c33; --ink: #eef0fb; --ink-2: #b6bbd6; --ink-3: #8389a8; --line: #262c4a;
  --brand-ink: color-mix(in oklab, var(--brand) 70%, #fff); --font-body: "Space Grotesk", system-ui, sans-serif; --head-spacing: -.03em; --radius: 16px;
  --header-bg: rgba(13, 16, 32, .84); --footer-bg: #080a16; --shadow: 0 0 0 1px #262c4a; --shadow-lg: 0 20px 60px rgba(0, 0, 0, .5), 0 0 0 1px #262c4a;
  --pagehead-bg: radial-gradient(800px 300px at 80% 0, color-mix(in oklab, var(--brand) 55%, transparent), transparent), radial-gradient(600px 300px at 0 100%, color-mix(in oklab, var(--accent) 35%, transparent), transparent), #0d1020;
  --hero-bg: var(--pagehead-bg); --hero-overlay: linear-gradient(0deg, rgba(13, 16, 32, .95), rgba(13, 16, 32, .35) 70%); }
[data-theme="nuit"] .hz-notice { background: var(--surface); color: var(--ink); }
[data-theme="nuit"] .hz-btn--primary { box-shadow: 0 0 30px color-mix(in oklab, var(--brand) 55%, transparent); }
[data-theme="nuit"] .hz-alert--error { background: #3a1520; color: #ffd0d8; border-color: #5a2030; }
[data-theme="nuit"] .hz-lang a[aria-current="true"] { color: #0d1020; }
[data-theme="nuit"] .hz-pagehead::before { display: none; }

/* Campus — audacieux, bleu électrique, cartes vitrées, sections en biais */
[data-theme="campus"] { --bg: #f5f7ff; --bg-2: #e9edff; --ink: #0b1033; --ink-2: #414a73; --ink-3: #7880a6; --line: #dde2f7;
  --font-body: "Sora", system-ui, sans-serif; --head-spacing: -.035em; --radius: 20px; --btn-radius: 12px; --footer-bg: #070b26; --header-bg: rgba(245, 247, 255, .86);
  --hero-overlay: linear-gradient(110deg, rgba(11, 16, 51, .9), rgba(35, 70, 255, .45) 55%, rgba(0, 194, 168, .15)); }
[data-theme="campus"] .hz-hero, [data-theme="campus"] .hz-pagehead { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 48px), 0 100%); }
[data-theme="campus"] .hz-stats { margin-top: -40px; }
[data-theme="campus"] .hz-stats__grid { background: color-mix(in oklab, #fff 72%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-color: rgba(255, 255, 255, .7); }
[data-theme="campus"] .hz-section--alt { clip-path: polygon(0 32px, 100% 0, 100% calc(100% - 32px), 0 100%); padding-block: clamp(96px, 10vw, 140px); }
[data-theme="campus"] .hz-eyebrow { background: var(--brand-soft); color: var(--brand); padding: 6px 12px; border-radius: 999px; }
[data-theme="campus"] .hz-eyebrow::before { display: none; }
[data-theme="campus"] .hz-hero .hz-eyebrow, [data-theme="campus"] .hz-pagehead .hz-eyebrow { background: rgba(255, 255, 255, .15); color: #fff; }

/* ============================================================ responsive */
@media (max-width: 1240px) {
  .hz-nav { position: fixed; inset: var(--header-h) 0 0 0; height: calc(100dvh - var(--header-h)); background: var(--bg); flex-direction: column; align-items: stretch; padding: 16px; gap: 2px; overflow-y: auto; transform: translateX(100%); transition: transform .25s ease; margin: 0; }
  .hz-open .hz-nav { transform: none; }
  .hz-open .hz-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); }
  .hz-nav__link { width: 100%; justify-content: space-between; padding: 14px 12px; font-size: 1.02rem; }
  .hz-nav__menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 8px 12px; display: none; min-width: 0; background: transparent; }
  .hz-nav__item.is-open > .hz-nav__menu { display: block; }
  .hz-nav__item:hover > .hz-nav__menu { display: none; }
  .hz-nav__item.is-open:hover > .hz-nav__menu { display: block; }
  .hz-nav__item.is-open > .hz-nav__link svg { transform: rotate(180deg); }
  .hz-nav .hz-btn { width: 100%; margin-top: 10px; }
  .hz-burger { display: inline-flex; }
  .hz-header__actions { margin-left: auto; }
}
@media (max-width: 1080px) {
  .hz-grid--4, .hz-quick { grid-template-columns: repeat(2, 1fr); }
  .hz-stats__grid { grid-template-columns: repeat(min(var(--cols, 4), 2), 1fr); }
  .hz-stat:nth-child(3) { border-left: 0; }
  .hz-stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .hz-footer__grid { grid-template-columns: 1fr 1fr; }
  .hz-layout, .hz-contact { grid-template-columns: 1fr; }
  .hz-sticky { position: static; }
}
@media (max-width: 760px) {
  .hz-grid--3, .hz-grid--2, .hz-form__row, .hz-feature, .hz-auth { grid-template-columns: 1fr; }
  .hz-feature:nth-child(even) .hz-feature__media { order: 0; }
  .hz-step { grid-template-columns: 1fr; }
  .hz-cta { grid-template-columns: 1fr; }
  .hz-cta__actions { justify-content: flex-start; }
  .hz-brand small { display: none; }
  .hz-brand strong { max-width: 18ch; }
  .hz-lang { display: none; }
  .hz-hero .hz-wrap { padding-block: 72px 112px; min-height: 0; }
  .hz-hero__cta .hz-btn { flex: 1 1 100%; }
  .hz-auth__aside { min-height: 200px; }
  .hz-article__cover { margin-top: -36px; }
  .hz-event__img { display: none; }
  [data-theme="minimal"] .hz-hero { display: flex; flex-direction: column-reverse; }
  [data-theme="minimal"] .hz-hero__bg { position: relative; left: 0; height: 280px; }
  [data-theme="minimal"] .hz-hero__content { max-width: none; }
  [data-theme="minimal"] .hz-hero__dots { left: 50%; bottom: 20px; }
}
@media (max-width: 520px) {
  .hz-preview-bar { bottom: 80px; padding: 6px 8px; gap: 8px; font-size: .8rem; white-space: nowrap; }
  .hz-preview-bar > span { display: none; }
  .hz-grid--4, .hz-quick, .hz-footer__grid { grid-template-columns: 1fr; }
  .hz-stat { padding: 18px 16px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .hz-stat b { font-size: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .hz-reveal { opacity: 1; transform: none; }
}
@media print {
  .hz-header, .hz-notice, .hz-fab, .hz-footer, .hz-subnav { display: none; }
}
