/*
Theme Name: MonEchauffement
Theme URI: https://monechauffement.com
Author: MonEchauffement
Description: Thème bloc sur mesure de la plateforme MonEchauffement (jeux d'échauffement EPS). Construit depuis la maquette validée ; nécessite l'extension « MonEchauffement — Cœur métier ».
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: monechauffement
Tags: block-theme, full-site-editing, education, one-column
*/

/* ===== 1. CSS de la maquette (inchangé) ===== */
:root {
  --navy: #0B2943;
  --navy-deep: #062237;
  --navy-2: #12355A;
  --orange: #FB8243;
  --orange-fort: #EE6A1C;
  --cyan: #42D8FA;
  --jaune: #F9D252;
  --bleu-pale: #E4F1FA;
  --gris-bleu: #DCE8F3;
  --blanc: #FFFFFF;
  --texte: #0B2943;
  --texte-doux: #4D6177;
  --trait: #D3E0EC;
  --display: "Bebas Neue", "Oswald", Impact, "Arial Narrow", sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-xl: 24px;
  --r-lg: 18px;
  --r-md: 13px;
  --r-sm: 9px;
  --page: min(1320px, calc(100vw - 32px));
  --contenu: min(1140px, calc(100vw - 40px));
  --ombre: 0 18px 40px -22px rgba(11, 41, 67, .45);
  --easing: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--blanc); color: var(--texte);
  font-family: var(--sans); font-size: 15px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; text-wrap: balance; hyphens: none; }
p, ul, ol { margin: 0; }
button { font: inherit; color: inherit; }
:where(a, button, input, select, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 8px;
}
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lien-evitement { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 13px; }
.lien-evitement:focus { top: 12px; }

/* ---------- Typographie ---------- */
.d1, .d2, .d3, .d4 { font-family: var(--display); text-transform: uppercase; line-height: .92; letter-spacing: .005em; }
.d1 { font-size: clamp(54px, 7.2vw, 108px); }
.d2 { font-size: clamp(42px, 5.2vw, 76px); }
.d3 { font-size: clamp(34px, 3.8vw, 56px); }
.d4 { font-size: clamp(24px, 2.2vw, 32px); line-height: 1; }
.lbl { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; line-height: 1.45; }
.lbl-doux { color: var(--texte-doux); }
.petit { font-size: 12px; font-weight: 500; letter-spacing: .03em; text-transform: uppercase; line-height: 1.6; color: var(--texte-doux); }
.chiffre { font-family: var(--display); font-size: 34px; line-height: 1; white-space: nowrap; }

/* Image en pastille dans un titre (référence : « CHOOSE [img] ») */
.pastille-img {
  display: inline-block; vertical-align: .02em; width: 1.55em; height: .74em;
  border-radius: 999px; overflow: hidden; position: relative; margin: 0 .06em;
  background: var(--cyan);
}
.pastille-img img { position: absolute; margin: auto; height: 104%; width: auto; max-width: none; left: 50%; transform: translateX(-50%); bottom: -6%; object-fit: contain; }
.pastille-img img.couvre { height: 100%; width: 100%; bottom: 0; object-fit: cover; }
.pastille-img.orange { background: var(--orange); }
.pastille-img.jaune { background: var(--jaune); }
.pastille-img.pale { background: var(--bleu-pale); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0; text-decoration: none; cursor: pointer;
  border: 0; background: none; padding: 0;
}
.btn-texte {
  display: inline-flex; align-items: center; height: 40px; padding: 0 22px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  background: var(--navy); color: #fff; transition: background .25s;
}
.btn-rond {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--orange); color: var(--navy); margin-left: -4px; flex: none;
  box-shadow: 0 0 0 4px var(--blanc); transition: transform .35s var(--easing), background .25s;
}
.btn-rond svg { width: 16px; height: 16px; }
.btn:hover .btn-rond, .btn:focus-visible .btn-rond { transform: rotate(45deg); }
.btn:hover .btn-texte { background: var(--navy-2); }
.btn.clair .btn-texte { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.75); }
.btn.contour .btn-texte { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn.sur-sombre .btn-rond { box-shadow: 0 0 0 4px var(--navy); }
.lien-fleche { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.lien-fleche svg { width: 12px; height: 12px; transition: transform .3s var(--easing); }
.lien-fleche:hover svg { transform: translate(2px, -2px); }
.fleche-coin { position: absolute; top: 14px; right: 14px; width: 22px; height: 22px; color: currentColor; transition: transform .35s var(--easing); }
.puce {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 12px; border-radius: 999px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  box-shadow: inset 0 0 0 1.3px currentColor; white-space: nowrap; background: transparent;
}
.puce.pleine { background: var(--blanc); box-shadow: none; color: var(--navy); }
.puce svg { width: 13px; height: 13px; }

/* ---------- En-tête ---------- */
.entete { position: relative; z-index: 40; background: var(--blanc); }
.entete-rangee { width: var(--page); margin: 0 auto; height: 74px; display: flex; align-items: center; gap: 28px; }
.marque { font-family: var(--sans); font-weight: 900; font-size: 19px; letter-spacing: -.02em; text-decoration: none; text-transform: uppercase; color: var(--navy); white-space: nowrap; }
.marque span { color: var(--orange); }
.nav-principale { flex: 1; display: flex; justify-content: center; }
.nav-principale > ul { list-style: none; padding: 0; display: flex; gap: 6px; align-items: center; }
.nav-principale a, .nav-principale .ouvre-mega {
  display: inline-flex; align-items: center; gap: 5px; height: 38px; padding: 0 12px; border-radius: 999px; border: 0; background: none; cursor: pointer;
  font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: var(--navy);
  transition: background .2s;
}
.nav-principale a:hover, .nav-principale .ouvre-mega:hover, .ouvre-mega[aria-expanded="true"] { background: var(--bleu-pale); }
.nav-principale a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--orange); border-radius: 0; }
.ouvre-mega svg { width: 10px; height: 10px; transition: transform .25s; }
.ouvre-mega[aria-expanded="true"] svg { transform: rotate(180deg); }
.entete-cta { transform: translateY(10px); position: relative; z-index: 2; }
.entete-cta .btn-texte { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); height: 38px; }
.entete-cta .btn-rond { width: 38px; height: 38px; }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--navy); color: #fff; cursor: pointer; place-items: center; }
.burger svg { width: 20px; height: 20px; }

