/* ==========================================================================
   Edu-Résultats — styles du thème
   ========================================================================== */

:root {
	--ink: #0B1530;
	--ink-2: #3A4255;
	--muted: #5C6374;
	--muted-2: #6E7586;
	--blue: #0042AC;
	--blue-dark: #00307E;
	--blue-50: #F2F7FF;
	--blue-100: #E6EEFF;
	--cyan-100: #D9F7FF;
	--green: #83FD80;
	--green-100: #E3FFE2;
	--line: #ECEEF2;
	--line-2: #E6E8EE;
	--surface: #F5F6F8;
	--surface-2: #F4F5F7;
	--white: #FFFFFF;
	--ease: cubic-bezier(.2, .7, .2, 1);
	--ease-spring: cubic-bezier(.34, 1.56, .64, 1);
	--header-h: 72px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 8px);
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--white);
	color: var(--ink);
	font-family: Archivo, system-ui, sans-serif;
	font-stretch: 112%;
	-webkit-font-smoothing: antialiased;
}

a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
button { font: inherit; cursor: pointer; }
input::placeholder { color: #9AA0AD; }
img { max-width: 100%; }
video { display: block; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.er-site { width: 100%; overflow-x: clip; }

.screen-reader-text,
.er-sr {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap;
}

.er-skip:focus {
	position: fixed; top: 8px; left: 8px; z-index: 100; width: auto; height: auto; clip: auto;
	padding: 12px 16px; border-radius: 999px; background: var(--ink); color: var(--white);
}

/* ---------- Boutons ---------- */

.er-btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent;
	font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
	transition: transform .25s var(--ease), background-color .2s, border-color .2s, box-shadow .25s, color .2s;
}
.er-btn:hover { transform: translateY(-2px); }
.er-btn:active { transform: translateY(0) scale(.97); }

.er-btn--primary { background: var(--blue); color: var(--white); }
.er-btn--primary:hover { background: var(--blue-dark); color: var(--white); box-shadow: 0 10px 24px rgba(0, 66, 172, .28); }

.er-btn--ghost { background: var(--white); color: var(--ink); border-color: var(--line-2); }
.er-btn--ghost:hover { color: var(--ink); border-color: #CDD2DC; box-shadow: 0 8px 20px rgba(11, 21, 48, .08); }

.er-btn--green { background: var(--green); color: var(--ink); padding: 0 20px; }
.er-btn--green:hover { color: var(--ink); box-shadow: 0 10px 28px rgba(131, 253, 128, .35); }

.er-btn--outline-light { color: var(--white); font-weight: 500; padding: 0 20px; border-color: rgba(255, 255, 255, .3); }
.er-btn--outline-light:hover { color: var(--white); border-color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .08); }

.er-btn--light { font-weight: 500; padding: 0 16px; }
.er-btn--lg { min-height: 50px; padding: 0 24px; font-size: 15px; }
.er-btn--lg.er-btn--ghost { font-weight: 500; }

/* ---------- En-tête ---------- */

.er-header {
	position: sticky; top: 0; z-index: 20;
	background: rgba(255, 255, 255, .92);
	-webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
	transition: box-shadow .3s;
}
.er-header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(11, 21, 48, .05); }
.admin-bar .er-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .er-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .er-header { top: 0; } }

