/* ==========================================================================
   Startup Education Cloud — feuille de style principale
   Signature : la page de cahier Seyès (lignes bleues, marge rouge,
   encre bleue, surligneur jaune).
   ========================================================================== */

:root {
	--paper: #fbfcff;
	--paper-2: #f1f4fc;
	--line: #c9d6f0;
	--line-strong: #a9bfe8;
	--margin: #d8414f;
	--ink: #1f2d7a;
	--ink-deep: #141d52;
	--highlight: #ffe14d;
	--highlight-deep: #f5cc00;
	--text: #171c33;
	--muted: #4f5674;
	--white: #ffffff;

	--font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
	--font-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
	--font-hand: "Caveat", "Segoe Print", cursive;

	/* Échelle typographique (quarte augmentée ≈ 1.333) */
	--fs-xs: 0.8125rem;
	--fs-sm: 0.9375rem;
	--fs-base: 1.0625rem;
	--fs-md: 1.25rem;
	--fs-lg: 1.6875rem;
	--fs-xl: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
	--fs-2xl: clamp(2.25rem, 1.4rem + 3.6vw, 3.75rem);

	--seyes: 8px;
	--radius-s: 4px;
	--radius-m: 10px;
	--wrap: 1180px;
	--gutter: clamp(16px, 4vw, 40px);
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; overflow-x: clip; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--text);
	font-family: var(--font-body);
	font-size: var(--fs-base);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; }

a { color: var(--ink); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--margin); }

