/*
  Thème La Providence Wambrechies, écrit sur le HTML des blocs (contrat 2). Identité : DESIGN.md du dépôt.
  Un magazine aligné à gauche, en sombre façon ardoise : fond bleu canard très foncé, textes clairs, jaune d'or pour les
  mots mis en valeur et les accents, vert d'eau en aplats. L'en-tête et les pages de
  cahier restent clairs. Coins presque droits, boutons pleins et nets. La fenêtre cintrée (logo,
  portraits, pied de page), le cahier à carreaux et le trait de feutre sous les titres font le décor.
  Conçu à 360 px ; les largeurs suivantes passent par des container queries sur la page.
*/

/* ==========================================================================
   Base
   ========================================================================== */
.mp-page {
  container-type: inline-size;
  container-name: page;
  --lp-gutter: 20px;
  --lp-max: 1120px;
  --lp-site-max: 1440px;
  --lp-radius: 3px;
  --lp-line: 1px solid var(--line);
  --lp-arch: 999px 999px var(--lp-radius) var(--lp-radius);
  /* Le vert d'eau : aplats doux. Trop clair pour un texte */
  --lp-lilac: var(--rose);
  /* Cahier à carreaux Seyès : marge rose-rouge, lignes bleues fines tous les 8 px, plus marquées tous les 32 px. En images :
     le texte reste posé sur le blanc de la page, que ces filets d'un pixel ne changent pas */
  --lp-seyes: url("images/marge.svg") 31px 0 / 2px 8px repeat-y, url("images/seyes.svg") 0 0 / 32px 32px;
  /* Boutons : leurs couleurs dépendent de la zone (sombre, claire, appel à l'action jaune) */
  --lp-btn: var(--accent);
  --lp-btn-ink: var(--on-accent);
  --lp-btn-hover: #f8fbfa;
  --lp-btn-hover-ink: #134a52;
  --lp-ghost-hover: #f8fbfa;
  --lp-ghost-hover-ink: #134a52;
  --lp-danger: #ffb4ab;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.mp-page *, .mp-page *::before, .mp-page *::after { box-sizing: border-box; }
.mp-page img { display: block; max-width: 100%; }
.mp-page :focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
:where(.mp-page) :is(h1, h2, h3, h4, p, ul, ol) { margin: 0; }
:where(.mp-page) a { color: inherit; }
body { margin: 0; background: var(--surface); }
.mp-ico { width: 20px; height: 20px; flex: none; }
.mp-ico-lg { width: 26px; height: 26px; }
:is(.mp-ico, .mp-ico-lg) { stroke-width: 2; }
:is(.mp-ico, .mp-ico-lg) [stroke-width] { stroke-width: inherit; }
.mp-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mp-skip { position: absolute; left: -9999px; }
.mp-skip:focus { left: 16px; top: 14px; z-index: 40; padding: 10px 14px; border-radius: var(--lp-radius); background: var(--deep); color: var(--on-deep); text-decoration: none; }
/* Sur les fonds foncés, le focus passe en blanc */
:is(.mp-section[data-bg="accent"], .mp-illustration__content, .mp-footer, .mp-drawer) :focus-visible { outline-color: #fff; }

/* Le site est sombre, façon ardoise. L'en-tête (pour le logo), les pages de cahier (fond alterné, bandeau des pages
   intérieures) et les messages restent clairs : ils redéfinissent les couleurs, et tout ce qu'ils contiennent suit.
   Le jaune d'or n'y est jamais une couleur de texte : les mots mis en valeur y sont pétrole */
.mp-header, .mp-section[data-bg="alterne"], .mp-hero:not(:has(.mp-hero__media)), .mp-alert,
.mp-hero:has(.mp-hero__media) + .mp-section, .mp-hero:has(.mp-hero__media) + .mp-row > .mp-section {
  --surface: #f8fbfa; --surface-card: #ffffff; --surface-alt: #ecf4f3; --ink: #13282b; --ink-muted: #4a5f62;
  --line: #d9e6e5; --line-strong: #6f8789; --primary: #134a52; --primary-strong: #0f6b73; --secondary: #134a52;
  --deep: #134a52; --on-deep: #ffffff; --on-deep-muted: #d4e8e6; --focus-ring: #13282b;
  --primary-soft: #e0efee; --secondary-soft: #e0efee; --accent-soft: #fbefc6; --rose-soft: #e3f1f0; --vert-soft: #eef6f5;
  --lp-btn: #134a52; --lp-btn-ink: #ffffff; --lp-btn-hover: var(--accent); --lp-btn-hover-ink: var(--on-accent);
  --lp-ghost-hover: var(--accent); --lp-ghost-hover-ink: var(--on-accent);
  --lp-danger: var(--danger);
  color: var(--ink);
}

/* ---------- Texte ---------- */
.mp-h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.015em; font-size: 32px; line-height: 1.12; color: var(--primary); text-wrap: balance; }
/* Le trait de feutre jaune d'or sous chaque titre de section */
/* Le trait de feutre sous chaque titre : un masque, pour qu'il prenne la couleur de son fond (jaune d'or, ou pétrole sur le jaune) */
.mp-head .mp-h2::after, .mp-cta__title::after { content: ""; display: block; width: 112px; height: 12px; margin-top: 10px; background: var(--accent); -webkit-mask: url("images/trait.svg") left center / 100% 100% no-repeat; mask: url("images/trait.svg") left center / 100% 100% no-repeat; }
.mp-h2 em, .mp-hero__title em, .mp-cta__title em { font-style: italic; font-weight: 500; color: var(--secondary); }
.mp-h3 { font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 1.25; color: var(--primary); }
.mp-lead { font-size: 20px; line-height: 1.55; max-width: 40rem; }
.mp-muted { color: var(--ink-muted); }
.mp-small { font-size: 15px; line-height: 1.5; }
.mp-note { margin: 0; }
.mp-copy { user-select: all; word-break: break-all; }
.mp-link, .mp-prose a { color: var(--primary); font-weight: 700; }
/* Liens : un trait jaune d'or sous le mot, qui remonte sur tout le texte au survol (une ombre intérieure : elle suit le
   lien sur plusieurs lignes) */
:is(.mp-link, .mp-prose a, .mp-coords a, .mp-footer a:not(.mp-footer__social a)) { text-decoration: none; box-shadow: inset 0 -2px 0 var(--accent); -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: box-shadow .2s ease, color .2s ease; }
:is(.mp-link, .mp-prose a, .mp-coords a, .mp-footer a:not(.mp-footer__social a)):hover { box-shadow: inset 0 -3em 0 var(--accent); color: var(--on-accent); }
.mp-link .mp-ico, .mp-embed__out .mp-ico { width: 16px; height: 16px; vertical-align: -2px; }
/* Surtitre : capitales espacées, précédées d'un tiret jaune d'or */
.mp-eyebrow { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--secondary); }
.mp-eyebrow::before { content: ""; width: 24px; height: 3px; background: var(--accent); flex: none; }
.mp-prose { max-width: 44rem; display: grid; gap: 1em; }
.mp-prose h3 { font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 1.25; margin-top: 0.6em; color: var(--primary); }
.mp-prose :is(ul, ol) { padding-left: 1.4em; display: grid; gap: 0.4em; }
/* Puces : le cœur du logo, en image (un caractère « ♥ » serait lu par les lecteurs d'écran) */
.mp-prose ul { list-style: none; padding-left: 1.6em; }
.mp-prose ul > li { position: relative; }
.mp-prose ul > li::before { content: ""; position: absolute; left: -1.5em; top: 0.42em; width: 0.85em; height: 0.8em; background: var(--secondary); -webkit-mask: url("images/coeur.svg") center / contain no-repeat; mask: url("images/coeur.svg") center / contain no-repeat; }
.mp-prose ol > li::marker { font-family: var(--font-display); font-weight: 700; color: var(--secondary); }
.mp-prose blockquote { margin: 0.5em 0; max-width: 42rem; padding: 4px 0 4px 20px; border-left: 4px solid var(--accent); font-family: var(--font-script); font-weight: var(--script-weight, 700); font-size: 26px; line-height: 1.35; color: var(--primary); }