.er-nav {
	max-width: 1280px; margin: 0 auto; padding: 14px 20px;
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.er-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.er-brand__mark { width: 40px; height: 40px; display: block; transition: transform .6s var(--ease-spring); }
.er-brand:hover .er-brand__mark { transform: rotate(-8deg) scale(1.06); }
.er-brand__word { height: 19px; width: auto; display: block; }
.er-brand .custom-logo { display: block; height: 40px; width: auto; }

.er-nav__links {
	display: flex; gap: 6px; margin: 0; padding: 0; list-style: none;
	font-size: 14px; font-weight: 500;
}
.er-nav__links a {
	position: relative; display: block; padding: 10px 14px; border-radius: 999px;
	color: var(--ink); text-decoration: none; white-space: nowrap; transition: background-color .2s, color .2s;
}
@media (max-width: 1120px) {
	.er-nav__links { gap: 0; }
	.er-nav__links a { padding: 10px 9px; }
	.er-nav__links a::after { left: 9px; right: 9px; }
}
.er-nav__links a:hover { background: var(--surface-2); color: var(--ink); }
.er-nav__links a.is-current { color: var(--blue); }
.er-nav__links a::after {
	content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px; border-radius: 2px;
	background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.er-nav__links a.is-current::after { transform: scaleX(1); }

.er-nav__actions { display: flex; gap: 8px; align-items: center; }

.er-burger {
	display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2);
	background: var(--white); align-items: center; justify-content: center; padding: 0;
}
.er-burger span { display: block; width: 16px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s; }
.er-burger span + span { margin-top: 4px; }
.er-burger { flex-direction: column; }
.er-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.er-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.er-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.er-mobile {
	display: none; max-width: 1280px; margin: 0 auto; padding: 0 20px;
	overflow: hidden; max-height: 0; transition: max-height .4s var(--ease);
}
.er-mobile.is-open { max-height: 420px; }
.er-mobile ul { list-style: none; margin: 0; padding: 4px 0 16px; display: flex; flex-direction: column; gap: 2px; }
.er-mobile a {
	display: flex; align-items: center; min-height: 48px; padding: 0 14px; border-radius: 14px;
	color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500;
}
.er-mobile a:hover { background: var(--surface-2); }
.er-mobile > .er-mobile__login { margin: -8px 0 16px; border: 1px solid var(--line-2); border-radius: 999px; justify-content: center; }

@media (max-width: 480px) {
	.er-brand__word { display: none; }
	.er-nav { gap: 10px; }
}
.er-brand, .er-nav__actions { flex: none; }
@media (max-width: 1080px) {
	.er-nav__links, .er-hide-sm { display: none; }
	.er-burger { display: inline-flex; }
	.er-mobile { display: block; }
}

/* ---------- En-têtes de section ---------- */

.er-section { max-width: 1280px; margin: 0 auto; padding: 96px 20px 40px; }
.er-head { text-align: center; margin-bottom: 36px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.er-pill {
	font-size: 12px; font-weight: 500; padding: 5px 12px; border-radius: 999px;
	border: 1px solid var(--line); color: var(--ink-2);
}
.er-h2 {
	margin: 0; font-weight: 600; font-size: clamp(30px, 4vw, 48px); line-height: 1.06;
	letter-spacing: -0.035em; font-stretch: 125%; text-wrap: balance;
}
.er-lead { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 520px; }

/* ---------- Hero ---------- */

.er-hero {
	background-color: var(--surface-2);
	background-image: radial-gradient(#DCDFE6 1.1px, transparent 1.1px);
	background-size: 20px 20px;
	padding: 64px 20px 24px;
}
.er-hero__inner {
	max-width: 1280px; margin: 0 auto; display: flex; flex-direction: column;
	align-items: center; text-align: center; gap: 20px;
}
.er-badge {
	display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px;
	background: var(--white); border: 1px solid var(--line); font-size: 13px; font-weight: 500; color: var(--ink-2);
}
.er-badge img { width: 24px; height: 24px; display: block; }
.er-hero__title {
	margin: 0; font-weight: 600; font-size: clamp(38px, 5.6vw, 72px); line-height: 1.04;
	letter-spacing: -0.035em; font-stretch: 125%; max-width: 1000px;
}
.er-hero__title .er-word { display: inline-block; }
.js .er-hero__title .er-word { opacity: 0; transform: translateY(.5em) rotate(2deg); filter: blur(6px); }
.js .er-hero__title.is-in .er-word {
	opacity: 1; transform: none; filter: none;
	transition: opacity .7s var(--ease), transform .8s var(--ease), filter .7s var(--ease);
	transition-delay: calc(var(--w) * 55ms + 120ms);
}
.er-hero__text { margin: 0; font-size: clamp(15px, 1.6vw, 17px); line-height: 1.6; color: var(--muted); max-width: 620px; }

/* Boîte de demande */
.er-request {
	width: 100%; max-width: 720px; margin-top: 18px; border-radius: 24px; background: var(--surface);
	border: 1px solid var(--line); text-align: left; box-shadow: 0 30px 60px rgba(11, 21, 48, .06);
	transition: box-shadow .4s var(--ease);
}
.er-request:focus-within { box-shadow: 0 30px 70px rgba(0, 66, 172, .14); }
.er-request.is-shake { animation: er-shake .45s; }
.er-request__top {
	display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 18px;
	font-size: 13px; color: var(--ink-2); flex-wrap: wrap;
}
.er-request__top span { flex: 1; min-width: 200px; }
.er-request__partner {
	font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: none; background: var(--white);
	border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 14px;
	transition: border-color .2s, box-shadow .2s, transform .25s var(--ease);
}
.er-request__partner:hover { color: var(--ink); border-color: #CDD2DC; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(11, 21, 48, .08); }
.er-request__body {
	background: var(--white); border-radius: 22px; border: 1px solid var(--line);
	margin: 0 -1px -1px; padding: 18px 18px 14px;
}
.er-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.er-chip {
	min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2);
	background: var(--white); color: var(--ink); font-size: 13px; font-weight: 500;
	transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease-spring);
}
.er-chip:hover { border-color: #CDD2DC; transform: translateY(-1px); }
.er-chip:active { transform: scale(.95); }
.er-chip[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: var(--white); font-weight: 600; }
.er-request__input {
	width: 100%; border: 0; outline: none; font: inherit; font-size: 16px;
	padding: 18px 4px 22px; color: var(--ink); background: transparent;
}
.er-request__input::placeholder { transition: opacity .2s, transform .2s; }
.er-request__input.is-swapping::placeholder { opacity: 0; }
.er-request__row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.er-request__hint { font-size: 13px; color: var(--muted-2); }
.er-request__end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.er-round {
	width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--white);
	display: inline-flex; align-items: center; justify-content: center; padding: 0;
	transition: transform .3s var(--ease-spring), background-color .2s, box-shadow .25s;
}
.er-round:hover { transform: scale(1.08); }
.er-round:active { transform: scale(.94); }
.er-round--primary { border: 0; background: var(--blue); }
.er-round--primary:hover { background: var(--blue-dark); box-shadow: 0 10px 22px rgba(0, 66, 172, .3); }
.er-round--primary:hover svg { animation: er-nudge .6s var(--ease); }
.er-select {
	font: inherit; font-size: 13px; font-weight: 500; color: var(--ink); border: 1px solid var(--line-2);
	border-radius: 999px; padding: 0 14px; min-height: 44px; background: var(--white);
}

.er-hero__media { max-width: 1280px; margin: 32px auto 0; }

.er-vid {
	width: 100%; height: auto; aspect-ratio: 16 / 9; pointer-events: none;
	-webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 8%, #000 92%, transparent 100%);
	-webkit-mask-composite: source-in;
	mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 8%, #000 92%, transparent 100%);
	mask-composite: intersect;
}
.er-vid--cover { object-fit: cover; }
video::-webkit-media-controls,
video::-webkit-media-controls-start-playback-button,
video::-webkit-media-controls-overlay-play-button { display: none !important; -webkit-appearance: none; }

/* ---------- Pièces ---------- */

.er-head--pieces { margin-bottom: 40px; }
.er-pieces {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0;
	border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.er-piece {
	display: flex; gap: 14px; align-items: flex-start; padding: 22px 20px;
	border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
	transition: background-color .3s;
}
.er-piece:hover { background: #FAFBFC; }
.er-piece__dot { flex: none; width: 34px; height: 34px; border-radius: 10px; transition: transform .45s var(--ease-spring), border-radius .45s var(--ease); }
.er-piece:hover .er-piece__dot { transform: rotate(-10deg) scale(1.12); border-radius: 12px; }
.er-piece__t { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.er-piece__d { font-size: 13px; color: var(--muted-2); margin-top: 4px; line-height: 1.45; }

/* ---------- La différence ---------- */

.er-head--wide .er-h2 { max-width: 820px; }
.er-head--wide .er-lead { max-width: 560px; }
.er-compare { border-radius: 28px; background: var(--surface-2); padding: clamp(16px, 3vw, 28px); }
.er-tabs {
	position: relative; display: flex; gap: 4px; padding: 4px; background: var(--white); border: 1px solid var(--line);
	border-radius: 999px; width: max-content; max-width: 100%; margin: 0 auto 24px;
}
.er-tabs__pill {
	position: absolute; top: 4px; left: 0; height: calc(100% - 8px); width: 0; border-radius: 999px; background: var(--ink);
	transition: transform .45s var(--ease), width .45s var(--ease); pointer-events: none; display: none;
}
.js .er-tabs__pill { display: block; }
.er-tab {
	position: relative; z-index: 1; min-height: 40px; padding: 0 18px; border-radius: 999px; border: 0;
	background: transparent; color: var(--ink-2); font-size: 13px; font-weight: 500; transition: color .3s;
}
.er-tab[aria-selected="true"] { background: var(--ink); color: var(--white); font-weight: 600; }
.js .er-tab[aria-selected="true"] { background: transparent; }

.er-compare__grid { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.er-compare__text { flex: 1 1 300px; min-width: 0; padding: 8px; display: grid; }
.er-compare__media { flex: 2 1 520px; min-width: 0; display: grid; }

.er-swap { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .45s var(--ease), transform .55s var(--ease), visibility 0s .45s; }
.er-swap.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: .08s, .08s, 0s; }
.er-compare__media .er-swap { transform: scale(.985); }
.er-compare__media .er-swap.is-active { transform: none; }

.er-h3 { margin: 0; font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; letter-spacing: -0.03em; font-stretch: 125%; line-height: 1.12; }
.er-list { margin: 20px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.er-list li { display: flex; gap: 12px; }
.er-swap.is-active .er-list li { animation: er-slide-in .55s var(--ease) backwards; animation-delay: calc(var(--i) * 70ms + 120ms); }
.er-mark {
	flex: none; width: 22px; height: 22px; border-radius: 50%; font-size: 13px; font-weight: 700;
	display: flex; align-items: center; justify-content: center;
}
.er-mark--no { background: #FDE7E1; color: #B2361A; }
.er-mark--yes { background: var(--green); color: var(--ink); }
.er-swap.is-active .er-mark { animation: er-pop .5s var(--ease-spring) backwards; animation-delay: calc(var(--i) * 70ms + 200ms); }
.er-compare__cta { margin-top: 24px; }

/* ---------- Comment ça marche ---------- */

.er-steps { display: flex; flex-wrap: wrap; border-radius: 28px; border: 1px solid var(--line); overflow: hidden; }
.er-steps__side { flex: 1 1 320px; min-width: 0; padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 14px; }
.er-steps__title { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; font-stretch: 125%; }
.er-steps__text { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.er-steps__list { margin: 18px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.er-step {
	position: relative; overflow: hidden; width: 100%; text-align: left; display: flex; align-items: center; gap: 12px;
	min-height: 48px; padding: 0 14px; border: 0; border-radius: 14px; font-size: 14.5px; font-weight: 500;
	background: transparent; color: var(--muted); transition: background-color .3s, color .3s, padding .35s var(--ease);
}
.er-step:hover { color: var(--ink); }
.er-step__mk { font-size: 14px; color: transparent; transform: scale(0) rotate(-90deg); transition: transform .5s var(--ease-spring), color .3s; }
.er-step[aria-current="step"] { background: var(--surface); color: var(--ink); font-weight: 600; }
.er-step[aria-current="step"] .er-step__mk { color: var(--blue); transform: none; }
.er-step__bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--blue); transform: scaleX(0); transform-origin: left; opacity: 0; }
.er-steps.is-auto .er-step[aria-current="step"] .er-step__bar { opacity: 1; animation: er-progress 5s linear forwards; }
.er-steps.is-auto.is-paused .er-step__bar { animation-play-state: paused; }

.er-stage {
	flex: 1.6 1 460px; min-width: 0; min-height: 420px; background-color: var(--surface);
	background-image: radial-gradient(#E1E4EA 1.2px, transparent 1.2px); background-size: 20px 20px;
	display: grid; align-items: center; justify-items: center; padding: 32px 20px;
}
.er-stage__panel {
	grid-area: 1 / 1; width: 100%; max-width: 420px; opacity: 0; visibility: hidden;
	transform: translateY(18px) scale(.97);
	transition: opacity .45s var(--ease), transform .6s var(--ease), visibility 0s .45s;
}
.er-stage__panel.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: .1s, .1s, 0s; }
.er-stage__panel--doc { max-width: 340px; }

.er-card { background: var(--white); border-radius: 20px; border: 1px solid var(--line); box-shadow: 0 24px 50px rgba(11, 21, 48, .08); padding: 20px; }
.er-card--search { padding: 18px; }
.er-card__title { font-size: 15px; font-weight: 600; }

.er-search { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--surface); font-size: 14px; }
.er-search__caret { display: inline-block; width: 1.5px; height: 16px; margin-left: -8px; background: var(--blue); animation: er-blink 1s steps(1) infinite; }
.er-results { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.er-result { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); }
.er-result--on { border: 1.5px solid var(--blue); background: var(--blue-50); }
.er-result__ico { width: 36px; height: 36px; border-radius: 10px; flex: none; }
.er-result__name { font-size: 14px; font-weight: 600; }
.er-result__name small { display: block; font-size: 12px; font-weight: 400; color: var(--muted-2); }
.er-result__check { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; background: var(--blue); color: var(--white); font-size: 12px; display: flex; align-items: center; justify-content: center; }
.er-stage__panel.is-active .er-result { animation: er-slide-in .5s var(--ease) backwards; animation-delay: calc(var(--i) * 80ms + 200ms); }
.er-stage__panel.is-active .er-result__check { animation: er-pop .5s var(--ease-spring) .55s backwards; }

.er-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.er-tag { padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; }
.er-tag--on { background: var(--blue); border-color: var(--blue); color: var(--white); font-weight: 600; }
.er-stage__panel.is-active .er-tag { animation: er-pop .45s var(--ease-spring) backwards; animation-delay: calc(var(--i) * 60ms + 200ms); }
.er-fields { display: flex; gap: 10px; margin-top: 16px; }
.er-field { flex: 1; padding: 12px 14px; border-radius: 12px; background: var(--surface); font-size: 13px; color: var(--muted-2); }
.er-field b { display: block; color: var(--ink); font-weight: 600; font-size: 14px; margin-top: 2px; }
.er-upload { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 12px; border: 1px dashed #C9CED8; font-size: 13px; color: var(--ink-2); }
.er-upload__ico { width: 30px; height: 30px; border-radius: 8px; background: var(--blue-100); }
.er-upload__ok { margin-left: auto; color: #1C7A28; font-weight: 600; }
.er-stage__panel.is-active .er-upload__ok { animation: er-pop .5s var(--ease-spring) .6s backwards; }

.er-recap { margin-top: 14px; padding: 14px; border-radius: 14px; background: var(--surface); font-size: 13px; display: flex; flex-direction: column; gap: 8px; }
.er-recap div { display: flex; justify-content: space-between; color: var(--muted); }
.er-recap .er-recap__total { font-weight: 700; font-size: 15px; padding-top: 8px; border-top: 1px dashed #D3D7E0; color: var(--ink); }
.er-pay { display: flex; gap: 8px; margin-top: 12px; }
.er-pay div { flex: 1; padding: 12px; border-radius: 12px; border: 1px solid var(--line); font-size: 13px; }
.er-pay .er-pay--on { border: 1.5px solid var(--blue); background: var(--blue-50); font-weight: 600; }
.er-paybtn {
	position: relative; overflow: hidden; margin-top: 14px; min-height: 44px; border-radius: 999px; background: var(--blue); color: var(--white);
	font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: center;
}
.er-paybtn::after {
	content: ""; position: absolute; inset: 0; transform: translateX(-120%);
	background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
}
.er-stage__panel.is-active .er-paybtn::after { animation: er-shine 2.4s var(--ease) .6s infinite; }

.er-doc { position: relative; background: var(--white); border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 24px 50px rgba(11, 21, 48, .10); padding: 24px; }
.er-doc__school { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--muted-2); }
.er-doc__title { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; font-stretch: 125%; margin-top: 4px; }
.er-doc__lines { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.er-doc__lines span { height: 8px; border-radius: 4px; background: #E9EEF8; transform-origin: left; }
.er-stage__panel.is-active .er-doc__lines span { animation: er-grow .7s var(--ease) backwards; animation-delay: calc(var(--i) * 90ms + 250ms); }
.er-doc__foot { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 22px; }
.er-doc__foot span { font-size: 11px; color: var(--muted-2); }
.er-stamp { position: absolute; right: -14px; top: 54px; padding: 8px 14px; border-radius: 999px; background: var(--green); font-size: 14px; font-weight: 700; transform: rotate(-6deg); }
.er-stage__panel.is-active .er-stamp { animation: er-stamp .6s var(--ease-spring) .75s backwards; }

/* ---------- Pour qui ---------- */

.er-head--who .er-h2 { max-width: 760px; }
.er-who { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.er-who__card { border-radius: 22px; border: 1px solid var(--line); overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s; }
.er-who__card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(11, 21, 48, .08); border-color: var(--line-2); }
.er-who__top { height: 150px; background: var(--surface); display: flex; align-items: center; justify-content: center; }
.er-who__tag { padding: 10px 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: 13px; font-weight: 600; transition: transform .5s var(--ease-spring); }
.er-who__tag--green { background: var(--green); border-color: var(--green); font-weight: 700; }
.er-who__card:hover .er-who__tag { transform: scale(1.06) rotate(-2deg); }
.er-who__body { padding: 18px 20px 22px; }
.er-who__t { font-size: 16px; font-weight: 600; }
.er-who__d { font-size: 13px; color: var(--muted-2); margin-top: 4px; line-height: 1.5; }

/* ---------- Établissements ---------- */

.er-schools {
	position: relative; overflow: hidden; border-radius: 28px; background: var(--ink); color: var(--white);
	padding: clamp(28px, 5vw, 56px); display: flex; flex-wrap: wrap; gap: 40px; align-items: center;
}
.er-schools::before {
	content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -220px; border-radius: 50%;
	background: radial-gradient(circle, rgba(0, 66, 172, .55), transparent 65%); pointer-events: none;
	animation: er-drift 14s ease-in-out infinite alternate;
}
.er-schools > * { position: relative; }
.er-schools__text { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.er-schools .er-pill { align-self: flex-start; border-color: rgba(255, 255, 255, .2); color: #C9D2E3; }
.er-schools__title { margin: 0; font-weight: 600; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.08; letter-spacing: -0.035em; font-stretch: 125%; }
.er-schools__p { margin: 0; font-size: 15px; line-height: 1.6; color: #C9D2E3; }
.er-schools__cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.er-dash { flex: 1.3 1 420px; min-width: 0; background: var(--white); color: var(--ink); border-radius: 20px; padding: 18px; }
.er-dash__head { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px 14px; }
.er-dash__head b { font-size: 15px; }
.er-dash__head span { font-size: 12px; color: var(--muted-2); }
.er-dash__scroll { overflow-x: auto; }
.er-table { width: 100%; min-width: 420px; border-collapse: collapse; font-size: 13px; }
.er-table thead tr { color: var(--muted-2); text-align: left; }
.er-table th { padding: 10px 8px; font-weight: 500; }
.er-table tbody tr { border-top: 1px solid var(--line); transition: background-color .25s; }
.er-table tbody tr:hover { background: #FAFBFC; }
.er-table td { padding: 12px 8px; }
.er-table .er-ref { color: var(--muted-2); }
.er-table .er-doc-name { font-weight: 600; }
.er-table .er-act { text-align: right; }
.er-table .er-act a { font-weight: 600; text-decoration: none; }
.er-table .er-act--muted { color: var(--muted-2); }
.er-status { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.er-status--sign { background: #FFF4D6; color: #7A5600; }
.er-status--paid { background: var(--blue-100); color: var(--blue); }
.er-status--done { background: var(--green-100); color: #1C6A25; }
.er-status--sign::before {
	content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%;
	background: currentColor; vertical-align: middle; animation: er-pulse 1.6s ease-in-out infinite;
}
.er-dash.is-in tbody tr { animation: er-slide-in .6s var(--ease) backwards; animation-delay: calc(var(--i) * 120ms + 300ms); }

/* ---------- Confiance ---------- */

.er-section--trust { padding-top: 56px; }
.er-trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.er-trust__item { display: flex; gap: 12px; align-items: center; padding: 18px; border-radius: 18px; background: var(--surface); font-size: 14px; font-weight: 600; transition: background-color .3s, transform .4s var(--ease); }
.er-trust__item:hover { background: var(--blue-50); transform: translateY(-3px); }
.er-trust__item svg { flex: none; transition: transform .5s var(--ease-spring); }
.er-trust__item:hover svg { transform: scale(1.18) rotate(-6deg); }

/* ---------- FAQ ---------- */

.er-section--faq { max-width: 860px; }
.er-head--faq { margin-bottom: 32px; }
.er-faq { display: flex; flex-direction: column; gap: 8px; }
.er-faq details { border-radius: 18px; background: var(--surface); padding: 0 22px; overflow: hidden; transition: background-color .3s; }
.er-faq details:hover { background: #F0F2F5; }
.er-faq summary {
	display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 60px;
	font-size: 15px; font-weight: 600; list-style: none; cursor: pointer;
}
.er-faq summary::-webkit-details-marker { display: none; }
.er-faq .pm { font-size: 22px; transition: transform .35s var(--ease-spring); }
.er-faq details[open]:not(.is-closing) .pm { transform: rotate(45deg); }
.er-faq p { margin: 0; padding: 0 0 20px; font-size: 14px; line-height: 1.6; color: var(--muted); }

/* ---------- CTA final ---------- */

.er-cta { padding: 96px 20px; background-image: radial-gradient(#E3E6EC 1.2px, transparent 1.2px); background-size: 22px 22px; }
.er-cta__inner { max-width: 820px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.er-cta__logo { width: 88px; height: 88px; display: block; animation: er-float 5s ease-in-out infinite; }
.er-cta__title { margin: 0; font-weight: 600; font-size: clamp(34px, 5vw, 64px); line-height: 1.04; letter-spacing: -0.04em; font-stretch: 125%; }
.er-cta__text { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted); max-width: 520px; }
.er-cta__btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* ---------- Pied de page ---------- */

.er-footer { border-top: 1px solid var(--line); }
.er-footer__main { max-width: 1280px; margin: 0 auto; padding: 48px 20px 36px; display: flex; flex-wrap: wrap; gap: 36px; justify-content: space-between; }
.er-footer__brand { display: flex; flex-direction: column; gap: 12px; max-width: 300px; }
.er-footer__logo { display: flex; align-items: center; gap: 12px; }
.er-footer__logo img:first-child { width: 52px; height: 52px; display: block; }
.er-footer__logo img:last-child { height: 20px; width: auto; display: block; }
.er-footer__brand p { margin: 0; font-size: 13px; color: var(--muted-2); line-height: 1.6; }
.er-footer__cols { display: flex; gap: 48px; flex-wrap: wrap; font-size: 13px; }
.er-footer__col { display: flex; flex-direction: column; gap: 10px; }
.er-footer__col > span:first-child { color: var(--muted-2); }
.er-footer__col a { color: var(--ink); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease), color .2s; }
.er-footer__col a:hover { color: var(--blue); background-size: 100% 1px; }
.er-footer__bottom {
	max-width: 1280px; margin: 0 auto; padding: 18px 20px 32px; display: flex; justify-content: space-between;
	flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--muted-2); border-top: 1px solid var(--line);
}

/* ---------- Barre de progression de lecture & retour en haut ---------- */

.er-progress { position: fixed; top: 0; left: 0; z-index: 30; height: 2px; width: 100%; background: var(--blue); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.admin-bar .er-progress { top: 32px; }
@media (max-width: 782px) { .admin-bar .er-progress { top: 46px; } }
@media (max-width: 600px) { .admin-bar .er-progress { top: 0; } }

.er-top {
	position: fixed; right: 20px; bottom: 20px; z-index: 15; width: 48px; height: 48px; border-radius: 50%;
	border: 1px solid var(--line-2); background: var(--white); box-shadow: 0 12px 30px rgba(11, 21, 48, .12);
	display: inline-flex; align-items: center; justify-content: center; padding: 0;
	opacity: 0; visibility: hidden; transform: translateY(12px) scale(.9);
	transition: opacity .3s, transform .4s var(--ease-spring), visibility 0s .3s;
}
.er-top.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.er-top:hover { transform: translateY(-3px); }

/* ---------- Apparition au défilement ---------- */

.js .er-reveal { opacity: 0; }
.js .er-reveal.is-in { opacity: 1; animation: er-up .8s var(--ease) var(--d, 0ms) backwards; }
.js .er-reveal--zoom.is-in { animation-name: er-zoom; animation-duration: 1.1s; }

@keyframes er-up { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes er-zoom { from { opacity: 0; transform: translateY(30px) scale(.965); } to { opacity: 1; transform: none; } }
@keyframes er-slide-in { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
@keyframes er-pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes er-grow { from { transform: scaleX(0); } to { transform: none; } }
@keyframes er-stamp { from { opacity: 0; transform: rotate(-22deg) scale(2.2); } to { opacity: 1; transform: rotate(-6deg); } }
@keyframes er-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes er-blink { 50% { opacity: 0; } }
@keyframes er-shine { 0% { transform: translateX(-120%); } 55%, 100% { transform: translateX(120%); } }
@keyframes er-float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(3deg); } }
@keyframes er-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
@keyframes er-drift { from { transform: translate(0, 0); } to { transform: translate(-90px, 70px); } }
@keyframes er-nudge { 0% { transform: translateY(0); } 40% { transform: translateY(-4px); } 100% { transform: translateY(0); } }
@keyframes er-shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }

/* ---------- Pages intérieures (articles, pages, 404) ---------- */

.er-page { max-width: 860px; margin: 0 auto; padding: 72px 20px 96px; }
.er-page__title { margin: 0 0 12px; font-weight: 600; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.06; letter-spacing: -0.035em; font-stretch: 125%; }
.er-page__meta { font-size: 13px; color: var(--muted-2); margin-bottom: 32px; }
.er-content { font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.er-content h2, .er-content h3, .er-content h4 { color: var(--ink); font-stretch: 125%; letter-spacing: -0.02em; line-height: 1.15; margin: 1.8em 0 .6em; }
.er-content img { height: auto; border-radius: 18px; }
.er-content blockquote { margin: 1.5em 0; padding: 18px 22px; border-radius: 18px; background: var(--surface); }
.er-content pre { overflow-x: auto; padding: 18px; border-radius: 14px; background: var(--ink); color: var(--white); font-size: 14px; }
.er-content table { width: 100%; border-collapse: collapse; }
.er-content th, .er-content td { padding: 10px 8px; border-top: 1px solid var(--line); text-align: left; }
.er-content .alignwide { margin-left: -60px; margin-right: -60px; max-width: none; }
.er-content .alignleft { float: left; margin: 0 1.5em 1em 0; }
.er-content .alignright { float: right; margin: 0 0 1em 1.5em; }
.er-content .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-size: 13px; color: var(--muted-2); }
.sticky, .bypostauthor { display: block; }
.er-posts { display: flex; flex-direction: column; gap: 14px; }
.er-post { padding: 22px 24px; border-radius: 22px; border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.er-post:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(11, 21, 48, .08); }
.er-post h2 { margin: 0 0 6px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; font-stretch: 125%; }
.er-post h2 a { color: var(--ink); text-decoration: none; }
.er-post p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.er-pagination { margin-top: 32px; display: flex; gap: 8px; flex-wrap: wrap; }
.er-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; }
.er-pagination .page-numbers.current { background: var(--ink); border-color: var(--ink); color: var(--white); }
@media (max-width: 1000px) { .er-content .alignwide { margin-left: 0; margin-right: 0; } }

/* ---------- Mouvement réduit ---------- */

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; animation-delay: 0s !important; }
	.js .er-reveal, .js .er-hero__title .er-word { opacity: 1; transform: none; filter: none; }
	.er-step__bar, .er-search__caret, .er-progress { display: none; }
}