h1, h2, h3, h4 {
	font-family: var(--font-display);
	color: var(--ink-deep);
	line-height: 1.15;
	letter-spacing: -0.01em;
	margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

:focus-visible {
	outline: 3px solid var(--margin);
	outline-offset: 3px;
	border-radius: 2px;
}

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

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

.skip-link {
	position: absolute;
	left: 12px; top: -60px;
	z-index: 100;
	padding: 10px 16px;
	background: var(--highlight);
	color: var(--ink-deep);
	font-weight: 700;
}
.skip-link:focus { top: 12px; }

.icon { flex: none; }

/* Boutons -------------------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 22px;
	border: 2px solid transparent;
	border-radius: var(--radius-s);
	font-family: var(--font-body);
	font-size: var(--fs-base);
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--small { min-height: 40px; padding: 8px 16px; font-size: var(--fs-sm); }

.btn--highlight { background: var(--highlight); color: var(--ink-deep); border-color: var(--ink-deep); box-shadow: 3px 3px 0 var(--ink-deep); }
.btn--highlight:hover { background: var(--highlight-deep); color: var(--ink-deep); }

.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: var(--ink-deep); color: var(--white); }

.btn--ink-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ink-line:hover { background: var(--ink); color: var(--white); }

.btn--paper-line { background: transparent; color: var(--white); border-color: var(--white); }
.btn--paper-line:hover { background: var(--white); color: var(--ink-deep); }

/* En-tête -------------------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(251, 252, 255, 0.94);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }

.site-header .wrap { max-width: 1340px; }
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 72px;
}

.custom-logo-link img { max-height: 52px; width: auto; display: block; }

.logotype {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: var(--ink-deep);
}
.logotype__mark {
	display: grid;
	place-items: center;
	width: 40px; height: 40px;
	background: var(--ink);
	color: var(--highlight);
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 1rem;
	border-radius: var(--radius-s);
	box-shadow: inset 4px 0 0 var(--margin);
}
.logotype__name {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 1.125rem;
	letter-spacing: -0.02em;
	line-height: 1;
	white-space: nowrap;
}
.logotype__tld { color: var(--margin); }

.nav-toggle { display: none; }

.site-nav { display: flex; align-items: center; gap: 20px; }

.site-nav .menu {
	display: flex;
	align-items: center;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.site-nav .menu > li { position: relative; }
.site-nav .menu a {
	display: block;
	padding: 10px 9px;
	color: var(--text);
	font-weight: 700;
	font-size: var(--fs-sm);
	text-decoration: none;
	white-space: nowrap;
	border-radius: var(--radius-s);
}
.site-nav .menu a:hover { color: var(--ink); background: var(--paper-2); }
.site-nav .current-menu-item > a,
.site-nav .current-menu-ancestor > a { color: var(--ink); box-shadow: inset 0 -3px 0 var(--highlight); }

.site-nav .menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 6px; height: 6px;
	margin-left: 8px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-3px) rotate(45deg);
}

.site-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	margin: 0;
	padding: 8px;
	list-style: none;
	background: var(--white);
	border: 1px solid var(--line-strong);
	border-left: 3px solid var(--margin);
	border-radius: 0 var(--radius-s) var(--radius-s) 0;
	box-shadow: 0 12px 28px rgba(20, 29, 82, 0.12);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.site-nav .menu > li:hover > .sub-menu,
.site-nav .menu > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.site-nav .sub-menu a { font-weight: 400; }

.site-nav__account { display: flex; align-items: center; gap: 16px; }
.site-nav__login { font-weight: 700; font-size: var(--fs-sm); text-decoration: none; white-space: nowrap; }

@media (max-width: 1320px) {
	/* backdrop-filter crée un bloc conteneur pour le panneau fixe : on l'enlève */
	.site-header { backdrop-filter: none; background: var(--paper); }
	.nav-toggle {
		display: grid;
		place-items: center;
		width: 48px; height: 48px;
		background: transparent;
		border: 2px solid var(--ink);
		border-radius: var(--radius-s);
		color: var(--ink);
		cursor: pointer;
	}
	.nav-toggle__close { display: none; }
	.nav-open .nav-toggle__open { display: none; }
	.nav-open .nav-toggle__close { display: block; }

	.site-nav {
		position: fixed;
		inset: 72px 0 0 0;
		flex-direction: column;
		align-items: stretch;
		gap: 24px;
		padding: 24px var(--gutter) 40px;
		background: var(--paper);
		overflow-y: auto;
		transform: translateX(100%);
		visibility: hidden;
		transition: transform .25s ease, visibility .25s;
	}
	.admin-bar .site-nav { top: 118px; }
	.nav-open .site-nav { transform: none; visibility: visible; }
	.nav-open { overflow: hidden; }

	.site-nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
	.site-nav .menu > li { border-bottom: 1px solid var(--line); }
	.site-nav .menu a { padding: 14px 4px; font-size: var(--fs-base); }
	.site-nav .sub-menu {
		position: static;
		opacity: 1; visibility: visible; transform: none;
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		padding: 0 0 12px 12px;
		border: 0;
		box-shadow: none;
		background: transparent;
	}
	.site-nav .sub-menu a { padding: 8px 4px; font-size: var(--fs-sm); }
	.site-nav .menu-item-has-children > a::after { display: none; }
	.site-nav__account { flex-direction: column; align-items: stretch; }
	.site-nav__account .btn { width: 100%; }
	.site-nav__login { text-align: center; padding: 8px; }
}

