/* ==========================================================================
   Egalicare : feuille de style unique
   Lagon (bleu-vert) + corail (lave) + sable ; titres Bricolage Grotesque,
   texte Atkinson Hyperlegible (lisibilité, malvoyance).
   ========================================================================== */

:root {
	--lagon: #53559f;
	--lagon-f: #3f418a;
	--lagon-ff: #2f316e;
	--lagon-c: #ebebf7;
	--corail: #213a8f;
	--corail-f: #162a6e;
	--corail-c: #e6e8f5;
	--soleil: #f6b04a;
	--soleil-c: #fff1d6;
	--sable: #f6f6fc;
	--sable-f: #eaeaf6;
	--encre: #1a1f45;
	--gris: #5a6372;
	--gris-c: #8a92a0;
	--ligne: #e1e1ef;
	--blanc: #fff;
	--ok: #2f9e6e;

	--f-titre: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
	--f-texte: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;

	--r: 18px;
	--r-s: 12px;
	--ombre: 0 1px 2px rgba(27, 35, 51, .06), 0 8px 24px -10px rgba(27, 35, 51, .18);
	--ombre-f: 0 2px 4px rgba(27, 35, 51, .06), 0 22px 44px -18px rgba(27, 35, 51, .32);
	--wrap: 1200px;
	--gout: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--sable);
	color: var(--encre);
	font: 400 1.0625rem/1.6 var(--f-texte);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--lagon-f); text-underline-offset: .18em; }
a:hover { color: var(--corail-f); }
h1, h2, h3, h4 { font-family: var(--f-titre); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.015em; font-weight: 700; }
h1 em, h2 em { font-style: normal; color: var(--corail); position: relative; white-space: nowrap; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--corail); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gout); }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
[hidden] { display: none !important; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--encre); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; color: #fff; }

.surtitre { display: inline-flex; align-items: center; gap: .45em; font: 700 .8rem/1.3 var(--f-texte); letter-spacing: .08em; text-transform: uppercase; color: var(--lagon); margin-bottom: .8em; }
.source { font-size: .82rem; color: var(--gris); }
.vide { color: var(--gris); padding: 24px; text-align: center; background: var(--blanc); border-radius: var(--r); border: 1px dashed var(--ligne); }