/* ---------- Boutons : un bloc plein et net, sans arrondi ni ombre ; le libellé à gauche, une flèche à droite qui
   avance au survol (pas de flèche quand le bouton a déjà son icône) ---------- */
.mp-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.mp-btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 16px; width: min(300px, 100%); min-height: 52px; padding: 0 20px; border: 2px solid var(--lp-btn); border-radius: 0; background: var(--lp-btn); color: var(--lp-btn-ink); font: 700 16px/1.2 var(--font-body); text-align: left; text-decoration: none; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.mp-btn:not(:has(.mp-ico))::after { content: "→" / ""; flex: none; font-size: 20px; line-height: 1; transition: translate .15s ease; }
.mp-btn:hover::after { translate: 4px 0; }
.mp-btn:has(.mp-ico) { justify-content: flex-start; }
.mp-btn--ghost { background: transparent; border-color: currentColor; color: inherit; }
.mp-btn--accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.mp-icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: var(--lp-line); border-radius: var(--lp-radius); background: var(--surface-card); color: inherit; cursor: pointer; }

/* ---------- Photos, pastilles, étiquettes ---------- */
.mp-photo { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: var(--focal-x, 50%) var(--focal-y, 50%); border-radius: var(--lp-radius); background: var(--surface-alt); }
.mp-photo--square { aspect-ratio: 1 / 1; }
/* Sans photo : un aplat doux et la fenêtre cintrée du logo */
.mp-ph { width: 100%; aspect-ratio: 4 / 3; border-radius: var(--lp-radius); background: url("images/fenetre.svg") center / auto 54% no-repeat, var(--primary-soft); }
.mp-class:nth-child(4n+2) .mp-ph { background-color: var(--accent-soft); }
.mp-class:nth-child(4n+3) .mp-ph { background-color: var(--rose-soft); }
.mp-class:nth-child(4n+4) .mp-ph { background-color: var(--vert-soft); }
/* Pastille : un carré posé de travers, comme un gommette */
.mp-disc { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: var(--lp-radius); background: var(--rose-soft); color: var(--primary); rotate: -4deg; }
.mp-disc .mp-ico { width: 22px; height: 22px; }
/* Catégories d'événements : partout le même format, des petites capitales derrière un carré de couleur posé de
   travers (vie de l'école : jaune d'or ; vacances : vert d'eau ; réunion : crème, pétrole dans les zones claires ; fête :
   carré jaune d'or évidé) */
.mp-badge { display: inline-flex; align-items: center; gap: 8px; width: fit-content; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); }
.mp-badge::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 2px; background: var(--accent); rotate: -6deg; }
.mp-badge--vacances::before { background: var(--rose); }
.mp-badge--reunion::before { background: var(--primary); }
.mp-badge--fete::before { background: transparent; box-shadow: inset 0 0 0 2px var(--accent); }
.mp-empty { display: flex; align-items: center; gap: 10px; color: var(--ink-muted); }
.mp-alert { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-left: 4px solid var(--danger); background: var(--danger-soft); color: var(--ink); }
.mp-alert--ok { border-color: var(--vert); background: var(--vert-soft); }

/* ==========================================================================
   En-tête, menu, pied de page
   ========================================================================== */
.mp-page > main, .mp-page > .mp-footer { max-width: var(--lp-site-max); margin-inline: auto; container: page / inline-size; }
html { scroll-padding-top: 96px; }
/* En-tête : un filet pétrole en haut, fond clair, double filet en bas */
.mp-header { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 78px; padding: 8px var(--lp-gutter); border-top: 6px solid var(--primary); border-bottom: 3px double var(--line); background: var(--surface); }
.mp-brand { display: flex; align-items: center; min-height: 44px; margin-right: auto; text-decoration: none; }
.mp-brand img { height: 50px; width: auto; }
.mp-brand__name { font-family: var(--font-display); font-weight: 600; font-size: 22px; color: var(--primary); }
.mp-nav { display: none; list-style: none; padding: 0; gap: 2px; }
.mp-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 11px; border-bottom: 3px solid transparent; font-weight: 700; font-size: 15.5px; color: var(--primary); text-decoration: none; }
.mp-nav a:hover { border-bottom-color: var(--line-strong); }
/* La page en cours : un trait pétrole (l’en-tête est clair), pas seulement une couleur */
.mp-nav a[aria-current="page"], .mp-nav a[data-in-section] { border-bottom-color: var(--secondary); }
.mp-drawer li a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.mp-nav-wrap { display: contents; }
.mp-nav > li { position: relative; display: flex; align-items: center; }
.mp-nav__toggle { display: grid; place-items: center; width: 40px; height: 44px; margin-left: -10px; padding: 0; border: 0; border-radius: var(--lp-radius); background: none; color: var(--primary); cursor: pointer; }
.mp-nav__toggle .mp-ico { width: 16px; height: 16px; transition: transform .15s ease; }
.mp-nav__toggle[aria-expanded="true"] .mp-ico { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .mp-nav__toggle .mp-ico { transition: none; } }
.mp-nav__sub { position: absolute; top: 100%; left: 0; z-index: 40; display: none; min-width: 240px; margin: 0; padding: 8px; list-style: none;
  border: 2px solid var(--primary); border-radius: var(--lp-radius); background: var(--surface-card); }
.mp-nav__sub a { display: flex; width: 100%; border-bottom: 0; padding: 0 12px; }
.mp-nav__sub a:hover, .mp-nav__sub a[aria-current="page"] { background: var(--surface); }
.mp-nav__sub a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.mp-nav__parent:is(:hover, :has(.mp-nav__toggle[aria-expanded="true"])):not([data-dismissed]) .mp-nav__sub { display: block; }
.mp-nav__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }

.mp-header__social { display: flex; gap: 2px; }
.mp-header__social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--lp-radius); color: var(--primary); }
.mp-header__social a:hover { background: var(--surface-alt); }
.mp-burger { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 14px; border: 2px solid var(--primary); border-radius: 0; background: var(--surface-card); color: var(--primary); font: 700 16px/1 var(--font-body); cursor: pointer; }
/* Menu du téléphone : plein écran pétrole sous l'en-tête, grandes entrées en Fraunces */
.mp-drawer { position: fixed; top: 78px; inset-inline: 0; bottom: 0; z-index: 29; overflow-y: auto; overscroll-behavior: contain; background: var(--deep); color: var(--on-deep); }
.mp-drawer ul { list-style: none; margin: 0; padding: 12px var(--lp-gutter) 32px; }
.mp-drawer li a { display: flex; justify-content: space-between; align-items: center; min-height: 56px; border-bottom: 1px dashed color-mix(in srgb, var(--on-deep) 35%, transparent); font-family: var(--font-display); font-weight: 600; font-size: 24px; text-decoration: none; }
.mp-drawer li.mp-drawer__child a { padding-left: 20px; font-family: var(--font-body); font-weight: 400; font-size: 18px; min-height: 48px; color: var(--on-deep-muted); }
.mp-prose li.mp-site-map__child { margin-left: 20px; }

/* Pied de page : pétrole, une arcade de fenêtres cintrées en guise de bord */
.mp-footer { position: relative; padding: 56px var(--lp-gutter) 28px; background: var(--deep); color: var(--on-deep); }
.mp-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -22px; height: 22px; background: radial-gradient(circle at 18px 22px, var(--deep) 17px, transparent 18px) 0 0 / 36px 22px repeat-x; }
.mp-footer__grid { max-width: var(--lp-max); margin-inline: auto; display: grid; gap: 28px; }
.mp-footer__identity { display: grid; gap: 6px; }
.mp-footer__script { font-family: var(--font-script); font-weight: var(--script-weight, 700); font-size: calc(30px * var(--script-scale, 1)); line-height: 1.2; color: var(--accent); }
.mp-footer :where(p) { color: var(--on-deep-muted); }
.mp-footer__name { font-family: var(--font-display); font-size: 22px; color: var(--on-deep); }
.mp-footer__name strong { font-weight: 600; }
.mp-footer a { color: var(--on-deep); }
.mp-footer h2 { font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.mp-footer ul { list-style: none; padding: 0; display: grid; gap: 4px; }
.mp-footer ul a { display: inline-flex; align-items: center; min-height: 32px; }
.mp-footer__text { margin-top: 10px; }
.mp-footer__social { display: flex; gap: 8px; margin-top: 8px; }
.mp-footer__social a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid color-mix(in srgb, var(--on-deep) 40%, transparent); border-radius: var(--lp-radius); }
.mp-footer__legal { max-width: var(--lp-max); margin: 32px auto 0; padding-top: 14px; border-top: 1px dashed color-mix(in srgb, var(--on-deep) 35%, transparent); display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; color: var(--on-deep-muted); }
.mp-footer__legal a { color: inherit; }
.mp-divider { display: none; }

/* ==========================================================================
   Sections : fond choisi dans l'éditeur (clair = le fond du site, alterne = page de cahier, accent = pétrole)
   ========================================================================== */