/* Hero : la page de cahier ------------------------------------------- */
.hero__paper {
	position: relative;
	background-color: var(--white);
	background-image:
		/* lignes verticales Seyès */
		repeating-linear-gradient(90deg, transparent 0 calc(var(--seyes) * 4 - 1px), var(--line) calc(var(--seyes) * 4 - 1px) calc(var(--seyes) * 4)),
		/* grosses lignes horizontales */
		repeating-linear-gradient(180deg, transparent 0 calc(var(--seyes) * 4 - 1px), var(--line-strong) calc(var(--seyes) * 4 - 1px) calc(var(--seyes) * 4)),
		/* petites lignes horizontales */
		repeating-linear-gradient(180deg, transparent 0 calc(var(--seyes) - 1px), #e4eaf8 calc(var(--seyes) - 1px) var(--seyes));
	border-bottom: 1px solid var(--line-strong);
	overflow: hidden;
}

.hero__grid {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: clamp(32px, 5vw, 72px);
	align-items: center;
	padding-block: clamp(48px, 7vw, 96px);
}

/* La marge rouge du cahier, qui se trace au chargement */
.hero__copy {
	position: relative;
	padding-left: clamp(24px, 4vw, 48px);
}
.hero__copy::before {
	content: "";
	position: absolute;
	left: 0; top: -200px; bottom: -200px;
	width: 2px;
	background: var(--margin);
	box-shadow: 6px 0 0 -0.5px rgba(216, 65, 79, 0.45);
	transform-origin: top;
	animation: sec-margin 0.9s cubic-bezier(.6, 0, .2, 1) both;
}
@keyframes sec-margin { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.hero__date {
	font-family: var(--font-hand);
	font-size: 1.5rem;
	color: var(--margin);
	margin-bottom: 8px;
	text-transform: capitalize;
}

.hero__title {
	font-size: var(--fs-2xl);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.04;
	color: var(--ink);
	max-width: 15ch;
	margin-bottom: 20px;
}

.hero__text {
	font-size: var(--fs-md);
	color: var(--muted);
	max-width: 52ch;
	margin-bottom: 28px;
	background: rgba(255, 255, 255, 0.86);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__actions .btn--ink-line { background: var(--white); }

.hero__note {
	font-family: var(--font-hand);
	font-size: 2rem;
	line-height: 1;
	color: var(--ink);
	margin: 0 0 14px 4px;
	transform: rotate(-2deg);
}

.classpicker {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.classpicker li:last-child { grid-column: span 4; }

.classpicker__item {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 104px;
	padding: 14px 14px 12px;
	background: var(--white);
	border: 2px solid var(--ink);
	border-radius: var(--radius-s);
	color: var(--ink-deep);
	text-decoration: none;
	box-shadow: 4px 4px 0 var(--ink);
	transition: transform .15s ease, box-shadow .15s ease;
	isolation: isolate;
	overflow: hidden;
}
/* Coup de surligneur au survol */
.classpicker__item::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--highlight);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .25s ease;
}
.classpicker__item:hover,
.classpicker__item:focus-visible { color: var(--ink-deep); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.classpicker__item:hover::before,
.classpicker__item:focus-visible::before { transform: scaleX(1); }

.classpicker__label {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 1.875rem;
	letter-spacing: -0.03em;
	line-height: 1;
}
.classpicker__cycle { font-size: var(--fs-xs); color: var(--muted); }

.classpicker__item--wide {
	min-height: 72px;
	flex-direction: row;
	align-items: center;
	background: var(--ink);
	color: var(--white);
}
.classpicker__item--wide .classpicker__cycle { color: #c6cff3; }
.classpicker__item--wide:hover .classpicker__cycle,
.classpicker__item--wide:focus-visible .classpicker__cycle { color: var(--muted); }
.classpicker__item--wide .classpicker__label { font-size: 1.5rem; }

/* Photos Unsplash ------------------------------------------------------ */
.photo { position: relative; margin: 0; }
.photo img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: var(--ratio, 4/3);
	object-fit: cover;
	background: var(--paper-2);
	border-radius: var(--radius-s);
}
.photo__credit {
	margin-top: 6px;
	font-size: var(--fs-xs);
	color: var(--muted);
}
.photo__credit a { color: inherit; }

/* Photo « collée dans le cahier » : cadre blanc, scotch, légère rotation */
.photo--taped {
	padding: 10px 10px 6px;
	background: var(--white);
	box-shadow: 0 1px 0 var(--line-strong), 0 14px 30px rgba(20, 29, 82, 0.16);
	transform: rotate(-1.6deg);
}
.photo--taped img { border-radius: 2px; }
.photo--taped::before {
	content: "";
	position: absolute;
	top: -12px; left: 50%;
	width: 110px; height: 26px;
	margin-left: -55px;
	background: rgba(255, 225, 77, 0.78);
	transform: rotate(2.5deg);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.photo--page-head.photo--taped { transform: rotate(1.4deg); }

.hero__aside { display: flex; flex-direction: column; }
.hero__photo { width: min(100%, 420px); align-self: flex-end; margin: 0 4px 28px 0; }
@media (max-width: 900px) { .hero__photo { align-self: center; } }

.spaces__photo { margin-top: 32px; }
.spaces__photo img { border-radius: var(--radius-m); }

.quote__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
	gap: clamp(32px, 6vw, 80px);
	align-items: center;
}
.quote__photo img { border-radius: var(--radius-m); }
@media (max-width: 860px) {
	.quote__grid { grid-template-columns: 1fr; }
	.quote__photo { max-width: 420px; }
}

/* Chiffres */
.stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 0;
	border-bottom: 1px solid var(--line);
}
.stats__item { padding: 28px 24px 28px 0; }
.stats__item + .stats__item { padding-left: 24px; border-left: 1px solid var(--line); }
.stats__value {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: var(--fs-xl);
	color: var(--ink);
	line-height: 1.1;
}
.stats__label { margin: 4px 0 0; color: var(--muted); font-size: var(--fs-sm); }

@media (max-width: 900px) {
	.hero__grid { grid-template-columns: 1fr; }
	.hero__title { max-width: 18ch; }
}
@media (max-width: 560px) {
	.classpicker { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.classpicker li:last-child { grid-column: span 2; }
	.classpicker__item { min-height: 84px; }
	.stats { grid-template-columns: 1fr; }
	.stats__item, .stats__item + .stats__item { padding: 18px 0; border-left: 0; }
	.stats__item + .stats__item { border-top: 1px solid var(--line); }
}

/* Sections ------------------------------------------------------------ */
.section { padding-block: clamp(56px, 8vw, 104px); }

.section__head { max-width: 640px; margin-bottom: 40px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__title { font-size: var(--fs-xl); font-weight: 800; letter-spacing: -0.025em; }
.section__lead { font-size: var(--fs-md); color: var(--muted); }

/* Espaces */
.spaces__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: clamp(32px, 6vw, 88px);
	align-items: start;
}
.spaces__grid .section__head { position: sticky; top: 110px; margin: 0; }
.spaces__list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.spaces__item {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr);
	gap: 20px;
	padding: 26px 0;
	border-bottom: 1px solid var(--line-strong);
}
.spaces__icon {
	display: grid;
	place-items: center;
	width: 56px; height: 56px;
	background: var(--paper-2);
	color: var(--ink);
	border-radius: 50%;
}
.spaces__icon .icon { width: 28px; height: 28px; }
.spaces__title { font-size: var(--fs-lg); margin-bottom: 6px; }
.spaces__title a { text-decoration: none; color: var(--ink-deep); }
.spaces__title a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--highlight-deep); text-decoration-thickness: 4px; }
.spaces__text { margin: 0; color: var(--muted); max-width: 56ch; }