/* --- Boutons ------------------------------------------------------------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	padding: .8em 1.35em; border-radius: 999px; border: 2px solid transparent;
	font: 700 1rem/1.2 var(--f-texte); text-decoration: none; cursor: pointer;
	transition: transform .15s ease, background .15s, color .15s, box-shadow .15s;
	max-width: 100%;
}
.btn:hover { transform: translateY(-1px); }
.btn--plein { background: var(--corail); color: #fff; box-shadow: 0 8px 18px -8px rgba(33, 58, 143, .7); }
.btn--plein:hover { background: var(--corail-f); color: #fff; }
.btn--contour { border-color: var(--lagon); color: var(--lagon-f); background: var(--blanc); }
.btn--contour:hover { background: var(--lagon); color: #fff; }
.btn--lien { padding: .4em 0; color: var(--lagon-f); background: none; border: 0; }
.btn--lien:hover { color: var(--corail-f); transform: none; }
.btn--lien .ic { transition: transform .15s; }
.btn--lien:hover .ic { transform: translateX(3px); }
.btn--clair { background: #fff; color: var(--lagon-ff); box-shadow: none; }
.btn--clair:hover { background: var(--soleil-c); color: var(--lagon-ff); }
.btn--petit { padding: .55em 1em; font-size: .92rem; }
.btn--danger { color: #b42318; }

.btn-coeur {
	display: inline-flex; align-items: center; gap: .5em; padding: .7em 1.2em; border-radius: 999px;
	border: 2px solid var(--corail); background: var(--blanc); color: var(--corail-f); font-weight: 700; cursor: pointer;
	transition: background .15s, color .15s, transform .15s;
}
.btn-coeur:hover { background: var(--corail-c); }
.btn-coeur[aria-pressed="true"] { background: var(--corail); color: #fff; }
.btn-coeur[aria-pressed="true"] .ic { fill: currentColor; }
.btn-coeur--compact { padding: 0; width: 40px; height: 40px; justify-content: center; border-width: 0; background: var(--corail-c); }
.btn-coeur--compact .ic { width: 20px; height: 20px; }
.btn-coeur.is-pop { animation: pop .35s ease; }
@keyframes pop { 50% { transform: scale(1.18); } }

/* --- Puces --------------------------------------------------------------- */
.chip {
	display: inline-flex; align-items: center; gap: .4em; padding: .35em .8em; border-radius: 999px;
	background: var(--blanc); border: 1px solid var(--ligne); font-size: .88rem; line-height: 1.25; color: var(--encre); text-decoration: none;
}
.chip .ic { width: 1em; height: 1em; }
.chip--famille { background: color-mix(in srgb, var(--c) 14%, white); border-color: transparent; color: color-mix(in srgb, var(--c) 70%, black); font-weight: 700; }
.chip--tension { background: var(--soleil-c); border-color: #f3d79b; color: #8a5300; font-weight: 700; }
.chip--etape { border-color: color-mix(in srgb, var(--ce) 40%, white); color: color-mix(in srgb, var(--ce) 60%, black); }
.chip--etape:hover { background: color-mix(in srgb, var(--ce) 15%, white); }
.chip--lien { color: var(--lagon-f); font-weight: 700; }
.chip--lien:hover { border-color: var(--lagon); }
.chip--grand { font-size: 1rem; padding: .5em 1em; }
.chip--exemple { background: #f1eefc; border-color: #ddd5f7; color: #5b4bb0; }
.chip--video { background: var(--lagon); color: #fff; border-color: var(--lagon); }
.pastilles { display: flex; flex-wrap: wrap; gap: 8px; }
.voie { display: inline-block; padding: .2em .65em; border-radius: 6px; font-size: .78rem; font-weight: 700; background: var(--lagon-c); color: var(--lagon-ff); }
.voie--apprentissage { background: #fff1d6; color: #7a4a00; }
.voie--continue { background: #ece9fb; color: #463a9a; }
.voie--vae { background: #e6f4ea; color: #1f6b3d; }
.voie--parcoursup { background: #e6e8f5; color: #162a6e; }

/* --- Bandeau prototype + en-tête ---------------------------------------- */
.bandeau-proto { background: var(--lagon-ff); color: #e8f5f4; font-size: .86rem; }
.bandeau-proto .wrap { display: flex; gap: .6em; align-items: center; padding-top: 7px; padding-bottom: 7px; }
.bandeau-proto .ic { color: var(--soleil); }

.site-header { position: sticky; top: 0; z-index: 40; background: rgba(246, 246, 252, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--ligne); }
.admin-bar .site-header { top: 32px; }
.site-header__in { display: flex; align-items: center; gap: 18px; min-height: 70px; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--encre); flex: none; }
.logo__img { display: block; height: 46px; width: auto; }
.logo--clair { color: #fff; }
.logo--clair .logo__img { height: 52px; }
.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.nav a { display: block; padding: .55em .75em; border-radius: 10px; text-decoration: none; color: var(--encre); font-weight: 700; font-size: .95rem; white-space: nowrap; }
.nav a:hover { background: var(--sable-f); color: var(--encre); }
.nav a[aria-current="page"] { color: var(--lagon-f); background: var(--lagon-c); }
.btn-carnet { position: relative; display: inline-flex; align-items: center; gap: .5em; padding: .6em 1em; border-radius: 999px; background: var(--encre); color: #fff; text-decoration: none; font-weight: 700; font-size: .95rem; flex: none; }
.btn-carnet:hover { background: var(--lagon-ff); color: #fff; }
.btn-carnet__nb { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--corail); color: #fff; font-size: .75rem; line-height: 22px; text-align: center; border: 2px solid var(--sable); }
.btn-carnet.is-bump .btn-carnet__nb { animation: pop .4s ease; }
.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--ligne); background: var(--blanc); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle .ic { width: 24px; height: 24px; }

@media (max-width: 1120px) {
	.nav-toggle { display: inline-flex; }
	.nav { position: absolute; top: 100%; left: 0; right: 0; margin: 0; background: var(--sable); border-bottom: 1px solid var(--ligne); box-shadow: var(--ombre-f); display: none; }
	.nav.is-open { display: block; }
	.nav ul { flex-direction: column; padding: 10px var(--gout) 18px; }
	.nav a { padding: .8em .9em; font-size: 1.05rem; }
	.btn-carnet { order: 2; }
	.nav-toggle { order: 3; margin-left: 0; }
	.logo { margin-right: auto; }
}
@media (max-width: 520px) {
	.btn-carnet__txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.btn-carnet { padding: .7em; }
	.logo__img { height: 38px; }
}

/* --- Sections, en-têtes de page ----------------------------------------- */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section--serre { padding-top: 28px; padding-bottom: 56px; }
.section--sable { background: var(--sable-f); }
.titre-section { margin-bottom: 28px; max-width: 760px; }
.titre-section h2, .titre-section__h { font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin-bottom: .4em; }
.titre-section__h { margin-bottom: 28px; }
.titre-section__intro { color: var(--gris); font-size: 1.1rem; }
.titre-section--ligne { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 32px; flex-wrap: wrap; max-width: none; }
.titre-section--ligne > div { max-width: 700px; }

.entete { padding: clamp(36px, 6vw, 72px) 0 clamp(24px, 4vw, 40px); background:
	radial-gradient(600px 240px at 92% 0%, rgba(33, 58, 143, .12), transparent 70%),
	radial-gradient(700px 300px at 0% 100%, rgba(83, 85, 159, .1), transparent 70%); }
.entete__titre { font-size: clamp(2rem, 5vw, 3.4rem); max-width: 900px; }
.entete__intro { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--gris); max-width: 760px; }

.ariane ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; padding: 0; margin: 0 0 18px; font-size: .9rem; color: var(--gris); }
.ariane li + li::before { content: "›"; margin-right: 8px; color: var(--gris-c); }
.ariane a { color: inherit; }

/* --- Accueil : hero ------------------------------------------------------ */
.hero { position: relative; overflow: hidden; padding: clamp(36px, 6vw, 80px) 0 clamp(28px, 4vw, 48px);
	background: radial-gradient(700px 400px at 85% 30%, rgba(83, 85, 159, .14), transparent 65%), radial-gradient(500px 300px at 10% 90%, rgba(246, 176, 74, .18), transparent 70%); }
.hero__grille { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero__titre { font-size: clamp(2.3rem, 5.6vw, 4.2rem); margin-bottom: .35em; }
.hero__titre em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .22em; background: #9091c7; opacity: .55; z-index: -1; border-radius: 4px; }
.hero__intro { font-size: clamp(1.08rem, 1.7vw, 1.28rem); color: var(--gris); max-width: 600px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 30px; }
.profils { border: 0; padding: 0; margin: 0; }
.profils legend { font: 700 1rem var(--f-titre); margin-bottom: 10px; padding: 0; }
.profils__liste { display: flex; flex-wrap: wrap; gap: 8px; }
.profil { padding: .5em 1em; border-radius: 999px; border: 1.5px solid var(--ligne); background: var(--blanc); cursor: pointer; font-weight: 700; font-size: .92rem; transition: all .15s; }
.profil:hover { border-color: var(--lagon); color: var(--lagon-f); }
.profil[aria-pressed="true"] { background: var(--lagon); border-color: var(--lagon); color: #fff; }
.hero__alex { position: relative; display: flex; flex-direction: column; align-items: center; }
.alex--hero { width: min(340px, 80%); filter: drop-shadow(0 24px 30px rgba(83, 85, 159, .25)); animation: flotte 6s ease-in-out infinite; }
@keyframes flotte { 50% { transform: translateY(-8px); } }
.hero__bulle { position: relative; align-self: stretch; background: var(--blanc); border-radius: 22px; padding: 18px 22px; box-shadow: var(--ombre-f); margin-bottom: 14px; font-size: 1.05rem; max-width: 420px; margin-inline: auto; }
.hero__bulle::after { content: ""; position: absolute; bottom: -12px; left: 50%; width: 24px; height: 24px; background: var(--blanc); transform: translateX(-50%) rotate(45deg); border-radius: 4px; }
.hero__bulle p { margin: 0; }
.hero__bulle-cta { display: inline-flex; gap: .4em; align-items: center; margin-top: 10px; font-weight: 700; color: var(--corail-f); position: relative; z-index: 1; }
.hero__bulle.is-anim { animation: bulle .4s ease; }
@keyframes bulle { from { transform: scale(.94); opacity: .4; } }
.hero__stats { list-style: none; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 6px 0 0; padding: 0; }
.hero__stats li { background: var(--blanc); border-radius: 14px; padding: 8px 14px; font-size: .9rem; color: var(--gris); box-shadow: var(--ombre); }
.hero__stats strong { font: 800 1.25rem var(--f-titre); color: var(--lagon-f); margin-right: .2em; }
@media (max-width: 900px) {
	.hero__grille { grid-template-columns: 1fr; }
	.hero__alex { order: -1; flex-direction: row; gap: 10px; align-items: flex-end; }
	.alex--hero { width: 120px; flex: none; }
	.hero__bulle { margin: 0 0 18px; font-size: .98rem; }
	.hero__bulle::after { left: auto; right: -8px; bottom: 18px; }
	.hero__stats { display: none; }
}

/* --- Fresque ------------------------------------------------------------ */
.bande-fresque { padding: clamp(40px, 6vw, 72px) 0 clamp(24px, 4vw, 48px); background: var(--blanc); }
.fresque { position: relative; max-width: 1600px; margin: 0 auto; }
.fresque__svg { display: block; width: 100%; height: auto; }
.fresque--page { padding: 0 0 12px; }
.fresque__etape { cursor: pointer; }
.fresque__etape:focus { outline: none; }
.fresque__pin { transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); transform-box: fill-box; transform-origin: center; }
.fresque__etape:hover .fresque__pin, .fresque__etape:focus-visible .fresque__pin { transform: scale(1.14); }
.fresque__etape:focus-visible .fresque__halo { opacity: .55; stroke: var(--encre); stroke-width: 3; }
.fresque__halo { animation: halo 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes halo { 50% { transform: scale(1.18); opacity: .1; } }
.fresque__nom { font: 800 21px var(--f-titre); fill: var(--encre); paint-order: stroke; stroke: rgba(255, 255, 255, .85); stroke-width: 6px; stroke-linejoin: round; }
.fresque__age { font: 700 15px var(--f-texte); fill: #3c4556; paint-order: stroke; stroke: rgba(255, 255, 255, .85); stroke-width: 5px; }
.fresque__trace { animation: marche 18s linear infinite; }
@keyframes marche { to { stroke-dashoffset: -360; } }
.chemin { list-style: none; margin: 0; padding: 0; display: none; position: relative; }
.chemin::before { content: ""; position: absolute; left: 27px; top: 20px; bottom: 20px; width: 6px; border-radius: 3px; background: linear-gradient(#f28f8f, #f6b04a, #7cc06b, #2fa79b, #3a86c8, #7a6fd0, #a46bb5); }
.chemin__etape a { position: relative; display: flex; align-items: center; gap: 14px; padding: 10px 0; text-decoration: none; color: var(--encre); }
.chemin__pin { width: 60px; height: 60px; flex: none; border-radius: 50%; background: var(--blanc); border: 5px solid var(--c); display: grid; place-items: center; color: var(--c); z-index: 1; }
.chemin__pin .ic { width: 26px; height: 26px; }
.chemin__txt { flex: 1; display: flex; flex-direction: column; background: var(--blanc); border-radius: 14px; padding: 10px 14px; box-shadow: var(--ombre); }
.chemin__txt strong { font: 800 1.1rem var(--f-titre); }
.chemin__txt small { color: var(--c); font-weight: 700; filter: brightness(.75); }
.chemin__txt span { font-size: .92rem; color: var(--gris); }
.chemin__go { color: var(--gris-c); }
@media (max-width: 760px) {
	.fresque--accueil, .fresque--page { display: none; }
	.chemin--mobile { display: block; }
}
.fresque--page + .section .grille-etapes { margin-top: 0; }
@media (max-width: 760px) { .ctx-fresque .chemin { display: block; } }

.grille-etapes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.carte-etape a { position: relative; display: flex; flex-direction: column; height: 100%; padding: 22px; background: var(--blanc); border-radius: var(--r); text-decoration: none; color: var(--encre); box-shadow: var(--ombre); border-top: 6px solid var(--c); transition: transform .2s, box-shadow .2s; }
.carte-etape a:hover { transform: translateY(-3px); box-shadow: var(--ombre-f); color: var(--encre); }
.carte-etape__num { position: absolute; top: 14px; right: 16px; font: 800 2.2rem/1 var(--f-titre); color: color-mix(in srgb, var(--c) 35%, white); }
.carte-etape__ico { width: 72px; height: 72px; border-radius: 50%; display: block; overflow: hidden; background: color-mix(in srgb, var(--c) 30%, white); box-shadow: 0 0 0 3px #fff, 0 0 0 5px color-mix(in srgb, var(--c) 70%, white); margin-bottom: 14px; }
.carte-etape__ico .public { display: block; width: 100%; height: 100%; }
.carte-etape h3 { font-size: 1.3rem; }
.carte-etape h3 small { display: block; font: 700 .85rem var(--f-texte); color: var(--gris); margin-top: 4px; }
.carte-etape__lieux { font-size: .9rem; color: var(--gris); display: flex; gap: .4em; }
.carte-etape__nb { margin: auto 0 0; font-weight: 700; color: var(--lagon-f); display: flex; align-items: center; gap: .4em; }

/* --- Étape : scène ------------------------------------------------------ */
.etape__entete { padding: 30px 0 34px; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 18%, var(--sable)), var(--sable)); }
.etape__titres { display: flex; gap: 18px; align-items: center; margin-bottom: 14px; }
.etape__pin { width: 96px; height: 96px; flex: none; border-radius: 50%; overflow: hidden; background: color-mix(in srgb, var(--c) 30%, white); border: 5px solid var(--c); box-shadow: var(--ombre); }
.etape__pin .public { display: block; width: 100%; height: 100%; }
.etape__titres .surtitre { color: color-mix(in srgb, var(--c) 60%, black); margin-bottom: .3em; }
.etape__h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin: 0; }
.etape__intro { font-size: 1.15rem; max-width: 820px; }
.etape__lieux { display: flex; gap: .5em; align-items: center; font-weight: 700; color: var(--gris); margin: 0; }
.scene-zone { padding-bottom: 40px; }
.scene-zone__barre { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.scene-zone__barre h2 { font-size: 1.4rem; margin: 0; display: flex; gap: .5em; align-items: center; }
.scene-zone__progres { margin: 0; padding: .4em .9em; border-radius: 999px; background: var(--blanc); font-weight: 700; box-shadow: var(--ombre); }
.scene-zone__progres.is-complet { background: var(--ok); color: #fff; }
.scene-zone__grille { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.scene { position: relative; margin: 0; border-radius: 22px; overflow: hidden; box-shadow: var(--ombre-f); background: var(--blanc); }
.scene__svg { display: block; width: 100%; height: auto; }
.hotspot { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; cursor: pointer; z-index: 2; }
.hotspot__dot { position: relative; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--blanc); color: var(--c, var(--lagon)); border: 4px solid var(--c, var(--lagon)); box-shadow: 0 4px 14px rgba(0, 0, 0, .2); transition: transform .2s; }
.hotspot__dot::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 3px solid var(--c, var(--lagon)); opacity: .6; animation: onde 2s ease-out infinite; }
@keyframes onde { from { transform: scale(.6); opacity: .8; } to { transform: scale(1.35); opacity: 0; } }
.hotspot__dot .ic { width: 20px; height: 20px; stroke-width: 2.6; }
.hotspot--info .hotspot__dot { color: var(--lagon); border-color: var(--lagon); }
.hotspot--info .hotspot__dot::before { border-color: var(--lagon); }
.hotspot--jeu .hotspot__dot { background: var(--soleil); color: var(--encre); border-color: #fff; }
.hotspot--jeu .hotspot__dot::before { border-color: var(--soleil); }
.hotspot__label { position: absolute; left: 50%; top: calc(100% + 6px); transform: translateX(-50%); white-space: nowrap; background: rgba(27, 35, 51, .88); color: #fff; font-size: .8rem; font-weight: 700; padding: 4px 10px; border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity .15s; }
.hotspot:hover .hotspot__label, .hotspot:focus-visible .hotspot__label, .hotspot.is-actif .hotspot__label { opacity: 1; }
.hotspot:hover .hotspot__dot, .hotspot.is-actif .hotspot__dot { transform: scale(1.12); }
.hotspot.is-vu .hotspot__dot { background: var(--c, var(--lagon)); color: #fff; }
.hotspot.is-vu .hotspot__dot::before { animation: none; opacity: 0; }
.hotspot.is-actif .hotspot__dot { box-shadow: 0 0 0 6px rgba(255, 255, 255, .7), 0 4px 14px rgba(0, 0, 0, .25); }
.panneau { background: var(--blanc); border-radius: 22px; padding: 22px; box-shadow: var(--ombre); min-height: 320px; position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow: auto; }
.panneau:focus { outline: none; }
.panneau__vide { text-align: center; color: var(--gris); padding-top: 10px; }
.alex--panneau { width: 130px; display: block; margin: 0 auto 10px; }
.panneau h3 { font-size: 1.4rem; }
.panneau h4 { font: 700 .82rem var(--f-texte); text-transform: uppercase; letter-spacing: .06em; color: var(--gris); margin: 16px 0 8px; }
.panneau__contenu { animation: entree .3s ease; }
@keyframes entree { from { opacity: 0; transform: translateY(8px); } }
.pm__nom { margin-top: 10px; }
.pm__accroche { color: var(--gris); }
.pm__liste { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.pm__liste li { display: flex; gap: .5em; font-size: .95rem; }
.pm__liste .ic { color: var(--ok); margin-top: .15em; }
.pm__qualites { display: flex; flex-wrap: wrap; gap: 6px; }
.pm__infos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.pm__temoin { margin: 16px 0; padding: 14px 16px; background: var(--sable); border-radius: 14px; border-left: 4px solid var(--corail); }
.pm__temoin p { margin: 0 0 6px; font-style: italic; }
.pm__temoin footer { font-size: .85rem; color: var(--gris); }
.pm__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pm__actions .btn-coeur { padding: .55em 1em; font-size: .92rem; }
.alt-texte { margin-top: 18px; background: var(--blanc); border-radius: var(--r-s); padding: 12px 18px; }
.alt-texte summary { cursor: pointer; font-weight: 700; }
.alt-texte ul { margin: 12px 0 0; padding-left: 1.2em; display: grid; gap: 6px; }
@media (max-width: 960px) {
	.scene-zone__grille { grid-template-columns: 1fr; }
	.panneau { position: static; max-height: none; min-height: 0; }
	.panneau__vide { display: flex; gap: 12px; align-items: center; text-align: left; padding: 0; }
	.alex--panneau { width: 70px; margin: 0; }
	.panneau__vide p { margin: 0; }
	.hotspot__dot { width: 30px; height: 30px; border-width: 3px; }
	.hotspot__dot .ic { width: 16px; height: 16px; }
	.hotspot__label { display: none; }
}
.etape__nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; padding-top: 36px; padding-bottom: 56px; }
.etape__voisine { display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-radius: 16px; background: var(--blanc); box-shadow: var(--ombre); text-decoration: none; color: var(--encre); font: 800 1.1rem var(--f-titre); border-left: 6px solid var(--c); }
.etape__voisine small { display: block; font: 700 .78rem var(--f-texte); color: var(--gris); text-transform: uppercase; letter-spacing: .05em; }
.etape__voisine--suiv { justify-content: flex-end; text-align: right; border-left: 0; border-right: 6px solid var(--c); }
.etape__tout { font-weight: 700; }
@media (max-width: 640px) { .etape__nav { grid-template-columns: 1fr 1fr; } .etape__tout { grid-column: 1 / -1; text-align: center; order: 3; } }

/* Mini-jeux */
.jeu { margin-top: 8px; }
.jeu__liste { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; }
.jeu__item { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--sable); border-radius: 12px; border: 2px solid transparent; font-size: .95rem; }
.jeu__item span { flex: 1; }
.jeu__item button { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--ligne); background: var(--blanc); cursor: pointer; display: grid; place-items: center; flex: none; }
.jeu__item.is-ok { border-color: var(--ok); background: #e6f6ee; }
.jeu__item.is-ko { border-color: var(--corail); background: var(--corail-c); }
.jeu__q { padding: 12px 0; border-bottom: 1px solid var(--ligne); }
.jeu__q p { margin-bottom: 8px; font-weight: 700; }
.jeu__vf { display: flex; gap: 8px; }
.jeu__vf button { flex: 1; padding: .55em; border-radius: 10px; border: 2px solid var(--ligne); background: var(--blanc); font-weight: 700; cursor: pointer; }
.jeu__vf button.is-ok { border-color: var(--ok); background: #e6f6ee; }
.jeu__vf button.is-ko { border-color: var(--corail); background: var(--corail-c); }
.jeu__expl { font-size: .9rem; color: var(--gris); margin: 8px 0 0; }
.jeu__resultat { font-weight: 700; color: var(--ok); }

/* --- Cartes métiers ------------------------------------------------------ */
.grille-metiers { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.grille-metiers--compacte { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.grille-metiers--defile { grid-auto-flow: column; grid-auto-columns: minmax(250px, 280px); grid-template-columns: none; overflow-x: auto; padding: 4px 4px 18px; margin: 0 -4px; scroll-snap-type: x mandatory; }
.grille-metiers--defile > * { scroll-snap-align: start; }
.carte-metier { position: relative; display: flex; flex-direction: column; padding: 20px; background: var(--blanc); border-radius: var(--r); box-shadow: var(--ombre); transition: transform .2s, box-shadow .2s; }
.carte-metier::before { content: ""; position: absolute; left: 20px; right: 20px; top: 0; height: 5px; border-radius: 0 0 5px 5px; background: var(--c); }
.carte-metier:hover { transform: translateY(-3px); box-shadow: var(--ombre-f); }
.carte-metier__haut { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.carte-metier__ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 16%, white); color: color-mix(in srgb, var(--c) 72%, black); }
.carte-metier__ico .ic { width: 24px; height: 24px; }
.carte-metier .btn-coeur--compact { position: relative; z-index: 2; }
.carte-metier__nom { font-size: 1.18rem; margin-bottom: .35em; }
.carte-metier__nom a { color: var(--encre); text-decoration: none; }
.carte-metier__nom a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r); }
.carte-metier__nom a:hover { color: var(--lagon-f); }
.carte-metier__accroche { font-size: .94rem; color: var(--gris); margin-bottom: 14px; flex: 1; }
.carte-metier__infos { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 0; font-size: .85rem; font-weight: 700; color: var(--gris); }
.carte-metier__infos span { display: inline-flex; align-items: center; gap: .3em; }
.carte-metier__infos .is-tension { color: #8a5300; }

/* --- Portes d'entrée, étapes accueil ----------------------------------- */
.portes__grille { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.porte { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: clamp(24px, 4vw, 40px); border-radius: 26px; text-decoration: none; color: #fff; min-height: 300px; transition: transform .2s; }
.porte:hover { transform: translateY(-4px); color: #fff; }
.porte--fresque { background: linear-gradient(135deg, #213a8f, #f6b04a); }
.porte--parcours { background: linear-gradient(135deg, #3f418a, #53559f 60%, #2fa79b); }
.porte::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 240px; height: 240px; border-radius: 50%; border: 40px solid rgba(255, 255, 255, .12); }
.porte__ico { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: rgba(255, 255, 255, .2); margin-bottom: 22px; }
.porte__ico .ic { width: 30px; height: 30px; }
.porte h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.porte p { font-size: 1.08rem; opacity: .95; max-width: 460px; }
.porte__cta { margin-top: auto; display: inline-flex; align-items: center; gap: .5em; font-weight: 700; background: #fff; color: var(--encre); padding: .7em 1.2em; border-radius: 999px; align-self: flex-start; }
@media (max-width: 760px) { .portes__grille { grid-template-columns: 1fr; } .porte { min-height: 0; } }
.etapes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: e; }
.etapes__item { position: relative; background: var(--blanc); border-radius: var(--r); padding: 24px; box-shadow: var(--ombre); }
.etapes__num { position: absolute; top: 18px; right: 20px; font: 800 2.6rem/1 var(--f-titre); color: var(--sable-f); }
.etapes__ico { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--lagon-c); color: var(--lagon-f); margin-bottom: 14px; }
.etapes__ico .ic { width: 26px; height: 26px; }
.etapes__item h3 { font-size: 1.25rem; }
.etapes__item p { margin: 0; color: var(--gris); font-size: .96rem; }
@media (max-width: 960px) { .etapes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .etapes { grid-template-columns: 1fr; } }

/* --- Mixité ------------------------------------------------------------- */
.mixite { background: var(--encre); color: #e9edf3; }
.mixite h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); color: #fff; }
.mixite h2 em { color: var(--soleil); }
.mixite .surtitre { color: #7fd4d0; }
.mixite .source { color: #a9b2c1; }
.mixite__grille { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.mixite__grille > div > p { font-size: 1.12rem; }
.mixite__chiffres { display: grid; gap: 14px; }
.chiffre { display: flex; align-items: center; gap: 18px; padding: 20px 24px; border-radius: 20px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.chiffre strong { font: 800 clamp(2.4rem, 5vw, 3.4rem)/1 var(--f-titre); color: #7fd4d0; flex: none; }
.chiffre--fort strong { color: var(--soleil); }
@media (max-width: 860px) { .mixite__grille { grid-template-columns: 1fr; gap: 28px; } }

/* --- Témoignages -------------------------------------------------------- */
.grille-temoins { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.grille-temoins--fiche { grid-template-columns: 1fr; }
.temoin { display: flex; flex-direction: column; padding: 24px; background: var(--blanc); border-radius: var(--r); box-shadow: var(--ombre); border-bottom: 5px solid var(--c); }
.temoin__haut { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.temoin__initiale, .temoin__photo { width: 58px; height: 58px; flex: none; border-radius: 50%; object-fit: cover; }
.temoin__initiale { display: grid; place-items: center; background: color-mix(in srgb, var(--c) 20%, white); color: color-mix(in srgb, var(--c) 70%, black); font: 800 1.5rem var(--f-titre); }
.temoin__nom { font-size: 1.15rem; margin: 0 0 2px; }
.temoin__metier { margin: 0; font-size: .9rem; color: var(--gris); }
.temoin__citation { margin: 0 0 12px; position: relative; }
.temoin__citation .ic { width: 30px; height: 30px; color: color-mix(in srgb, var(--c) 50%, white); }
.temoin__citation p { font: 600 1.12rem/1.45 var(--f-titre); margin: 4px 0 0; }
.temoin__texte { color: var(--gris); font-size: .96rem; }
.temoin__pied { display: flex; flex-wrap: wrap; gap: 6px; margin: auto 0 0; padding-top: 6px; }

/* --- Bandes CTA ---------------------------------------------------------- */
.bande-presc { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; padding: clamp(28px, 4vw, 44px); border-radius: 26px; background: linear-gradient(120deg, var(--lagon-ff), var(--lagon)); color: #e7f6f5; }
.bande-presc h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.bande-presc p { margin: 0; max-width: 640px; font-size: 1.08rem; }
.bande-presc--corail { background: linear-gradient(120deg, var(--corail-f), var(--corail)); color: #fff3ee; }
.bande-kit { display: flex; gap: 28px; align-items: center; padding: 32px; border-radius: 26px; background: var(--soleil-c); border: 2px dashed #f0c777; }
.bande-kit__visuel { width: 120px; height: 120px; flex: none; border-radius: 24px; background: var(--blanc); display: grid; place-items: center; color: var(--encre); box-shadow: var(--ombre); }
.bande-kit__visuel .ic { width: 70px; height: 70px; stroke-width: 1.4; }
@media (max-width: 640px) { .bande-kit { flex-direction: column; align-items: flex-start; } }

/* --- Filtres ------------------------------------------------------------ */
.filtres-zone { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; position: sticky; top: 71px; z-index: 20; padding-top: 12px; padding-bottom: 12px; background: var(--sable); }
.admin-bar .filtres-zone { top: 103px; }
.filtres { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.filtres__champ { display: flex; flex-direction: column; gap: 4px; }
.filtres__champ label { font-size: .8rem; font-weight: 700; color: var(--gris); }
.filtres select, .filtres input[type="search"] { height: 46px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--ligne); background: var(--blanc); min-width: 170px; }
.filtres__champ--recherche { position: relative; flex-direction: row; }
.filtres__champ--recherche label { position: absolute; left: 14px; top: 13px; color: var(--gris); }
.filtres__champ--recherche input { padding-left: 42px; min-width: 260px; }
.filtres__case { display: inline-flex; align-items: center; gap: .45em; height: 46px; padding: 0 14px; border-radius: 12px; background: var(--blanc); border: 1.5px solid var(--ligne); font-weight: 700; cursor: pointer; }
.filtres__compte { margin: 0; font-weight: 700; color: var(--gris); }
@media (max-width: 760px) {
	.filtres-zone { position: static; }
	.filtres { width: 100%; }
	.filtres__champ { flex: 1 1 140px; }
	.filtres__champ--recherche { flex-basis: 100%; }
	.filtres__champ--recherche input, .filtres select { min-width: 0; width: 100%; }
}
.familles-raccourcis { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.famille-pastille { display: inline-flex; align-items: center; gap: .45em; padding: .5em 1em; border-radius: 999px; border: 1.5px solid color-mix(in srgb, var(--c, var(--lagon)) 35%, white); background: var(--blanc); font-weight: 700; font-size: .9rem; cursor: pointer; color: color-mix(in srgb, var(--c, var(--lagon)) 70%, black); }
.famille-pastille[aria-pressed="true"] { background: var(--c, var(--lagon)); border-color: var(--c, var(--lagon)); color: #fff; }

/* --- Formations ---------------------------------------------------------- */
.niveau-groupe { margin-bottom: 36px; }
.niveau-groupe__titre { display: flex; align-items: center; gap: 12px; font-size: 1.35rem; }
.niveau-groupe__n { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--lagon); color: #fff; font-size: 1.3rem; }
.grille-formations { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.carte-formation { position: relative; padding: 20px; background: var(--blanc); border-radius: var(--r); box-shadow: var(--ombre); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.carte-formation:hover { transform: translateY(-3px); box-shadow: var(--ombre-f); }
.carte-formation__haut { display: flex; justify-content: space-between; gap: 8px; margin: 0 0 8px; font-size: .8rem; font-weight: 700; color: var(--gris); text-transform: uppercase; letter-spacing: .04em; }
.carte-formation__sigle { color: var(--corail-f); }
.carte-formation__nom { font-size: 1.1rem; }
.carte-formation__nom a { color: var(--encre); text-decoration: none; }
.carte-formation__nom a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r); }
.carte-formation__infos { display: flex; gap: 14px; font-size: .88rem; color: var(--gris); margin-bottom: 10px; }
.carte-formation__infos span { display: inline-flex; gap: .3em; align-items: center; }
.carte-formation__voies { display: flex; flex-wrap: wrap; gap: 5px; margin: auto 0 0; }

/* --- Fiches ------------------------------------------------------------- */
.fiche__entete { padding: 30px 0 36px; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 14%, var(--sable)), var(--sable)); }
.fiche__titre { font-size: clamp(2rem, 5vw, 3.3rem); margin: 12px 0 .3em; }
.fiche__accroche { font-size: 1.2rem; color: var(--gris); max-width: 760px; }
.fiche__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 22px; }
.fiche__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.fiche__grille { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 32px; align-items: start; padding-bottom: 56px; }
.fiche__corps { display: grid; gap: 20px; }
.fiche__bloc { background: var(--blanc); border-radius: var(--r); padding: clamp(20px, 3vw, 28px); box-shadow: var(--ombre); }
.fiche__bloc h2 { font-size: 1.35rem; display: flex; align-items: center; gap: .5em; }
.fiche__bloc h2 .ic { color: var(--c); width: 1.2em; height: 1.2em; }
.fiche__bloc p:last-child { margin-bottom: 0; }
.fiche__bloc--raccourci { border: 2px solid var(--soleil); background: var(--soleil-c); }
.fiche__lead { font-size: 1.1rem; }
.fiche__duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.h-petit { font: 700 .85rem var(--f-texte); text-transform: uppercase; letter-spacing: .05em; color: var(--gris); margin: 14px 0 8px; }
.liste-coches { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.liste-coches li { display: flex; gap: .6em; }
.liste-coches .ic { color: var(--ok); margin-top: .2em; }
.liste-formations, .liste-etabs, .liste-passerelles { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; }
.ligne-formation { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--sable); text-decoration: none; color: var(--encre); transition: background .15s; }
.ligne-formation:hover { background: var(--lagon-c); color: var(--encre); }
.ligne-formation__niv { flex: none; padding: .35em .6em; border-radius: 8px; background: var(--lagon); color: #fff; font-weight: 700; font-size: .82rem; }
.ligne-formation__txt { flex: 1; display: flex; flex-direction: column; }
.ligne-formation__txt small { color: var(--gris); }
.ligne-formation__txt .cond { color: #8a5300; font-weight: 700; }
.liste-passerelles li { padding: 10px 14px; border-radius: 12px; background: var(--blanc); }
.liste-etabs a { display: flex; flex-direction: column; padding: 12px 16px; border-radius: 12px; background: var(--sable); text-decoration: none; color: var(--encre); }
.liste-etabs a:hover { background: var(--lagon-c); }
.liste-etabs small { color: var(--gris); }
.fiche__cote { display: grid; gap: 18px; position: sticky; top: 92px; }
.enbref { background: var(--blanc); border-radius: var(--r); padding: 22px; box-shadow: var(--ombre); }
.enbref h2 { font-size: 1.2rem; }
.enbref dl { margin: 0; display: grid; gap: 14px; }
.enbref dt { display: flex; gap: .45em; align-items: center; font-size: .8rem; font-weight: 700; color: var(--gris); text-transform: uppercase; letter-spacing: .04em; }
.enbref dd { margin: 4px 0 0; font-weight: 700; }
.enbref dd small { display: block; font-weight: 400; color: var(--gris); font-size: .82rem; }
.note-carnet { background: var(--soleil-c); border-radius: var(--r); padding: 20px; }
.note-carnet h2 { font-size: 1.1rem; display: flex; gap: .4em; align-items: center; }
.note-carnet textarea { width: 100%; border-radius: 12px; border: 1.5px solid #f0d49b; padding: 10px 12px; background: #fffaf0; resize: vertical; }
.note-carnet__etat { font-size: .82rem; color: var(--gris); margin: 6px 0 0; min-height: 1.2em; }
.encart-parcours { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--r); background: var(--lagon); color: #fff; text-decoration: none; }
.encart-parcours:hover { background: var(--lagon-f); color: #fff; }
.encart-parcours .ic { width: 30px; height: 30px; flex: none; }
.encart-parcours strong { display: block; }
.sources { background: transparent; border: 1px dashed var(--ligne); border-radius: var(--r); padding: 18px 22px; font-size: .9rem; color: var(--gris); }
.sources__titre { font: 700 .95rem var(--f-texte); display: flex; gap: .4em; align-items: center; color: var(--encre); }
.sources ul { margin: 0 0 8px; padding-left: 1.2em; }
.sources__meta { margin: 0; }
.statut { display: inline-block; padding: .1em .6em; border-radius: 6px; font-weight: 700; font-size: .8rem; }
.statut--a_valider { background: var(--soleil-c); color: #8a5300; }
.statut--valide { background: #e6f6ee; color: #1f6b3d; }
.carte-mini { height: 260px; border-radius: 14px; overflow: hidden; margin-bottom: 14px; background: var(--lagon-c); }
.carte-mini--haute { height: 240px; margin: 0; box-shadow: var(--ombre); border-radius: var(--r); }
@media (max-width: 960px) {
	.fiche__grille { grid-template-columns: 1fr; }
	.fiche__cote { position: static; }
	.fiche__duo { grid-template-columns: 1fr; }
}

/* --- Carte des établissements ------------------------------------------ */
.carte-zone { padding-bottom: 48px; }
.filtres--carte { margin-bottom: 16px; align-items: center; }
.segments { display: inline-flex; padding: 4px; border-radius: 14px; background: var(--blanc); border: 1.5px solid var(--ligne); flex-wrap: wrap; }
.segment { padding: .55em 1em; border: 0; border-radius: 10px; background: none; font-weight: 700; cursor: pointer; }
.segment[aria-pressed="true"] { background: var(--lagon); color: #fff; }
.carte-zone__grille { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; }
.carte-grande { height: 640px; border-radius: 22px; overflow: hidden; box-shadow: var(--ombre-f); background: var(--lagon-c); }
.liste-carte { list-style: none; margin: 0; padding: 0; max-height: 640px; overflow: auto; display: grid; gap: 10px; align-content: start; }
.etab { display: flex; gap: 12px; padding: 14px; background: var(--blanc); border-radius: 16px; box-shadow: var(--ombre); border: 2px solid transparent; }
.etab.is-actif { border-color: var(--corail); }
.etab__voir { width: 40px; height: 40px; flex: none; border-radius: 12px; border: 0; background: var(--lagon-c); color: var(--lagon-f); cursor: pointer; display: grid; place-items: center; }
.etab__voir:hover { background: var(--lagon); color: #fff; }
.etab__nom { font-size: 1.02rem; margin: 0 0 2px; }
.etab__nom a { color: var(--encre); text-decoration: none; }
.etab__meta, .etab__nb { margin: 0; font-size: .86rem; color: var(--gris); }
.etab__nb { color: var(--lagon-f); font-weight: 700; }
@media (max-width: 960px) {
	.carte-zone__grille { grid-template-columns: 1fr; }
	.carte-grande { height: 420px; }
	.liste-carte { max-height: none; }
}
.eg-marqueur { width: 34px; height: 34px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--lagon); border: 3px solid #fff; box-shadow: 0 4px 10px rgba(0, 0, 0, .3); }
.eg-marqueur.is-actif { background: var(--corail); }
.leaflet-popup-content { font: .95rem/1.45 var(--f-texte); }
.leaflet-popup-content strong { font-family: var(--f-titre); font-size: 1.05rem; }

/* --- Parcours ----------------------------------------------------------- */
.guide { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; padding: 22px; background: var(--blanc); border-radius: 22px; box-shadow: var(--ombre-f); margin-bottom: 22px; }
.guide__q { flex: 1 1 260px; display: flex; flex-direction: column; gap: 8px; }
.guide__q label { display: flex; align-items: center; gap: 10px; font: 700 1.1rem var(--f-titre); }
.guide__n { width: 30px; height: 30px; border-radius: 50%; background: var(--corail); color: #fff; display: grid; place-items: center; font-size: .95rem; }
.guide select { height: 52px; padding: 0 14px; border-radius: 14px; border: 2px solid var(--ligne); background: var(--sable); font-weight: 700; width: 100%; }
.guide__fleche { padding-bottom: 14px; color: var(--gris-c); }
.guide__go { height: 52px; }
@media (max-width: 760px) { .guide__fleche { display: none; } .guide__go { width: 100%; } }
.onglets { display: flex; gap: 6px; border-bottom: 2px solid var(--ligne); margin-bottom: 22px; overflow-x: auto; }
.onglet { display: inline-flex; align-items: center; gap: .5em; padding: .8em 1.1em; border: 0; background: none; font-weight: 700; color: var(--gris); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.onglet[aria-selected="true"] { color: var(--lagon-f); border-color: var(--corail); }
.vue { padding-bottom: 24px; }
.chemins__attente { display: flex; align-items: center; gap: 20px; padding: 28px; background: var(--blanc); border-radius: 22px; color: var(--gris); }
.chemins__attente .alex--panneau { width: 100px; margin: 0; }
.chemins__entete { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; margin-bottom: 14px; }
.chemins__entete h2 { font-size: 1.5rem; margin: 0; }
.chemins__liste { display: grid; gap: 16px; }
.itin { background: var(--blanc); border-radius: 22px; padding: 22px; box-shadow: var(--ombre); border: 2px solid transparent; }
.itin.is-compare { border-color: var(--lagon); }
.itin__haut { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.itin__titre { font: 800 1.15rem var(--f-titre); margin: 0; display: flex; align-items: center; gap: .5em; }
.itin__badge { padding: .25em .7em; border-radius: 999px; background: var(--lagon-c); color: var(--lagon-ff); font: 700 .8rem var(--f-texte); }
.itin__badge--court { background: #e6f6ee; color: #1f6b3d; }
.itin__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .9rem; color: var(--gris); font-weight: 700; }
.itin__meta span { display: inline-flex; gap: .35em; align-items: center; }
.itin__etapes { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; gap: 0; overflow-x: auto; padding-bottom: 6px; }
.itin__etape { position: relative; flex: 1 0 180px; display: flex; flex-direction: column; padding: 14px; border-radius: 16px; background: var(--sable); margin-right: 34px; min-width: 170px; }
.itin__etape:last-child { margin-right: 0; }
.itin__etape::after { content: ""; position: absolute; right: -28px; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); background: no-repeat center/22px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a92a0' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E"); }
.itin__etape:last-child::after { display: none; }
.itin__etape--depart { background: var(--encre); color: #fff; }
.itin__etape--metier { background: color-mix(in srgb, var(--c, var(--corail)) 16%, white); border: 2px solid var(--c, var(--corail)); }
.itin__etape--passerelle { border: 2px dashed var(--soleil); background: var(--soleil-c); }
.itin__type { font: 700 .72rem var(--f-texte); text-transform: uppercase; letter-spacing: .06em; opacity: .75; margin-bottom: 4px; }
.itin__nom { font: 800 1rem/1.25 var(--f-titre); margin-bottom: 6px; }
.itin__nom a { color: inherit; text-decoration: none; }
.itin__nom a:hover { text-decoration: underline; }
.itin__info { font-size: .82rem; color: var(--gris); margin: 0; }
.itin__etape--depart .itin__info { color: #c9d0db; }
.itin__cond { font-size: .82rem; font-weight: 700; color: #8a5300; margin: 6px 0 0; }
.itin__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; align-items: center; }
.itin__actions label { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; cursor: pointer; }
.comparateur { margin-top: 24px; background: var(--blanc); border-radius: 22px; padding: 22px; box-shadow: var(--ombre-f); overflow-x: auto; }
.comparateur table { width: 100%; border-collapse: collapse; min-width: 560px; }
.comparateur th, .comparateur td { text-align: left; padding: 12px; border-bottom: 1px solid var(--ligne); vertical-align: top; }
.comparateur thead th { font-family: var(--f-titre); font-size: 1.05rem; }
.comparateur tbody th { color: var(--gris); font-size: .88rem; width: 180px; }
.decouvrir { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.decouvrir__f { background: var(--blanc); border-radius: 18px; padding: 18px; box-shadow: var(--ombre); }
.decouvrir__f h3 { font-size: 1.05rem; margin-bottom: 4px; }
.decouvrir__f h3 a { color: var(--encre); }
.decouvrir__f p { font-size: .88rem; color: var(--gris); margin: 0 0 8px; }
.decouvrir__f ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 5px; }
.decouvrir__f li button { border: 0; padding: .3em .7em; border-radius: 999px; background: var(--lagon-c); color: var(--lagon-ff); font-size: .82rem; font-weight: 700; cursor: pointer; }
.decouvrir__f li button:hover { background: var(--lagon); color: #fff; }

/* Carte des parcours : exploration pas à pas, centrée sur une fiche */
:root { --t-acces: var(--lagon); --t-poursuite: #3a86c8; --t-passerelle: var(--corail); --t-evolution: #7a6fd0; }
.vue--carte { padding-bottom: 110px; scroll-margin-top: 90px; }
.legende { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; font-size: .85rem; font-weight: 700; color: var(--gris); }
.legende__item { display: inline-flex; gap: .45em; align-items: center; }
.legende__item span, .carte-trait { display: inline-block; width: 26px; height: 0; border-top: 3px solid var(--t-acces); flex: none; }
.legende__item--poursuite span, .carte-trait--poursuite { border-top: 3px dashed var(--t-poursuite); }
.legende__item--passerelle span, .carte-trait--passerelle { border-top: 3px dotted var(--t-passerelle); }
.legende__item--evolution span, .carte-trait--evolution { border-top: 3px solid var(--t-evolution); }

/* Départ */
.carte-depart { background: var(--blanc); border-radius: 22px; padding: clamp(20px, 3vw, 32px); box-shadow: var(--ombre); }
.carte-depart__titre { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin-bottom: .3em; }
.carte-depart__intro { color: var(--gris); margin: 0 0 20px; max-width: 60ch; }
.carte-recherche { position: relative; max-width: 560px; margin-bottom: 28px; }
.carte-recherche label { display: block; font-weight: 700; margin-bottom: 6px; }
.carte-recherche input { width: 100%; height: 50px; padding: 0 16px; border-radius: 14px; border: 1.5px solid #b9b1a3; background: var(--sable); font: inherit; }
.carte-resultats { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.carte-resultats:empty { display: none; }
.carte-depart__grille { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.carte-depart__grille h3 { font-size: 1.1rem; margin-bottom: 12px; }
.carte-familles, .carte-niveaux { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.carte-tuile { display: inline-flex; align-items: center; gap: .5em; min-height: 44px; padding: .45em .9em; border-radius: 12px; border: 1.5px solid var(--ligne); background: var(--blanc); font: 700 .9rem/1.25 var(--f-texte); color: var(--encre); cursor: pointer; text-align: left; }
.carte-tuile .ic { color: var(--c, var(--lagon)); flex: none; }
.carte-tuile small { color: var(--gris); font-weight: 700; }
.carte-tuile:hover { border-color: var(--c, var(--lagon)); }
.carte-tuile[aria-pressed="true"] { background: color-mix(in srgb, var(--c, var(--lagon)) 12%, white); border-color: var(--c, var(--lagon)); box-shadow: inset 0 0 0 1px var(--c, var(--lagon)); }
.carte-choix { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.carte-choix button, .carte-resultats button { width: 100%; min-height: 44px; display: flex; gap: .6em; align-items: baseline; text-align: left; padding: .55em .9em; border-radius: 12px; border: 1.5px solid var(--ligne); background: var(--blanc); font: 400 .92rem/1.3 var(--f-texte); color: var(--encre); cursor: pointer; }
.carte-choix button:hover, .carte-resultats button:hover { border-color: var(--lagon); background: var(--lagon-c); }
.carte-choix b, .carte-resultats b { font-family: var(--f-titre); font-weight: 800; flex: none; }
.carte-choix small, .carte-resultats small { margin-left: auto; color: var(--gris); font-weight: 700; flex: none; padding-left: .6em; }

/* Fil d'Ariane et outils */
.carte-barre { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.carte-fil { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.carte-fil ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.carte-fil li { display: inline-flex; align-items: center; gap: 4px; font-size: .9rem; }
.carte-fil li + li::before { content: "›"; color: var(--gris); font-weight: 700; padding: 0 2px; }
.carte-fil li button { min-height: 36px; border: 0; background: none; padding: .3em .5em; border-radius: 8px; font: 700 .9rem var(--f-texte); color: var(--lagon-f); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.carte-fil li [aria-current] { font-weight: 800; color: var(--encre); padding: .3em .5em; }
.carte-fil__recommencer, .carte-fil__retour { min-height: 40px; border: 1.5px solid var(--ligne); background: var(--blanc); border-radius: 999px; padding: .35em 1em; font: 700 .88rem var(--f-texte); color: var(--encre); cursor: pointer; display: inline-flex; gap: .4em; align-items: center; }
.carte-fil__recommencer:hover, .carte-fil__retour:hover { border-color: var(--lagon); }
.carte-fil__retour { display: none; }
.carte-echelle { list-style: none; margin: 0 0 14px; padding: 0; display: flex; gap: 4px; }
.carte-echelle li { flex: 1; text-align: center; font-size: .78rem; font-weight: 700; color: var(--gris); padding: 5px 2px; border-radius: 8px; background: var(--sable-f); }
.carte-echelle li.is-on { background: var(--encre); color: #fff; }

/* Scène */
.carte-scene { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px) minmax(0, 1fr); grid-template-areas: "amont pivot aval"; gap: 64px; align-items: start; }
.carte-liens { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 0; }
.carte-liens path { fill: none; stroke-width: 2.4; opacity: .55; transition: opacity .15s, stroke-width .15s; }
.carte-liens .l-acces { stroke: var(--t-acces); }
.carte-liens .l-poursuite { stroke: var(--t-poursuite); stroke-dasharray: 7 5; }
.carte-liens .l-passerelle { stroke: var(--t-passerelle); stroke-dasharray: 1 6; stroke-linecap: round; stroke-width: 3; }
.carte-liens .l-evolution { stroke: var(--t-evolution); }
.carte-scene.is-survol .carte-liens path { opacity: .2; }
.carte-scene.is-survol .carte-liens path.is-on { opacity: 1; stroke-width: 3.4; }
.carte-col { position: relative; z-index: 1; min-width: 0; }
.carte-col--amont { grid-area: amont; }
.carte-col--aval { grid-area: aval; }
.carte-col__titre { font-size: 1.1rem; margin: 0 0 12px; display: flex; align-items: center; gap: .4em; }
.carte-col__titre small { font: 700 .85rem var(--f-texte); color: var(--gris); }
.carte-groupe + .carte-groupe { margin-top: 16px; }
.carte-groupe__titre { display: flex; align-items: center; gap: .6em; font: 700 .75rem/1.3 var(--f-texte); letter-spacing: .06em; text-transform: uppercase; color: var(--gris); margin: 0 0 8px; }
.carte-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.carte-vide { font-size: .9rem; color: var(--gris); background: var(--blanc); border: 1.5px dashed var(--ligne); border-radius: 14px; padding: 12px 14px; margin: 0; }
.carte-vide strong { color: var(--encre); }

.carte-fiche { width: 100%; max-width: 320px; min-height: 44px; display: grid; gap: 3px; text-align: left; padding: 10px 14px; border-radius: 14px; border: 1.5px solid var(--ligne); background: var(--blanc); color: var(--encre); font: inherit; cursor: pointer; box-shadow: 0 1px 2px rgba(27, 35, 51, .05); transition: border-color .15s, transform .15s; }
.carte-col--aval .carte-fiche { margin-left: 0; }
.carte-col--amont .carte-fiche { margin-left: auto; }
.carte-fiche--metier { border-left: 5px solid var(--c); }
.carte-fiche:hover { border-color: var(--corail); transform: translateY(-1px); }
.carte-fiche--metier:hover { border-left-color: var(--c); }
.carte-fiche__sigle { font: 800 1rem/1.2 var(--f-titre); }
.carte-fiche__famille { font-size: .75rem; font-weight: 700; color: var(--gris); text-transform: uppercase; letter-spacing: .04em; }
.carte-fiche__nom { font-size: .88rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.carte-fiche--metier .carte-fiche__nom { font: 800 .98rem/1.25 var(--f-titre); }
.carte-fiche__meta { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: .78rem; font-weight: 700; color: var(--gris); }
.carte-fiche__cond { font-size: .8rem; font-weight: 700; color: #8a5300; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.carte-fiche:hover .carte-fiche__cond, .carte-fiche:focus-visible .carte-fiche__cond { -webkit-line-clamp: unset; }
.carte-badge { display: inline-block; padding: 1px 7px; border-radius: 999px; background: var(--sable-f); color: var(--encre); font-size: .74rem; font-weight: 700; }
.carte-badge--recrute { background: var(--soleil-c); color: #7a4a00; }
.carte-plus { min-height: 40px; border: 0; background: none; color: var(--lagon-f); font-weight: 700; text-decoration: underline; cursor: pointer; padding: 6px 4px; }

.carte-pivot { grid-area: pivot; position: relative; z-index: 1; background: var(--blanc); border-radius: 20px; padding: 20px; box-shadow: var(--ombre-f); border-top: 6px solid var(--c, var(--lagon)); }
.carte-focus { scroll-margin-top: 96px; }
.carte-pastille { width: 12px; height: 12px; border-radius: 50%; background: var(--c, var(--lagon)); flex: none; }
.carte-pivot__etat { display: block; width: fit-content; font-size: .75rem; font-weight: 700; color: var(--encre); background: var(--sable-f); border-radius: 999px; padding: 2px 10px; margin-bottom: 8px; }
.carte-pivot .surtitre { margin-bottom: .3em; }
.carte-pivot__sigle { font: 800 1.2rem/1.2 var(--f-titre); color: var(--lagon-f); margin: 0; }
.carte-pivot h3 { font-size: 1.35rem; line-height: 1.2; margin: 2px 0 8px; scroll-margin-top: 110px; }
.carte-pivot h3:focus { outline: none; }
.carte-pivot h3:focus-visible { outline: 3px solid var(--encre); outline-offset: 3px; border-radius: 4px; }
.carte-pivot p { font-size: .92rem; color: var(--gris); margin: 0 0 8px; }
.carte-pivot__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.carte-pivot__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.carte-bascule { display: none; }
.carte-depart[hidden], .carte-focus[hidden] { display: none; }
.carte-anime { animation: carte-fondu .18s ease-out; }
@keyframes carte-fondu { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

@media (max-width: 1023px) {
	.carte-scene { grid-template-columns: 1fr 1fr; grid-template-areas: "pivot pivot" "amont aval"; gap: 20px; }
	.carte-liens { display: none; }
	.carte-col--amont .carte-fiche { margin-left: 0; }
	.carte-fiche { max-width: none; }
	.carte-col--amont .carte-col__titre::before { content: "↑"; }
	.carte-col--aval .carte-col__titre::before { content: "↓"; }
}
@media (max-width: 680px) {
	.vue--carte { padding-bottom: 90px; }
	.carte-depart__grille { grid-template-columns: 1fr; }
	.carte-familles { flex-direction: column; }
	.carte-tuile { width: 100%; }
	.carte-scene { grid-template-columns: minmax(0, 1fr); grid-template-areas: "pivot" "bascule" "amont" "aval"; }
	.carte-bascule { grid-area: bascule; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--sable-f); padding: 4px; border-radius: 14px; }
	.carte-bascule button { min-height: 44px; border: 0; border-radius: 11px; background: none; font: 700 .9rem var(--f-texte); color: var(--encre); cursor: pointer; }
	.carte-bascule button[aria-pressed="true"] { background: var(--blanc); box-shadow: var(--ombre); }
	.carte-scene[data-montre="amont"] .carte-col--aval, .carte-scene[data-montre="aval"] .carte-col--amont { display: none; }
	.carte-fil ol, .carte-barre .legende { display: none; }
	.carte-fil__retour { display: inline-flex; }
	.carte-echelle li { font-size: .7rem; }
	.carte-fiche__nom { -webkit-line-clamp: 3; }
	.carte-pivot__actions .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
	.carte-anime { animation: none; }
	.carte-fiche, .carte-liens path { transition: none; }
	.carte-fiche:hover { transform: none; }
}
.texte-formation { background: var(--blanc); border-radius: 16px; padding: 16px 20px; margin-bottom: 12px; }
.texte-formation h3 { font-size: 1.05rem; }
.texte-formation h3 small { font: 400 .85rem var(--f-texte); color: var(--gris); }
.texte-formation ul { margin: 0; padding-left: 1.2em; }
.avertissement { display: flex; gap: .7em; align-items: flex-start; padding: 16px 20px; border-radius: 16px; background: var(--blanc); border-left: 5px solid var(--soleil); font-size: .95rem; color: var(--gris); margin: 20px 0 40px; }
.avertissement .ic { color: #b07400; margin-top: .2em; }

/* --- Quiz ---------------------------------------------------------------- */
.quiz-zone { padding-bottom: 64px; }
.quiz { background: var(--blanc); border-radius: 26px; box-shadow: var(--ombre-f); padding: clamp(22px, 4vw, 44px); max-width: 920px; margin: 0 auto; }
.quiz__ecran--intro { display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: center; }
.alex--quiz { width: 200px; }
.quiz__ecran--intro h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.quiz__ecran--intro .liste-coches { margin-bottom: 22px; }
@media (max-width: 640px) { .quiz__ecran--intro { grid-template-columns: 1fr; } .alex--quiz { width: 120px; } }
.quiz__progres { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.quiz__progres p { margin: 0; font-weight: 700; color: var(--gris); white-space: nowrap; }
.quiz__barre { flex: 1; height: 10px; border-radius: 5px; background: var(--sable-f); overflow: hidden; }
.quiz__barre span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--lagon), var(--corail)); border-radius: 5px; transition: width .35s ease; }
.quiz__question { border: 0; padding: 0; margin: 0; }
.quiz__question legend { font: 800 clamp(1.4rem, 3vw, 2rem)/1.2 var(--f-titre); margin-bottom: 22px; padding: 0; }
.quiz__question legend:focus { outline: none; }
.quiz__reponses { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .quiz__reponses { grid-template-columns: 1fr; } }
.quiz__rep { display: flex; align-items: center; gap: 12px; padding: 18px; border-radius: 18px; border: 2px solid var(--ligne); background: var(--sable); text-align: left; font-weight: 700; font-size: 1.02rem; cursor: pointer; transition: all .15s; }
.quiz__rep:hover { border-color: var(--lagon); background: var(--lagon-c); }
.quiz__rep.is-choisi { border-color: var(--corail); background: var(--corail-c); }
.quiz__rep-lettre { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--blanc); font-family: var(--f-titre); color: var(--lagon-f); }
.quiz__nav { margin-top: 18px; }
.quiz__profil { font-size: 1.1rem; color: var(--gris); }
.quiz__resultats { display: grid; gap: 14px; margin: 18px 0; }
.res { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 18px 20px; border-radius: 20px; background: var(--sable); border-left: 6px solid var(--c); }
.res__rang { font: 800 2rem/1 var(--f-titre); color: var(--c); }
.res h3 { font-size: 1.25rem; margin-bottom: 4px; }
.res h3 a { color: var(--encre); }
.res p { margin: 0; color: var(--gris); font-size: .95rem; }
.res__score { text-align: center; font: 800 1.4rem var(--f-titre); color: var(--lagon-f); }
.res__score small { display: block; font: 700 .72rem var(--f-texte); color: var(--gris); text-transform: uppercase; }
.res__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 640px) { .res { grid-template-columns: auto 1fr; } .res__score { grid-column: 1 / -1; text-align: left; } }
.quiz__fin { display: flex; flex-wrap: wrap; gap: 10px; }

/* --- Carnet ------------------------------------------------------------- */
.carnet { padding-bottom: 56px; }
.carnet__partage-info { display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-radius: 16px; background: var(--lagon-c); margin-bottom: 18px; }
.carnet__partage-info p { margin: 0; }
.carnet__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stat { background: var(--blanc); border-radius: 18px; padding: 18px; box-shadow: var(--ombre); display: flex; align-items: center; gap: 14px; }
.stat__ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--lagon-c); color: var(--lagon-f); flex: none; }
.stat strong { display: block; font: 800 1.8rem/1 var(--f-titre); }
.stat span { font-size: .88rem; color: var(--gris); }
@media (max-width: 760px) { .carnet__stats { grid-template-columns: 1fr 1fr; } }
.carnet__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.carnet__section { margin-bottom: 30px; }
.carnet__section > h2 { font-size: 1.45rem; display: flex; gap: .5em; align-items: center; }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.badge-c { text-align: center; padding: 18px 12px; border-radius: 18px; background: var(--blanc); box-shadow: var(--ombre); }
.badge-c__ico { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--soleil), var(--corail)); color: #fff; }
.badge-c__ico .ic { width: 32px; height: 32px; }
.badge-c strong { display: block; font-family: var(--f-titre); }
.badge-c small { color: var(--gris); font-size: .82rem; }
.badge-c.is-verrou { opacity: .5; filter: grayscale(1); }
.feuille { background: var(--blanc); border-radius: 20px; padding: 20px; box-shadow: var(--ombre); margin-bottom: 14px; }
.feuille__haut { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.feuille h3 { margin: 0; font-size: 1.15rem; }
.feuille ol { margin: 0; padding: 0; list-style: none; counter-reset: f; display: grid; gap: 8px; }
.feuille li { counter-increment: f; display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; }
.feuille li::before { content: counter(f); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--lagon); color: #fff; font-weight: 700; }
.feuille li small { display: block; color: var(--gris); }
.notes-liste { display: grid; gap: 10px; }
.note-c { background: var(--soleil-c); border-radius: 14px; padding: 14px 16px; }
.note-c h3 { font-size: 1rem; margin-bottom: 4px; }
.note-c p { margin: 0; white-space: pre-wrap; }
.carnet__prive { display: flex; gap: .6em; align-items: flex-start; font-size: .9rem; color: var(--gris); }

/* --- Agir, prescripteurs, cartes simples ------------------------------- */
.grille-cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.carte-simple { background: var(--blanc); border-radius: var(--r); padding: 24px; box-shadow: var(--ombre); }
.carte-simple__ico { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--corail-c); color: var(--corail-f); margin-bottom: 14px; }
.carte-simple__ico .ic { width: 26px; height: 26px; }
.carte-simple h3 { font-size: 1.2rem; }
.carte-simple__public { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--lagon); }
.carte-simple p:last-child { margin: 0; color: var(--gris); }
.carte-simple--repere .carte-simple__ico { background: var(--lagon-c); color: var(--lagon-f); }
.evenements { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.evt { display: grid; grid-template-columns: 90px 1fr; gap: 20px; background: var(--blanc); border-radius: var(--r); padding: 20px; box-shadow: var(--ombre); }
.evt__date { margin: 0; text-align: center; padding: 12px 6px; border-radius: 14px; background: var(--corail); color: #fff; font-weight: 700; text-transform: uppercase; font-size: .8rem; align-self: start; }
.evt__date span { display: block; font: 800 2rem/1 var(--f-titre); }
.evt__genre { font-size: .8rem; font-weight: 700; color: var(--lagon); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.evt h3 { font-size: 1.2rem; }
.evt__lieu { display: flex; gap: .4em; align-items: center; color: var(--gris); font-weight: 700; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; } }
.lettre__texte { white-space: pre-wrap; font: .98rem/1.6 var(--f-texte); background: var(--blanc); border-radius: 16px; padding: 22px; box-shadow: var(--ombre); margin: 0 0 14px; border-left: 5px solid var(--lagon); }
.conseils .liste-coches .ic { color: var(--soleil); }
.sequences { display: grid; gap: 12px; }
.sequence { background: var(--blanc); border-radius: 18px; box-shadow: var(--ombre); }
.sequence summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 18px 20px; cursor: pointer; flex-wrap: wrap; }
.sequence summary::-webkit-details-marker { display: none; }
.sequence__niv { padding: .3em .8em; border-radius: 999px; background: var(--lagon); color: #fff; font-weight: 700; font-size: .85rem; }
.sequence__titre { font: 800 1.15rem var(--f-titre); flex: 1; }
.sequence__duree { display: inline-flex; gap: .3em; align-items: center; color: var(--gris); font-weight: 700; }
.sequence__chevron { transition: transform .2s; }
.sequence[open] .sequence__chevron { transform: rotate(180deg); }
.sequence__corps { padding: 0 20px 20px; }
.sequence__deroule { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; }
.ressources { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.ressources a { position: relative; display: flex; flex-direction: column; padding: 18px 44px 18px 18px; border-radius: 16px; background: var(--blanc); box-shadow: var(--ombre); text-decoration: none; color: var(--encre); }
.ressources a .ic { position: absolute; top: 18px; right: 16px; color: var(--gris-c); }
.ressources span { color: var(--gris); font-size: .9rem; }

/* --- Kit fresque (affiches) -------------------------------------------- */
.kit { display: grid; gap: 24px; padding-bottom: 56px; }
.kit__actions { margin-top: 18px; }
.affiche { display: grid; grid-template-columns: 120px 1fr 220px; min-height: 360px; background: var(--blanc); border-radius: 22px; overflow: hidden; box-shadow: var(--ombre-f); }
.affiche__bande { background: var(--c); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 22px 10px; }
.affiche__num { font: 800 3.4rem/1 var(--f-titre); }
.affiche__ico { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: #fff; border: 4px solid #fff; }
.affiche__ico .public { display: block; width: 100%; height: 100%; }
.affiche__age { margin: 0; font-weight: 700; text-align: center; }
.affiche__corps { padding: 28px 30px; }
.affiche__titre { font-size: 2.4rem; }
.affiche__phrase { font-size: 1.2rem; }
.affiche__lieux { display: flex; gap: .4em; color: var(--gris); font-weight: 700; }
.affiche__metiers { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.affiche__metiers li { padding: .3em .8em; border-radius: 999px; background: color-mix(in srgb, var(--c) 14%, white); font-weight: 700; font-size: .9rem; }
.affiche__qr { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; background: var(--sable); }
.affiche__qr p { font-weight: 700; margin: 10px 0 0; }
.qr { width: 160px; height: 160px; background: #fff; padding: 8px; border-radius: 12px; }
.qr img, .qr svg, .qr canvas { width: 100%; height: 100%; display: block; }
.affiche__marque { display: flex; align-items: center; gap: 6px; font: 800 1.1rem var(--f-titre); }
.affiche__marque .logo__img { height: 30px; width: auto; }
@media (max-width: 760px) { .affiche { grid-template-columns: 1fr; } .affiche__bande { flex-direction: row; padding: 14px 20px; } .affiche__ico { width: 64px; height: 64px; } }

/* --- Formulaires -------------------------------------------------------- */
.formulaire { background: var(--blanc); border-radius: 22px; padding: clamp(20px, 3vw, 32px); box-shadow: var(--ombre); }
.champ { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.champ label { font-weight: 700; }
.champ input, .champ select, .champ textarea { padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--ligne); background: var(--sable); }
.champ--case label { font-weight: 400; display: flex; gap: .6em; align-items: flex-start; }
.champ--case input { margin-top: .3em; }
.formulaire__note { font-size: .85rem; color: var(--gris); }
.hp { position: absolute; left: -9999px; }
.message { display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px; border-radius: 16px; margin-bottom: 18px; }
.message p { margin: 0; }
.message--ok { background: #e6f6ee; color: #1f6b3d; }
.message--erreur { background: var(--corail-c); color: #9b3412; }
.contact-cote { background: var(--blanc); border-radius: 22px; padding: 28px; box-shadow: var(--ombre); align-self: start; text-align: center; }
.contact-cote a { display: inline-flex; gap: .4em; align-items: center; font-weight: 700; }
.duo--contact { grid-template-columns: 1.4fr 1fr; }
@media (max-width: 860px) { .duo--contact { grid-template-columns: 1fr; } }

/* --- Pages texte -------------------------------------------------------- */
.page-texte .prose { max-width: 780px; background: var(--blanc); border-radius: 22px; padding: clamp(22px, 4vw, 44px); box-shadow: var(--ombre); }
.prose h2 { font-size: 1.5rem; margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.3em; display: grid; gap: 6px; margin: 0 0 1em; }
.page-404 { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: center; }
.alex--404 { width: 220px; }
@media (max-width: 640px) { .page-404 { grid-template-columns: 1fr; } .alex--404 { width: 130px; } }

/* --- Pied de page -------------------------------------------------------- */
.site-footer { background: var(--lagon-ff); color: #c9e2e0; padding: 56px 0 24px; margin-top: 0; }
.site-footer a { color: #fff; }
.site-footer__grille { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.site-footer__marque p { font-size: .95rem; margin-top: 14px; }
.site-footer__porteur { font-size: .85rem !important; color: #9fc6c3; }
.site-footer__col h2 { font: 700 .85rem var(--f-texte); text-transform: uppercase; letter-spacing: .08em; color: #7fd4d0; }
.site-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer__col a { text-decoration: none; }
.site-footer__col a:hover { text-decoration: underline; color: #fff; }
.site-footer__partenaires { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 36px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); }
.site-footer__partenaires p { margin: 0; font-weight: 700; }
.site-footer__logos { display: flex; gap: 14px; flex-wrap: wrap; }
.site-footer__logo { background: #fff; border-radius: 12px; padding: 8px 14px; display: grid; place-items: center; }
.site-footer__logo img { max-height: 54px; width: auto; display: block; }
.site-footer__bas { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; font-size: .85rem; color: #9fc6c3; }
.site-footer__bas p { margin: 0; }
@media (max-width: 900px) { .site-footer__grille { grid-template-columns: 1fr 1fr; } .site-footer__marque { grid-column: 1 / -1; } }

/* --- Alex flottant, notifications --------------------------------------- */
.alex-guide { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; align-items: flex-end; gap: 10px; }
.alex-guide__avatar { width: 74px; height: 74px; border-radius: 50%; border: 4px solid #fff; background: var(--lagon-c); box-shadow: var(--ombre-f); padding: 0; overflow: hidden; cursor: pointer; flex: none; }
.alex-guide__avatar .alex { width: 112%; margin: 4px 0 0 -6%; }
.alex-guide__bulle { position: relative; width: 300px; background: var(--blanc); border-radius: 20px 20px 4px 20px; padding: 16px 18px; box-shadow: var(--ombre-f); animation: entree .35s ease; }
.alex-guide__msg { margin: 0 24px 12px 0; font-weight: 700; }
.alex-guide__fermer { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--sable); cursor: pointer; display: grid; place-items: center; }
.alex-guide__actions { display: grid; gap: 4px; }
.alex-guide__actions a { display: flex; gap: .5em; align-items: center; padding: 7px 10px; border-radius: 10px; text-decoration: none; font-size: .92rem; font-weight: 700; }
.alex-guide__actions a:hover { background: var(--lagon-c); }
.alex-guide.is-reduit .alex-guide__bulle { display: none; }
@media (max-width: 640px) {
	.alex-guide { right: 12px; bottom: 12px; }
	.alex-guide__avatar { width: 60px; height: 60px; }
	.alex-guide__bulle { width: calc(100vw - 96px); }
}
.toasts { position: fixed; left: 50%; top: 86px; transform: translateX(-50%); z-index: 70; display: grid; gap: 8px; width: min(420px, calc(100vw - 32px)); }
.toast { display: flex; gap: 14px; align-items: center; padding: 14px 18px; border-radius: 18px; background: var(--encre); color: #fff; box-shadow: var(--ombre-f); animation: toast 4.2s ease forwards; }
.toast__ico { width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--soleil), var(--corail)); }
.toast__ico .ic { width: 24px; height: 24px; }
.toast strong { display: block; font-family: var(--f-titre); }
.toast span { font-size: .9rem; opacity: .85; }
@keyframes toast { 0% { opacity: 0; transform: translateY(-14px); } 8%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-10px); } }

/* --- Mouvement réduit --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* --- Impression : fiches, carnet, kit ----------------------------------- */
@media print {
	@page { margin: 14mm; }
	body { background: #fff; font-size: 11pt; }
	.site-header, .site-footer, .bandeau-proto, .alex-guide, .toasts, .fiche__actions, .carnet__actions, .note-carnet, .skip, .kit__actions, .btn, .btn-coeur, .encart-parcours, .carte-mini, .filtres-zone, .itin__actions { display: none !important; }
	.fiche__entete, .entete, .etape__entete { background: none !important; padding: 0 0 10px; }
	.fiche__grille { grid-template-columns: 1fr; }
	.fiche__bloc, .enbref, .feuille, .stat, .badge-c, .carte-metier { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
	.fiche__cote { position: static; }
	a { color: #000; text-decoration: none; }
	.ctx-kit .entete { display: none; }
	.ctx-kit .kit { gap: 0; padding: 0; }
	.affiche { box-shadow: none; border: 1px solid #ccc; break-after: page; height: 178mm; border-radius: 0; grid-template-columns: 34mm 1fr 62mm; }
	.affiche__titre { font-size: 34pt; }
	.affiche__phrase { font-size: 16pt; }
	.qr { width: 52mm; height: 52mm; }
	* { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Mobile : les mots mis en avant des titres peuvent passer à la ligne */
.hero__grille > * { min-width: 0; }
@media (max-width: 600px) {
	h1 em, h2 em { white-space: normal; }
	.hero__titre em::after { display: none; }
	.hero__titre em { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--soleil) 55%, transparent); text-decoration-thickness: .2em; text-underline-offset: -.02em; text-decoration-skip-ink: none; }
}
/* Les cartes de chemin restent dans l'écran : les étapes défilent à l'intérieur */
.chemins__liste { grid-template-columns: minmax(0, 1fr); }
.chemins__liste > * { min-width: 0; }

/* ==================================================================== */
/* Couche jeu : progression, cartes à collectionner, relief, onglets     */
/* ==================================================================== */
:root { --jeu-fond: #0c1133; --jeu-fond-2: #161d4b; --jeu-ligne: rgba(255, 255, 255, .12); --jeu-texte: #e8eef9; --jeu-gris: #9aa7bd; --neon-lagon: #a3a9ff; --neon-corail: #ff6a3d; --neon-or: #ffc94a; --verre: rgba(19, 29, 51, .72); }

/* Indicateur de niveau (en-tête) */
[data-hud] { --p: 0; }
.hud { gap: .6em; padding: .3em .95em .3em .3em; background: var(--jeu-fond); color: var(--jeu-texte); border: 1px solid rgba(163, 169, 255, .28); }
.hud:hover { background: var(--jeu-fond-2); color: #fff; }
.hud__anneau { position: relative; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; background: conic-gradient(var(--neon-lagon) calc(var(--p) * 1%), rgba(255, 255, 255, .13) 0); }
.hud__anneau::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--jeu-fond); }
.hud__anneau span { position: relative; font: 800 .95rem/1 var(--f-titre); color: #fff; }
.hud__txt { display: grid; line-height: 1.15; text-align: left; }
.hud__rang { font-size: .72rem; font-weight: 700; color: var(--neon-lagon); white-space: nowrap; }
.hud__serie { display: inline-flex; align-items: center; gap: 2px; color: var(--neon-or); font: 800 .85rem var(--f-titre); }
.hud__serie .ic { width: 16px; height: 16px; }
.hud.is-gain .hud__anneau, .tabbar__carnet.is-gain .hud__anneau { animation: hud-pulse .7s ease-out; }
@keyframes hud-pulse { 0% { box-shadow: 0 0 0 0 rgba(163, 169, 255, .65); } 100% { box-shadow: 0 0 0 14px rgba(163, 169, 255, 0); } }
.btn-carnet.hud .btn-carnet__nb { border-color: var(--jeu-fond); }

/* Barre d'onglets mobile */
.tabbar { display: none; }
@media (max-width: 900px) {
	body { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
	.tabbar { display: block; position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 55; background: rgba(12, 17, 51, .93); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border: 1px solid var(--jeu-ligne); border-radius: 20px; box-shadow: 0 14px 34px -12px rgba(0, 0, 0, .55); }
	.tabbar ul { list-style: none; margin: 0; padding: 5px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; }
	.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 54px; border-radius: 15px; color: var(--jeu-gris); text-decoration: none; font: 700 .7rem/1 var(--f-texte); }
	.tabbar a .ic { width: 22px; height: 22px; }
	.tabbar a[aria-current] { color: #fff; background: rgba(163, 169, 255, .13); }
	.tabbar a[aria-current] .ic { color: var(--neon-lagon); }
	.tabbar a:focus-visible { outline: 2px solid var(--neon-lagon); outline-offset: -2px; }
	.tabbar .hud__anneau { width: 30px; height: 30px; }
	.tabbar .hud__anneau::before { inset: 3px; }
	.tabbar .hud__anneau span { font-size: .78rem; }
	.alex-guide { bottom: calc(92px + env(safe-area-inset-bottom)); }
	.site-header .hud .hud__txt, .site-header .hud .hud__serie { display: none; }
	.site-header .hud { padding: .3em; }
}

/* Gains d'XP et badges */
.toasts { top: 84px; justify-items: center; }
.toast { background: rgba(12, 17, 51, .94); color: var(--jeu-texte); border: 1px solid rgba(255, 201, 74, .35); box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .6), 0 0 26px -10px rgba(255, 201, 74, .5); backdrop-filter: blur(12px); width: 100%; }
.toast__ico { background: linear-gradient(135deg, var(--neon-or), var(--neon-corail)); color: var(--jeu-fond); }
.gain { display: inline-flex; align-items: center; gap: .6em; padding: .45em 1em .45em .45em; border-radius: 999px; background: rgba(12, 17, 51, .93); color: var(--jeu-texte); border: 1px solid rgba(163, 169, 255, .35); box-shadow: 0 12px 30px -12px rgba(163, 169, 255, .55); font-size: .88rem; font-weight: 700; backdrop-filter: blur(12px); animation: gain-in .4s cubic-bezier(.2, 1.4, .4, 1); transition: opacity .35s, transform .35s; }
.gain strong { font: 800 .92rem var(--f-titre); color: var(--jeu-fond); background: var(--neon-lagon); padding: .2em .6em; border-radius: 999px; }
.gain.is-sortie { opacity: 0; transform: translateY(-10px); }
@keyframes gain-in { from { opacity: 0; transform: translateY(-12px) scale(.9); } to { opacity: 1; transform: none; } }

/* Passage de niveau */
.niveau-up { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 20px; background: rgba(5, 9, 18, .6); backdrop-filter: blur(5px); cursor: pointer; animation: niv-fondu .25s ease; transition: opacity .3s; }
.niveau-up.is-sortie { opacity: 0; }
.niveau-up__carte { position: relative; text-align: center; padding: 34px 48px; border-radius: 26px; background: radial-gradient(120% 120% at 50% 0%, #1d2c4d 0%, var(--jeu-fond) 70%); color: var(--jeu-texte); border: 1px solid rgba(255, 201, 74, .4); box-shadow: 0 0 70px -12px rgba(255, 201, 74, .55); animation: niv-in .55s cubic-bezier(.2, 1.3, .4, 1); }
.niveau-up__sur { margin: 0; font: 700 .78rem var(--f-texte); letter-spacing: .16em; text-transform: uppercase; color: var(--neon-or); }
.niveau-up__n { margin: 4px 0; font: 800 5.4rem/1 var(--f-titre); background: linear-gradient(180deg, #fff 20%, var(--neon-or)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.niveau-up__nom { margin: 0 0 6px; font: 800 1.7rem/1.1 var(--f-titre); color: #fff; }
.niveau-up__suite { margin: 0; color: var(--jeu-gris); font-size: .9rem; }
.niveau-up__eclats i { position: absolute; left: 50%; top: 50%; width: 5px; height: 14px; margin: -7px 0 0 -2px; border-radius: 3px; background: var(--neon-or); opacity: 0; animation: eclat 1s ease-out .15s forwards; }
.niveau-up__eclats i:nth-child(3n) { background: var(--neon-lagon); }
.niveau-up__eclats i:nth-child(3n+1) { background: var(--neon-corail); }
@keyframes eclat { 0% { opacity: 1; transform: rotate(var(--a)) translateY(0); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(-80px - var(--d))); } }
@keyframes niv-in { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }
@keyframes niv-fondu { from { opacity: 0; } to { opacity: 1; } }

/* Étoiles et jauge d'une étape */
.scene-zone__score { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.etoiles { margin: 0; display: inline-flex; gap: 3px; padding: 6px 12px; border-radius: 999px; background: var(--jeu-fond); font-size: 1.15rem; line-height: 1; }
.etoiles [data-etoile] { color: rgba(255, 255, 255, .2); transition: color .3s, transform .3s; }
.etoiles [data-etoile].is-on { color: var(--neon-or); text-shadow: 0 0 10px rgba(255, 201, 74, .7); }
.scene-zone__jauge { display: inline-block; width: 86px; height: 8px; margin-right: 8px; border-radius: 4px; background: var(--ligne); overflow: hidden; vertical-align: middle; }
.scene-zone__jauge span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--lagon), var(--neon-lagon)); transition: width .45s ease; }

/* Profondeur des scènes */
.scene.is-relief { transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.scene__c { transform: translate(calc(var(--sx, 0) * var(--p, 0) * 1px), calc(var(--sy, 0) * var(--p, 0) * 1px)); }
.scene.is-relief .hotspot { translate: calc(var(--sx, 0) * var(--p, 0) * var(--k, 1) * 1px) calc(var(--sy, 0) * var(--p, 0) * var(--k, 1) * 1px); }
.scene__lumiere { mix-blend-mode: soft-light; }

/* Carte métier à collectionner */
.fiche__entete--carte .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; column-gap: 48px; align-items: start; }
.fiche__entete--carte .wrap > * { grid-column: 1; }
.fiche__entete--carte .fiche__carte { grid-column: 2; grid-row: 1 / span 8; align-self: center; }
@media (max-width: 900px) {
	.fiche__entete--carte .wrap { grid-template-columns: minmax(0, 1fr); }
	.fiche__entete--carte .fiche__carte { grid-column: 1; grid-row: auto; order: 1; width: min(290px, 100%); margin: 26px auto 0; }
}
.cj { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 30%; perspective: 900px; width: 100%; max-width: 300px; margin: 0 auto; }
.cj__in { position: relative; display: flex; flex-direction: column; aspect-ratio: 5 / 7; padding: 16px 16px 14px; border-radius: 22px; overflow: hidden; color: var(--jeu-texte); background: radial-gradient(130% 85% at 50% 0%, color-mix(in srgb, var(--c) 48%, #161d4b) 0%, var(--jeu-fond) 64%); border: 1px solid color-mix(in srgb, var(--c) 60%, transparent); box-shadow: 0 34px 60px -28px rgba(12, 17, 51, .8), inset 0 1px 0 rgba(255, 255, 255, .08); transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; transition: transform .35s ease-out; }
.cj.is-incline .cj__in { transition: transform .06s linear; }
.cj__holo { position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none; mix-blend-mode: screen; opacity: .85; background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, .26), transparent 42%), linear-gradient(115deg, transparent 28%, rgba(163, 169, 255, .2) 42%, rgba(255, 106, 61, .16) 52%, rgba(255, 201, 74, .14) 60%, transparent 72%); background-size: 100% 100%, 240% 240%; background-position: 0 0, var(--mx) var(--my); }
.cj--rare .cj__in { border-color: rgba(255, 201, 74, .75); box-shadow: 0 34px 60px -28px rgba(12, 17, 51, .8), 0 0 36px -10px rgba(255, 201, 74, .6), inset 0 1px 0 rgba(255, 255, 255, .1); }
.cj__haut { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0 0 4px; font: 700 .7rem/1.2 var(--f-texte); letter-spacing: .08em; text-transform: uppercase; color: var(--jeu-gris); transform: translateZ(20px); }
.cj__num { font: 800 .95rem var(--f-titre); color: #fff; letter-spacing: 0; white-space: nowrap; }
.cj__num small { font-size: .7rem; color: var(--jeu-gris); }
.cj__visuel { position: relative; flex: 1; min-height: 80px; display: grid; place-items: center; transform: translateZ(45px); }
.cj__visuel .ic { position: relative; width: 70px; height: 70px; color: #fff; stroke-width: 1.3; filter: drop-shadow(0 0 14px var(--c)); }
.cj__halo { position: absolute; width: 130px; height: 130px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c) 65%, transparent), transparent 70%); }
.cj__nom { margin: 4px 0 2px; font: 800 1.22rem/1.12 var(--f-titre); color: #fff; transform: translateZ(30px); }
.cj__rarete { display: flex; align-items: center; gap: .35em; margin: 0 0 10px; font-size: .74rem; font-weight: 700; color: var(--jeu-gris); }
.cj__rarete .ic { width: 14px; height: 14px; }
.cj--rare .cj__rarete { color: var(--neon-or); }
.cj__stats { display: grid; gap: 5px; margin: 0; transform: translateZ(18px); }
.cj__stats div { display: grid; grid-template-columns: minmax(0, 1fr) 46%; align-items: center; gap: 8px; }
.cj__stats dt { font-size: .72rem; font-weight: 700; color: var(--jeu-gris); }
.cj__stats dd { margin: 0; }
.cj__jauge { display: block; height: 7px; border-radius: 4px; background: linear-gradient(90deg, var(--c), var(--neon-lagon)) 0 0 / calc(var(--v) * 20%) 100% no-repeat, rgba(255, 255, 255, .1); }
.cj__etat { display: flex; align-items: center; justify-content: center; gap: .35em; margin: 10px 0 0; font-size: .76rem; font-weight: 800; color: var(--neon-lagon); }
.cj__etat .ic { width: 15px; height: 15px; }
.cj.is-nouvelle .cj__in { animation: cj-arrivee 1.1s cubic-bezier(.2, 1.15, .3, 1); }
.cj.is-nouvelle .cj__etat { color: var(--neon-or); }
@keyframes cj-arrivee { 0% { opacity: 0; transform: rotateY(-180deg) scale(.75); } 55% { opacity: 1; } 100% { transform: rotateY(0) scale(1); } }

/* Cartes des listes : légère inclinaison et repère « collectée » */
.carte-metier[data-tilt], .carte-etape[data-tilt] { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .3s ease-out, box-shadow .2s; }
.carte-metier.is-incline, .carte-etape.is-incline { transition: transform .08s linear; }
.carte-metier.is-collectee::after { content: "✓ Collectée"; position: absolute; top: 33px; left: 76px; padding: 3px 9px; border-radius: 999px; background: var(--jeu-fond); color: var(--neon-lagon); font: 700 .68rem/1.3 var(--f-texte); pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
	.scene.is-relief, .scene__c, .cj__in { transform: none !important; }
	.gain, .niveau-up, .niveau-up__carte, .cj.is-nouvelle .cj__in { animation: none; }
}

/* Carnet : profil de joueur·se, quêtes, album de cartes */
.profil-jeu { margin: 0 0 28px; padding: clamp(18px, 3vw, 28px); border-radius: 24px; color: var(--jeu-texte); background: radial-gradient(110% 120% at 0% 0%, #1c2b4c 0%, var(--jeu-fond) 60%); border: 1px solid var(--jeu-ligne); box-shadow: var(--ombre-f); }
.profil-jeu__id { display: flex; align-items: center; gap: 18px; }
.profil-jeu__anneau { position: relative; width: 86px; height: 86px; flex: none; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--neon-lagon) calc(var(--p) * 1%), rgba(255, 255, 255, .12) 0); box-shadow: 0 0 34px -8px rgba(163, 169, 255, .55); }
.profil-jeu__anneau::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--jeu-fond); }
.profil-jeu__anneau span { position: relative; font: 800 2rem/1 var(--f-titre); color: #fff; }
.profil-jeu__id > div { flex: 1; min-width: 0; }
.profil-jeu__sur { margin: 0; font: 700 .75rem var(--f-texte); letter-spacing: .14em; text-transform: uppercase; color: var(--neon-lagon); }
.profil-jeu h2 { margin: 2px 0 4px; color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); }
.profil-jeu__xp { margin: 0 0 8px; font-size: .9rem; color: var(--jeu-gris); }
.profil-jeu__xp strong { color: #fff; }
.profil-jeu__barre, .quete__barre { display: block; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.profil-jeu__barre span, .quete__barre span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--lagon), var(--neon-lagon)); }
.profil-jeu__chiffres { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.profil-jeu__chiffres li { padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid var(--jeu-ligne); text-align: center; }
.profil-jeu__chiffres strong { display: block; font: 800 1.5rem/1.1 var(--f-titre); color: #fff; }
.profil-jeu__chiffres span { font-size: .78rem; color: var(--jeu-gris); font-weight: 700; }
.profil-jeu__h { margin: 22px 0 10px; color: #fff; font-size: 1.1rem; }
.quetes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.quete { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid var(--jeu-ligne); }
.quete > div { flex: 1; min-width: 0; display: grid; gap: 5px; }
.quete strong { font-size: .9rem; color: #fff; }
.quete small { font-size: .74rem; color: var(--jeu-gris); font-weight: 700; }
.quete__ico { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 12px; background: rgba(163, 169, 255, .12); color: var(--neon-lagon); }
.quete__ico .ic { width: 20px; height: 20px; }
.quete__xp { flex: none; font: 800 .78rem var(--f-titre); color: var(--neon-or); }
.quete.is-faite { border-color: rgba(163, 169, 255, .45); }
.quete.is-faite .quete__ico { background: var(--neon-lagon); color: var(--jeu-fond); }
.collection__tete { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.collection__compte { margin: 0; font-weight: 700; color: var(--gris); }
.collection__compte strong { font: 800 1.4rem var(--f-titre); color: var(--encre); }
.collection__fam { margin-top: 18px; }
.collection__fam h3 { font-size: 1rem; margin: 0 0 10px; display: flex; align-items: center; gap: .5em; }
.collection__fam h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.collection__fam h3 small { font: 700 .82rem var(--f-texte); color: var(--gris); }
.collection__grille { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.cjm { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; aspect-ratio: 5 / 6.4; padding: 10px; border-radius: 14px; text-decoration: none; color: var(--jeu-texte); background: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--c) 45%, #161d4b) 0%, var(--jeu-fond) 66%); border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); box-shadow: 0 12px 24px -16px rgba(12, 17, 51, .8); transition: transform .2s; }
.cjm:hover { transform: translateY(-3px) rotate(-1deg); color: #fff; }
.cjm__num { font: 800 .74rem var(--f-titre); color: var(--jeu-gris); }
.cjm__ico { flex: 1; align-self: center; display: grid; place-items: center; }
.cjm__ico .ic { width: 34px; height: 34px; color: #fff; filter: drop-shadow(0 0 8px var(--c)); stroke-width: 1.5; }
.cjm__nom { font: 800 .8rem/1.15 var(--f-titre); color: #fff; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cjm__rare { position: absolute; top: 9px; right: 9px; font: 800 .62rem var(--f-texte); text-transform: uppercase; letter-spacing: .06em; color: var(--neon-or); }
.cjm--rare { border-color: rgba(255, 201, 74, .7); }
.cjm.is-verrou { background: repeating-linear-gradient(135deg, #111a2c 0 10px, #0d1525 10px 20px); border-color: var(--jeu-ligne); }
.cjm.is-verrou .cjm__ico .ic { color: var(--jeu-gris); filter: none; width: 26px; height: 26px; }
.cjm.is-verrou .cjm__nom { color: var(--jeu-gris); letter-spacing: .2em; }
@media (max-width: 520px) {
	.profil-jeu__id { gap: 14px; }
	.profil-jeu__anneau { width: 70px; height: 70px; }
	.profil-jeu__anneau span { font-size: 1.6rem; }
	.collection__grille { grid-template-columns: repeat(3, 1fr); gap: 8px; }
}

.match-zone { margin: 0 auto 36px; scroll-margin-top: 90px; }

/* Scènes : habillage « jeu » (vignettage, points néon) */
.scene { background: var(--jeu-fond); box-shadow: 0 0 0 1px var(--jeu-ligne), 0 30px 60px -28px rgba(12, 17, 51, .7); }
.scene::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit; background: radial-gradient(130% 100% at 50% 40%, transparent 55%, rgba(12, 17, 51, .45) 100%); }
.hotspot__dot { background: rgba(12, 17, 51, .82); color: #fff; border: 2px solid var(--c, var(--neon-lagon)); box-shadow: 0 0 0 4px rgba(12, 17, 51, .25), 0 0 18px -2px var(--c, var(--neon-lagon)); backdrop-filter: blur(4px); }
.hotspot--metier .hotspot__dot { --c: var(--neon-lagon); }
.hotspot--info .hotspot__dot { color: #fff; border-color: #8ab4ff; box-shadow: 0 0 0 4px rgba(12, 17, 51, .25), 0 0 18px -2px #8ab4ff; }
.hotspot--info .hotspot__dot::before { border-color: #8ab4ff; }
.hotspot--jeu .hotspot__dot { background: rgba(12, 17, 51, .82); color: var(--neon-or); border-color: var(--neon-or); box-shadow: 0 0 0 4px rgba(12, 17, 51, .25), 0 0 20px -2px var(--neon-or); }
.hotspot--jeu .hotspot__dot::before { border-color: var(--neon-or); }
.hotspot.is-vu .hotspot__dot { background: var(--c, var(--neon-lagon)); color: var(--jeu-fond); }
.hotspot--jeu.is-vu .hotspot__dot { background: var(--neon-or); }
.hotspot--info.is-vu .hotspot__dot { background: #8ab4ff; }
.hotspot__label { background: rgba(12, 17, 51, .92); border: 1px solid var(--jeu-ligne); }
.fiche__entete--carte .chip--famille { justify-self: start; }

@media (max-width: 900px) { .alex-guide { display: none !important; } }

/* Arrivée après une plongée depuis la fresque 3D : le rideau s'ouvre sur la page */
@property --arr-r { syntax: '<length>'; inherits: false; initial-value: 0px; }
html.eg-arrivee::after {
	content: var(--arrivee-t, "");
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: grid;
	place-items: center;
	padding: 24px;
	white-space: pre-line;
	text-align: center;
	color: #fff;
	font: 800 clamp(1.6rem, 5vw, 2.8rem)/1.15 var(--f-titre, sans-serif);
	pointer-events: none;
	background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--arrivee-c, #a3a9ff) 62%, #0c1133) 0, #0c1133 78%);
	-webkit-mask: radial-gradient(circle at 50% 50%, transparent var(--arr-r), #000 calc(var(--arr-r) + 2px));
	mask: radial-gradient(circle at 50% 50%, transparent var(--arr-r), #000 calc(var(--arr-r) + 2px));
	animation: egArrivee .85s cubic-bezier(.6, 0, .2, 1) .3s both;
}
html.eg-arrivee main { animation: egArriveeMain 1s cubic-bezier(.2, .8, .2, 1) .25s both; }
@keyframes egArrivee { from { --arr-r: 0px; opacity: 1; } 75% { opacity: 1; } to { --arr-r: 150vmax; opacity: 0; } }
@keyframes egArriveeMain { from { transform: scale(1.08); opacity: .3; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { html.eg-arrivee::after, html.eg-arrivee main { animation: none; display: none; } html.eg-arrivee main { display: block; } }

/* ===================================================================== */
/* Profil adaptatif : bouton d'en-tête, fenêtre « Qui es-tu ? », mode sobre */
/* ===================================================================== */
.btn-profil { display: inline-flex; align-items: center; gap: .4em; min-width: 44px; min-height: 44px; padding: 0 .75em; border-radius: 999px; border: 1px solid var(--ligne); background: var(--blanc); color: var(--encre); font: 700 .85rem/1 var(--f-texte); cursor: pointer; flex: none; }
.btn-profil:hover { border-color: var(--lagon); color: var(--lagon-f); }
.btn-profil .ic { width: 20px; height: 20px; }
.btn-profil__nom:empty { display: none; }
@media (max-width: 1120px) { .btn-profil { order: 1; } }
@media (max-width: 560px) { .btn-profil { padding: 0; justify-content: center; width: 44px; } .btn-profil__nom { display: none; } }

.profil-boite { position: fixed; inset: 0; z-index: 9000; display: grid; place-items: center; padding: 16px; background: rgba(12, 17, 51, .62); opacity: 0; transition: opacity .2s ease; }
.profil-boite.is-ouvert { opacity: 1; }
.profil-boite__in { position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 28px 24px 22px; border-radius: 24px; background: var(--jeu-fond); color: var(--jeu-texte); border: 1px solid var(--jeu-ligne); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(163, 169, 255, .12); transform: translateY(14px) scale(.98); transition: transform .25s cubic-bezier(.2, .9, .3, 1.2); }
.profil-boite.is-ouvert .profil-boite__in { transform: none; }
.profil-boite__in:focus { outline: none; }
.profil-boite__titre { margin: 0 40px .3em 0; color: #fff; font-size: clamp(1.5rem, 4vw, 2rem); }
.profil-boite__texte { margin: 0 0 1.1em; color: var(--jeu-gris); }
.profil-boite__fermer { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--jeu-ligne); background: transparent; color: var(--jeu-texte); cursor: pointer; display: grid; place-items: center; }
.profil-boite__fermer .ic { width: 20px; height: 20px; }
.profil-boite__choix { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 16px; padding: 0; border: 0; }
.profil-choix { position: relative; display: block; cursor: pointer; }
.profil-choix input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.profil-choix span { display: flex; align-items: center; min-height: 54px; padding: .6em .9em; border-radius: 14px; border: 1px solid var(--jeu-ligne); background: var(--jeu-fond-2); font-weight: 700; line-height: 1.2; transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease; }
.profil-choix input:hover + span { border-color: rgba(163, 169, 255, .5); }
.profil-choix input:checked + span { border-color: var(--neon-lagon); background: rgba(163, 169, 255, .14); box-shadow: 0 0 0 1px var(--neon-lagon), 0 0 22px -6px var(--neon-lagon); color: #fff; }
.profil-choix input:focus-visible + span { outline: 3px solid var(--neon-or); outline-offset: 2px; }
.profil-boite__mode { display: flex; gap: .7em; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px dashed var(--jeu-ligne); cursor: pointer; }
.profil-boite__mode input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--neon-lagon); flex: none; }
.profil-boite__mode span { display: grid; gap: 2px; }
.profil-boite__mode small { color: var(--jeu-gris); font-size: .82rem; }
.profil-boite__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 18px; }
.profil-boite .btn--plein { background: var(--neon-lagon); color: var(--jeu-fond); }
.profil-boite .btn--lien { color: var(--jeu-texte); }
@media (max-width: 420px) { .profil-boite__choix { grid-template-columns: 1fr; } }

/* Recommandations de l'accueil selon le profil */
.pour-toi { padding: 6px 0 34px; }
.pour-toi__tete { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 14px; }
.pour-toi__tete h2 { margin: 0; font-size: clamp(1.35rem, 3vw, 1.8rem); }
.pour-toi__liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pour-toi__carte { display: flex; align-items: center; gap: 14px; height: 100%; padding: 16px 18px; border-radius: var(--r); background: var(--jeu-fond); color: var(--jeu-texte); text-decoration: none; border: 1px solid var(--jeu-ligne); box-shadow: var(--ombre); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.pour-toi__carte:hover { color: #fff; transform: translateY(-3px); border-color: rgba(163, 169, 255, .55); box-shadow: 0 16px 34px -16px rgba(163, 169, 255, .55); }
.pour-toi__carte > .ic:last-child { width: 20px; height: 20px; margin-left: auto; color: var(--neon-lagon); flex: none; }
.pour-toi__ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: rgba(163, 169, 255, .13); color: var(--neon-lagon); flex: none; }
.pour-toi__ico .ic { width: 24px; height: 24px; }
.pour-toi__txt { display: grid; gap: 3px; }
.pour-toi__txt strong { font: 700 1.05rem/1.2 var(--f-titre); color: #fff; }
.pour-toi__txt span { font-size: .9rem; color: var(--jeu-gris); line-height: 1.4; }
@media (max-width: 860px) { .pour-toi__liste { grid-template-columns: 1fr; } }

/* Mode sobre : pas d'XP, de niveaux ni de quêtes à l'écran (adultes et pros, ou au choix) */
.mode-sobre .gain, .mode-sobre .niveau-up, .mode-sobre .hud__rang, .mode-sobre .hud__serie, .mode-sobre .profil-jeu, .mode-sobre .scene-zone__score .etoiles { display: none !important; }
.mode-sobre .hud { padding: .6em 1em; gap: .5em; }
.mode-sobre .hud .hud__anneau { display: none; }
.mode-sobre .tabbar__carnet .hud__anneau { background: rgba(255, 255, 255, .13); }
.mode-sobre .tabbar__carnet .hud__anneau span { visibility: hidden; }
.mode-sobre .pour-toi__carte { background: var(--blanc); color: var(--encre); border-color: var(--ligne); }
.mode-sobre .pour-toi__carte:hover { color: var(--encre); border-color: var(--lagon); box-shadow: var(--ombre-f); }
.mode-sobre .pour-toi__txt strong { color: var(--encre); }
.mode-sobre .pour-toi__txt span { color: var(--gris); }
.mode-sobre .pour-toi__ico { background: var(--lagon-c); color: var(--lagon-f); }
.mode-sobre .pour-toi__carte > .ic:last-child { color: var(--lagon); }

/* ===================================================================== */
/* Mixité : côté technique des métiers                                    */
/* ===================================================================== */
.fiche__technique { border-left: 4px solid var(--lagon); }
.fiche__technique-intro { margin: -.2em 0 .8em; color: var(--gris); font-size: .95rem; }
.technique { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.technique li { display: flex; gap: .65em; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-s); background: var(--lagon-c); font-weight: 600; line-height: 1.4; }
.technique .ic { width: 20px; height: 20px; flex: none; margin-top: 1px; color: var(--lagon-f); }
.pm__liste--tech .ic { color: var(--lagon); }

/* ===================================================================== */
/* Jeu de piste                                                           */
/* ===================================================================== */
.piste-trouve { position: fixed; inset: 0; z-index: 9500; display: grid; place-items: center; padding: 16px; background: rgba(12, 17, 51, .7); opacity: 0; transition: opacity .25s ease; }
.piste-trouve.is-ouvert { opacity: 1; }
.piste-trouve__boite { position: relative; width: min(480px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 26px 22px 22px; border-radius: 24px; text-align: center; color: var(--jeu-texte); background: radial-gradient(circle at 50% 0, color-mix(in srgb, var(--c, #a3a9ff) 35%, #0c1133) 0, #0c1133 70%); border: 1px solid color-mix(in srgb, var(--c, #a3a9ff) 60%, transparent); box-shadow: 0 0 60px -18px var(--c, #a3a9ff), 0 30px 80px -24px rgba(0, 0, 0, .8); transform: scale(.9); transition: transform .35s cubic-bezier(.2, .9, .3, 1.3); }
.piste-trouve.is-ouvert .piste-trouve__boite { transform: none; }
.piste-trouve__boite:focus { outline: none; }
.piste-trouve__sur { display: inline-flex; align-items: center; gap: .4em; margin: 0 0 .4em; font: 800 .78rem/1 var(--f-titre); letter-spacing: .16em; text-transform: uppercase; color: var(--neon-or); }
.piste-trouve__sur .ic { width: 18px; height: 18px; }
.piste-trouve__titre { margin: 0; color: #fff; font-size: clamp(1.8rem, 6vw, 2.4rem); }
.piste-trouve__nom { margin: .1em 0 .9em; font: 700 1.1rem var(--f-titre); color: var(--c, var(--neon-lagon)); }
.piste-trouve__balises { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 0 0 .7em; padding: 0; }
.piste-trouve__balises li { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 1px dashed rgba(255, 255, 255, .25); color: var(--jeu-gris); font: 800 .9rem var(--f-titre); }
.piste-trouve__balises li.is-ok { border-style: solid; border-color: var(--neon-lagon); background: rgba(163, 169, 255, .16); color: #fff; }
.piste-trouve__balises li.is-nouvelle { animation: piste-pop .6s .3s cubic-bezier(.2, .9, .3, 1.4) both; border-color: var(--neon-or); background: rgba(255, 201, 74, .2); }
@keyframes piste-pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.piste-trouve__compte { margin: 0 0 1em; }
.piste-trouve__indice { margin: 0 0 1.1em; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid var(--jeu-ligne); text-align: left; }
.piste-trouve__indice p { margin: 0; }
.piste-trouve__indice-sur { display: flex; align-items: center; gap: .45em; margin-bottom: .35em !important; font: 800 .8rem var(--f-titre); color: var(--neon-lagon); text-transform: uppercase; letter-spacing: .08em; }
.piste-trouve__indice-sur .ic { width: 18px; height: 18px; }
.piste-trouve__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.piste-trouve .btn--plein { background: var(--neon-lagon); color: var(--jeu-fond); }
.piste-trouve .btn--contour { color: var(--jeu-texte); border-color: var(--jeu-ligne); }

.piste { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 28px; padding-bottom: 56px; align-items: start; }
.piste__tableau { padding: 22px; border-radius: 24px; background: var(--jeu-fond); color: var(--jeu-texte); border: 1px solid var(--jeu-ligne); box-shadow: var(--ombre-f); }
.piste__haut { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.piste__h { margin: 0; color: #fff; }
.piste__score { margin: 0; color: var(--jeu-gris); }
.piste__score strong { font: 800 1.6rem var(--f-titre); color: var(--neon-lagon); }
.piste__barre { display: block; height: 8px; margin: 12px 0 18px; border-radius: 4px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.piste__barre span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--neon-lagon), var(--neon-or)); transition: width .6s ease; }
.piste__balises { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.balise { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; border: 1px dashed rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .03); }
.balise__num { grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .08); font: 800 1.1rem var(--f-titre); color: var(--jeu-gris); }
.balise__nom { font-weight: 700; color: #fff; }
.balise__vrai { display: none; }
.balise__etat { font-size: .82rem; color: var(--jeu-gris); }
.balise__etat a { color: var(--neon-lagon); }
.balise.is-ok { border-style: solid; border-color: color-mix(in srgb, var(--c) 70%, transparent); background: color-mix(in srgb, var(--c) 16%, transparent); }
.balise.is-ok .balise__num { background: var(--c); color: var(--jeu-fond); }
.balise.is-ok .balise__cache { display: none; }
.balise.is-ok .balise__vrai { display: inline; }
.piste__fin { display: flex; gap: 14px; align-items: flex-start; margin-top: 18px; padding: 16px; border-radius: 18px; background: rgba(255, 201, 74, .12); border: 1px solid rgba(255, 201, 74, .5); }
.piste__fin > .ic { width: 40px; height: 40px; color: var(--neon-or); flex: none; }
.piste__fin h3 { margin: 0 0 .2em; color: #fff; }
.piste__fin .btn--plein { margin-top: .4em; background: var(--neon-or); color: var(--jeu-fond); }
.piste__indice { display: flex; gap: .5em; align-items: flex-start; margin: 16px 0 0; color: var(--jeu-gris); font-size: .92rem; }
.piste__indice .ic { width: 18px; height: 18px; color: var(--neon-lagon); flex: none; margin-top: 2px; }
.piste__raz { margin-top: 14px; color: var(--jeu-gris); }
.piste__infos { display: grid; gap: 20px; }
.piste__bloc { padding: 22px; border-radius: var(--r); background: var(--blanc); box-shadow: var(--ombre); }
.piste__bloc h2 { font-size: 1.35rem; }
.piste__etapes { margin: 0; padding: 0; list-style: none; counter-reset: pe; display: grid; gap: 12px; }
.piste__etapes li { counter-increment: pe; display: grid; grid-template-columns: 36px 1fr; column-gap: 12px; }
.piste__etapes li::before { content: counter(pe); grid-row: span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--lagon-c); color: var(--lagon-f); font: 800 1rem var(--f-titre); }
.piste__etapes span { color: var(--gris); font-size: .95rem; }
.piste__qr { display: flex; gap: 14px; align-items: center; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--ligne); }
.piste__qr .qr { width: 110px; height: 110px; flex: none; }
.piste__qr p { margin: 0; color: var(--gris); font-size: .92rem; }
@media (max-width: 900px) { .piste { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .piste__balises { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .piste-trouve, .piste-trouve__boite, .profil-boite, .profil-boite__in { transition: none; } .piste-trouve__balises li.is-nouvelle { animation: none; } }