.mp-section { padding: 56px var(--lp-gutter); background: var(--surface); color: var(--ink); }
.mp-section[data-bg="alterne"] { background: var(--lp-seyes), var(--surface-card); border-block: var(--lp-line); }
/* Juste après le bandeau d'accueil, sombre, la section est toujours une page de cahier : jamais deux fonds sombres de suite */
.mp-hero:has(.mp-hero__media) + .mp-section, .mp-hero:has(.mp-hero__media) + .mp-row > .mp-section { background: var(--lp-seyes), var(--surface-card); border-bottom: var(--lp-line); }
.mp-hero:has(.mp-hero__media) + .mp-section > .mp-inner { padding-left: 24px; }
:is(.mp-section[data-bg="accent"], .mp-illustration__content) { background: var(--deep); color: var(--on-deep); }
/* L'appel à l'action mis en avant : un aplat jaune d'or, texte pétrole */
.mp-section[data-block="cta"][data-bg="accent"] { background: var(--accent); color: var(--deep); }
.mp-row :is(.mp-section, .mp-illustration) { container: page / inline-size; }
.mp-row { display: flex; flex-direction: column; }
.mp-row :is([data-block="image"], [data-block="illustration"]), .mp-row > :has(> :is([data-block="image"], [data-block="illustration"])) { order: -1; }
@container page (min-width: 1024px) {
  .mp-row { display: flex; flex-direction: row; }
  .mp-row :is([data-block="image"], [data-block="illustration"]), .mp-row > :has(> :is([data-block="image"], [data-block="illustration"])) { order: 0; }
  .mp-row [data-width] { flex: 3 1 0; min-width: 0; }
  .mp-row [data-width="tiers"] { flex-grow: 2; }
  .mp-row [data-width="deux-tiers"] { flex-grow: 4; }
  /* La rangée s'aligne sur la colonne des autres sections : marges extérieures du premier et du dernier bloc */
  .mp-row > :first-child { padding-left: max(var(--lp-gutter), calc((100cqw - var(--lp-max)) / 2)); }
  .mp-row > :last-child { padding-right: max(var(--lp-gutter), calc((100cqw - var(--lp-max)) / 2)); }
}
.mp-row .mp-illustration__photo { height: 100%; object-fit: cover; }
:is(.mp-section[data-bg="accent"], .mp-illustration__content) :is(.mp-eyebrow, .mp-muted, .mp-link, .mp-prose a, .mp-h2, .mp-h3, .mp-h2 em, .mp-figure__value, .mp-figure__label, .mp-cta__title, .mp-cta__title em, .mp-prose h3, .mp-prose blockquote) { color: inherit; }
:is(.mp-section[data-bg="accent"], .mp-illustration__content) .mp-eyebrow { color: var(--accent); }
.mp-section[data-block="cta"][data-bg="accent"] .mp-eyebrow { color: var(--deep); }
.mp-section[data-block="cta"][data-bg="accent"] .mp-eyebrow::before { background: var(--deep); }
.mp-section[data-block="cta"][data-bg="accent"] .mp-cta__title::after { background: var(--deep); }
.mp-section[data-block="cta"][data-bg="accent"] :focus-visible { outline-color: var(--deep); }
.mp-section[data-block="cta"][data-bg="accent"] { --lp-btn: var(--deep); --lp-btn-ink: #ffffff; --lp-btn-hover: #f8fbfa; --lp-btn-hover-ink: #134a52; --lp-ghost-hover: #f8fbfa; --lp-ghost-hover-ink: #134a52; }
.mp-section[data-block="cta"][data-bg="accent"] .mp-btn--accent { background: var(--deep); border-color: var(--deep); color: #ffffff; }
.mp-inner { max-width: var(--lp-max); margin-inline: auto; display: grid; gap: 32px; }
.mp-section:is([data-block="text"], [data-block="faq"], [data-block="documents"], [data-block="canteen"], [data-block="social"]) > .mp-inner { max-width: 46rem; margin-left: max(0px, calc((100% - var(--lp-max)) / 2)); }
/* Sur une page de cahier, le texte commence après la marge */
.mp-section[data-bg="alterne"] > .mp-inner { padding-left: 24px; }
.mp-head { display: grid; gap: 10px; max-width: 46rem; }
.mp-head--center { margin-inline: auto; justify-items: center; text-align: center; }
.mp-head--center .mp-actions { justify-content: center; }

/* ==========================================================================
   Bandeau d'accueil
   ========================================================================== */
/* Avec photo (l'accueil) : une colonne claire, la photo bord à bord sur les deux tiers ; le mot d'accueil devient
   une ligne d'en-tête, écrite à la verticale le long d'un filet jaune d'or sur ordinateur */
.mp-hero { position: relative; display: grid; gap: 40px; padding: 40px var(--lp-gutter) 56px; background: var(--surface); }
.mp-hero__body { display: grid; gap: 18px; width: 100%; max-width: var(--lp-max); margin-inline: auto; justify-items: start; }
/* Le logo est déjà dans l'en-tête : pas de doublon dans le bandeau */
.mp-hero .mp-hero__logo { display: none; }
.mp-hero__heading { margin: 0; display: grid; gap: 10px; }
.mp-hero__heading > span { display: block; }
/* Le mot d'accueil : en capitales espacées, comme un surtitre */
.mp-hero__script { display: flex; align-items: center; gap: 10px; font-family: var(--font-body); font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--secondary); }
.mp-hero__script::before { content: ""; width: 24px; height: 3px; background: var(--accent); flex: none; }
.mp-hero__title { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; font-size: 42px; line-height: 1.04; color: var(--primary); text-wrap: balance; max-width: 16ch; }
.mp-hero .mp-lead { max-width: 36rem; }
.mp-hero:has(.mp-hero__media) { gap: 0; padding: 0; }
.mp-hero:has(.mp-hero__media) .mp-hero__body { padding: 32px var(--lp-gutter) 40px; }
.mp-hero:has(.mp-hero__media) .mp-hero__script { padding-bottom: 12px; border-bottom: 2px solid var(--secondary); color: var(--secondary); }
.mp-hero:has(.mp-hero__media) .mp-hero__script::before { content: none; }
.mp-hero__photo { display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: 0; }
/* Sans photo (pages intérieures) : une page de cahier, le titre posé sur ses lignes */
.mp-hero:not(:has(.mp-hero__media)) { padding-block: 44px 48px; background: var(--lp-seyes), var(--surface-card); border-bottom: var(--lp-line); }
.mp-hero:not(:has(.mp-hero__media)) .mp-hero__body { padding-left: 24px; }
.mp-hero:not(:has(.mp-hero__media)) .mp-hero__title { max-width: 22ch; font-size: 38px; }

/* ==========================================================================
   Blocs
   ========================================================================== */
.mp-image { margin: 0; display: grid; gap: 10px; }
.mp-image__photo { aspect-ratio: auto; }
.mp-image__caption { font-size: 15px; color: var(--ink-muted); padding-left: 12px; border-left: 3px solid var(--accent); }
:is(.mp-section[data-bg="accent"], .mp-illustration__content) .mp-image__caption { color: inherit; }

/* Cartes : des fiches de sommaire, sans cadre. Un filet de couleur en haut (vert d'eau, jaune d'or, vert d'eau pâle, jaune d'or) ;
   l'icône, ou à défaut un numéro, dans la marge gauche */
.mp-cards { list-style: none; padding: 0; display: grid; gap: 28px 32px; counter-reset: lp-card; }
.mp-card { position: relative; counter-increment: lp-card; display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 14px; row-gap: 6px; align-content: start; padding-top: 16px; border-top: 4px solid var(--rose); color: var(--ink); }
.mp-card > * { grid-column: 2; }
.mp-card > .mp-disc { grid-column: 1; grid-row: 1 / span 3; }
.mp-card:not(:has(.mp-disc, .mp-photo, .mp-ph))::before { content: counter(lp-card, decimal-leading-zero) / ""; grid-column: 1; grid-row: 1 / span 3; font-family: var(--font-display); font-weight: 600; font-size: 34px; line-height: 1; color: var(--primary); }
.mp-card:nth-child(4n+2) { border-top-color: var(--accent); }
.mp-card:nth-child(4n+3) { border-top-color: var(--vert); }
.mp-card:nth-child(4n+4) { border-top-color: var(--secondary); }
.mp-card:nth-child(4n+2)::before { color: var(--secondary); }
.mp-card:nth-child(4n+4)::before { color: var(--primary-strong); }
.mp-card:nth-child(4n+2) .mp-disc { background: var(--accent-soft); rotate: 3deg; }
.mp-card:nth-child(4n+3) .mp-disc { background: var(--vert-soft); }
.mp-card:nth-child(4n+4) .mp-disc { background: var(--secondary-soft); rotate: 2deg; }
/* Avec une photo : la photo sur toute la largeur de la fiche, le texte dessous */
.mp-card--image { grid-template-columns: minmax(0, 1fr); }
.mp-card--image > * { grid-column: 1; }
.mp-card--image .mp-photo, .mp-card--image .mp-ph { aspect-ratio: 3 / 2; margin-bottom: 8px; }
.mp-card .mp-h3 a { text-decoration: none; }
.mp-card--link .mp-h3 a::after { content: ""; position: absolute; inset: 0; }
.mp-card--link:hover .mp-h3 { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.mp-card--link:has(a:focus-visible) { outline: 3px solid var(--focus-ring); outline-offset: 4px; }
.mp-card--link a:focus-visible { outline: none; }
.mp-card__more { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; color: var(--primary-strong); }
.mp-card__more .mp-ico { width: 16px; height: 16px; }
:is(.mp-section[data-bg="accent"], .mp-illustration__content) .mp-card { color: inherit; }
:is(.mp-section[data-bg="accent"], .mp-illustration__content) .mp-card__more { color: inherit; }

/* Chiffres clés : de grands chiffres en Fraunces, séparés de filets pointillés */
.mp-figures { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 2px solid var(--primary); }
.mp-figure { display: grid; gap: 4px; align-content: start; padding: 18px 14px 18px 0; border-bottom: 1px dashed var(--line-strong); }
.mp-figure:nth-child(2n) { padding-left: 14px; border-left: 1px dashed var(--line-strong); }
.mp-figure .mp-disc { width: 40px; height: 40px; margin-bottom: 6px; }
.mp-figure__value { font-family: var(--font-display); font-weight: 600; font-size: 46px; line-height: 1; letter-spacing: -0.02em; color: var(--primary); }
.mp-figure:nth-child(4n+2) .mp-figure__value { color: var(--secondary); }
.mp-figure:nth-child(4n+3) .mp-figure__value { color: var(--primary-strong); }
.mp-figure:nth-child(4n+4) .mp-figure__value { color: var(--primary-strong); }
.mp-figure__label { color: var(--ink-muted); }

/* Galerie : des photos tirées sur papier, posées un peu de travers */
.mp-gallery-wrap { display: grid; gap: 16px; }
.mp-gallery { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mp-gallery button { display: block; width: 100%; padding: 6px 6px 18px; border: 1px solid var(--line); border-radius: 2px; background: var(--surface-card); cursor: zoom-in; rotate: -1.2deg; transition: rotate .15s ease; }
.mp-gallery li:nth-child(3n+2) button { rotate: 1deg; }
.mp-gallery li:nth-child(3n) button { rotate: -0.4deg; }
.mp-gallery button:hover { rotate: 0deg; }
.mp-gallery .mp-photo { aspect-ratio: 1 / 1; border-radius: 0; }
.mp-gallery-more { justify-self: start; }
.mp-lightbox-dialog { width: min(960px, calc(100vw - 24px)); max-height: 100dvh; padding: 0; border: 0; border-radius: var(--lp-radius); background: transparent; }
.mp-lightbox-dialog::backdrop { background: rgba(14, 24, 38, 0.86); }
.mp-lightbox { display: grid; gap: 10px; padding: 12px; border-radius: var(--lp-radius); background: var(--surface-card); color: var(--ink); }
.mp-lightbox__bar, .mp-lightbox__nav { display: flex; justify-content: space-between; align-items: center; }
.mp-lightbox__image { aspect-ratio: auto; object-fit: contain; max-height: 72dvh; background: transparent; }
.mp-lightbox__caption { margin: 0; }

/* Appel à l'action : en haut, l'arc d'une fenêtre ; texte à gauche, bouton à droite sur ordinateur */
.mp-cta { display: grid; gap: 18px; justify-items: start; }
.mp-cta__title { font-family: var(--font-display); font-weight: 600; font-size: 32px; line-height: 1.12; letter-spacing: -0.015em; color: var(--primary); text-wrap: balance; }
.mp-section[data-block="cta"]:not([data-bg="accent"]) .mp-cta { padding: 28px 22px; border: 2px solid var(--primary); border-radius: var(--lp-radius); background: var(--surface-card); }

.mp-embed { display: grid; gap: 10px; }
.mp-embed__frame { position: relative; width: 100%; overflow: hidden; border: 2px solid var(--primary); border-radius: var(--lp-radius); background: var(--surface-alt); }
.mp-embed__frame[data-format="16:9"] { aspect-ratio: 16 / 9; }
.mp-embed__frame[data-format="4:3"] { aspect-ratio: 4 / 3; }
.mp-embed__frame[data-format="carre"] { aspect-ratio: 1 / 1; }
.mp-embed__frame[data-format="fixe"] { height: var(--embed-height, 480px); }
.mp-embed__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mp-embed__consent { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 20px; text-align: center; }
.mp-embed__out { justify-self: start; font-size: 15px; }

/* Documents : des lignes de registre, l'icône dans un carré vert d'eau pâle */
.mp-docs { list-style: none; padding: 0; display: grid; border-top: 2px solid var(--primary); }
.mp-doc a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; overflow-wrap: anywhere; gap: 14px; align-items: center; min-height: 68px; padding: 12px 4px; border-bottom: 1px dashed var(--line-strong); text-decoration: none; }
.mp-doc a:hover .mp-doc__name { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.mp-doc__ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: var(--lp-radius); background: var(--secondary-soft); color: var(--secondary); }
.mp-doc__dl { color: var(--primary-strong); }
.mp-doc__name { display: block; font-weight: 700; }
.mp-doc__meta { display: block; font-size: 15px; color: var(--ink-muted); }

.mp-faq { display: grid; border-top: 2px solid var(--primary); }
.mp-faq details { border-bottom: 1px dashed var(--line-strong); }
.mp-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 60px; padding: 12px 4px; font-weight: 700; list-style: none; cursor: pointer; }
.mp-faq summary::-webkit-details-marker { display: none; }
.mp-faq summary:hover { color: var(--primary-strong); }
.mp-faq__plus { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: var(--lp-radius); background: var(--accent-soft); color: var(--primary); }
.mp-faq details[open] .mp-faq__plus .mp-ico { transform: rotate(45deg); }
.mp-faq__a { padding: 0 4px 18px; }

/* Réseaux sociaux : une signature de magazine, sans boîte. Le nom du réseau en grand, l'icône en petite gommette
   devant, le nom de l'école en petites capitales dessous ; un filet sépare les réseaux sur un écran large */
.mp-social { display: flex; flex-wrap: wrap; gap: 18px 0; }
.mp-social__btn { display: grid; grid-template-columns: auto auto auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center; justify-content: start; min-height: 44px; padding: 0 40px 0 0; color: var(--primary); text-decoration: none; }
.mp-social__btn .mp-disc { grid-row: 1 / span 2; width: 40px; height: 40px; }
.mp-social__btn:nth-child(2n) .mp-disc { background: var(--accent-soft); rotate: 4deg; }
.mp-social__btn > span:not(.mp-disc) { display: contents; }
.mp-social__btn strong { grid-column: 2; grid-row: 1; font-family: var(--font-display); font-weight: 600; font-size: 34px; line-height: 1.05; letter-spacing: -0.015em; }
.mp-social__btn strong + span { grid-column: 2 / span 2; grid-row: 2; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); }
.mp-social__btn > .mp-ico { grid-column: 3; grid-row: 1; align-self: start; margin-top: 6px; width: 18px; height: 18px; color: var(--secondary); }
.mp-social__btn:hover strong { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 6px; }
@container page (min-width: 640px) {
  .mp-social__btn + .mp-social__btn { padding-left: 40px; border-left: 1px solid var(--line-strong); }
  .mp-social__btn strong { font-size: 44px; }
}
:is(.mp-section[data-bg="accent"], .mp-illustration__content) .mp-social__btn { color: inherit; }
:is(.mp-section[data-bg="accent"], .mp-illustration__content) .mp-social__btn :is(strong + span, .mp-ico) { color: inherit; }