/* ---------- Méga-menu ---------- */
.mega {
  position: absolute; left: 0; right: 0; top: 66px; width: var(--page); margin: 0 auto;
  background: var(--blanc); border-radius: var(--r-xl); box-shadow: 0 30px 70px -30px rgba(6, 34, 55, .55), 0 0 0 1px var(--trait);
  padding: 26px; display: grid; grid-template-columns: 1.15fr 1fr 1fr .9fr; gap: 18px;
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .22s var(--easing), transform .22s var(--easing), visibility 0s .22s;
}
.mega.est-ouvert { opacity: 1; visibility: visible; transform: none; transition: opacity .22s var(--easing), transform .22s var(--easing); }
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; } /* pont : le menu ne disparaît pas entre le bouton et le panneau */
.mega-col { border-radius: var(--r-lg); padding: 18px; background: var(--bleu-pale); position: relative; overflow: hidden; }
.mega-col.orange .mega-titre .ico { background: var(--orange); }
.mega-col.jaune .mega-titre .ico { background: var(--jaune); }
.mega-col.cyan .mega-titre .ico { background: var(--cyan); }
.mega-titre { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.mega-titre .ico { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--blanc); flex: none; }
.mega-titre .ico svg { width: 20px; height: 20px; }
.mega-titre a { font-family: var(--display); font-size: 25px; line-height: .95; text-decoration: none; text-transform: uppercase; }
.mega-titre a:hover { color: var(--orange-fort); }
.mega-groupe + .mega-groupe { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(11, 41, 67, .12); }
.mega-groupe > a, .mega-groupe > span { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--texte-doux); text-decoration: none; margin-bottom: 6px; }
.mega-groupe > a:hover { color: var(--navy); }
.mega-liens { list-style: none; padding: 0; display: grid; gap: 2px; }
.mega-liens a { display: flex; align-items: center; gap: 9px; padding: 6px 8px; margin: 0 -8px; border-radius: 10px; text-decoration: none; font-size: 14px; font-weight: 600; }
.mega-liens a:hover, .mega-liens a:focus-visible { background: var(--blanc); }
.mega-liens svg { width: 18px; height: 18px; flex: none; }
.mega-liens .statut { margin-left: auto; font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--texte-doux); }
.mega-vedette { background: var(--navy); color: #fff; display: flex; flex-direction: column; justify-content: space-between; min-height: 300px; }
.mega-vedette img { position: absolute; right: -24px; bottom: -10px; width: 62%; pointer-events: none; }
.mega-vedette .d4 { position: relative; max-width: 11ch; }
.mega-vedette .petit { color: rgba(255,255,255,.7); position: relative; max-width: 22ch; margin-top: 10px; }
.mega-vedette .btn { position: relative; margin-top: auto; }

/* ---------- Héros ---------- */
.heros {
  width: var(--page); margin: 0 auto; position: relative; background: var(--navy); color: #fff;
  border-radius: var(--r-xl); min-height: 600px; display: grid; grid-template-columns: 236px .95fr 1.25fr; overflow: hidden;
  isolation: isolate;
}
/* encoche blanche en haut à droite, où se loge le bouton contact (référence) */
.heros-encoche { position: absolute; top: 0; right: 0; width: 214px; height: 26px; background: var(--blanc); border-bottom-left-radius: 20px; z-index: 3; }
.heros-encoche::before, .heros-encoche::after { content: ""; position: absolute; width: 20px; height: 20px; }
.heros-encoche::before { left: -20px; top: 0; background: radial-gradient(circle at 0 100%, transparent 19.5px, var(--blanc) 20px); }
.heros-encoche::after { right: 0; bottom: -20px; background: radial-gradient(circle at 0 100%, transparent 19.5px, var(--blanc) 20px); }
.heros-gauche { padding: 34px 26px 30px 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 30px; border-right: 1px solid rgba(255,255,255,.14); margin: 22px 0; }
.rotatif { position: relative; width: 104px; height: 104px; }
.rotatif img { position: absolute; inset: 18px; width: 68px; height: 68px; object-fit: contain; animation: rebond 3.2s ease-in-out infinite; }
.rotatif svg.fleches { position: absolute; inset: 0; width: 104px; height: 104px; animation: tourne 14s linear infinite; color: rgba(255,255,255,.65); }
.carrousel-familles { min-height: 54px; position: relative; }
.carrousel-familles p { position: absolute; inset: 0; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s var(--easing); color: rgba(255,255,255,.86); }
.carrousel-familles p.est-actif { opacity: 1; transform: none; position: relative; }
.mini-nav { display: flex; gap: 8px; margin-top: 12px; }
.mini-nav button { width: 26px; height: 26px; border-radius: 50%; border: 1.3px solid rgba(255,255,255,.55); background: none; color: #fff; cursor: pointer; display: grid; place-items: center; }
.mini-nav button:hover { background: rgba(255,255,255,.12); }
.mini-nav svg { width: 11px; height: 11px; }
.heros-objet { display: grid; gap: 12px; }
.heros-objet img { width: 82px; transform: rotate(-8deg); filter: drop-shadow(0 12px 14px rgba(0,0,0,.35)); }
.heros-objet p { color: rgba(255,255,255,.86); max-width: 19ch; }
.heros-centre { position: relative; }
.heros-centre img.athlete { position: absolute; left: 47%; bottom: -10px; transform: translateX(-50%); height: 94%; width: auto; max-width: none; filter: drop-shadow(0 30px 40px rgba(0,0,0,.35)); }
.heros-gauche { position: relative; z-index: 2; }
.heros-centre::before { /* halo derrière l'athlète */
  content: ""; position: absolute; left: 50%; top: 52%; width: 72%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; background: radial-gradient(circle, rgba(66, 216, 250, .22), transparent 66%);
}
.heros-droite { padding: 70px 46px 34px 10px; display: flex; flex-direction: column; justify-content: space-between; position: relative; z-index: 2; }
.heros-droite .puce { color: #fff; margin-bottom: 18px; align-self: flex-start; box-shadow: inset 0 0 0 1.2px rgba(255,255,255,.6); }
.heros h1 { color: #fff; font-size: clamp(52px, 6.1vw, 92px); }
.heros-bas { display: grid; grid-template-columns: 1.2fr 1fr; gap: 26px; border-top: 1px solid rgba(255,255,255,.18); padding-top: 20px; margin-top: 28px; align-items: start; }
.heros-bas p { color: rgba(255,255,255,.82); font-size: 12px; text-transform: uppercase; letter-spacing: .03em; line-height: 1.6; }
.recherche-pilule { display: flex; align-items: center; height: 46px; border-radius: 999px; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1.4px rgba(255,255,255,.55); padding-left: 18px; }
.recherche-pilule input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; color: #fff; font: 600 12.5px/1 var(--sans); letter-spacing: .03em; outline: none; }
.recherche-pilule input::placeholder { color: rgba(255,255,255,.62); text-transform: uppercase; font-size: 11px; letter-spacing: .07em; }
.recherche-pilule button { width: 38px; height: 38px; margin: 4px; border-radius: 50%; border: 0; background: var(--orange); color: var(--navy); cursor: pointer; display: grid; place-items: center; transition: transform .3s var(--easing); }
.recherche-pilule button:hover { transform: rotate(-45deg); }
.recherche-pilule button svg { width: 15px; height: 15px; }
.recherche-pilule.claire { background: var(--blanc); box-shadow: inset 0 0 0 1.4px var(--trait); }
.recherche-pilule.claire input { color: var(--navy); }
.recherche-pilule.claire input::placeholder { color: var(--texte-doux); }
.exemples-recherche { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.exemples-recherche a { font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: rgba(255,255,255,.75); text-decoration: none; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.08); }
.exemples-recherche a:hover { background: rgba(255,255,255,.18); color: #fff; }

/* ---------- Sections ---------- */
.section { width: var(--contenu); margin: 0 auto; padding-block: 92px 0; }
.section-tete { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; margin-bottom: 36px; }
.section-tete .droite { max-width: 300px; text-align: left; }
.section-tete .droite .d4 { margin-bottom: 6px; }

/* Familles (référence : section 2) */
.familles { display: grid; grid-template-columns: 1.08fr repeat(4, 1fr); gap: 16px; align-items: stretch; }
.familles-intro { display: flex; flex-direction: column; gap: 16px; padding-right: 10px; }
.familles-intro .d4 { font-size: clamp(26px, 2.3vw, 33px); }
.pictos-pile { display: flex; }
.pictos-pile span { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 3px solid var(--blanc); margin-left: -9px; color: var(--navy); }
.pictos-pile span:first-child { margin-left: 0; }
.pictos-pile svg { width: 18px; height: 18px; }
.carte-famille {
  position: relative; border-radius: var(--r-lg); padding: 16px; min-height: 228px; text-decoration: none; color: var(--navy);
  display: flex; flex-direction: column; overflow: hidden; transition: transform .4s var(--easing), box-shadow .4s;
}
.carte-famille:hover { transform: translateY(-6px); box-shadow: var(--ombre); }
.carte-famille:hover .fleche-coin { transform: rotate(45deg); }
.carte-famille .lbl { position: relative; z-index: 2; max-width: 14ch; }
.carte-famille .compte { position: relative; z-index: 2; margin-top: auto; }
.carte-famille .compte .chiffre { display: block; }
.carte-famille img { position: absolute; z-index: 1; pointer-events: none; transition: transform .6s var(--easing); }
.carte-famille:hover img { transform: scale(1.06) translateY(-4px); }
.carte-famille.pale { background: linear-gradient(180deg, #EEF4FA 0%, #DCE8F3 100%); }
.carte-famille.pale::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(180deg, #57B947, #3D9A33); clip-path: polygon(0 18%, 6% 0, 12% 22%, 18% 4%, 24% 20%, 30% 2%, 36% 18%, 42% 0, 48% 22%, 54% 3%, 60% 19%, 66% 0, 72% 20%, 78% 4%, 84% 21%, 90% 1%, 96% 19%, 100% 6%, 100% 100%, 0 100%); }
.carte-famille.pale .compte { z-index: 2; color: #fff; }
.carte-famille.orange { background: var(--orange); }
.carte-famille.cyan { background: var(--cyan); }
.carte-famille.jaune { background: var(--jaune); }
.carte-famille.navy { background: var(--navy); color: #fff; }
.texte-contour { position: absolute; font-family: var(--display); font-size: 94px; line-height: .8; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.75); letter-spacing: .02em; pointer-events: none; z-index: 0; }

/* Choisir son sport (référence : section 3) */
.sport { display: grid; grid-template-columns: 1.1fr .95fr .72fr; gap: 26px; align-items: center; }
.sport-gauche { display: grid; gap: 22px; }
.sport-gauche .petit { max-width: 46ch; }
.puces-sports { display: flex; flex-wrap: wrap; gap: 8px; }
.puce-sport {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px 0 6px; border-radius: 999px;
  background: var(--bleu-pale); text-decoration: none; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  transition: background .25s, color .25s, transform .3s var(--easing);
}
.puce-sport span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--blanc); }
.puce-sport svg { width: 17px; height: 17px; }
.puce-sport:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
.puce-sport:hover span { background: var(--orange); color: var(--navy); }
.sport-centre { position: relative; height: 470px; }
.sport-centre img { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); height: 112%; width: auto; max-width: none; filter: drop-shadow(0 24px 30px rgba(11,41,67,.25)); }
.sport-centre::before { content: ""; position: absolute; left: 50%; bottom: 0; width: 82%; height: 74%; transform: translateX(-50%); border-radius: 220px 220px 24px 24px; background: var(--bleu-pale); }
.sport-droite { display: grid; gap: 18px; align-content: center; }
.sport-droite .rotatif { margin: 0 auto; }
.sport-droite .rotatif svg.fleches { color: var(--navy); opacity: .5; }
.points { display: flex; justify-content: center; gap: 5px; }
.points span { width: 6px; height: 6px; border-radius: 50%; background: var(--trait); }
.points span:first-child { background: var(--navy); }
.carte-jaune { background: var(--jaune); border-radius: var(--r-lg); padding: 18px; position: relative; overflow: hidden; min-height: 150px; text-decoration: none; display: flex; flex-direction: column; gap: 10px; }
.carte-jaune img { position: absolute; right: -6px; bottom: -6px; width: 92px; transform: rotate(10deg); transition: transform .5s var(--easing); }
.carte-jaune:hover img { transform: rotate(0) scale(1.08); }
.carte-jaune .lbl { max-width: 15ch; }
.carte-jaune .lien-fleche { margin-top: auto; align-self: flex-start; }

/* Incontournables (référence : section 4) */
.incontournables { display: grid; grid-template-columns: .9fr 1.25fr 1.25fr; gap: 26px 30px; align-items: start; }
.incontournables .colonne-texte { display: grid; gap: 16px; align-content: start; }
.carte-grise { background: linear-gradient(180deg, #EEF3F8, #DCE6F0); border-radius: var(--r-lg); padding: 16px; height: 190px; position: relative; overflow: hidden; text-decoration: none; display: flex; align-items: flex-end; margin-top: 22px; }
.carte-grise img { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); height: 120px; width: auto; transition: transform .5s var(--easing); }
.carte-grise:hover img { transform: translateX(-50%) translateY(-6px) rotate(-6deg); }
.carte-grise .fleche-coin { color: var(--navy); }
.carte-dossier { position: relative; background: var(--cyan); border-radius: var(--r-lg); height: 300px; margin-top: 46px; text-decoration: none; display: block; }
.carte-dossier::before { /* onglet de dossier */
  content: ""; position: absolute; left: 0; top: -22px; width: 46%; height: 40px; background: var(--cyan); border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.carte-dossier img { position: absolute; right: -40px; bottom: 0; height: 128%; width: auto; max-width: none; filter: drop-shadow(0 20px 24px rgba(11,41,67,.25)); transition: transform .6s var(--easing); }
.carte-dossier:hover img { transform: translateY(-8px); }
.carte-dossier .puce { position: absolute; background: var(--blanc); box-shadow: none; color: var(--navy); }
.carte-dossier .puce.p1 { left: 16px; top: 2px; }
.carte-dossier .puce.p2 { left: 16px; bottom: 18px; }
.carte-dossier .nom { position: absolute; left: 18px; bottom: 56px; max-width: 8ch; font-family: var(--display); font-size: 40px; line-height: .92; text-transform: uppercase; color: var(--navy); z-index: 2; }
.carte-dossier img { right: -34px; height: 148%; }
.bouton-coin { position: absolute; right: -10px; bottom: -10px; width: 64px; height: 64px; border-radius: 50%; background: var(--blanc); display: grid; place-items: center; z-index: 3; }
.bouton-coin span { width: 40px; height: 40px; border-radius: 50%; background: var(--jaune); display: grid; place-items: center; color: var(--navy); transition: transform .35s var(--easing); }
.bouton-coin svg { width: 16px; height: 16px; }
a:hover .bouton-coin span { transform: rotate(90deg); }
.incontournables .droite { display: grid; gap: 34px; align-content: start; }
.trait-haut { border-top: 1px solid var(--trait); padding-top: 26px; display: grid; gap: 20px; }
.d-inline-objet { display: inline-block; width: .9em; height: .9em; vertical-align: -.12em; object-fit: contain; }

/* Cartes jeux (référence : grille « produits ») */
.bloc-pale { width: var(--page); margin: 92px auto 0; background: var(--bleu-pale); border-radius: var(--r-xl); padding: 54px 0 58px; }
.bloc-pale .section { padding-top: 0; }
.grille-jeux { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.carte-jeu { background: var(--blanc); border-radius: var(--r-lg); padding: 8px 8px 16px; text-decoration: none; display: flex; flex-direction: column; transition: transform .4s var(--easing), box-shadow .4s; position: relative; }
.carte-jeu:hover { transform: translateY(-6px); box-shadow: var(--ombre); }
.carte-jeu .visuel { position: relative; height: 210px; border-radius: var(--r-md); overflow: hidden; background: var(--orange); display: grid; place-items: center; }
.carte-jeu .visuel.cyan { background: var(--cyan); }
.carte-jeu .visuel.jaune { background: var(--jaune); }
.carte-jeu .visuel.pale { background: var(--gris-bleu); }
.carte-jeu .visuel.navy { background: var(--navy); }
.carte-jeu .visuel img.photo { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--easing); }
.carte-jeu .visuel img.objet { height: 80%; width: auto; object-fit: contain; transition: transform .6s var(--easing); filter: drop-shadow(0 14px 16px rgba(11,41,67,.28)); }
.carte-jeu:hover .visuel img { transform: scale(1.06); }
.carte-jeu .visuel .picto-geant { width: 46%; color: rgba(255,255,255,.95); }
.carte-jeu .visuel .picto-geant svg { width: 100%; height: auto; stroke-width: 1.2; }
.carte-jeu .visuel .texte-contour { font-size: 120px; left: 12px; bottom: -14px; -webkit-text-stroke-color: rgba(255,255,255,.55); }
.carte-jeu .visuel .badge-video { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px 0 4px; border-radius: 999px; background: rgba(11,41,67,.85); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.carte-jeu .visuel .badge-video i { width: 18px; height: 18px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; }
.carte-jeu .visuel .badge-video svg { width: 8px; height: 8px; color: var(--navy); }
.carte-jeu .puces { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 6px 0; }
.carte-jeu .puce { height: 23px; font-size: 9.5px; padding: 0 10px; }
.carte-jeu .bas { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 12px 6px 0; margin-top: auto; }
.carte-jeu .bas h3 { font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; line-height: 1.3; }
.carte-jeu .bas .duree { font-family: var(--display); font-size: 30px; line-height: .9; white-space: nowrap; }
.carte-jeu .bas .duree small { font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: .06em; }
.carte-jeu .discipline { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--texte-doux); padding: 4px 6px 0; }

/* Trouver un jeu (référence : section 6) */
.trouver { display: grid; grid-template-columns: 1fr 1.05fr; gap: 50px; align-items: center; }
.trouver-collage { display: grid; grid-template-columns: 1.15fr .85fr; grid-template-rows: auto auto; gap: 14px; position: relative; }
.puce-date { background: var(--jaune); border-radius: var(--r-md); padding: 10px 14px; display: flex; align-items: center; gap: 14px; position: relative; z-index: 2; margin-bottom: -26px; width: 82%; }
.puce-date .chiffre { font-size: 30px; }
.carte-herbe { position: relative; border-radius: var(--r-lg); background: linear-gradient(180deg, #EEF4FA, #DCE8F3); height: 190px; overflow: hidden; padding: 38px 16px 16px; }
.carte-herbe::after { content: ""; position: absolute; inset: auto 0 0 0; height: 34%; background: linear-gradient(180deg, #57B947, #3D9A33); clip-path: polygon(0 20%, 5% 0, 10% 24%, 15% 2%, 20% 20%, 25% 0, 30% 22%, 35% 4%, 40% 18%, 45% 0, 50% 22%, 55% 2%, 60% 20%, 65% 0, 70% 24%, 75% 3%, 80% 19%, 85% 0, 90% 22%, 95% 2%, 100% 18%, 100% 100%, 0 100%); }
.carte-herbe img { position: absolute; z-index: 2; left: 38%; bottom: 8px; width: 74px; filter: drop-shadow(0 10px 8px rgba(0,0,0,.25)); animation: rebond 2.6s ease-in-out infinite; }
.carte-herbe .chiffre { position: absolute; right: 16px; top: 34px; }
.carte-video { grid-row: span 2; border-radius: var(--r-lg); background: var(--gris-bleu); position: relative; overflow: hidden; min-height: 300px; text-decoration: none; }
.carte-video img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.carte-video .lecture { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: grid; justify-items: center; gap: 8px; color: #fff; }
.carte-video .lecture i { width: 46px; height: 46px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; color: var(--navy); box-shadow: 0 0 0 6px rgba(255,255,255,.35); animation: pulse 2.4s ease-out infinite; }
.carte-video .lecture svg { width: 16px; height: 16px; }
.carte-video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(6, 34, 55, .75)); }
.carte-video .lecture { z-index: 2; }
.filtre-rapide { display: grid; gap: 16px; }
.filtre-rapide .champs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.champ { display: grid; gap: 5px; }
.champ label { font-size: 10.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--texte-doux); }
.champ select, .champ input {
  height: 44px; border-radius: 999px; border: 1.4px solid var(--trait); background: var(--blanc); padding: 0 16px; font: 600 13px/1 var(--sans); color: var(--navy);
  appearance: none; -webkit-appearance: none;
}
.champ select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B2943' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 14px; background-position: right 16px center; padding-right: 38px; }
.champ select:focus, .champ input:focus { border-color: var(--navy); outline: none; }
.rangee-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; border-top: 1px solid var(--trait); padding-top: 18px; }
.rangee-actions .petit { max-width: 28ch; }

/* Ressources (référence : section 7) */
.ressources-tete { display: grid; grid-template-columns: 1.4fr .8fr; gap: 40px; align-items: end; border-bottom: 1px solid var(--trait); padding-bottom: 34px; }
.ressources { display: grid; grid-template-columns: 1.25fr .78fr .78fr; gap: 20px; align-items: end; padding-top: 30px; }
.plongeon { position: relative; height: 330px; }
.plongeon img { position: absolute; left: 10%; bottom: -14px; height: 108%; width: auto; max-width: none; filter: drop-shadow(0 24px 30px rgba(11,41,67,.25)); }
.plongeon .ballon { position: absolute; left: 4%; top: 0; width: 64px; height: auto; animation: rebond 3s ease-in-out infinite; }
.carte-ressource { position: relative; border-radius: var(--r-lg); min-height: 290px; padding: 16px; text-decoration: none; display: flex; flex-direction: column; overflow: hidden; transition: transform .4s var(--easing), box-shadow .4s; }
.carte-ressource:hover { transform: translateY(-6px); box-shadow: var(--ombre); }
.carte-ressource.pale { background: linear-gradient(180deg, #EEF4FA, #DCE8F3); }
.carte-ressource.cyan { background: var(--cyan); }
.carte-ressource .puce { align-self: flex-start; }
.carte-ressource img { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); height: 58%; width: auto; transition: transform .6s var(--easing); }
.carte-ressource.cyan img { inset: auto 0 0 0; transform: none; width: 100%; height: 48%; object-fit: cover; top: auto; left: 0; }
.carte-ressource .bas { margin-top: auto; position: relative; z-index: 2; }
.carte-ressource .bas strong { display: block; font-family: var(--display); font-size: 26px; line-height: .95; text-transform: uppercase; font-weight: 400; }
.carte-ressource .fleche-coin { color: var(--navy); }
.apropos { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; padding-block: 92px 92px; width: var(--contenu); margin: 0 auto; }
.apropos-texte { display: grid; gap: 18px; }
.apropos-texte p.corps { font-size: 15.5px; line-height: 1.7; color: var(--texte-doux); max-width: 56ch; }
.apropos-reperes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.repere { border-radius: var(--r-lg); padding: 18px; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; }
.repere.navy { background: var(--navy); color: #fff; }
.repere.orange { background: var(--orange); }
.repere.pale { background: var(--bleu-pale); }
.repere .chiffre { font-size: 46px; }

/* ---------- Pied de page ---------- */
.pied { background: var(--navy-deep); color: #fff; margin-top: 0; }
.pied-haut { width: var(--contenu); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 58px 0 40px; border-bottom: 1px solid rgba(255,255,255,.12); align-items: start; }
.pied .marque { color: #fff; font-size: 27px; }
.pied .petit { color: rgba(255,255,255,.7); max-width: 34ch; margin-top: 10px; }
.pied-contact { display: grid; grid-template-columns: 84px 1fr; gap: 18px; align-items: center; }
.pied-contact .vignette { width: 84px; height: 72px; border-radius: 12px; overflow: hidden; background: var(--cyan); position: relative; }
.pied-contact .vignette img { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); object-fit: contain; }
.pied-contact .d4 { font-size: 26px; margin-bottom: 10px; }
.pied-contact .recherche-pilule { height: 42px; max-width: 360px; }
.pied-contact .recherche-pilule a { flex: 1; color: rgba(255,255,255,.85); text-decoration: none; font-size: 12px; font-weight: 600; letter-spacing: .03em; }
.pied-contact .recherche-pilule span.bouton { width: 34px; height: 34px; margin: 4px; border-radius: 50%; background: var(--orange); color: var(--navy); display: grid; place-items: center; }
.pied-contact .recherche-pilule svg { width: 14px; height: 14px; }
.pied-milieu { width: var(--contenu); margin: 0 auto; display: grid; grid-template-columns: 1.1fr repeat(4, 1fr) .8fr; gap: 28px; padding: 40px 0; }
.pied-milieu > div + div { border-left: 1px solid rgba(255,255,255,.1); padding-left: 24px; }
.pied-titre { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; display: block; }
.pied-liens { list-style: none; padding: 0; display: grid; gap: 7px; }
.pied-liens a { color: rgba(255,255,255,.66); font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; text-decoration: none; }
.pied-liens a:hover { color: #fff; }
.pied-objet { position: relative; height: 120px; }
.pied-objet img { width: 90px; transform: rotate(-12deg); filter: drop-shadow(0 12px 14px rgba(0,0,0,.4)); }
.pied-objet .btn-rond { position: absolute; left: 66px; top: 64px; background: var(--cyan); box-shadow: 0 0 0 4px var(--navy-deep); }
.reseaux { display: flex; gap: 8px; flex-wrap: wrap; }
.reseaux a { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; box-shadow: inset 0 0 0 1.3px rgba(255,255,255,.4); color: #fff; }
.reseaux a:hover { background: rgba(255,255,255,.1); }
.reseaux svg { width: 16px; height: 16px; }
.pied-bas { width: var(--contenu); margin: 0 auto; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 18px 0 26px; border-top: 1px solid rgba(255,255,255,.12); }
.pied-bas p { color: rgba(255,255,255,.5); font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Pages internes ---------- */
.page-tete { width: var(--page); margin: 0 auto; background: var(--navy); color: #fff; border-radius: var(--r-xl); position: relative; overflow: hidden; padding: 56px 56px 48px; display: grid; grid-template-columns: 1.3fr .7fr; gap: 30px; min-height: 360px; }
.page-tete .heros-encoche { width: 214px; }
.ariane { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin-bottom: 22px; font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.ariane li { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,.62); }
.ariane li + li::before { content: "/"; opacity: .45; }
.ariane a { text-decoration: none; color: rgba(255,255,255,.82); }
.ariane a:hover { color: #fff; text-decoration: underline; }
.page-tete .petit { color: rgba(255,255,255,.78); margin-top: 18px; max-width: 60ch; text-transform: none; font-size: 15px; letter-spacing: 0; font-weight: 400; line-height: 1.65; }
.page-tete .visuel-tete { position: relative; }
.page-tete .visuel-tete img { position: absolute; right: 0; bottom: -48px; height: 125%; width: auto; max-width: none; filter: drop-shadow(0 24px 30px rgba(0,0,0,.35)); }
.page-tete .badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.page-tete .badges .puce { color: #fff; box-shadow: inset 0 0 0 1.2px rgba(255,255,255,.55); }
.badge-statut { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 12px; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; background: var(--jaune); color: var(--navy); }
.badge-statut.officiel { background: var(--cyan); }
.badge-statut.complementaire { background: var(--orange); }
.badge-statut.navigation { background: rgba(255,255,255,.14); color: #fff; }

/* Bibliothèque */
.biblio { width: var(--page); margin: 22px auto 0; display: grid; grid-template-columns: 290px 1fr; gap: 22px; align-items: start; }
.panneau-filtres { position: sticky; top: 14px; background: var(--bleu-pale); border-radius: var(--r-xl); padding: 20px; display: grid; gap: 18px; max-height: calc(100vh - 28px); overflow: auto; }
.panneau-filtres h2 { font-family: var(--display); font-size: 28px; line-height: 1; text-transform: uppercase; display: flex; justify-content: space-between; align-items: center; }
.groupe-filtre { display: grid; gap: 8px; }
.groupe-filtre > span, .groupe-filtre legend { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--texte-doux); padding: 0; }
fieldset.groupe-filtre { border: 0; margin: 0; padding: 0; min-width: 0; }
.cases { display: flex; flex-wrap: wrap; gap: 6px; }
.case input { position: absolute; opacity: 0; pointer-events: none; }
.case span { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--blanc); font-size: 11.5px; font-weight: 700; cursor: pointer; transition: background .2s, color .2s; user-select: none; }
.case input:checked + span { background: var(--navy); color: #fff; }
.case input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.case span svg { width: 14px; height: 14px; }
.reinitialiser { border: 0; background: none; font-size: 10.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; text-decoration: underline; cursor: pointer; color: var(--navy); font-family: var(--sans); }
.resultats-tete { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.resultats-tete .compte { font-family: var(--display); font-size: 34px; line-height: 1; text-transform: uppercase; }
.resultats-tete .champ { grid-auto-flow: column; align-items: center; gap: 10px; }
.resultats-tete .champ select { height: 40px; }
.filtres-actifs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; min-height: 0; }
.filtres-actifs button { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 12px; border-radius: 999px; border: 0; background: var(--jaune); font-size: 11px; font-weight: 700; cursor: pointer; }
.filtres-actifs button svg { width: 10px; height: 10px; }
.biblio .grille-jeux { grid-template-columns: repeat(3, 1fr); }
.charger-plus { display: flex; justify-content: center; margin-top: 26px; }
.aucun-resultat { background: var(--bleu-pale); border-radius: var(--r-xl); padding: 40px; text-align: center; display: grid; gap: 12px; justify-items: center; }
.ouvrir-filtres { display: none; }
.interpretation { font-size: 12px; color: var(--texte-doux); margin: -6px 0 14px; }
.interpretation strong { color: var(--navy); }

/* Discipline */
.discipline-corps { width: var(--contenu); margin: 0 auto; }
.bandeau-objectifs { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; padding-top: 70px; align-items: start; }
.liste-objectifs { list-style: none; padding: 0; display: grid; gap: 10px; counter-reset: obj; }
.liste-objectifs li { counter-increment: obj; display: grid; grid-template-columns: 54px 1fr; gap: 14px; align-items: center; background: var(--bleu-pale); border-radius: var(--r-md); padding: 10px 16px 10px 10px; font-weight: 600; font-size: 14.5px; }
.liste-objectifs li::before { content: counter(obj, decimal-leading-zero); font-family: var(--display); font-size: 30px; line-height: 1; width: 54px; height: 54px; border-radius: 10px; background: var(--blanc); display: grid; place-items: center; }
.conseil { background: var(--jaune); border-radius: var(--r-lg); padding: 22px; display: grid; gap: 10px; margin-top: 18px; }
.conseil p { font-size: 14.5px; line-height: 1.65; }
.groupe-objectif { padding-top: 64px; }
.groupe-objectif .section-tete { margin-bottom: 22px; }
.ancres { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.ancres a { text-decoration: none; }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--bleu-pale); border-radius: var(--r-md); padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 30px 18px 0; font-weight: 700; font-size: 15px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 16px; line-height: 1; transition: transform .3s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); background: var(--orange); color: var(--navy); }
.faq details p { padding-bottom: 18px; color: var(--texte-doux); line-height: 1.7; }
.disciplines-liees { display: flex; flex-wrap: wrap; gap: 8px; }

/* Fiche de jeu */
.fiche-tete { grid-template-columns: 1.15fr .85fr; }
.fiche-tete h1 { max-width: 16ch; }
.faits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 26px; }
.fait { background: rgba(255,255,255,.08); border-radius: var(--r-md); padding: 12px 14px; display: grid; gap: 4px; }
.fait span { font-size: 9.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.62); }
.fait strong { font-family: var(--display); font-size: 25px; line-height: 1; font-weight: 400; }
.fiche-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.bouton-outil { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; border: 0; cursor: pointer; background: rgba(255,255,255,.1); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; text-decoration: none; }
.bouton-outil:hover { background: rgba(255,255,255,.2); }
.bouton-outil svg { width: 15px; height: 15px; }
.lecteur { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--navy-deep); align-self: center; justify-self: end; width: 100%; max-width: 420px; }
.lecteur.vertical { max-width: 300px; aspect-ratio: 9 / 16; }
.lecteur.horizontal { aspect-ratio: 16 / 9; }
.lecteur button.facade { position: absolute; inset: 0; border: 0; padding: 0; cursor: pointer; background: #000; width: 100%; }
.lecteur button.facade img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .3s, transform .6s var(--easing); }
.lecteur button.facade:hover img { opacity: 1; transform: scale(1.03); }
.lecteur button.facade i { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; color: var(--navy); box-shadow: 0 0 0 8px rgba(255,255,255,.25); }
.lecteur button.facade i svg { width: 22px; height: 22px; margin-left: 3px; }
.lecteur iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lecteur .credit { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px; background: linear-gradient(180deg, transparent, rgba(6,34,55,.92)); font-size: 10.5px; font-weight: 600; letter-spacing: .03em; color: rgba(255,255,255,.85); pointer-events: none; }
.lecteur .credit a { pointer-events: auto; color: #fff; }
.visuel-sans-video { position: relative; border-radius: var(--r-lg); aspect-ratio: 4 / 5; max-width: 330px; justify-self: end; align-self: center; width: 100%; display: grid; place-items: center; overflow: hidden; }
.visuel-sans-video .picto-geant { width: 52%; color: var(--navy); }
.visuel-sans-video .picto-geant svg { width: 100%; height: auto; stroke-width: 1.1; }
.visuel-sans-video .texte-contour { left: 14px; bottom: -10px; font-size: 130px; -webkit-text-stroke-color: rgba(11,41,67,.25); }
.visuel-sans-video p { position: absolute; left: 16px; right: 16px; top: 16px; font-size: 10.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.schema-jeu { margin: 0; justify-self: end; align-self: center; width: 100%; max-width: 520px; background: var(--blanc); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 18px 40px -24px rgba(6,34,55,.45); }
.schema-jeu img { display: block; width: 100%; height: auto; }
.schema-jeu figcaption { padding: 10px 14px; font-size: 10.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--texte-doux); }
.verif-video { font-size: 13px; line-height: 1.5; color: var(--texte-doux); margin: 0 0 10px; padding-left: 12px; border-left: 3px solid var(--cyan); }
.verif-video strong { color: var(--texte); }
.verif-video em { display: block; margin-top: 4px; font-style: normal; color: var(--texte); }
.verif-video.verif-b { border-left-color: var(--jaune); }
.autre-video { font-size: 13px; margin: 12px 0 6px; font-weight: 600; }
.provenance { font-size: 13px; line-height: 1.5; color: var(--texte-doux); margin: 0; }
.sources-fiche { margin: 10px 0 0; padding-left: 18px; font-size: 13px; line-height: 1.5; }
.fiche { width: var(--contenu); margin: 0 auto; display: grid; grid-template-columns: 1fr 330px; gap: 48px; padding-top: 56px; align-items: start; }
.fiche-texte { display: grid; gap: 40px; }
.fiche-texte h2 { font-family: var(--display); font-size: 36px; line-height: 1; text-transform: uppercase; margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.fiche-texte h2 .num { font-size: 15px; width: 34px; height: 34px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; font-family: var(--sans); font-weight: 800; flex: none; }
.fiche-texte p { font-size: 16px; line-height: 1.75; }
.etapes { list-style: none; padding: 0; display: grid; gap: 10px; counter-reset: et; }
.etapes li { counter-increment: et; display: grid; grid-template-columns: 40px 1fr; gap: 14px; font-size: 16px; line-height: 1.65; align-items: start; }
.etapes li::before { content: counter(et); font-family: var(--display); font-size: 24px; width: 40px; height: 40px; border-radius: 10px; background: var(--bleu-pale); display: grid; place-items: center; }
.liste-points { padding-left: 0; list-style: none; display: grid; gap: 8px; }
.liste-points li { position: relative; padding-left: 22px; font-size: 16px; line-height: 1.65; }
.liste-points li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); }
.encadre { border-radius: var(--r-lg); padding: 22px 24px; }
.encadre.securite { background: var(--orange); }
.encadre.securite h2 .num { background: var(--navy); color: #fff; }
.encadre.classe40 { background: var(--bleu-pale); }
.encadre.interet { background: var(--navy); color: #fff; }
.encadre.interet p { color: rgba(255,255,255,.88); }
.colonne-fiche { position: sticky; top: 14px; display: grid; gap: 14px; }
.carte-info { border-radius: var(--r-lg); background: var(--bleu-pale); padding: 18px; display: grid; gap: 12px; }
.carte-info h3 { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--texte-doux); }
.carte-info dl { margin: 0; display: grid; gap: 10px; }
.carte-info dt { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--texte-doux); }
.carte-info dd { margin: 2px 0 0; font-size: 14px; font-weight: 600; line-height: 1.5; }
.carte-info .cases { gap: 5px; }
.carte-info .puce { height: 24px; font-size: 9.5px; }
.carte-info.op { background: var(--jaune); }
.carte-info.op p { font-size: 13.5px; line-height: 1.55; }
.voisins { width: var(--contenu); margin: 70px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.voisin { display: grid; gap: 6px; padding: 20px 22px; border-radius: var(--r-lg); background: var(--bleu-pale); text-decoration: none; transition: background .25s; }
.voisin:hover { background: var(--gris-bleu); }
.voisin.suivant { text-align: right; }
.voisin strong { font-family: var(--display); font-size: 26px; font-weight: 400; line-height: 1; text-transform: uppercase; }
.notice-validation { width: var(--contenu); margin: 24px auto 0; font-size: 12px; color: var(--texte-doux); display: flex; gap: 10px; align-items: center; }
.notice-validation i { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); flex: none; }

/* ---------- Mouvement ---------- */
@keyframes tourne { to { transform: rotate(360deg); } }
@keyframes rebond { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes flotte { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-10px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(251,130,67,.6); } 100% { box-shadow: 0 0 0 18px rgba(251,130,67,0); } }
@keyframes monte { from { transform: translateY(105%); } to { transform: none; } }
@keyframes apparait { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes surgit { from { opacity: 0; transform: translateX(-50%) translateY(60px) scale(.96); } to { opacity: 1; transform: translateX(-50%); } }

.js .heros h1 .ligne { display: block; overflow: hidden; padding: .16em 0 .04em; margin-top: -.16em; } /* marge haute : ne pas rogner les accents (É) */
.js .heros h1 .ligne > span { display: inline-block; animation: monte .9s var(--easing) both; }
.js .heros h1 .ligne:nth-child(2) > span { animation-delay: .08s; }
.js .heros h1 .ligne:nth-child(3) > span { animation-delay: .16s; }
.js .heros h1 .ligne:nth-child(4) > span { animation-delay: .24s; }
.js .heros-centre img.athlete { animation: surgit 1.1s var(--easing) .15s both, flotte 6s ease-in-out 1.4s infinite; }
.js .heros-gauche > *, .js .heros-bas, .js .heros-droite .puce { animation: apparait .8s var(--easing) both; animation-delay: .35s; }
.js [data-revele] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--easing), transform .8s var(--easing); transition-delay: var(--delai, 0s); }
.js [data-revele].est-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-revele] { opacity: 1; transform: none; }
}

/* ---------- Adaptatif ---------- */
@media (max-width: 1180px) {
  .familles { grid-template-columns: repeat(2, 1fr); }
  .familles-intro { grid-column: 1 / -1; }
  .sport { grid-template-columns: 1fr 1fr; }
  .sport-droite { grid-column: 1 / -1; grid-template-columns: auto 1fr; align-items: center; }
  .incontournables { grid-template-columns: 1fr 1fr; }
  .incontournables .droite { grid-column: 1 / -1; }
  .biblio { grid-template-columns: 250px 1fr; }
  .biblio .grille-jeux { grid-template-columns: repeat(2, 1fr); }
  .pied-milieu { grid-template-columns: repeat(3, 1fr); }
  .pied-milieu > div + div { border-left: 0; padding-left: 0; }
}
@media (max-width: 980px) {
  .nav-principale, .entete-cta, .mega { display: none; }
  .burger { display: grid; margin-left: auto; }
  .heros { grid-template-columns: 1fr; min-height: 0; }
  .heros-gauche { display: none; }
  .heros-centre { height: 360px; order: 2; }
  .heros-droite { padding: 40px 26px 30px; }
  .heros-encoche { display: none; }
  .heros-bas { grid-template-columns: 1fr; }
  .grille-jeux { grid-template-columns: repeat(2, 1fr); }
  .trouver { grid-template-columns: 1fr; }
  .ressources-tete, .ressources { grid-template-columns: 1fr 1fr; }
  .plongeon { grid-column: 1 / -1; height: 280px; }
  .apropos { grid-template-columns: 1fr; }
  .page-tete, .fiche-tete { grid-template-columns: 1fr; padding: 40px 26px; }
  .page-tete .visuel-tete { height: 260px; }
  .page-tete .visuel-tete img { right: 50%; transform: translateX(50%); bottom: -40px; height: 115%; }
  .lecteur, .visuel-sans-video, .schema-jeu { justify-self: start; }
  .fiche { grid-template-columns: 1fr; }
  .colonne-fiche { position: static; }
  .bandeau-objectifs { grid-template-columns: 1fr; }
  .biblio { grid-template-columns: 1fr; }
  .panneau-filtres { position: fixed; inset: 0; z-index: 60; border-radius: 0; max-height: none; transform: translateX(-100%); transition: transform .3s var(--easing); }
  .panneau-filtres.est-ouvert { transform: none; }
  .ouvrir-filtres { display: inline-flex; }
  .faits { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  :root { --contenu: calc(100vw - 32px); --page: calc(100vw - 16px); }
  .section { padding-top: 64px; }
  .section-tete { grid-template-columns: 1fr; }
  .familles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .carte-famille { min-height: 190px; }
  .sport { grid-template-columns: 1fr; }
  .sport-centre { height: 340px; }
  .sport-droite { grid-template-columns: 1fr; }
  .incontournables { grid-template-columns: 1fr; }
  .grille-jeux, .biblio .grille-jeux { grid-template-columns: 1fr; }
  .bloc-pale { padding: 40px 0; }
  .trouver-collage { grid-template-columns: 1fr 1fr; }
  .filtre-rapide .champs { grid-template-columns: 1fr; }
  .ressources-tete, .ressources { grid-template-columns: 1fr; }
  .apropos-reperes { grid-template-columns: 1fr 1fr; }
  .pied-haut { grid-template-columns: 1fr; }
  .pied-milieu { grid-template-columns: 1fr 1fr; }
  .voisins { grid-template-columns: 1fr; }
  .heros-droite { padding: 34px 20px 24px; }
  .page-tete, .fiche-tete { padding: 32px 20px; }
  .d1 { font-size: clamp(50px, 14vw, 70px); }
  .carte-dossier img { right: 0; }
  .carte-dossier .nom { max-width: 7ch; }
}

/* ---------- Navigation mobile ---------- */
.tiroir { position: fixed; inset: 0; z-index: 70; background: var(--navy); color: #fff; padding: 18px 20px 40px; overflow: auto; transform: translateX(100%); transition: transform .3s var(--easing); visibility: hidden; }
.tiroir.est-ouvert { transform: none; visibility: visible; }
.tiroir-tete { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.tiroir .marque { color: #fff; }
.tiroir-fermer { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--orange); color: var(--navy); display: grid; place-items: center; cursor: pointer; }
.tiroir-fermer svg { width: 18px; height: 18px; }
.tiroir nav > ul { list-style: none; padding: 0; display: grid; gap: 4px; }
.tiroir nav > ul > li > a, .tiroir summary { display: flex; justify-content: space-between; align-items: center; min-height: 52px; font-family: var(--display); font-size: 30px; text-transform: uppercase; text-decoration: none; cursor: pointer; list-style: none; border-bottom: 1px solid rgba(255,255,255,.12); }
.tiroir summary::-webkit-details-marker { display: none; }
.tiroir summary::after { content: "+"; font-family: var(--sans); font-size: 22px; }
.tiroir details[open] > summary::after { content: "–"; }
.tiroir details details summary { font-size: 22px; min-height: 44px; padding-left: 10px; }
.tiroir .liens-tiroir { list-style: none; padding: 6px 0 12px 22px; display: grid; gap: 2px; }
.tiroir .liens-tiroir a { display: flex; align-items: center; gap: 10px; min-height: 40px; color: rgba(255,255,255,.85); text-decoration: none; font-weight: 600; font-size: 15px; }
.tiroir .liens-tiroir svg { width: 18px; height: 18px; }

/* ---------- Impression A4 (fiche de jeu) ---------- */
@media print {
  @page { size: A4; margin: 14mm 14mm 16mm; }
  body { font-size: 11pt; background: #fff; }
  .entete, .pied, .mega, .tiroir, .fiche-actions, .lecteur, .visuel-sans-video, .voisins, .colonne-fiche .partage, .lien-evitement, .notice-validation, .grille-similaires, .section-similaires { display: none !important; }
  .page-tete { width: auto; background: #fff !important; color: #000; border: 2px solid #000; border-radius: 10px; padding: 14px 18px; min-height: 0; display: block; }
  .page-tete .heros-encoche { display: none; }
  .ariane, .ariane a, .ariane li { color: #444 !important; }
  .faits { grid-template-columns: repeat(4, 1fr); }
  .fait { background: #f1f1f1; }
  .fait span { color: #444; }
  .d1 { font-size: 30pt; }
  .fiche { width: auto; grid-template-columns: 1fr 62mm; gap: 8mm; padding-top: 8mm; }
  .fiche-texte { gap: 6mm; }
  .fiche-texte h2 { font-size: 16pt; margin-bottom: 2mm; }
  .fiche-texte p, .etapes li, .liste-points li { font-size: 10.5pt; line-height: 1.45; }
  .encadre { padding: 4mm; break-inside: avoid; }
  .encadre.interet { background: #f1f1f1; color: #000; }
  .encadre.interet p { color: #000; }
  .colonne-fiche { position: static; }
  .carte-info { break-inside: avoid; }
  section, .encadre, li { break-inside: avoid; }
  .js [data-revele] { opacity: 1 !important; transform: none !important; }
  a { text-decoration: none; }
}


/* ===== 2. Adaptations WordPress (blocs natifs) ===== */
/* Le CSS de la maquette s'applique tel quel grâce aux classes posées par className.
   Ce bloc ne traite que ce que les blocs natifs changent dans le DOM. */

/* ---------- Socle ---------- */
:root {
  --navy: var(--wp--preset--color--navy);
  --orange: var(--wp--preset--color--orange);
  --cyan: var(--wp--preset--color--cyan);
  --jaune: var(--wp--preset--color--jaune);
  --bleu-pale: var(--wp--preset--color--bleu-pale);
  --display: var(--wp--preset--font-family--display);
  --sans: var(--wp--preset--font-family--sans);
  --masque-fleche: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E");
  --masque-gauche: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M19 12H5M11 6l-6 6 6 6'/%3E%3C/svg%3E");
  --masque-droite: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  --masque-lecture: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 4.5v15l12.5-7.5z'/%3E%3C/svg%3E");
}
:where(.wp-block-group) > :where(*), :where(.wp-block-buttons) { margin-block: 0; }
figure.wp-block-image, .wp-block-post-featured-image { margin: 0; }
.wp-block-image img { height: auto; }
.wp-site-blocks { padding: 0; }
main#contenu { padding-bottom: 0; }
/* (neutralisation à spécificité nulle : ne jamais écraser les marges des composants — piège n° 1 de la skill) */
:where(.wp-block-post-content) > :where(*) { margin-block: 0; }
p.lien-fleche { display: block; border: 0; padding: 0; }
p.lien-fleche a { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
p.lien-fleche a::after { content: ""; width: 12px; height: 12px; background: currentColor; -webkit-mask: var(--masque-fleche) center / contain no-repeat; mask: var(--masque-fleche) center / contain no-repeat; transition: transform .3s var(--easing); }
p.lien-fleche a:hover::after { transform: translate(2px, -2px); }
/* lien étiré : toute la carte est cliquable, un seul lien réel (accessible) */
.lien-etire a::after, .carte-famille > p.lbl:first-child a::after, .carte-grise p.lbl a::after, .carte-dossier .nom a::after,
.carte-ressource .titre-carte a::after, .carte-video .lecture a::after, .voisin a::after { content: ""; position: absolute; inset: 0; z-index: 4; }
.carte-famille > p.lbl:first-child a, .carte-grise p.lbl a, .carte-dossier .nom a, .carte-ressource .titre-carte a, .carte-video .lecture a { text-decoration: none; color: inherit; }

/* ---------- Boutons natifs (aspect « texte + rond fléché » de la référence) ---------- */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wp-block-button .wp-block-button__link {
  display: inline-flex; align-items: center; height: 40px; padding: 0 22px; border-radius: 999px; border: 0;
  font-family: var(--sans); font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  background: var(--navy); color: #fff; text-decoration: none; transition: background .25s;
}
.wp-block-button .wp-block-button__link:hover { background: var(--navy-2); color: #fff; }
.wp-block-button.fleche .wp-block-button__link { padding-right: 4px; gap: 18px; }
.wp-block-button.fleche .wp-block-button__link::after {
  content: ""; width: 40px; height: 40px; border-radius: 50%; flex: none; margin-right: -4px;
  background: var(--orange) var(--masque-fleche) center / 16px no-repeat; box-shadow: 0 0 0 4px var(--blanc);
  transition: transform .35s var(--easing);
}
.wp-block-button.fleche .wp-block-button__link:hover::after { transform: rotate(45deg); }
.wp-block-button.contour .wp-block-button__link { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.wp-block-button.contour.fleche .wp-block-button__link { box-shadow: none; position: relative; padding-left: 22px; background: transparent; }
.wp-block-button.contour.fleche .wp-block-button__link::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; right: 36px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--navy); pointer-events: none; }
.wp-block-button.contour .wp-block-button__link:hover { background: transparent; color: var(--navy); }
/* puces de sport */
.puces-sports .wp-block-button.puce-sport .wp-block-button__link {
  height: 42px; padding: 0 16px 0 46px; background: var(--bleu-pale); color: var(--navy); font-size: 12px; letter-spacing: .05em; position: relative;
  transition: background .25s, color .25s, transform .3s var(--easing);
}
.puces-sports .wp-block-button.puce-sport .wp-block-button__link::before {
  content: ""; position: absolute; left: 5px; top: 5px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--blanc) var(--icone, none) center / 17px no-repeat;
}
.puces-sports .wp-block-button.puce-sport .wp-block-button__link:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
.puces-sports .wp-block-button.puce-sport .wp-block-button__link:hover::before { background-color: var(--orange); }

/* Pictogrammes (masques SVG, substitution n° 1 de la skill) */
.ico-basketball { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B2943' stroke-width='1.8'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3v18M5.6 5.6c3 3 3 9.8 0 12.8M18.4 5.6c-3 3-3 9.8 0 12.8'/%3E%3C/svg%3E"); }
.ico-handball { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B2943' stroke-width='1.8'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.2l4.2 3-1.6 5h-5.2l-1.6-5zM12 3v4.2M16.2 10.2l4.4-1.3M14.6 15.2l2.7 3.7M9.4 15.2l-2.7 3.7M7.8 10.2 3.4 8.9'/%3E%3C/svg%3E"); }
.ico-football { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B2943' stroke-width='1.8'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 8l3.5 2.5-1.3 4h-4.4l-1.3-4zM12 3v5M15.5 10.5l5-1M14.2 14.5l3 4.5M9.8 14.5l-3 4.5M8.5 10.5l-5-1'/%3E%3C/svg%3E"); }
.ico-volleyball { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B2943' stroke-width='1.8'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 3c0 5 2.5 8 8.4 9.8M12 12c-4.3 2.4-6.3 5.3-6.4 7.6M12 12c4.6 2.4 8 2.2 8.9.4M12 12C7 9.6 4.7 6.9 4.7 5'/%3E%3C/svg%3E"); }
.ico-course, .ico-relais, .ico-haies, .ico-athletisme { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B2943' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='14.5' cy='4.5' r='2'/%3E%3Cpath d='M8 21l3-6 3 2.5V22M6 12.5l3-4 4.5.5 2.5 3.5 3 .5M11 9l-1.5 5.5'/%3E%3C/svg%3E"); }
.ico-saut { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B2943' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='16' cy='4' r='2'/%3E%3Cpath d='M4 20h16M6 15l4-3 2-4 4 1 3-2M10 12l1 4 4 1M12 8l-5-1'/%3E%3C/svg%3E"); }
.ico-lancer { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B2943' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='9' cy='5' r='2'/%3E%3Ccircle cx='18.5' cy='4.5' r='2.2' fill='%230B2943'/%3E%3Cpath d='M9 8v6l-3 7M9 14l3 7M9 9.5l4.5-1.5 3.5-2M9 10l-4 3'/%3E%3C/svg%3E"); }
.ico-gymnastique { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B2943' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='16' r='2'/%3E%3Cpath d='M12 13V7M6 4l6 3 6-3M8 21l4-3 4 3'/%3E%3C/svg%3E"); }
.ico-collectif { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B2943' stroke-width='1.8'%3E%3Ccircle cx='7' cy='7' r='2.5'/%3E%3Ccircle cx='17' cy='7' r='2.5'/%3E%3Cpath d='M3 19c0-3.3 1.8-6 4-6s4 2.7 4 6M13 19c0-3.3 1.8-6 4-6s4 2.7 4 6'/%3E%3C/svg%3E"); }
.ico-sifflet { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B2943' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M3 11a5 5 0 1 0 10 0V8h8v3h-4M3 8h6'/%3E%3C/svg%3E"); }
.ico-groupe { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B2943' stroke-width='1.8'%3E%3Ccircle cx='9' cy='8' r='3'/%3E%3Cpath d='M3 20c0-3.3 2.7-6 6-6s6 2.7 6 6M16 5.5a3 3 0 0 1 0 5.5M21 20c0-2.7-1.8-5-4.2-5.7'/%3E%3C/svg%3E"); }

/* ---------- En-tête et navigation native ---------- */
header.wp-block-template-part { position: relative; z-index: 40; }
.entete { position: relative; background: var(--blanc); }
.entete-rangee { width: var(--page); margin: 0 auto; height: 74px; display: flex; align-items: center; gap: 28px; }
.wp-block-site-title.marque { margin: 0; font-family: var(--sans); font-weight: 900; font-size: 19px; letter-spacing: -.02em; text-transform: uppercase; line-height: 1; white-space: nowrap; }
.wp-block-site-title.marque a { text-decoration: none; color: inherit; }
.wp-block-site-title.marque a::after { content: "."; color: var(--orange); }
/* Logo (piste A, 18/11/2026) : en-tête (bloc Logo du site) et pied de page (version claire sur marine). */
.wp-block-site-logo.marque-logo { line-height: 0; flex: none; margin: 0; }
.wp-block-site-logo.marque-logo img { width: 180px; height: auto; }
.pied .marque-logo-pied { margin: 0; }
.pied .marque-logo-pied img { width: 230px; height: auto; display: block; }
@media (max-width: 640px) { .wp-block-site-logo.marque-logo img { width: 150px; } .pied .marque-logo-pied img { width: 200px; } }
.menu-principal.wp-block-navigation { flex: 1; justify-content: center; gap: 6px; font-family: var(--sans); }
.menu-principal .wp-block-navigation__container { gap: 6px; }
.menu-principal .wp-block-navigation-item__content { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: var(--navy); }
.menu-principal > .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content { height: 38px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 999px; transition: background .2s; }
.menu-principal > .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > .wp-block-navigation-item:hover > .wp-block-navigation-item__content { background: var(--bleu-pale); }
.menu-principal .current-menu-item > .wp-block-navigation-item__content { box-shadow: inset 0 -2px 0 var(--orange); border-radius: 0 !important; }
.entete-cta { transform: translateY(10px); position: relative; z-index: 2; }
.entete-cta .wp-block-button__link { height: 38px; }
.lien-contact-mobile { display: none !important; }

@media (min-width: 981px) {
  /* Le sous-menu « Jeux d'échauffement » devient le méga-menu de la référence */
  .menu-principal.wp-block-navigation, .menu-principal .wp-block-navigation__responsive-container:not(.is-menu-open),
  .menu-principal .wp-block-navigation__responsive-dialog, .menu-principal .wp-block-navigation__responsive-container-content,
  .menu-principal .wp-block-navigation__container, .menu-principal li.nav-mega { position: static !important; }
  .menu-principal .wp-block-navigation__responsive-container-open { display: none !important; }
  .menu-principal li.nav-mega > .wp-block-navigation__submenu-container {
    position: absolute !important; left: 50% !important; top: 66px !important; width: var(--page) !important; min-width: 0 !important;
    display: grid !important; grid-template-columns: 1.15fr 1fr 1fr .9fr; gap: 18px; padding: 26px; margin: 0;
    background: var(--blanc) !important; border: 0 !important; border-radius: var(--r-xl); color: var(--navy) !important;
    box-shadow: 0 30px 70px -30px rgba(6, 34, 55, .55), 0 0 0 1px var(--trait);
    transform: translate(-50%, -8px); transition: opacity .22s var(--easing), transform .22s var(--easing), visibility 0s linear .26s !important;
  }
  .menu-principal li.nav-mega:hover > .wp-block-navigation__submenu-container,
  .menu-principal li.nav-mega:focus-within > .wp-block-navigation__submenu-container,
  .menu-principal li.nav-mega > .wp-block-navigation-submenu__toggle[aria-expanded="true"] ~ .wp-block-navigation__submenu-container {
    transform: translate(-50%, 0); transition: opacity .22s var(--easing), transform .22s var(--easing), visibility 0s !important;
  }
  /* pont invisible : le menu ne se ferme pas entre le bouton et le panneau */
  .menu-principal li.nav-mega > .wp-block-navigation__submenu-container::before { content: ""; position: absolute; left: 0; right: 0; top: -20px; height: 20px; }
  /* niveaux 2 et 3 : toujours visibles à l'intérieur du panneau */
  .menu-principal li.nav-mega .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container {
    position: static !important; visibility: visible !important; opacity: 1 !important; height: auto !important; width: auto !important;
    min-width: 0 !important; overflow: visible !important; border: 0 !important; background: none !important; padding: 0 !important; box-shadow: none !important;
    display: grid !important; gap: 2px; transform: none !important;
  }
  .menu-principal li.nav-mega .wp-block-navigation__submenu-container .wp-block-navigation__submenu-icon { display: none !important; }
  .menu-principal li.nav-col { display: block !important; border-radius: var(--r-lg); padding: 18px !important; background: var(--bleu-pale); position: relative; overflow: hidden; }
  .menu-principal li.nav-col > .wp-block-navigation-item__content { display: flex !important; align-items: center; gap: 10px; padding: 0 0 12px !important; font-family: var(--display); font-size: 25px; letter-spacing: 0; line-height: .95; font-weight: 400; }
  .menu-principal li.nav-col > .wp-block-navigation-item__content::before { content: ""; width: 36px; height: 36px; border-radius: 50%; flex: none; background: var(--blanc) var(--icone) center / 20px no-repeat; }
  .menu-principal li.nav-col.orange > .wp-block-navigation-item__content::before { background-color: var(--orange); }
  .menu-principal li.nav-col.jaune > .wp-block-navigation-item__content::before { background-color: var(--jaune); }
  .menu-principal li.nav-col.cyan > .wp-block-navigation-item__content::before { background-color: var(--cyan); }
  .menu-principal li.nav-groupe { display: block !important; }
  .menu-principal li.nav-groupe + li.nav-groupe, .menu-principal li.nav-groupe + li { margin-top: 10px; }
  .menu-principal li.nav-groupe > .wp-block-navigation-item__content { display: block; font-size: 10.5px !important; font-weight: 800 !important; letter-spacing: .08em; color: var(--texte-doux) !important; padding: 10px 0 6px !important; border-top: 1px solid rgba(11, 41, 67, .12); }
  .menu-principal li.nav-col li:not(li.nav-groupe) > .wp-block-navigation-item__content {
    display: flex !important; align-items: center; gap: 9px; padding: 6px 8px !important; margin: 0 -8px; border-radius: 10px;
    font-size: 14px !important; font-weight: 600 !important; letter-spacing: 0 !important; text-transform: none !important;
  }
  .menu-principal li.nav-col li:not(li.nav-groupe) > .wp-block-navigation-item__content::before { content: ""; width: 18px; height: 18px; flex: none; background: var(--icone) center / contain no-repeat; }
  .menu-principal li.nav-col li:not(li.nav-groupe) > .wp-block-navigation-item__content:hover { background: var(--blanc); }
  .menu-principal li.nav-vedette { display: flex !important; align-items: flex-end; border-radius: var(--r-lg); background: var(--navy) url(assets/img/ballon-basket-detoure.webp) right -24px bottom -10px / 62% auto no-repeat; min-height: 300px; padding: 18px !important; }
  .menu-principal li.nav-vedette > .wp-block-navigation-item__content { color: #fff !important; font-family: var(--display); font-size: 32px !important; line-height: 1 !important; font-weight: 400 !important; letter-spacing: 0 !important; max-width: 9ch; align-self: flex-start; }
  .menu-principal li.nav-vedette > .wp-block-navigation-item__content::after { content: ""; display: block; width: 40px; height: 40px; border-radius: 50%; margin-top: 150px; background: var(--orange) var(--masque-fleche) center / 16px no-repeat; }
}

@media (max-width: 980px) {
  .entete .entete-rangee .wp-block-buttons.entete-cta { display: none; }
  .entete-rangee { justify-content: space-between; }
  .menu-principal.wp-block-navigation { flex: 0 0 auto; }
  .menu-principal .wp-block-navigation__responsive-container-open { display: grid !important; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; }
  .menu-principal .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none !important; }
  .lien-contact-mobile { display: flex !important; }
}
/* Panneau mobile : fond marine (le CSS du bloc est imprimé après la feuille du thème — seul !important justifié) */
.wp-block-navigation.menu-principal .wp-block-navigation__responsive-container.is-menu-open {
  background-color: var(--navy) !important; color: #fff !important; padding: 18px 20px 40px !important;
}
.menu-principal .is-menu-open .wp-block-navigation__responsive-container-close { width: 44px; height: 44px; border-radius: 50%; background: var(--orange); color: var(--navy); display: grid; place-items: center; }
.menu-principal .is-menu-open .wp-block-navigation__container { gap: 0 !important; width: 100%; }
.menu-principal .is-menu-open .wp-block-navigation-item { width: 100%; }
.menu-principal .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content { font-family: var(--display); font-size: 30px !important; letter-spacing: 0; color: #fff !important; min-height: 52px; display: flex; align-items: center; border-bottom: 1px solid rgba(255,255,255,.12); width: 100%; }
.menu-principal .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { color: rgba(255,255,255,.88) !important; font-size: 15px !important; text-transform: none; letter-spacing: 0; font-weight: 600; min-height: 40px; display: flex; align-items: center; }
.menu-principal .is-menu-open li.nav-col > .wp-block-navigation-item__content, .menu-principal .is-menu-open li.nav-groupe > .wp-block-navigation-item__content { font-family: var(--display) !important; font-size: 22px !important; color: var(--cyan) !important; text-transform: uppercase !important; }
.menu-principal .is-menu-open .wp-block-navigation__submenu-container { padding-left: 14px !important; gap: 0 !important; }
.menu-principal .is-menu-open .a-deplier > .wp-block-navigation__submenu-container { display: none !important; }
.menu-principal .is-menu-open .a-deplier.est-deplie > .wp-block-navigation__submenu-container { display: flex !important; }
.menu-principal .is-menu-open .bouton-deplier { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.menu-principal .is-menu-open .a-deplier { flex-wrap: wrap; }
.menu-principal .is-menu-open li.nav-vedette > .wp-block-navigation-item__content { color: var(--jaune) !important; }

/* ---------- Encoche du héros et des en-têtes de page (couche décorative = pseudo-éléments) ---------- */
.heros::before, .page-tete::before { content: ""; position: absolute; top: 0; right: 0; width: 214px; height: 26px; background: var(--blanc); border-bottom-left-radius: 20px; z-index: 3; }
.heros::after, .page-tete::after { content: ""; position: absolute; top: 0; right: 0; width: 234px; height: 46px; z-index: 3; pointer-events: none;
  background: radial-gradient(circle at 0 100%, transparent 19.5px, var(--blanc) 20px) left top / 20px 20px no-repeat,
              radial-gradient(circle at 0 100%, transparent 19.5px, var(--blanc) 20px) right bottom / 20px 20px no-repeat; }
@media (max-width: 980px) { .heros::before, .heros::after, .page-tete::before, .page-tete::after { display: none; } }

/* ---------- Images détourées : le CSS du bloc Image (imprimé après le thème) impose height:auto et
   max-width:100% — on redéclare les dimensions de la maquette avec une spécificité supérieure. ---------- */
.rotatif .wp-block-image img { width: 68px; height: 68px; max-width: none; }
/* Photo avec son arrière-plan dans l'arche : le détourage effaçait les cerceaux, qui sont le sujet de l'image. */
.sport-centre::before { display: none; }
.sport-centre .wp-block-image img { left: 50%; bottom: 0; transform: translateX(-50%); width: 82%; height: 92%; max-width: none; object-fit: cover; object-position: 50% 30%; border-radius: 220px 220px 24px 24px; filter: none; box-shadow: 0 24px 40px rgba(11,41,67,.18); }
.carte-grise .wp-block-image img { height: 120px; width: auto; max-width: none; }
.carte-dossier .wp-block-image img { height: 148%; width: auto; max-width: none; }
.carte-video .wp-block-image img { width: 100%; height: 100%; max-width: none; }
.carte-ressource .wp-block-image img { height: 58%; width: auto; max-width: none; }
/* Carte « Échauffer 40 élèves » : photo de groupe cadrée (à la place d'une touche de football détourée). */
.carte-ressource.pale .wp-block-image img { left: 16px; top: 54px; transform: none; width: calc(100% - 32px); height: 48%; object-fit: cover; border-radius: 14px; }
/* « Plongeon » de la section ressources : photo avec la haie (le détourage l'avait effacée). */
.plongeon figure { position: static; }
.plongeon .wp-block-image img { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 35%; border-radius: var(--r-lg); filter: none; }
.carte-ressource.cyan .wp-block-image img { width: 100%; height: 48%; }
.carte-famille .wp-block-image img { max-width: none; }
.page-tete .visuel-tete .wp-block-image img { height: 125%; width: auto; max-width: none; }
/* En-tête de discipline avec une photo gardant son arrière-plan (handball, volley, sauts, haies) : cadre arrondi. */
.page-tete .visuel-tete.photo { display: grid; align-items: center; justify-items: end; }
.page-tete .visuel-tete.photo img { position: relative; right: auto; bottom: auto; width: min(400px, 100%); height: auto; max-width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); filter: none; box-shadow: 0 24px 40px rgba(0,0,0,.3); }
@media (max-width: 980px) { .page-tete .visuel-tete.photo { justify-items: start; } }
.heros-centre .athlete.wp-block-image img { height: 94%; width: auto; max-width: none; }

/* ---------- Héros ---------- */
.heros-gauche-haut { display: grid; }
.rotatif::before { content: ""; position: absolute; inset: 0; animation: tourne 14s linear infinite;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 104 104' fill='none' stroke='%23ffffff' stroke-opacity='.65' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M20 30A40 40 0 0 1 84 30'/%3E%3Cpath d='m78 22 6 8-9 3'/%3E%3Cpath d='M84 74A40 40 0 0 1 20 74'/%3E%3Cpath d='m26 82-6-8 9-3'/%3E%3C/svg%3E") center / contain no-repeat; }
.sport-droite .rotatif::before { filter: invert(14%) sepia(31%) saturate(1500%) hue-rotate(180deg); opacity: .5; }
.mini-nav p { width: 26px; height: 26px; border-radius: 50%; border: 1.3px solid rgba(255,255,255,.55); cursor: pointer; font-size: 0; color: transparent; position: relative; }
.mini-nav p::before { content: ""; position: absolute; inset: 7px; background: #fff; -webkit-mask: var(--masque-gauche) center / contain no-repeat; mask: var(--masque-gauche) center / contain no-repeat; }
.mini-nav p.suiv::before { -webkit-mask-image: var(--masque-droite); mask-image: var(--masque-droite); }
.mini-nav p:hover { background: rgba(255,255,255,.12); }
.heros-centre .athlete { position: static; }
.heros-centre .athlete img { position: absolute; left: 47%; bottom: -10px; transform: translateX(-50%); height: 94%; width: auto; max-width: none; filter: drop-shadow(0 30px 40px rgba(0,0,0,.35)); }
.js .heros-centre .athlete img { animation: surgit 1.1s var(--easing) .15s both, flotte 6s ease-in-out 1.4s infinite; }
.heros-objet img { width: 82px; }
.heros-droite .puce { color: #fff; box-shadow: inset 0 0 0 1.2px rgba(255,255,255,.6); margin-bottom: 18px; align-self: flex-start; display: inline-flex; width: fit-content; }
.puce-sifflet::before { content: ""; width: 13px; height: 13px; background: currentColor; -webkit-mask: var(--icone) center / contain no-repeat; mask: var(--icone) center / contain no-repeat;
  --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M3 11a5 5 0 1 0 10 0V8h8v3h-4M3 8h6'/%3E%3C/svg%3E"); }
.heros-titre { display: flex; flex-direction: column; }
.heros-bas > .recherche { min-width: 0; }

/* Image en pastille dans un titre (format « image en ligne » de Gutenberg) */
h1 img[class*="wp-image-"], h2 img[class*="wp-image-"], p.d3 img[class*="wp-image-"] {
  display: inline-block; width: 1.55em !important; height: .74em; border-radius: 999px; object-fit: cover;
  vertical-align: .02em; margin: 0 .06em; background: var(--cyan);
}
.trait-haut p.d3 img[class*="wp-image-"] { background: var(--jaune); object-fit: contain; padding: .06em .3em; }
.filtre-rapide h2 img[class*="wp-image-"] { background: var(--bleu-pale); object-fit: contain; padding: .05em .4em; }

/* ---------- Familles ---------- */
.familles-intro .d4::after { content: ""; display: block; width: 122px; height: 38px; margin-top: 16px;
  background:
    radial-gradient(circle at 19px 19px, var(--orange) 0 16px, var(--blanc) 16.5px 19px, transparent 19.5px),
    radial-gradient(circle at 48px 19px, var(--cyan) 0 16px, var(--blanc) 16.5px 19px, transparent 19.5px),
    radial-gradient(circle at 77px 19px, var(--jaune) 0 16px, var(--blanc) 16.5px 19px, transparent 19.5px),
    radial-gradient(circle at 106px 19px, var(--bleu-pale) 0 16px, var(--blanc) 16.5px 19px, transparent 19.5px); }
.carte-famille::before { content: ""; position: absolute; top: 14px; right: 14px; width: 22px; height: 22px; z-index: 3; background: currentColor; -webkit-mask: var(--masque-fleche) center / contain no-repeat; mask: var(--masque-fleche) center / contain no-repeat; transition: transform .35s var(--easing); }
.carte-famille:hover::before { transform: rotate(45deg); }
.carte-famille .texte-contour { left: 10px; top: 84px; font-size: 72px; margin: 0; }
.carte-famille .compte p { margin: 0; }
/* Sujets entièrement visibles dans leur carte (audit visuel du 17/11/2026 : coureuse, gymnaste et ballon de volley étaient coupés
   par le bord, et le ballon de volley — fichier de 300 px — était agrandi au-delà de sa résolution). */
.fam-marquage .wp-block-image img { right: 14px; top: 46px; width: 46%; height: auto; }
.fam-renvoi .wp-block-image img { right: 14px; bottom: 56px; width: 44%; max-width: 150px; height: auto; }
.fam-athletisme .wp-block-image img { right: 10px; bottom: 0; height: 60%; width: auto; max-width: 52%; object-fit: contain; object-position: right bottom; }
.fam-gym .wp-block-image img { right: 10px; bottom: 0; height: 66%; width: auto; max-width: 50%; object-fit: contain; object-position: right bottom; }
.carte-famille figure { position: static; }

/* ---------- Choisir son sport ---------- */
.sport-centre figure { position: static; }
.sport-rotatif { display: grid; justify-items: center; gap: 10px; }
.sport-rotatif .lbl { text-align: center; }
.points { font-size: 0; height: 6px; width: 28px; margin: 0 auto;
  background: radial-gradient(circle at 3px 3px, var(--navy) 0 3px, transparent 3.5px), radial-gradient(circle at 14px 3px, var(--trait) 0 3px, transparent 3.5px), radial-gradient(circle at 25px 3px, var(--trait) 0 3px, transparent 3.5px); }
.carte-jaune { color: var(--navy); }
.carte-jaune figure { position: static; }

/* ---------- Incontournables ---------- */
.carte-grise { color: var(--navy); }
.carte-grise::before { content: ""; position: absolute; top: 14px; right: 14px; width: 22px; height: 22px; background: var(--navy); -webkit-mask: var(--masque-fleche) center / contain no-repeat; mask: var(--masque-fleche) center / contain no-repeat; }
.carte-grise figure, .carte-dossier figure { position: static; }
.carte-grise p.lbl { position: relative; z-index: 2; }
.carte-dossier .puce { margin: 0; }
.carte-dossier .nom { margin: 0; }
.carte-dossier::after { content: "+"; position: absolute; right: -10px; bottom: -10px; width: 64px; height: 64px; border-radius: 50%; z-index: 3;
  display: grid; place-items: center; font: 400 26px/1 var(--sans); color: var(--navy);
  background: radial-gradient(circle, var(--jaune) 0 20px, var(--blanc) 20.5px); transition: transform .35s var(--easing); }
.carte-dossier:hover::after { transform: rotate(90deg); }


/* ---------- Cartes de jeu natives (boucle de requête) ---------- */
.wp-block-post-template.grille-jeux { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.wp-block-post-template.grille-jeux > li { margin: 0; display: flex; }
.carte-native { width: 100%; background: var(--blanc); border-radius: var(--r-lg); padding: 8px 8px 16px; display: flex; flex-direction: column; transition: transform .4s var(--easing), box-shadow .4s; position: relative; }
.carte-native:hover { transform: translateY(-6px); box-shadow: var(--ombre); }
.carte-native .visuel { height: 210px; border-radius: var(--r-md); overflow: hidden; background: var(--orange); }
.carte-native .visuel a { display: grid; place-items: center; height: 100%; }
.carte-native .visuel img { height: 80% !important; width: auto !important; max-width: 92%; object-fit: contain !important; filter: drop-shadow(0 14px 16px rgba(11,41,67,.28)); transition: transform .6s var(--easing); }
.carte-native:hover .visuel img { transform: scale(1.06); }
li:nth-child(4n+2) > .carte-native .visuel { background: var(--cyan); }
li:nth-child(4n+3) > .carte-native .visuel { background: var(--jaune); }
li:nth-child(4n+4) > .carte-native .visuel { background: var(--gris-bleu); }
/* ---------- Miniatures des fiches (16:9, illustrations MonEchauffement) ----------
   Chaque fiche a sa propre miniature : on l'affiche en entier, sans fond coloré ni ombre portée. */
.carte-jeu .visuel.miniature { height: auto; aspect-ratio: 16 / 9; background: var(--bleu-pale); }
.carte-jeu .visuel img.miniature { width: 100%; height: 100%; object-fit: cover; filter: none; }
.carte-jeu:hover .visuel img.miniature { transform: scale(1.03); }
.carte-native .visuel { height: auto; aspect-ratio: 16 / 9; background: var(--bleu-pale) !important; }
.carte-native .visuel img { height: 100% !important; width: 100% !important; max-width: none; object-fit: cover !important; filter: none; }
.carte-native:hover .visuel img { transform: scale(1.03); }
.carte-native .discipline { padding: 8px 6px 0; }
.carte-native .discipline a, .carte-native .puces a { text-decoration: none; color: inherit; }
.carte-native .discipline .wp-block-post-terms__separator { display: none; }
.carte-native .discipline a:not(:first-child) { display: none; }
.carte-native .puces { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 6px 0; }
.carte-native .puces .wp-block-post-terms__separator { display: none; }
.carte-native .puces a { display: inline-flex; align-items: center; height: 23px; padding: 0 10px; border-radius: 999px; box-shadow: inset 0 0 0 1.3px currentColor; font-size: 9.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }

.carte-native .bas { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 12px 6px 0; margin-top: auto; }
.carte-native .bas .wp-block-post-title { font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; line-height: 1.3; margin: 0; font-family: var(--sans); }
.carte-native .bas .wp-block-post-title a { text-decoration: none; color: inherit; }
.carte-native .bas .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.carte-native .duree { font-family: var(--display); font-size: 30px; line-height: .9; white-space: nowrap; }
.carte-article .visuel { background: var(--bleu-pale); }
.wp-block-query.section .wp-block-post-template { margin-top: 0; }

/* ---------- Trouver un jeu ---------- */
.trouver-gauche { display: block; }
.puce-date p, .carte-herbe p { margin: 0; }
.carte-herbe figure { position: static; }
.carte-herbe .lbl { position: relative; z-index: 2; }
.carte-video figure { position: static; }
.carte-video .lecture { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 2; display: grid; justify-items: center; gap: 8px; margin: 0; color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.carte-video .lecture::before { content: ""; width: 46px; height: 46px; border-radius: 50%; background: var(--orange) var(--masque-lecture) 55% center / 16px no-repeat; box-shadow: 0 0 0 6px rgba(255,255,255,.35); animation: pulse 2.4s ease-out infinite; }
.filtre-rapide .filtre-rapide { gap: 16px; }

/* ---------- Ressources et à propos ---------- */
.ressources-tete-texte { display: grid; gap: 8px; }
.plongeon figure { position: static; }
.plongeon figure:not(.ballon) img { position: absolute; left: 10%; bottom: -14px; height: 108%; width: auto; max-width: none; filter: drop-shadow(0 24px 30px rgba(11,41,67,.25)); }
.plongeon figure.ballon img { position: absolute; left: 4%; top: 0; width: 64px; height: auto; animation: rebond 3s ease-in-out infinite; filter: none; }
.carte-ressource { color: var(--navy); }
.carte-ressource::before { content: ""; position: absolute; top: 14px; right: 14px; width: 22px; height: 22px; z-index: 3; background: var(--navy); -webkit-mask: var(--masque-fleche) center / contain no-repeat; mask: var(--masque-fleche) center / contain no-repeat; }
.carte-ressource figure { position: static; }
.carte-ressource .puce { align-self: flex-start; margin: 0; }
.carte-ressource .titre-carte { font-family: var(--display); font-size: 26px; line-height: .95; text-transform: uppercase; margin: 0; }
.carte-ressource.cyan .bas { margin-top: 14px; }

.repere p { margin: 0; }

/* ---------- En-têtes de pages internes ---------- */
.page-tete-texte { position: relative; z-index: 2; }
.page-tete .surtitre { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); margin-bottom: 10px; }
.page-tete .ariane-simple { font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: rgba(255,255,255,.62); margin-bottom: 22px; }
.page-tete .ariane-simple a { color: rgba(255,255,255,.82); text-decoration: none; }
.page-tete .wp-block-post-title.d1, .page-tete .wp-block-query-title.d1 { color: #fff; margin: 0; }
.page-tete .wp-block-post-excerpt.petit, .page-tete .wp-block-term-description.petit { margin: 0; }
.page-tete .wp-block-post-excerpt__excerpt, .page-tete .wp-block-term-description p { color: rgba(255,255,255,.78); margin: 18px 0 0; max-width: 60ch; font-size: 15px; line-height: 1.65; text-transform: none; letter-spacing: 0; font-weight: 400; }
.page-tete .wp-block-post-excerpt__more-text { display: none; }
.page-tete .wp-block-post-terms.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.page-tete .wp-block-post-terms.badges .wp-block-post-terms__separator { display: none; }
.page-tete .wp-block-post-terms.badges a { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 999px; box-shadow: inset 0 0 0 1.2px rgba(255,255,255,.55); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; text-decoration: none; }
.page-tete .badges .puce { color: #fff; box-shadow: inset 0 0 0 1.2px rgba(255,255,255,.55); }
.page-tete .ancres .puce { color: #fff; box-shadow: inset 0 0 0 1.2px rgba(255,255,255,.4); text-decoration: none; }
.page-tete .visuel-tete figure { position: static; }
.faits .fait p { margin: 0; font-size: 9.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.62); }
.faits .fait p.valeur { font-family: var(--display); font-size: 25px; line-height: 1; font-weight: 400; letter-spacing: 0; text-transform: none; color: #fff; }
.visuel-sans-video img { width: 70%; height: auto; max-height: 85%; object-fit: contain; filter: drop-shadow(0 14px 16px rgba(11,41,67,.28)); }

/* ---------- Fiche : rubriques en groupes natifs, numérotées par le CSS ---------- */
.fiche-texte .wp-block-post-content, .article-corps .wp-block-post-content { display: grid; gap: 40px; counter-reset: rub; }
.bloc-rubrique h2.rubrique { font-family: var(--display); font-size: 36px; line-height: 1; text-transform: uppercase; margin: 0 0 14px; display: flex; align-items: center; gap: 12px; }
.bloc-rubrique h2.rubrique::before { counter-increment: rub; content: counter(rub); font: 800 15px/1 var(--sans); width: 34px; height: 34px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; flex: none; }
.bloc-rubrique p { font-size: 16px; line-height: 1.75; }
.bloc-rubrique p + p { margin-top: 8px; }
.bloc-rubrique .wp-block-list + p { margin-top: 12px; }
.bloc-rubrique ul.liste-points, .bloc-rubrique ol.etapes { margin: 0; }
.bloc-securite, .bloc-adaptation-40, .bloc-interet { border-radius: var(--r-lg); padding: 22px 24px; }
.bloc-securite { background: var(--orange); }
.bloc-securite h2.rubrique::before { background: var(--navy); color: #fff; }
.bloc-securite .liste-points li::before { background: var(--navy); }
.bloc-adaptation-40 { background: var(--bleu-pale); }
.bloc-interet { background: var(--navy); color: #fff; }
.bloc-interet p { color: rgba(255,255,255,.88); }
.article-corps { width: min(760px, calc(100vw - 32px)); margin: 56px auto 0; }
.texte-legal { max-width: 800px; display: grid; gap: 32px; }

/* ---------- Voisins (navigation native entre fiches) ---------- */
.voisins .voisin { position: relative; display: grid; gap: 6px; padding: 20px 22px; border-radius: var(--r-lg); background: var(--bleu-pale); transition: background .25s; }
.voisins .voisin:hover { background: var(--gris-bleu); }
.voisins .voisin .wp-block-post-navigation-link__label { font-size: 12px; font-weight: 500; letter-spacing: .03em; text-transform: uppercase; color: var(--texte-doux); }
.voisins .voisin a { font-family: var(--display); font-size: 26px; line-height: 1; text-transform: uppercase; text-decoration: none; color: inherit; }
.voisins .voisin.suivant { text-align: right; }
.voisins .voisin:empty { display: none; }

/* ---------- Pages de ressources ---------- */
.grille-ressources { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.carte-guide { border-radius: var(--r-lg); padding: 20px; display: grid; gap: 12px; align-content: start; min-height: 220px; background: var(--bleu-pale); border-top: 10px solid var(--orange); }
.carte-guide.cyan { border-top-color: var(--cyan); }
.carte-guide.jaune { border-top-color: var(--jaune); }
.carte-guide .puce { width: fit-content; }
.carte-guide .titre-guide { font-family: var(--display); font-size: 28px; line-height: 1; text-transform: uppercase; margin: 0; }
.carte-guide .corps, .carte-texte .corps, .filtre-rapide .corps { font-size: 15px; line-height: 1.65; color: var(--texte-doux); }
.carte-texte { min-height: 220px; }
.carte-guide .titre-guide a { color: inherit; text-decoration: none; }
.carte-guide .titre-guide a:hover { text-decoration: underline; }
.texte-legal [id], .grille-ressources + * [id] { scroll-margin-top: 110px; }
.texte-legal .wp-block-list { margin: 8px 0 0; padding-left: 22px; display: grid; gap: 6px; }
.texte-legal .wp-block-list li { font-size: 16px; line-height: 1.65; }
.texte-legal .wp-block-buttons { margin-top: 14px; }
.texte-legal { counter-reset: rub; }
.texte-legal .note-maj { font-size: 14px; color: var(--texte-doux); }

/* ---------- Emplacements publicitaires ----------
   Rien n'est affiché tant qu'un emplacement n'est pas activé (Réglages → Publicité, après approbation AdSense).
   Mention « Publicité » visible, filets de séparation, hauteur réservée : pas de confusion avec un bouton, pas de saut de mise en page. */
.me-pub { margin: 8px 0; padding: 12px 0 16px; border-top: 1px solid var(--gris-bleu); border-bottom: 1px solid var(--gris-bleu); min-height: 300px; display: grid; align-content: start; gap: 8px; }
.me-pub-mention { margin: 0; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--texte-doux); }
.me-pub--discipline { margin-top: 56px; }

/* ---------- Pied de page natif ---------- */
footer.wp-block-template-part { margin: 0; }
.pied .wp-block-site-title.marque { font-size: 27px; color: #fff; }
.pied-marque .petit { color: rgba(255,255,255,.7); max-width: 34ch; margin-top: 10px; }
.pied-contact figure.vignette { width: 84px; height: 72px; border-radius: 12px; overflow: hidden; background: var(--cyan); display: grid; place-items: center; }
.pied-contact figure.vignette img { width: 72px; height: 60px; object-fit: contain; }
.pied-contact .d4 { font-size: 26px; margin-bottom: 10px; }
.pilule-mail { display: flex; align-items: center; height: 42px; max-width: 360px; border-radius: 999px; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1.4px rgba(255,255,255,.55); padding-left: 18px; }
.pilule-mail a { flex: 1; color: rgba(255,255,255,.85); text-decoration: none; font-size: 12px; font-weight: 600; letter-spacing: .03em; display: flex; align-items: center; justify-content: space-between; }
.pilule-mail a::after { content: ""; width: 34px; height: 34px; margin: 4px; border-radius: 50%; background: var(--orange) var(--masque-fleche) center / 14px no-repeat; }
.pied-milieu > .wp-block-group + .wp-block-group { border-left: 1px solid rgba(255,255,255,.1); padding-left: 24px; }
.pied-objet figure { position: static; }
.pied-objet img { width: 90px; transform: rotate(-12deg); filter: drop-shadow(0 12px 14px rgba(0,0,0,.4)); }
.pied-objet .rond-lien a { position: absolute; left: 66px; top: 64px; width: 40px; height: 40px; border-radius: 50%; font-size: 0; color: transparent; box-shadow: 0 0 0 4px var(--navy-deep); background: var(--cyan) var(--masque-fleche) center / 16px no-repeat; }
.pied-titre { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; color: #fff; }
.pied .pied-liens { margin: 0; }
.wp-block-social-links.reseaux { gap: 8px; margin: 0; }
.wp-block-social-links.reseaux .wp-social-link { background: none !important; color: #fff !important; border-radius: 9px; box-shadow: inset 0 0 0 1.3px rgba(255,255,255,.4); }
.wp-block-social-links.reseaux .wp-social-link a { padding: 9px; }
.pied-bas p { margin: 0; }

/* ---------- Adaptatif propre au DOM WordPress ---------- */
@media (max-width: 1180px) {
  .pied-milieu > .wp-block-group + .wp-block-group { border-left: 0; padding-left: 0; }
}
@media (max-width: 980px) {
  .wp-block-post-template.grille-jeux, .grille-ressources { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .wp-block-post-template.grille-jeux, .grille-ressources { grid-template-columns: 1fr; }
  .carte-dossier figure img { right: 0; }
}

/* ---------- Impression A4 ---------- */
@media print {
  header.wp-block-template-part, footer.wp-block-template-part, .fiche-actions, .lecteur, .visuel-sans-video, .voisins, .section-similaires, .wp-block-monechauffement-fil-ariane, .me-pub { display: none !important; }
  .page-tete::before, .page-tete::after { display: none; }
  .page-tete .wp-block-post-title.d1, .faits .fait p.valeur { color: #000; }
  .page-tete .wp-block-post-excerpt__excerpt, .faits .fait p { color: #333; }
  .bloc-securite, .bloc-interet { background: #f1f1f1 !important; color: #000 !important; }
  .bloc-interet p { color: #000; }
  .bloc-rubrique { break-inside: avoid; }
}

/* ---------- Corrections issues de la porte 4 (relevé maquette ↔ WordPress) ---------- */
/* WordPress annule la marge haute du premier enfant d'un groupe (:root :where(.is-layout-flow) > :first-child) */
.heros .heros-gauche { margin: 22px 0; }
/* la classe d'un core/button atterrit sur le conteneur : on le neutralise (blocs-gutenberg.md) */
.puces-sports .wp-block-button.puce-sport { padding: 0; background: none; height: auto; display: inline-block; gap: 0; }
/* taille portée par un style en ligne dans la maquette */
.trait-haut p.d3 { font-size: clamp(28px, 2.8vw, 40px); }
.pied .wp-block-site-title.marque { line-height: 1.6; }
.carte-native .discipline { padding: 4px 6px 0; }
.carte-native .puces a:nth-of-type(n+4) { display: none; }

/* Mise en ligne (14/11/2026) : à 1024 px, l'image découpée de la carte dossier dépassait de 7 px du bord de l'écran.
   overflow-x: clip coupe au bord sans créer de zone de défilement (l'en-tête collant continue de fonctionner). */
.wp-site-blocks { overflow-x: clip; }

/* Guide pédagogique des pages discipline (18/11/2026) : texte de lecture, intertitres sobres, liens vers les fiches. */
.guide-discipline .guide-texte { max-width: 820px; display: grid; gap: 10px; }
.guide-discipline .guide-texte h3 { font-family: var(--sans); font-size: 19px; font-weight: 800; line-height: 1.3; letter-spacing: -.01em; margin: 18px 0 0; }
.guide-discipline .guide-texte h3:first-child { margin-top: 0; }
.guide-discipline .guide-texte p { font-size: 16px; line-height: 1.7; color: var(--texte); }
.guide-discipline .guide-texte a { color: inherit; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.guide-discipline .guide-texte a:hover { color: var(--orange-fort); }
.guide-discipline .section-tete { margin-bottom: 22px; }

/* Accessibilité (PageSpeed, 22/11/2026) : le titre gris « Repère OP (famille) » sur fond jaune n'atteignait pas
   le contraste minimal (4,4:1 pour 4,5:1) ; texte marine. */
.carte-info.op h3 { color: var(--texte); }