@media (max-width: 860px) {
	.spaces__grid { grid-template-columns: 1fr; }
	.spaces__grid .section__head { position: static; }
}

/* Tuteur IA */
.tutor { background: var(--ink-deep); color: #dfe4fb; }
.tutor .section__title { color: var(--white); }
.tutor .section__lead { color: #c6cff3; }
.tutor__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(32px, 6vw, 80px);
	align-items: center;
}
.checklist { list-style: none; margin: 0 0 32px; padding: 0; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; padding: 6px 0; }
.checklist .icon { color: var(--highlight); margin-top: 2px; }

.chat {
	margin: 0;
	background: var(--white);
	background-image: repeating-linear-gradient(180deg, transparent 0 31px, #e4eaf8 31px 32px);
	border-radius: var(--radius-m);
	color: var(--text);
	overflow: hidden;
	box-shadow: 10px 10px 0 var(--highlight);
}
.chat__bar {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 20px;
	background: var(--paper-2);
	border-bottom: 1px solid var(--line);
	font-weight: 700;
	color: var(--ink);
}
.chat__dot { width: 10px; height: 10px; border-radius: 50%; background: #2fa866; }
.chat__body { display: flex; flex-direction: column; gap: 12px; padding: 22px 20px 26px; }
.chat__msg {
	max-width: 86%;
	margin: 0;
	padding: 10px 14px;
	border-radius: 14px;
	font-size: var(--fs-sm);
	line-height: 1.45;
}
.chat__msg--me { align-self: flex-end; background: var(--ink); color: var(--white); border-bottom-right-radius: 4px; }
.chat__msg--ai { align-self: flex-start; background: var(--paper-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; }

@media (max-width: 860px) { .tutor__grid { grid-template-columns: 1fr; } }

/* Abonnements */
.plans {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	align-items: stretch;
}
.plan {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 32px 28px;
	background: var(--white);
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-m);
}
.plan--featured { border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.plan__flag {
	position: absolute;
	top: -15px; left: 24px;
	margin: 0;
	padding: 4px 12px;
	background: var(--highlight);
	border: 2px solid var(--ink);
	border-radius: 999px;
	font-size: var(--fs-xs);
	font-weight: 700;
	color: var(--ink-deep);
}
.plan__name { font-size: var(--fs-lg); margin-bottom: 4px; }
.plan__pitch { color: var(--muted); font-size: var(--fs-sm); }
.plan__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 8px 0 24px; padding-bottom: 20px; border-bottom: 1px dashed var(--line-strong); }
.plan__amount { font-family: var(--font-display); font-weight: 800; font-size: 2.5rem; line-height: 1; color: var(--ink); letter-spacing: -0.03em; }
.plan__unit { color: var(--muted); font-size: var(--fs-sm); }
.plan__features { list-style: none; margin: 0 0 28px; padding: 0; flex: 1; }
.plan__features li { display: flex; gap: 10px; padding: 6px 0; font-size: var(--fs-sm); }
.plan__features .icon { color: #2fa866; width: 20px; height: 20px; margin-top: 1px; }
.plan__cta { width: 100%; }

@media (max-width: 900px) {
	.plans { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; gap: 36px; }
}

/* Témoignage */
.quote { background: var(--paper-2); }
.quote__inner { max-width: 860px; border-left: 3px solid var(--margin); padding-left: clamp(20px, 4vw, 48px); }
.quote__text { margin: 0 0 20px; }
.quote__text p {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: clamp(1.375rem, 1rem + 1.4vw, 2rem);
	line-height: 1.3;
	letter-spacing: -0.015em;
	color: var(--ink-deep);
	margin: 0;
}
.quote__by { color: var(--muted); margin: 0; }
.quote__by strong { color: var(--text); }

/* Appel final */
.final-cta { background: var(--ink); color: var(--white); }
.final-cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.final-cta__title { color: var(--white); font-size: var(--fs-xl); font-weight: 800; margin: 0; max-width: 18ch; }
.final-cta__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.final-cta .btn--highlight { box-shadow: 3px 3px 0 var(--ink-deep); }

/* Pied de page -------------------------------------------------------- */
.site-footer { background: var(--ink-deep); color: #c6cff3; font-size: var(--fs-sm); }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--highlight); text-decoration: underline; }
.site-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
	gap: 40px;
	padding-block: 64px 40px;
}
.site-footer .logotype { color: var(--white); margin-bottom: 16px; }
.site-footer .logotype__mark { background: var(--highlight); color: var(--ink-deep); }
.site-footer .logotype__tld { color: var(--highlight); }
.site-footer__about p { max-width: 38ch; }
.site-footer__title { color: var(--white); font-size: var(--fs-base); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 4px 0; }
.contact-list li { display: flex; gap: 10px; align-items: center; }
.contact-list .icon { width: 18px; height: 18px; color: var(--highlight); }
.socials { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px !important; }
.site-footer__bottom { padding-block: 20px 28px; border-top: 1px solid rgba(198, 207, 243, 0.2); }
.site-footer__bottom p { margin: 0; }

@media (max-width: 900px) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-footer__about { grid-column: span 2; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } .site-footer__about { grid-column: auto; } }

/* Pages internes ------------------------------------------------------ */
.page-head {
	background-color: var(--white);
	background-image:
		repeating-linear-gradient(180deg, transparent 0 calc(var(--seyes) * 4 - 1px), var(--line) calc(var(--seyes) * 4 - 1px) calc(var(--seyes) * 4));
	border-bottom: 1px solid var(--line-strong);
	padding-block: clamp(40px, 6vw, 72px);
}
.page-head__text { border-left: 2px solid var(--margin); padding-left: clamp(16px, 3vw, 32px); }
.page-head--photo { padding-block: clamp(32px, 5vw, 56px); }
.page-head--photo .page-head__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
	gap: clamp(28px, 5vw, 72px);
	align-items: center;
}
.photo--page-head { max-width: 440px; justify-self: end; width: 100%; }
@media (max-width: 860px) {
	.page-head--photo .page-head__grid { grid-template-columns: 1fr; }
	.photo--page-head { justify-self: start; max-width: 520px; }
}
.page-head__crumb { margin-bottom: 6px; font-weight: 700; font-size: var(--fs-sm); }
.page-head__crumb a { text-decoration: none; }
.page-head__title { font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -0.03em; color: var(--ink); margin-bottom: 12px; }
.page-head__lead { font-size: var(--fs-md); color: var(--muted); max-width: 60ch; margin: 0; background: rgba(255, 255, 255, 0.86); }
.page-head__meta { color: var(--muted); margin: 0; }
.page-head .searchform { margin-top: 24px; }

.entry { padding-block: clamp(40px, 6vw, 72px); }
.entry__content > *:not(.alignfull):not(.alignwide):not(.resources):not(.class-grid):not(.account):not(.dashboard) { max-width: 72ch; }
.entry__content > h2 { font-size: var(--fs-lg); margin-top: 1.6em; }
.entry__content > h3 { font-size: var(--fs-md); margin-top: 1.4em; }
.entry__content img { border-radius: var(--radius-s); }
.entry__thumb { margin: 0 0 32px; }
.entry__nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); }

.alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
}
.alignfull .section { padding-block: clamp(40px, 6vw, 72px); }
.entry__content .alignfull:first-child { margin-top: calc(-1 * clamp(40px, 6vw, 72px)); }
.alignwide { max-width: 1100px; }

/* Grille des classes */
.class-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 16px;
	list-style: none;
	margin: 32px 0;
	padding: 0;
}
.class-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 22px;
	background: var(--white);
	border: 2px solid var(--ink);
	border-radius: var(--radius-s);
	box-shadow: 4px 4px 0 var(--ink);
	color: var(--text);
	text-decoration: none;
	transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.class-card:hover { color: var(--text); background: #fff8cf; transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.class-card__label { font-family: var(--font-display); font-weight: 800; font-size: 1.75rem; color: var(--ink); line-height: 1.1; }
.class-card__cycle { font-size: var(--fs-xs); color: var(--margin); font-weight: 700; margin: 4px 0 10px; }
.class-card__desc { font-size: var(--fs-sm); color: var(--muted); }

/* Ressources */
.filters ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 28px; padding: 0; }
.filters a {
	display: inline-block;
	padding: 8px 16px;
	border: 1.5px solid var(--line-strong);
	border-radius: 999px;
	background: var(--white);
	color: var(--text);
	font-size: var(--fs-sm);
	font-weight: 700;
	text-decoration: none;
}
.filters a:hover { border-color: var(--ink); color: var(--ink); }
.filters a[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }

.resource-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.resource {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 24px;
	padding: 20px 0;
	border-bottom: 1px solid var(--line-strong);
}
.resource__title { font-size: var(--fs-md); margin-bottom: 4px; }
.resource__title a { text-decoration: none; color: var(--ink-deep); }
.resource__title a:hover { text-decoration: underline; color: var(--ink); }
.resource__excerpt { margin: 0; color: var(--muted); font-size: var(--fs-sm); max-width: 70ch; }
.resource__tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; list-style: none; margin: 0; padding: 0; flex: none; }
.resource__tags li { padding: 2px 10px; background: var(--paper-2); border-radius: 999px; font-size: var(--fs-xs); color: var(--ink); font-weight: 700; }
@media (max-width: 640px) { .resource { flex-direction: column; gap: 10px; } .resource__tags { justify-content: flex-start; } }

.pager, .nav-links { display: flex; gap: 12px; justify-content: center; margin-top: 32px; }
.nav-links .page-numbers { padding: 8px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-s); text-decoration: none; }
.nav-links .current { background: var(--ink); border-color: var(--ink); color: var(--white); }

.empty {
	padding: 40px 32px;
	background: var(--white);
	border: 2px dashed var(--line-strong);
	border-radius: var(--radius-m);
	text-align: center;
}
.empty__title { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-md); color: var(--ink); margin-bottom: 6px; }
.empty__admin { margin-top: 16px; padding: 10px 14px; background: #fff8cf; border-radius: var(--radius-s); font-size: var(--fs-sm); text-align: left; }

/* Formulaires */
.searchform { display: flex; gap: 8px; max-width: 560px; }
.searchform input { flex: 1; }

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; margin-top: 24px; max-width: 720px; }
.form__row { grid-column: span 2; display: flex; flex-direction: column; gap: 6px; }
.form__row--half { grid-column: span 1; }
.form__hp { position: absolute; left: -9999px; }
.form .btn { justify-self: start; }
@media (max-width: 560px) { .form__row--half { grid-column: span 2; } }