.mp-contact { display: grid; gap: 32px; }
.mp-coords { list-style: none; padding: 0; display: grid; gap: 16px; }
.mp-coords li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.mp-coords li:nth-child(4n+2) .mp-disc { background: var(--accent-soft); rotate: 3deg; }
.mp-coords li:nth-child(4n+3) .mp-disc { background: var(--vert-soft); }
.mp-coords li:nth-child(4n+4) .mp-disc { background: var(--secondary-soft); rotate: 2deg; }
.mp-coords .mp-disc { width: 42px; height: 42px; }
.mp-coords__k { display: block; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); }
.mp-coords a { color: var(--primary); font-weight: 700; }
.mp-form { display: grid; gap: 16px; }
.mp-form--card { padding: 22px; border: var(--lp-line); border-top: 6px solid var(--secondary); border-radius: var(--lp-radius); background: var(--surface-card); }
.mp-field { display: grid; gap: 6px; }
.mp-field label { font-weight: 700; font-size: 16px; }
.mp-field__opt { font-weight: 400; color: var(--ink-muted); }
.mp-input { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--lp-radius); background: var(--surface-card); color: var(--ink); font: inherit; }
.mp-input:focus-visible { border-color: var(--primary); }
textarea.mp-input { min-height: 140px; resize: vertical; }
.mp-field--error .mp-input { border-color: var(--danger); }
.mp-field__error { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; font-weight: 700; color: var(--lp-danger); }
.mp-contact__map { display: grid; gap: 8px; }
.mp-contact__map .mp-map { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border: 2px solid var(--primary); border-radius: var(--lp-radius); }
/* Le marqueur de l'école : le cœur du logo */
.mp-map__frame { position: relative; }
.mp-map__frame::after { content: ""; position: absolute; left: calc(50% - 20px); top: calc(50% - 34px); width: 40px; height: 37px; background: url("images/coeur.svg") center / contain no-repeat; pointer-events: none; }
.mp-contact__route { display: inline-flex; gap: 8px; align-items: center; justify-self: start; }

/* Classes : le tableau de répartition de la rentrée. Une ligne par classe : la vignette dans une fenêtre cintrée,
   le niveau en grand, l'équipe, la présentation ; en colonnes sur un écran large */
.mp-classes { list-style: none; padding: 0; display: grid; border-top: 2px solid var(--primary); }
.mp-class { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 16px; row-gap: 4px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.mp-class > :is(.mp-ph, .mp-photo) { grid-column: 1; grid-row: 1 / span 4; width: 64px; aspect-ratio: 4 / 5; border: 2px solid var(--primary); border-radius: var(--lp-arch); }
.mp-class > .mp-ph { background-image: none; background-color: var(--rose); }
.mp-class:nth-child(3n+2) > .mp-ph { background-color: var(--accent); }
.mp-class:nth-child(3n) > .mp-ph { background-color: var(--vert); }
.mp-class__body { display: contents; }
.mp-class .mp-h3 { grid-column: 2; font-size: 26px; line-height: 1.1; }
.mp-class__name { grid-column: 2; margin: 0; color: var(--secondary); font-family: var(--font-display); font-style: italic; }
.mp-class__team { grid-column: 2; list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: 16px; font-weight: 700; color: var(--ink); }
.mp-class__team li { display: flex; align-items: center; gap: 8px; }
.mp-class__team .mp-ico { width: 16px; height: 16px; color: var(--secondary); }
.mp-class__presentation { grid-column: 2; margin: 0; color: var(--ink-muted); font-size: 16px; }
@container page (min-width: 768px) {
  .mp-class { grid-template-columns: 72px 11rem minmax(0, 1fr) minmax(0, 1.4fr); column-gap: 24px; align-items: center; }
  .mp-class > :is(.mp-ph, .mp-photo) { width: 72px; grid-row: 1 / span 2; }
  .mp-class .mp-h3 { grid-row: 1 / span 2; }
  .mp-class:has(.mp-class__name) .mp-h3 { grid-row: 1; align-self: end; }
  .mp-class__name { grid-row: 2; align-self: start; }
  .mp-class__team { grid-column: 3; grid-row: 1 / span 2; }
  .mp-class__presentation { grid-column: 4; grid-row: 1 / span 2; }
}

/* Équipe : chaque portrait dans une fenêtre cintrée */
.mp-team { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 14px; }
.mp-person { display: grid; justify-items: start; gap: 2px; }
.mp-avatar { display: grid; place-items: center; width: 92px; height: 112px; margin-bottom: 10px; overflow: hidden; border: 2px solid var(--primary); border-radius: var(--lp-arch); background: var(--rose-soft); font-family: var(--font-display); font-weight: 600; font-size: 28px; color: var(--primary); }
.mp-person:nth-child(4n+2) .mp-avatar { background: var(--accent-soft); }
.mp-person:nth-child(4n+3) .mp-avatar { background: var(--vert-soft); }
.mp-person:nth-child(4n+4) .mp-avatar { background: var(--secondary-soft); }
.mp-avatar .mp-photo { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
.mp-avatar button { display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: inherit; background: none; cursor: zoom-in; }
.mp-avatar button:focus-visible { outline-offset: -3px; }
.mp-person__name { font-weight: 700; }
.mp-person__role { font-size: 15px; color: var(--ink-muted); }

/* Prochains rendez-vous : des feuilles d'éphéméride (le mois sur un bandeau vert d'eau, le jour en grand), posées un peu
   de travers ; en lignes sur téléphone */
.mp-events { list-style: none; padding: 0; display: grid; gap: 0; }
.mp-event { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.mp-date { display: flex; flex-direction: column-reverse; align-items: stretch; overflow: hidden; border: 2px solid var(--primary); border-radius: var(--lp-radius); background: var(--surface-card); color: var(--primary); text-align: center; }
.mp-date__m { padding: 3px 0 2px; background: var(--lp-lilac); color: var(--deep); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.mp-date__d { padding: 6px 0 8px; font-family: var(--font-display); font-weight: 600; font-size: 30px; line-height: 1; }
.mp-event__body { display: grid; gap: 4px; justify-items: start; }
.mp-event__title { font-family: var(--font-display); font-size: 20px; font-weight: 600; line-height: 1.25; color: var(--primary); }
.mp-event__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 15px; color: var(--ink-muted); }
.mp-event__meta > span { display: inline-flex; align-items: center; gap: 6px; }
.mp-event__meta .mp-ico { width: 16px; height: 16px; }
.mp-events .mp-time { white-space: nowrap; }
@container page (min-width: 768px) {
  .mp-events:not(.mp-events--list) { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 32px 28px; }
  .mp-events:not(.mp-events--list) .mp-event { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 14px; padding: 0; border: 0; }
  .mp-events:not(.mp-events--list) .mp-date { width: 132px; rotate: -1.5deg; }
  .mp-events:not(.mp-events--list) .mp-event:nth-child(2n) .mp-date { rotate: 1.2deg; }
  .mp-events:not(.mp-events--list) .mp-date__m { padding-block: 6px 5px; font-size: 14px; }
  .mp-events:not(.mp-events--list) .mp-date__d { padding-block: 14px 16px; font-size: 56px; }
}

/* Agenda complet : un registre. Le mois en grand titre, puis une ligne par événement, blanche et vert d'eau pâle en
   alternance ; le jour en gros chiffre jaune d'or */
.mp-agenda-month { display: grid; gap: 10px; }
.mp-agenda-month + .mp-agenda-month { margin-top: 28px; }
.mp-agenda-month__title { padding-bottom: 8px; border-bottom: 2px solid var(--primary); font-size: 28px; text-transform: capitalize; }
.mp-events--list .mp-event { grid-template-columns: 56px minmax(0, 1fr); padding: 14px 12px; border: 0; }
.mp-events--list .mp-event:nth-child(odd) { background: var(--surface-alt); }
.mp-events--list .mp-date { display: grid; overflow: visible; border: 0; background: none; color: var(--secondary); }
.mp-events--list .mp-date__d { padding: 0; font-size: 34px; }
.mp-events--list .mp-date__m { padding: 2px 0 0; background: none; color: var(--ink-muted); font-size: 12px; }
@container page (min-width: 768px) {
  .mp-events--list .mp-event { grid-template-columns: 64px minmax(0, 1fr) 11rem; align-items: center; column-gap: 20px; padding: 14px 16px; }
  .mp-events--list .mp-event__body { display: contents; }
  .mp-events--list .mp-event__body > :not(.mp-badge) { grid-column: 2; }
  .mp-events--list .mp-date { grid-row: 1 / span 3; align-self: center; }
  .mp-events--list .mp-event__body > .mp-badge { grid-column: 3; grid-row: 1 / span 3; justify-self: start; }
}

.mp-canteen { display: grid; gap: 14px; }
.mp-canteen__day { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 22px; color: var(--primary); }
.mp-canteen__group { display: grid; gap: 8px; }
.mp-canteen__title { margin: 0; font-size: 18px; }
.mp-canteen__dishes { list-style: none; margin: 0; padding: 0; border: var(--lp-line); border-left: 4px solid var(--vert); border-radius: var(--lp-radius); background: var(--surface-card); }
.mp-canteen__dish { padding: 12px 16px; }
.mp-canteen__dish + .mp-canteen__dish { border-top: 1px dashed var(--line); }
.mp-canteen__name { font-weight: 700; }
.mp-canteen__connector { color: var(--ink-muted); font-style: italic; }
.mp-canteen__extra { display: block; font-size: 15px; color: var(--ink-muted); }
.mp-canteen__labels { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.mp-canteen__label { padding: 2px 8px; border-radius: var(--lp-radius); background: var(--vert-soft); font-size: 13px; font-weight: 700; }
.mp-canteen__note { margin: 0; font-size: 14px; color: var(--ink-muted); }
.mp-canteen .mp-actions { margin: 0; }

/* ==========================================================================
   Tablettes et ordinateurs
   ========================================================================== */
@container page (min-width: 640px) {
  .mp-cards { grid-template-columns: repeat(2, 1fr); }
  .mp-gallery { grid-template-columns: repeat(3, 1fr); }
  .mp-team { grid-template-columns: repeat(3, 1fr); }
  .mp-contact { grid-template-columns: 1fr 1fr; }
  .mp-contact__form { grid-column: 2; grid-row: 1 / span 2; }
  .mp-figures { grid-template-columns: repeat(var(--n, 4), 1fr); }
  .mp-figure, .mp-figure:nth-child(2n) { padding: 20px 20px 20px 0; border-left: 0; border-bottom: 0; }
  .mp-figure + .mp-figure { padding-left: 20px; border-left: 1px dashed var(--line-strong); }
}

@container page (min-width: 1024px) {
  .mp-page { --lp-gutter: 40px; }
  .mp-header { min-height: 92px; }
  .mp-brand img { height: 62px; }
  .mp-nav { display: flex; }
  .mp-burger, .mp-drawer { display: none; }
  .mp-section { padding-block: 88px; }

  .mp-h2 { font-size: 46px; }
  .mp-h3 { font-size: 23px; }
  .mp-prose blockquote { font-size: 32px; }
  .mp-hero { padding-block: 72px 96px; }
  .mp-hero__title { font-size: 68px; }
  .mp-hero:has(.mp-hero__media) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: min(680px, 82vh); padding: 0; }
  .mp-hero:has(.mp-hero__media) .mp-hero__body { align-content: end; max-width: none; margin: 0; padding: 64px 48px 72px max(112px, calc((100cqw - var(--lp-max)) / 2 + 72px)); }
  .mp-hero:has(.mp-hero__media) .mp-hero__script { position: absolute; top: 64px; bottom: 72px; left: max(40px, calc((100cqw - var(--lp-max)) / 2)); writing-mode: vertical-rl; rotate: 180deg; padding: 0 0 0 14px; border: 0; border-left: 2px solid var(--secondary); text-align: right; }
  .mp-hero:has(.mp-hero__media) .mp-hero__title { font-size: 76px; line-height: .98; }
  .mp-hero:has(.mp-hero__media) .mp-actions { flex-direction: column; }
  .mp-hero:has(.mp-hero__media) .mp-hero__photo { height: 100%; aspect-ratio: auto; }
  .mp-hero:not(:has(.mp-hero__media)) { padding-block: 72px 64px; padding-inline: max(var(--lp-gutter), calc((100cqw - var(--lp-max)) / 2)); }
  .mp-hero:not(:has(.mp-hero__media)) .mp-hero__body { padding-left: 32px; }
  .mp-hero:not(:has(.mp-hero__media)) .mp-hero__title { font-size: 54px; }
  .mp-section[data-bg="alterne"] > .mp-inner, .mp-hero:has(.mp-hero__media) + .mp-section > .mp-inner { padding-left: 32px; }
  .mp-cards:has(> li:nth-child(3)) { grid-template-columns: repeat(3, 1fr); }
  .mp-cards:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); }
  .mp-figure__value { font-size: 60px; }
  .mp-gallery { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .mp-cta { grid-template-columns: 1fr auto; align-items: center; column-gap: 48px; }
  .mp-cta > .mp-actions { grid-column: 2; grid-row: 1 / span 3; }
  .mp-cta__title { font-size: 40px; }
  .mp-section[data-block="cta"]:not([data-bg="accent"]) .mp-cta { padding: 40px 48px; }
  .mp-team { grid-template-columns: repeat(5, 1fr); }
  .mp-contact { grid-template-columns: 5fr 6fr; gap: 56px; }
  .mp-footer { padding-top: 64px; }
  .mp-footer__grid { grid-template-columns: 2fr 1fr 1fr; }
}

/* Boutons d'un bloc qui défile : discrets, centrés sous le bloc ; un carré de 32 px dans une zone de 44 px */
.mp-controls { display: flex; justify-content: center; }
.mp-controls[hidden], .mp-controls [hidden] { display: none; }
.mp-controls .mp-icon-btn { position: relative; border: 0; background: transparent; color: var(--ink-muted); }
.mp-controls .mp-icon-btn::before { content: ""; position: absolute; inset: 6px; border-radius: var(--lp-radius); background: color-mix(in srgb, var(--ink) 7%, transparent); }
.mp-controls .mp-icon-btn:hover { color: var(--ink); }
.mp-controls .mp-icon-btn:hover::before { background: color-mix(in srgb, var(--ink) 14%, transparent); }
.mp-controls .mp-icon-btn .mp-ico { position: relative; width: 16px; height: 16px; }
.mp-controls .mp-icon-btn:nth-child(2) { order: -1; }

.mp-carousel { container-type: inline-size; display: grid; gap: 8px; --n: 2; --gap: 16px; }
.mp-carousel > .mp-controls { order: 1; }
.mp-carousel__track { display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; list-style: none; margin: 0; padding: 0; scrollbar-width: none; }
.mp-carousel__track::-webkit-scrollbar { display: none; }
.mp-carousel__item { flex: 0 0 calc((100% - (var(--n) - 1) * var(--gap)) / var(--n)); min-width: 0; scroll-snap-align: start; display: flex; }
.mp-carousel__item > * { flex: 1; min-width: 0; }
@container (min-width: 560px) { .mp-carousel--partners > .mp-carousel__track { --n: 4; } }
@container (min-width: 880px) { .mp-carousel--partners > .mp-carousel__track { --n: 6; } }

/* Témoignages : une citation à la fois, alignée à gauche, en manuscrit ; fondu enchaîné */
.mp-testimonials { display: grid; gap: 8px; }
.mp-testimonials > .mp-controls { order: 1; justify-content: flex-start; }
.mp-testimonials__slides { display: grid; }
.mp-testimonial { grid-area: 1 / 1; box-sizing: border-box; display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: 44rem; margin: 0; color: var(--ink); transition: opacity 1.2s ease-in-out; }
.mp-testimonial[inert] { opacity: 0; }
.mp-testimonial__quote { flex: 1; display: flex; flex-direction: column; justify-content: center; margin: 0; padding-left: 20px; border-left: 4px solid var(--accent); }
.mp-testimonial__quote p { margin: 0; font-family: var(--font-script); font-weight: var(--script-weight, 700); font-size: 24px; line-height: 1.4; color: var(--primary); }
.mp-testimonial__author { display: flex; align-items: center; gap: 12px; min-height: 48px; padding-left: 24px; font-size: 15px; font-weight: 700; color: var(--ink-muted); }
.mp-testimonial__photo { flex: none; width: 48px; height: 48px; border-radius: var(--lp-arch); object-fit: cover; object-position: var(--focal-x, 50%) var(--focal-y, 50%); }
@container page (min-width: 768px) { .mp-testimonial__quote p { font-size: 30px; } }

.mp-partner { box-sizing: border-box; display: grid; height: 120px; padding: 14px; border: var(--lp-line); border-radius: var(--lp-radius); background: var(--surface-card); }
a.mp-partner:hover { border-color: var(--primary); }
.mp-partner__logo { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }

/* Tableau : en-tête jaune d'or, lignes en pointillés */
.mp-table-wrap { overflow-x: auto; border: 2px solid var(--primary); border-radius: var(--lp-radius); background: var(--surface-card); }
.mp-table { width: 100%; border-collapse: collapse; color: var(--ink); }
.mp-table th, .mp-table td { padding: 12px 16px; text-align: left; vertical-align: top; }
.mp-table td { min-width: 7rem; }
.mp-table tr + tr > * { border-top: 1px dashed var(--line-strong); }
.mp-table thead th { background: var(--accent); color: var(--on-accent); font-weight: 700; white-space: nowrap; }
.mp-table tbody th { font-family: var(--font-display); font-weight: 600; color: var(--primary); }
.mp-table__note { margin: 10px 0 0; }
@container page (max-width: 639px) {
  .mp-table:has(thead) thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .mp-table:has(thead), .mp-table:has(thead) :is(tbody, tr) { display: block; }
  .mp-table:has(thead) tr { padding: 12px 16px; }
  .mp-table:has(thead) tr + tr > * { border-top: 0; }
  .mp-table:has(thead) tbody tr + tr { border-top: 1px dashed var(--line-strong); }
  .mp-table:has(thead) tbody :is(td, th) { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 12px; min-width: 0; padding: 2px 0; }
  .mp-table:has(thead) tbody :is(td, th)::before { content: attr(data-label); font-weight: 700; font-family: var(--font-body); color: var(--ink-muted); }
  .mp-table:has(thead) tbody > tr > :first-child { display: block; padding-bottom: 6px; }
  .mp-table:has(thead) tbody > tr > :first-child::before { content: none; }
}
:is(.mp-section[data-bg="accent"], .mp-illustration__content) .mp-table__note { color: inherit; }

/* Image d'illustration : la photo sur toute la largeur, nette, sans voile. Le texte dans un encart pétrole qui
   mord sur le bas de la photo, aligné sur la colonne, sans ombre ; les boutons du diaporama en haut à droite */
.mp-illustration { position: relative; display: grid; }
.mp-illustration__photo { grid-area: 1 / 1; display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: var(--focal-x, 50%) var(--focal-y, 50%); }
.mp-illustration--text { padding-bottom: 48px; }
.mp-illustration--text .mp-illustration__photo { aspect-ratio: 4 / 3; }
.mp-illustration .mp-illustration__content { grid-area: 2 / 1; position: relative; z-index: 1; display: grid; gap: 12px; justify-items: start; margin: -56px var(--lp-gutter) 0 var(--lp-gutter); padding: 26px 22px 28px; border-radius: var(--lp-radius); }
.mp-illustration__content :is(.mp-h2, .mp-lead) { margin: 0; }
.mp-illustration__content > * { max-width: 40rem; }
.mp-illustration__content .mp-h2::after { content: ""; display: block; width: 112px; height: 12px; margin-top: 10px; background: var(--accent); -webkit-mask: url("images/trait.svg") left center / 100% 100% no-repeat; mask: url("images/trait.svg") left center / 100% 100% no-repeat; }
@container page (min-width: 600px) { .mp-illustration__photo { aspect-ratio: 4 / 3; } }
@container page (min-width: 1024px) {
  .mp-illustration .mp-illustration__photo { aspect-ratio: 21 / 9; }
  .mp-illustration--text { grid-template-rows: auto 64px; padding-bottom: 24px; }
  .mp-illustration--text .mp-illustration__photo { aspect-ratio: 21 / 9; grid-area: 1 / 1 / 2 / 2; }
  .mp-illustration--text .mp-illustration__slides { grid-area: 1 / 1 / 2 / 2; }
  .mp-illustration .mp-illustration__content { grid-area: 1 / 1 / 3 / 2; align-self: end; justify-self: start; width: min(42rem, 100% - 2 * var(--lp-gutter)); margin: 0 0 0 max(var(--lp-gutter), calc((100cqw - var(--lp-max)) / 2)); padding: 36px 40px 40px; }
}
.mp-illustration__slides, .mp-illustration__slide { grid-area: 1 / 1; display: grid; }
.mp-illustration__slide { transition: opacity 1.2s ease-in-out; }
.mp-illustration__slide[inert] { opacity: 0; }
.mp-illustration > .mp-controls { grid-area: 1 / 1; z-index: 2; align-self: start; justify-self: end; margin: 12px; }
.mp-illustration > .mp-controls .mp-icon-btn { color: #fff; }
.mp-illustration > .mp-controls .mp-icon-btn::before { background: rgba(17, 32, 51, 0.66); }
.mp-illustration > .mp-controls .mp-icon-btn:hover::before { background: rgba(17, 32, 51, 0.9); }
@media (prefers-reduced-motion: reduce) { .mp-illustration__slide, .mp-testimonial { transition: none; } }

::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }

/* Survol des boutons : sur un fond sombre, tous passent en clair plein ; dans une zone claire, en jaune d'or plein ; sur
   l'appel à l'action jaune, en clair. « :root » passe devant les règles propres à chaque fond,
   sans « !important » */
:root .mp-page .mp-btn:hover { background: var(--lp-btn-hover); border-color: var(--lp-btn-hover); color: var(--lp-btn-hover-ink); }
:root .mp-page .mp-btn--ghost:hover { background: var(--lp-ghost-hover); border-color: var(--lp-ghost-hover); color: var(--lp-ghost-hover-ink); }
:root .mp-page .mp-btn--accent:hover { background: #f8fbfa; border-color: #f8fbfa; color: #134a52; }

/* Mouvement réduit : ni transition ni déplacement au survol (en fin de feuille, pour passer après chaque bloc) */
@media (prefers-reduced-motion: reduce) {
  .mp-btn, .mp-btn::after, .mp-gallery button { transition: none; }
  :is(.mp-link, .mp-prose a, .mp-coords a, .mp-footer a:not(.mp-footer__social a)) { transition: none; }
  .mp-btn:hover::after { translate: none; }
}