label { font-weight: 700; font-size: var(--fs-sm); }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="search"], select, textarea {
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	background: var(--white);
	border: 1.5px solid var(--line-strong);
	border-radius: var(--radius-s);
	color: var(--text);
	font: inherit;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: 3px solid rgba(31, 45, 122, 0.18); outline-offset: 0; }

.notice { padding: 14px 18px; border-radius: var(--radius-s); font-weight: 700; }
.notice--ok { background: #e3f6eb; color: #1d6b40; border-left: 4px solid #2fa866; }
.notice--error { background: #fde8ea; color: #9b1f2c; border-left: 4px solid var(--margin); }

/* Espace élève */
.account { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; max-width: 960px; }
.account > div { padding: 32px; background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius-m); }
.account__signup { background: var(--paper-2) !important; }
.account h2 { margin-top: 0 !important; }
#loginform p { display: flex; flex-direction: column; gap: 6px; }
#loginform .login-remember { flex-direction: row; align-items: center; }
#loginform .login-remember label { font-weight: 400; display: flex; gap: 8px; align-items: center; }
#loginform #wp-submit { background: var(--ink); color: var(--white); border: 0; min-height: 48px; padding: 12px 22px; border-radius: var(--radius-s); font: inherit; font-weight: 700; cursor: pointer; }
#loginform #wp-submit:hover { background: var(--ink-deep); }
@media (max-width: 760px) { .account { grid-template-columns: 1fr; } }

.dashboard__hello { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-lg); color: var(--ink); }
.dashboard__links { display: flex; flex-wrap: wrap; gap: 12px; }

/* Commentaires */
.comment-list { list-style: none; padding: 0; }
.comment-body { padding: 16px 0; border-bottom: 1px solid var(--line); }

/* Mouvement réduit ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
}
