/* ==========================================================================
   Espace Langues — styles du site
   Polices : Lexend (titres) & Atkinson Hyperlegible (texte), conçues pour la lisibilité.
   ========================================================================== */

@font-face { font-family: "Lexend"; src: url("../fonts/lexend-var.woff") format("woff"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Archivo Black"; src: url("../fonts/archivo-black.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/atkinson-regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/atkinson-bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/atkinson-italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
	--paper: #fbf8f3;
	--paper-2: #f4efe6;
	--surface: #ffffff;
	--ink: #1c2230;
	--ink-soft: #4b5466;
	--line: #e3ddd2;
	--line-strong: #cfc7b9;
	--primary: #c2412d;
	--primary-dark: #9f3221;
	--primary-tint: #fbe9e4;
	--sun: #f5c84b;
	--sun-tint: #fdf3d5;
	--ok: #13794a;
	--ok-tint: #e3f4ea;
	--ko: #b42318;
	--ko-tint: #fde7e5;
	--info: #24529e;
	--info-tint: #e6eefb;
	--lang: var(--primary);

	--font-head: "Lexend", "Segoe UI", system-ui, sans-serif;
	--font-display: "Archivo Black", "Lexend", "Arial Black", sans-serif;
	--font-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;

	--radius: 18px;
	--radius-sm: 10px;
	--shadow: 0 1px 2px rgba(28, 34, 48, .06), 0 8px 24px rgba(28, 34, 48, .07);
	--shadow-lg: 0 2px 4px rgba(28, 34, 48, .06), 0 18px 48px rgba(28, 34, 48, .12);
	--container: 1200px;
	--gutter: clamp(16px, 4vw, 32px);
	--focus: 0 0 0 3px var(--surface), 0 0 0 6px #1c58d6;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 1.125rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; font-weight: 650; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 2.8vw + 1rem, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 1.4vw + 1rem, 2.1rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
a { color: var(--primary-dark); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { text-decoration-thickness: .14em; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.3em; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
::selection { background: var(--sun); color: var(--ink); }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}
.skip-link {
	position: absolute; left: 16px; top: -100px; z-index: 1000;
	background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--radius-sm); font-weight: 700;
}
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 780px; }
.section { padding: clamp(40px, 6vw, 80px) 0; }
.site-main:focus { outline: none; }

.el-icon { flex: none; vertical-align: middle; }

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

.el-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	min-height: 48px; padding: .65em 1.3em;
	border: 2px solid transparent; border-radius: 999px;
	font-family: var(--font-head); font-weight: 600; font-size: 1rem; line-height: 1.2;
	text-decoration: none; cursor: pointer;
	transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.el-btn:hover { transform: translateY(-1px); }
.el-btn:active { transform: translateY(0); }
.el-btn--primary { background: var(--primary); color: #fff; }
.el-btn--primary:hover { background: var(--primary-dark); color: #fff; }
.el-btn--dark { background: var(--ink); color: #fff; }
.el-btn--dark:hover { background: #000; color: #fff; }
.el-btn--light { background: #fff; color: var(--ink); }
.el-btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.el-btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.el-btn--lg { min-height: 56px; padding: .8em 1.7em; font-size: 1.1rem; }
.el-btn--block { width: 100%; }

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

.site-header {
	position: relative; z-index: 50;
	background: var(--surface);
}

.header-inner { display: flex; align-items: center; gap: 24px; min-height: 96px; padding-top: 14px; padding-bottom: 14px; }

/* Marque : personnage + bulle de dialogue */
.brand { display: flex; align-items: center; gap: 4px; margin-right: auto; text-decoration: none; color: var(--ink); min-width: 0; }
.brand:hover { color: var(--ink); }
.brand-logo {
	width: clamp(64px, 9vw, 130px); height: auto; flex: none;
	position: relative; z-index: 2;
}
.home .has-logo .brand-logo { margin-bottom: clamp(-96px, -6vw, -40px); } /* sur l'accueil, le personnage déborde sur le bandeau */
body:not(.home) .brand-logo { width: clamp(52px, 6vw, 84px); }
.brand-bubble {
	position: relative; display: inline-flex; align-items: center; justify-content: center;
	margin-left: 28px; padding: .55em 1.5em;
	background: #fff; border: 4px solid var(--ink); border-radius: 30px;
	min-width: 0;
}
.brand-bubble::before, .brand-bubble::after {
	content: ""; position: absolute; top: 14px; width: 0; height: 0; border-style: solid;
}
.brand-bubble::before { left: -28px; border-width: 4px 30px 20px 0; border-color: transparent var(--ink) transparent transparent; transform: rotate(-12deg); transform-origin: right top; }
.brand-bubble::after { left: -19px; top: 17px; border-width: 2px 21px 13px 0; border-color: transparent #fff transparent transparent; transform: rotate(-12deg); transform-origin: right top; }
.brand-bubble-text {
	font-family: var(--font-display); font-size: clamp(1.15rem, 2.6vw + .3rem, 2.8rem);
	line-height: 1.15; text-transform: uppercase; letter-spacing: .01em; white-space: nowrap;
}
.brand:hover .brand-bubble { background: var(--sun-tint); }
.brand:hover .brand-bubble::after { border-right-color: var(--sun-tint); }
.brand:focus-visible { box-shadow: none; }
.brand:focus-visible .brand-bubble { box-shadow: var(--focus); }

.site-nav { display: flex; align-items: center; gap: 20px; padding: 8px 8px 8px 16px; background: var(--paper); border-radius: 999px; }
.nav-menu { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-menu a {
	display: block; padding: 10px 14px; border-radius: 999px;
	color: var(--ink); text-decoration: none; font-weight: 700;
}
.nav-menu a:hover, .nav-menu .current-menu-item > a, .nav-menu .current_page_item > a { background: var(--paper-2); }
.nav-menu .current-menu-item > a { box-shadow: inset 0 -3px 0 var(--primary); border-radius: 999px 999px 8px 8px; }
.nav-menu li { position: relative; }
.nav-menu .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 220px; list-style: none; margin: 0; padding: 8px;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow);
	display: none;
}
.nav-menu li:hover > .sub-menu, .nav-menu li:focus-within > .sub-menu { display: block; }
.nav-menu .sub-menu a { border-radius: 8px; }

.nav-toggle {
	display: none; align-items: center; gap: 8px;
	min-height: 48px; padding: 0 16px; border-radius: 999px;
	border: 2px solid var(--line-strong); background: var(--surface); color: var(--ink);
	font: 700 1rem var(--font-body); cursor: pointer;
}

@media (max-width: 960px) {
	.nav-toggle { display: inline-flex; flex: none; }
	.site-nav {
		border-radius: 0;
		position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 12px;
		padding: 16px var(--gutter) 24px;
		background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
		display: none;
	}
	.site-nav.is-open { display: flex; }
	.nav-menu { flex-direction: column; }
	.nav-menu a { padding: 14px 16px; font-size: 1.1rem; }
	.nav-menu .sub-menu { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 0 16px; background: transparent; }
	.header-cta { justify-content: center; }
}

/* ---------- Bannière promo ---------- */

.promo {
	position: sticky; top: 0; z-index: 100;
	display: block; width: 100%; overflow: hidden;
	background: var(--promo-bg, #000); color: var(--promo-fg, #fff);
	text-decoration: none;
	padding: clamp(10px, 1.6vw, 22px) 0;
}
.admin-bar .promo { top: 32px; }
@media (max-width: 782px) { .admin-bar .promo { top: 46px; } }
@media (max-width: 600px) { .admin-bar .promo { top: 0; } }
a.promo:hover, a.promo:focus { color: var(--promo-fg, #fff); }
a.promo:focus-visible { box-shadow: inset 0 0 0 4px var(--promo-fg, #fff); border-radius: 0; }

.promo-track { display: flex; width: max-content; animation: promo-scroll var(--promo-duration, 26s) linear infinite; }
.promo-group { display: flex; flex: none; }
.promo-item { display: inline-flex; align-items: center; gap: clamp(16px, 2vw, 36px); padding-right: clamp(16px, 2vw, 36px); white-space: nowrap; }
.promo-msg { font-family: var(--font-display); font-size: clamp(1.5rem, 4.2vw, 4.5rem); line-height: 1.1; letter-spacing: .01em; }
.promo-cta {
	display: inline-block; padding: .35em .9em; border: 3px solid currentColor; border-radius: 999px;
	font-family: var(--font-head); font-weight: 700; font-size: clamp(.95rem, 1.4vw, 1.4rem);
}
.promo-sep { font-size: clamp(1.2rem, 2.5vw, 2.6rem); opacity: .7; }
.promo:hover .promo-track, .promo:focus-within .promo-track, .promo:focus .promo-track { animation-play-state: paused; }

@keyframes promo-scroll {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

/* Moins d'animations demandées : texte fixe, renvoyé à la ligne si besoin */
@media (prefers-reduced-motion: reduce) {
	.promo-track { animation: none; width: auto; justify-content: center; }
	.promo-group + .promo-group, .promo-item ~ .promo-item { display: none; }
	.promo-item { white-space: normal; flex-wrap: wrap; justify-content: center; padding: 0 var(--gutter); text-align: center; }
	.promo-sep { display: none; }
}

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

.home { background: var(--surface); }
.hero { padding: 0 0 clamp(24px, 4vw, 48px); }
.hero-panel {
	position: relative; overflow: hidden;
	display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 4vw, 56px); align-items: center;
	padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 64px) clamp(32px, 5vw, 56px) clamp(20px, 9vw, 120px);
	background: var(--paper); border-radius: 0 0 28px 28px;
}
.hero-panel::before {
	content: ""; position: absolute; right: -10%; bottom: -55%; width: 70%; aspect-ratio: 1;
	background: radial-gradient(circle at center, var(--sun-tint), transparent 65%); pointer-events: none;
}
.hero-text, .hero-art { position: relative; }
.kicker {
	display: inline-flex; align-items: center; gap: 8px;
	font-family: var(--font-head); font-weight: 600; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em;
	color: var(--primary-dark);
}
.kicker a { color: inherit; text-decoration: none; }
.hero-title { font-size: clamp(2.3rem, 3.6vw + 1rem, 4rem); line-height: 1.05; letter-spacing: -.03em; margin-bottom: .35em; }
.hero-lead { font-size: 1.25rem; color: var(--ink-soft); max-width: 36em; }

.big-button {
	display: flex; align-items: center; gap: 18px;
	margin: 28px 0 24px; padding: 20px 22px 20px 20px; max-width: 560px;
	background: var(--ink); color: #fff; border-radius: 24px; text-decoration: none;
	box-shadow: 0 6px 0 #000, var(--shadow-lg);
	transition: transform .15s ease, box-shadow .15s ease;
}
.big-button:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 8px 0 #000, var(--shadow-lg); }
.big-button:active { transform: translateY(4px); box-shadow: 0 2px 0 #000, var(--shadow); }
.big-button-icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: var(--sun); color: var(--ink); flex: none; }
.big-button-text { display: flex; flex-direction: column; flex: 1; }
.big-button-label { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.2rem, 1vw + 1rem, 1.5rem); line-height: 1.2; }
.big-button-sub { color: rgba(255,255,255,.78); font-size: 1rem; }
.big-button-arrow { flex: none; transition: transform .15s ease; }
.big-button:hover .big-button-arrow { transform: translateX(4px); }

.hero-langs { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.hero-langs li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; }

.el-lang-badge {
	display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
	background: var(--lang); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .8rem; letter-spacing: .02em; flex: none;
}
.el-lang-badge--lg { width: 64px; height: 64px; font-size: 1.3rem; }

.hero-art { aspect-ratio: 1.15; width: 100%; max-width: 380px; margin: 0 auto; }
.bubble {
	position: absolute; display: grid; place-items: center;
	padding: .65em 1.1em; border-radius: 22px; background: var(--lang); color: #fff;
	font-family: var(--font-head); font-weight: 700; font-size: clamp(1.2rem, 1.2vw + .8rem, 1.8rem);
	box-shadow: var(--shadow-lg);
}
.bubble::after { content: ""; position: absolute; bottom: -12px; left: 28px; border: 12px solid transparent; border-top-color: var(--lang); border-bottom: 0; }
.bubble:nth-child(1) { top: 0; left: 6%; transform: rotate(-4deg); }
.bubble:nth-child(2) { top: 22%; right: 2%; transform: rotate(5deg); }
.bubble:nth-child(3) { top: 46%; left: 0; transform: rotate(3deg); }
.bubble:nth-child(4) { bottom: 0; right: 18%; transform: rotate(-5deg); }
.bubble:nth-child(even)::after { left: auto; right: 28px; }

@media (max-width: 900px) {
	.hero-panel { grid-template-columns: 1fr; padding-top: clamp(56px, 12vw, 80px); }
	.hero-art { max-width: 320px; }
}

/* ---------- Carrousel (cadre noir, image à gauche, texte à droite) ---------- */

.featured { padding-top: clamp(24px, 4vw, 48px); }
.carousel {
	position: relative;
	display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(8px, 2vw, 24px);
}
.carousel--single { grid-template-columns: minmax(0, 1fr); }
.carousel-frame { grid-column: 2; border: 4px solid var(--ink); background: var(--surface); }
.carousel--single .carousel-frame { grid-column: 1; }
.carousel-viewport {
	overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
}
.carousel-viewport::-webkit-scrollbar { display: none; }
.carousel-viewport:focus-visible { box-shadow: inset 0 0 0 4px var(--sun); border-radius: 0; }
@media (prefers-reduced-motion: reduce) { .carousel-viewport { scroll-behavior: auto; } }
.carousel-track { display: flex; list-style: none; margin: 0; padding: 0; }

.slide {
	position: relative; flex: 0 0 100%; scroll-snap-align: start;
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center;
	padding: clamp(20px, 3.5vw, 56px) clamp(20px, 3vw, 40px);
}
.slide--noimg { grid-template-columns: minmax(0, 1fr); }
.slide-media { align-self: stretch; display: flex; align-items: center; }
.slide-img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.slide-body { text-align: center; }
.slide-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.6rem, 2.6vw + .6rem, 3rem); line-height: 1.1; letter-spacing: 0; margin-bottom: .6em; }
.slide-title a { color: var(--ink); text-decoration: none; }
.slide-title a::after { content: ""; position: absolute; inset: 0; }
.slide-title a:focus-visible { box-shadow: none; }
.slide:focus-within { box-shadow: inset 0 0 0 4px var(--sun); }
.slide-excerpt { font-style: italic; font-size: clamp(1.15rem, 1.3vw + .7rem, 1.9rem); line-height: 1.35; color: var(--ink); overflow-wrap: anywhere; margin: 0 0 .8em; }
.slide-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--primary-dark); }
.slide:hover .slide-more { text-decoration: underline; }

.carousel-arrow {
	display: grid; place-items: center; width: clamp(52px, 6vw, 84px); height: 64px;
	padding: 0; border: 0; background: transparent; color: var(--ink); cursor: pointer; border-radius: 12px;
	transition: transform .15s ease;
}
.carousel-arrow--prev { grid-column: 1; grid-row: 1; transform: scaleX(-1); }
.carousel-arrow--next { grid-column: 3; grid-row: 1; }
.carousel-arrow--prev:hover { transform: scaleX(-1) translateX(4px); }
.carousel-arrow--next:hover { transform: translateX(4px); }
.hand-arrow { width: 100%; height: auto; fill: none; stroke: currentColor; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }

.carousel-controls { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 8px; }
.carousel-btn {
	display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
	border: 2px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer;
}
.carousel-btn:hover { border-color: var(--ink); }
.carousel-pause .el-icon--play { display: none; }
.carousel-pause[aria-pressed="true"] .el-icon--play { display: block; }
.carousel-pause[aria-pressed="true"] .el-icon--pause { display: none; }
.carousel-dots { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.carousel-dot { width: 32px; height: 32px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; padding: 0; border-radius: 50%; }
.carousel-dot::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--line-strong); transition: width .2s ease, background .2s ease; }
.carousel-dot[aria-current="true"]::before { width: 26px; border-radius: 6px; background: var(--ink); }

@media (max-width: 760px) {
	.carousel { grid-template-columns: 1fr 1fr; }
	.carousel-frame { grid-column: 1 / -1; grid-row: 1; }
	.carousel-arrow { grid-row: 2; height: 52px; width: 64px; }
	.carousel-arrow--prev { grid-column: 1; justify-self: start; }
	.carousel-arrow--next { grid-column: 2; justify-self: end; }
	.carousel-controls { grid-row: 2; grid-column: 1 / -1; margin: 0; pointer-events: none; }
	.carousel-controls > * { pointer-events: auto; }
	.slide { grid-template-columns: 1fr; }
}

/* ---------- Sections communes ---------- */

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-title { margin: 0; }
.section-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }

/* Curiosité de la semaine */
.curiosity { padding-top: 0; }
.curiosity-card {
	display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
	background: var(--sun-tint); border: 2px solid #f0dc9c; border-radius: 28px; overflow: hidden;
}
.curiosity-card:not(:has(.curiosity-media)) { grid-template-columns: 1fr; }
.curiosity-media img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.curiosity-body { padding: clamp(24px, 4vw, 48px); align-self: center; }
.curiosity-label {
	display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
	background: var(--sun); font-family: var(--font-head); font-weight: 700; font-size: .95rem;
}
.curiosity-heading { font-size: clamp(1.6rem, 2vw + 1rem, 2.5rem); margin-top: .4em; }
.curiosity-heading a { color: var(--ink); text-decoration: none; }
.curiosity-heading a:hover { text-decoration: underline; }
.curiosity-text { font-size: 1.15rem; color: #3d3a2e; }
@media (max-width: 760px) { .curiosity-card { grid-template-columns: 1fr; } .curiosity-media img { min-height: 0; aspect-ratio: 16/9; } }

/* Étapes */
.steps { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps .section-title { text-align: center; margin-bottom: 36px; }
.steps-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; padding: 0; margin: 0; counter-reset: none; }
.steps-list li { padding: 28px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.steps-list h3 { margin: 14px 0 6px; }
.steps-list p { margin: 0; color: var(--ink-soft); }
.step-num { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--ink); color: var(--sun); font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; }
.steps-list li:nth-child(2) .step-num { background: var(--primary); color: #fff; }
.steps-list li:nth-child(3) .step-num { background: var(--sun); color: var(--ink); }
.steps-cta { text-align: center; margin: 36px 0 0; }
@media (max-width: 760px) { .steps-list { grid-template-columns: 1fr; } }

/* Derniers articles : bandeau beige sur l'accueil */
.home .latest { background: var(--paper); }

/* Cartes d'articles */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.card {
	position: relative; display: flex; flex-direction: column;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
	transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.card-kicker { font-size: .85rem; font-weight: 700; color: var(--primary-dark); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.card-title { font-size: 1.25rem; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card:focus-within { box-shadow: var(--focus); }
.card-title a:focus-visible { box-shadow: none; }
.card-text { color: var(--ink-soft); }
.card-meta { margin: auto 0 0; font-size: .95rem; color: var(--ink-soft); }

/* En-têtes de pages */
.page-head { padding: clamp(36px, 5vw, 64px) 0 8px; }
.page-title { margin-bottom: .3em; }
.page-intro { font-size: 1.2rem; color: var(--ink-soft); max-width: 40em; }

/* Article */
.article-head { padding: clamp(36px, 5vw, 64px) 0 24px; }
.article-title { font-size: clamp(2rem, 3vw + 1rem, 3.3rem); }
.article-meta { color: var(--ink-soft); }
.article-cover img { border-radius: 24px; width: 100%; max-height: 560px; object-fit: cover; margin-bottom: 40px; }
.article-foot { padding-bottom: 48px; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.post-navigation a { display: block; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); text-decoration: none; color: var(--ink); font-weight: 700; height: 100%; }
.post-navigation .nav-next { text-align: right; }
.nav-label { display: block; font-weight: 400; font-size: .9rem; color: var(--ink-soft); }

.entry-content { font-size: 1.15rem; }
.entry-content > * + * { margin-top: 1em; }
.entry-content h2 { margin-top: 1.6em; }
.entry-content h3 { margin-top: 1.4em; }
.entry-content img { border-radius: 12px; }
.entry-content blockquote { margin: 1.5em 0; padding: 16px 24px; border-left: 6px solid var(--lang, var(--primary)); background: var(--surface); border-radius: 0 12px 12px 0; }
.entry-content table { width: 100%; border-collapse: collapse; background: var(--surface); }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.entry-content th { background: var(--paper-2); }
.entry-content .alignwide { max-width: 1100px; }
.entry-content .wp-block-button__link { border-radius: 999px; }

.pagination, .el-pagination { margin-top: 40px; }
.pagination .nav-links, .el-pagination ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.pagination .page-numbers, .el-pagination a, .el-pagination span {
	display: grid; place-items: center; min-width: 48px; height: 48px; padding: 0 14px; border-radius: 999px;
	background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 700;
}
.pagination .current, .el-pagination [aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }

.el-empty { padding: 32px; border: 2px dashed var(--line-strong); border-radius: var(--radius); text-align: center; color: var(--ink-soft); background: var(--surface); }
.el-empty--big { border: 0; background: none; }
.big-404 { font-family: var(--font-head); font-weight: 800; font-size: clamp(5rem, 14vw, 9rem); line-height: 1; color: var(--sun); margin: 0; -webkit-text-stroke: 3px var(--ink); }

.search-form { display: flex; gap: 8px; max-width: 520px; margin: 16px auto; }
.search-form label { flex: 1; }
.search-field, .el-form input[type="text"], .el-form textarea, .el-input {
	width: 100%; min-height: 52px; padding: 12px 16px; border: 2px solid var(--line-strong); border-radius: 12px;
	background: var(--surface); color: var(--ink); font: inherit;
}
.search-field:focus, .el-form input:focus, .el-form textarea:focus, .el-input:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 4px rgba(28, 88, 214, .25); }
.search-submit { min-height: 52px; padding: 0 20px; border-radius: 12px; border: 0; background: var(--ink); color: #fff; font-weight: 700; cursor: pointer; }

/* Commentaires du blog */
.comments-area { padding: 24px 0 64px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { padding: 16px 0; border-top: 1px solid var(--line); }
.comment-form input:not([type="submit"]):not([type="checkbox"]), .comment-form textarea { width: 100%; padding: 12px; border: 2px solid var(--line-strong); border-radius: 12px; font: inherit; }

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

.site-footer { background: var(--ink); color: #e7e9ee; margin-top: 0; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 48px; }
.footer-brand { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: #fff; }
.footer-title { font-size: 1.1rem; color: var(--sun); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.contact-list, .social-list, .footer-menu { list-style: none; padding: 0; margin: 0 0 24px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.contact-list .el-icon { margin-top: 3px; color: var(--sun); }
.footer-menu li, .social-list li { margin-bottom: 10px; }
.social-list { display: flex; flex-wrap: wrap; gap: 8px; }
.social-list a { display: inline-block; padding: 8px 14px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; text-decoration: none; }
.social-list a:hover { background: rgba(255,255,255,.1); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; font-size: .95rem; color: #b9bfcc; }
.footer-bottom p { margin: 0; }
.site-footer :focus-visible { box-shadow: 0 0 0 3px var(--ink), 0 0 0 6px var(--sun); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ==========================================================================
   Espace élèves
   ========================================================================== */

.gate { padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 7vw, 96px); }
.gate-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.gate-head .page-intro { margin-left: auto; margin-right: auto; }
.lang-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; list-style: none; padding: 0; margin: 0 0 32px; }
@media (max-width: 960px) { .lang-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .lang-grid { grid-template-columns: 1fr; } }
.lang-card {
	position: relative; display: flex; flex-direction: column; gap: 2px; height: 100%;
	padding: 28px 24px 22px; border-radius: 24px; text-decoration: none; color: var(--ink);
	background: var(--surface); border: 2px solid var(--line); overflow: hidden;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.lang-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: var(--lang); }
.lang-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--lang); color: var(--ink); }
.lang-card-hello { font-family: var(--font-head); font-weight: 700; font-size: 2.3rem; color: var(--lang); line-height: 1.2; margin: 6px 0 10px; }
.lang-card-name { font-family: var(--font-head); font-weight: 700; font-size: 1.45rem; }
.lang-card-native { color: var(--ink-soft); }
.lang-card-status { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 700; font-size: .95rem; color: var(--ink-soft); }
.gate-help, .gate-back { text-align: center; color: var(--ink-soft); }
.gate-back a { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }

.code-card {
	max-width: 520px; margin: 0 auto 24px; padding: clamp(28px, 5vw, 44px);
	background: var(--surface); border-radius: 28px; border: 2px solid var(--line); box-shadow: var(--shadow-lg);
	border-top: 10px solid var(--lang);
}
.code-card-top { display: flex; align-items: center; gap: 16px; }
.code-hello { font-family: var(--font-head); font-weight: 700; font-size: 2rem; color: var(--lang); }
.code-title { font-size: clamp(1.8rem, 2vw + 1rem, 2.4rem); margin-top: 8px; }
.code-intro { color: var(--ink-soft); }
.code-label { display: block; font-weight: 700; margin-bottom: 8px; }
.code-input {
	width: 100%; min-height: 64px; padding: 12px 18px;
	border: 3px solid var(--line-strong); border-radius: 16px; background: var(--paper);
	font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 1.6rem; letter-spacing: .12em; text-transform: uppercase; text-align: center;
	color: var(--ink);
}
.code-input::placeholder { color: #a39b8d; letter-spacing: .08em; }
.code-input:focus { border-color: var(--lang); outline: none; box-shadow: 0 0 0 5px color-mix(in srgb, var(--lang) 25%, transparent); }
.code-input[aria-invalid="true"] { border-color: var(--ko); }
.code-help { font-size: .95rem; color: var(--ink-soft); margin: 10px 0 20px; }
.code-error { display: flex; align-items: flex-start; gap: 8px; color: var(--ko); background: var(--ko-tint); border-radius: 10px; padding: 10px 12px; margin: 12px 0 20px; font-weight: 700; }

/* Barre de langue */
.space-bar { background: var(--lang); color: #fff; }
.space-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.space-bar-title { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 1.15rem; }
.space-bar-title .el-lang-badge { background: #fff; color: var(--lang); }
.space-bar-title strong { font-family: var(--font-head); }
.space-hello { display: block; font-size: .95rem; opacity: .9; }
.space-bar-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.space-bar-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; color: #fff; text-decoration: none; font-weight: 700; background: rgba(255,255,255,.14); }
.space-bar-link:hover { background: rgba(255,255,255,.26); color: #fff; }
.space-bar :focus-visible { box-shadow: 0 0 0 3px var(--lang), 0 0 0 6px #fff; }
.el-pill-teacher { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--sun); color: var(--ink); font-size: .8rem; font-weight: 700; vertical-align: middle; }

.space-grid { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); padding-top: 36px; padding-bottom: 72px; align-items: start; }
.space-side { position: sticky; top: 100px; }
.space-nav ul { list-style: none; margin: 0; padding: 0; }
.space-nav > ul { display: flex; flex-direction: column; gap: 4px; }
.space-nav-link {
	display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px;
	color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.05rem;
}
.space-nav-link span:first-of-type { flex: 1; }
.space-nav-link .el-icon { color: var(--lang); }
.space-nav-link:hover { background: var(--surface); }
.space-nav-link.is-active { background: var(--surface); box-shadow: inset 4px 0 0 var(--lang), var(--shadow); }
.space-nav-count { min-width: 30px; padding: 0 8px; border-radius: 999px; background: var(--paper-2); font-size: .85rem; text-align: center; color: var(--ink-soft); }
.space-subnav { margin: 4px 0 8px 46px !important; border-left: 2px solid var(--line); }
.space-subnav ul { margin-left: 14px !important; }
.space-subnav a { display: block; padding: 6px 12px; color: var(--ink-soft); text-decoration: none; border-radius: 8px; }
.space-subnav a:hover { color: var(--ink); background: var(--surface); }
.space-subnav a.is-active { color: var(--ink); font-weight: 700; background: var(--surface); }

@media (max-width: 900px) {
	.space-grid { grid-template-columns: 1fr; padding-top: 16px; }
	.space-side { position: static; margin: 0 calc(-1 * var(--gutter)); }
	.space-nav > ul { flex-direction: row; overflow-x: auto; gap: 8px; padding: 4px var(--gutter) 12px; scroll-snap-type: x proximity; }
	.space-nav > ul > li { flex: none; scroll-snap-align: start; }
	.space-nav-link { background: var(--surface); border: 1px solid var(--line); padding: 10px 14px; border-radius: 999px; }
	.space-nav-link.is-active { box-shadow: inset 0 -3px 0 var(--lang); border-color: var(--lang); }
	.space-subnav { display: none; }
}

.space-head { margin-bottom: 28px; }
.space-head--row { display: flex; justify-content: space-between; gap: 16px; align-items: end; flex-wrap: wrap; }
.space-title { font-size: clamp(1.9rem, 2vw + 1rem, 2.7rem); margin-bottom: .25em; }
.space-intro { font-size: 1.15rem; color: var(--ink-soft); margin: 0; max-width: 40em; }
.space-meta { color: var(--ink-soft); margin: 0; }
.space-crumb { margin-bottom: 6px; font-weight: 700; color: var(--ink-soft); }
.space-crumb a { color: var(--lang); }
.space-subtitle { display: flex; align-items: center; gap: 10px; font-size: 1.4rem; margin-bottom: 16px; }
.space-block { margin-top: 40px; }

.section-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; }
.section-tile {
	position: relative; display: flex; flex-direction: column; gap: 4px; height: 100%;
	padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
	color: var(--ink); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.section-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--lang); color: var(--ink); }
.section-tile-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: color-mix(in srgb, var(--lang) 12%, #fff); color: var(--lang); margin-bottom: 10px; }
.section-tile-label { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; }
.section-tile-desc { color: var(--ink-soft); font-size: 1rem; }
.section-tile-count { position: absolute; top: 18px; right: 18px; font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; color: var(--lang); }

.recent-list { list-style: none; padding: 0; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.recent-list li { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-top: 1px solid var(--line); }
.recent-list li:first-child { border-top: 0; }
.recent-list a { flex: 1; font-weight: 700; color: var(--ink); }
.recent-list time { color: var(--ink-soft); font-size: .95rem; white-space: nowrap; }
.recent-type { flex: none; min-width: 92px; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; text-align: center; background: var(--paper-2); color: var(--ink-soft); }
.recent-type--el_cours { background: color-mix(in srgb, var(--lang) 14%, #fff); color: var(--ink); }
.recent-type--el_exercice { background: var(--sun-tint); color: #5c4300; }
.recent-type--el_sujet { background: var(--info-tint); color: var(--info); }
@media (max-width: 560px) { .recent-list li { flex-wrap: wrap; gap: 6px 12px; } .recent-list a { flex-basis: 100%; order: 3; } }

/* Filtres de catégories */
.el-chips ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 24px; padding: 0; }
.el-chip { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 2px solid var(--line-strong); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1rem; }
.el-chip--sub { font-weight: 400; border-style: dashed; }
.el-chip:hover { border-color: var(--lang); color: var(--ink); }
.el-chip.is-active { background: var(--lang); border-color: var(--lang); color: #fff; }

/* Cartes cours / exercices */
.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.item-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.item-card::before { content: ""; height: 6px; background: var(--lang); }
.item-card--el_exercice::before { background: repeating-linear-gradient(90deg, var(--lang) 0 14px, transparent 14px 20px); }
.item-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.item-card:focus-within { box-shadow: var(--focus); }
.item-card-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.item-card-body { display: flex; flex-direction: column; flex: 1; padding: 20px; }
.item-card-cats { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--lang); margin-bottom: 6px; }
.item-card-title { font-size: 1.2rem; margin-bottom: .4em; }
.item-card-title a { color: var(--ink); text-decoration: none; }
.item-card-title a::after { content: ""; position: absolute; inset: 0; }
.item-card-title a:focus-visible { box-shadow: none; }
.item-card-text { color: var(--ink-soft); font-size: 1rem; }
.item-card-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: auto 0 0; font-size: .92rem; color: var(--ink-soft); }
.item-card-meta span { display: inline-flex; align-items: center; gap: 4px; }

/* Documents & liens */
.resource-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.resource { display: flex; align-items: center; gap: 18px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.resource-icon { flex: none; display: grid; place-items: center; width: 60px; height: 68px; border-radius: 10px; font-family: var(--font-head); font-weight: 700; font-size: .85rem; }
.resource-icon--file { background: color-mix(in srgb, var(--lang) 12%, #fff); color: var(--lang); border: 2px solid color-mix(in srgb, var(--lang) 30%, #fff); border-top-right-radius: 22px; }
.resource-icon--link { background: var(--info-tint); color: var(--info); border-radius: 50%; width: 60px; height: 60px; }
.resource-body { flex: 1; min-width: 0; }
.resource-title { font-size: 1.2rem; margin: 0 0 4px; }
.resource-type { display: inline-block; margin: 0 0 4px; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--info); }
.resource-desc { color: var(--ink-soft); font-size: 1rem; }
.resource-desc p { margin: 0 0 .4em; }
.resource-meta { margin: 0; font-size: .92rem; color: var(--ink-soft); }
.resource-action { flex: none; }
.resource-missing { color: var(--ink-soft); font-style: italic; }
@media (max-width: 640px) {
	.resource { flex-wrap: wrap; }
	.resource-icon { width: 48px; height: 54px; }
	.resource-icon--link { height: 48px; }
	.resource-body { flex-basis: calc(100% - 70px); }
	.resource-action { width: 100%; }
}

/* Cours */
.space-article .entry-content { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 44px); }
.related { padding: 24px; border-radius: var(--radius); background: var(--sun-tint); border: 2px solid #f0dc9c; }
.related-list { margin: 0; font-weight: 700; }
.related-list li { margin-bottom: 6px; }

/* Exercices */
.exercise-instructions { margin-bottom: 28px; border-left: 6px solid var(--lang) !important; }
.exercise-instructions-label { font-family: var(--font-head); font-weight: 700; color: var(--lang); text-transform: uppercase; letter-spacing: .08em; font-size: .9rem; margin: 0; }
.el-questions { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 20px; }
.el-question { position: relative; padding: clamp(18px, 3vw, 28px); background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); scroll-margin-top: 110px; }
.el-question.is-ok { border-color: var(--ok); background: linear-gradient(var(--ok-tint), var(--ok-tint)) top / 100% 6px no-repeat, var(--surface); }
.el-question.is-ko { border-color: var(--ko); background: linear-gradient(var(--ko-tint), var(--ko-tint)) top / 100% 6px no-repeat, var(--surface); }
.el-question fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.el-q-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin: 0 0 16px; padding: 0; font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; line-height: 1.4; }
.el-q-num { display: inline-grid; place-items: center; min-width: 36px; height: 36px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 1rem; flex: none; }
.el-q-hint { width: 100%; font-family: var(--font-body); font-weight: 400; font-size: .95rem; color: var(--ink-soft); padding-left: 46px; }
.el-verdict { position: absolute; top: 14px; right: 16px; display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 4px 12px; border-radius: 999px; font-weight: 700; font-size: .95rem; }
.is-ok > .el-verdict { background: var(--ok-tint); color: var(--ok); }
.is-ko > .el-verdict { background: var(--ko-tint); color: var(--ko); }
.el-question .el-q-title { padding-right: 120px; }
@media (max-width: 560px) { .el-question .el-q-title { padding-right: 0; padding-top: 30px; } }

.el-options { display: grid; gap: 10px; }
.el-option {
	display: flex; align-items: center; gap: 14px; padding: 14px 16px; min-height: 56px;
	border: 2px solid var(--line); border-radius: 14px; background: var(--paper); cursor: pointer; font-size: 1.1rem;
	transition: border-color .15s ease, background .15s ease;
}
.el-option:hover { border-color: var(--line-strong); }
.el-option input { width: 24px; height: 24px; accent-color: var(--lang); flex: none; margin: 0; }
.el-option:has(input:checked) { border-color: var(--lang); background: color-mix(in srgb, var(--lang) 8%, #fff); }
.el-option:has(input:focus-visible) { box-shadow: var(--focus); }
.is-corrected .el-option.is-answer { border-color: var(--ok); background: var(--ok-tint); }
.is-corrected .el-option.is-answer::after { content: "✓ Bonne réponse"; margin-left: auto; font-size: .9rem; font-weight: 700; color: var(--ok); white-space: nowrap; }
.is-corrected .el-option.is-wrong { border-color: var(--ko); background: var(--ko-tint); }
.is-corrected .el-option.is-wrong::after { content: "✗"; margin-left: auto; font-weight: 700; color: var(--ko); }

.el-gaps { font-size: 1.2rem; line-height: 2.6; }
.el-gap { display: inline-flex; flex-direction: column; vertical-align: baseline; }
.el-gap input {
	min-width: 4ch; padding: 2px 8px; border: 0; border-bottom: 3px solid var(--lang); border-radius: 6px 6px 0 0;
	background: color-mix(in srgb, var(--lang) 8%, #fff); color: var(--ink); font: inherit; font-weight: 700; line-height: 1.5; text-align: center;
}
.el-gap input:focus { outline: none; background: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--lang) 40%, transparent); }
.el-gap.is-ok input { border-color: var(--ok); background: var(--ok-tint); color: var(--ok); }
.el-gap.is-ko input { border-color: var(--ko); background: var(--ko-tint); color: var(--ko); text-decoration: line-through; text-decoration-thickness: 2px; }
.el-gap-fix { font-size: .95rem; font-weight: 700; color: var(--ok); line-height: 1.3; text-align: center; }

.el-input { max-width: 520px; font-size: 1.15rem; }
.el-question.is-ok .el-input { border-color: var(--ok); background: var(--ok-tint); }
.el-question.is-ko .el-input { border-color: var(--ko); background: var(--ko-tint); }
.el-expected { margin: 12px 0 0; color: var(--ok); }

.el-explanation { display: flex; gap: 12px; margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: var(--sun-tint); border: 1px solid #f0dc9c; }
.el-explanation .el-icon { color: #8a6500; margin-top: 3px; }
.el-explanation p { margin: .3em 0 0; }

.el-exercise-submit { margin: 28px 0 0; text-align: center; }

.el-score { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding: 24px 28px; margin-bottom: 24px; border-radius: var(--radius); border: 2px solid; scroll-margin-top: 110px; }
.el-score:focus { outline: none; }
.el-score--good { background: var(--ok-tint); border-color: var(--ok); }
.el-score--mid { background: var(--mid-tint); border-color: var(--mid); }
.el-score--low { background: var(--ko-tint); border-color: var(--ko); }
.el-score-num { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; }
.el-score-num span { font-size: 3.4rem; line-height: 1; }
.el-score-msg { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; margin: 0 0 8px; }
.el-score-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }

/* Forum */
.new-topic { margin-bottom: 28px; }
.new-topic > summary { list-style: none; display: inline-flex; }
.new-topic > summary::-webkit-details-marker { display: none; }
.new-topic[open] > summary { margin-bottom: 16px; }
.el-form { padding: clamp(18px, 3vw, 28px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.el-form label { display: block; font-weight: 700; margin-bottom: 6px; }
.el-form textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.el-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0; }
.el-form-note { color: var(--ink-soft); font-size: .95rem; }

.el-alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; font-weight: 700; border: 2px solid; }
.el-alert--error { background: var(--ko-tint); border-color: var(--ko); color: var(--ko); }
.el-alert--success { background: var(--ok-tint); border-color: var(--ok); color: var(--ok); }
.el-alert--info { background: var(--info-tint); border-color: var(--info); color: var(--info); }

.topic-list { list-style: none; padding: 0; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.topic { position: relative; display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-top: 1px solid var(--line); }
.topic:first-child { border-top: 0; }
.topic:hover { background: var(--paper); }
.topic-avatar { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; flex: none; background: color-mix(in srgb, var(--lang) 15%, #fff); color: var(--lang); font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; }
.topic-avatar.is-teacher { background: var(--sun); color: var(--ink); }
.topic-body { flex: 1; min-width: 0; }
.topic-title { font-size: 1.15rem; margin: 0 0 2px; }
.topic-title a { color: var(--ink); text-decoration: none; }
.topic-title a::after { content: ""; position: absolute; inset: 0; }
.topic-title a:focus-visible { box-shadow: none; }
.topic:focus-within { box-shadow: var(--focus); }
.topic-meta { margin: 0; font-size: .95rem; color: var(--ink-soft); }
.topic-count { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink-soft); }

.message { padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.message--first { border-left: 6px solid var(--lang); margin-bottom: 32px; }
.message.is-teacher { background: #fffdf5; border-color: #f0dc9c; }
.message-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 10px; }
.message-head time { color: var(--ink-soft); font-size: .92rem; margin-left: auto; }
.message-body p:last-child { margin-bottom: 0; }
.replies { list-style: none; padding: 0; margin: 0 0 32px; display: flex; flex-direction: column; gap: 14px; }
.replies .message { margin-left: clamp(0px, 3vw, 32px); scroll-margin-top: 110px; }
.replies .message:target { box-shadow: 0 0 0 3px var(--lang); }
.replies-title { margin-top: 8px; }

/* Barre d'admin : le menu collant passe dessous */
@media print {
	.site-header, .site-footer, .space-side, .space-bar, .carousel-controls { display: none !important; }
	body { background: #fff; }
}

/* Bouton clair dans le pied de page sombre */
.site-footer .el-btn--light { color: var(--ink); }
.site-footer .el-btn--light:hover { color: var(--ink); background: var(--sun); }

/* Empêche le menu défilant de l'espace élèves d'élargir la page sur mobile */
.space-grid > * { min-width: 0; }
@media (max-width: 900px) { .space-grid { grid-template-columns: minmax(0, 1fr); } }

/* En-tête : petits écrans */
.brand-bubble { z-index: 3; }
@media (max-width: 560px) {
	.header-inner { gap: 10px; min-height: 76px; }
	.brand-logo { width: 54px; }
	.home .has-logo .brand-logo { margin-bottom: -34px; }
	.brand-bubble { margin-left: 20px; padding: .45em .9em; border-width: 3px; border-radius: 20px; }
	.brand-bubble::before { top: 10px; left: -22px; border-width: 3px 23px 15px 0; }
	.brand-bubble::after { top: 13px; left: -16px; border-width: 1px 17px 10px 0; }
	.brand-bubble-text { font-size: clamp(.9rem, 4.2vw, 1.2rem); }
	.nav-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.nav-toggle { padding: 0 12px; }
}

/* Exercices déjà validés */
.el-done {
	display: inline-flex; align-items: center; gap: 4px;
	padding: 4px 12px 4px 8px; border-radius: 999px;
	background: var(--ok); color: #fff; font-weight: 700; font-size: .9rem; line-height: 1.3;
}
.el-done-score { font-weight: 400; opacity: .9; }
.item-card-done-row { margin: 0 0 10px; }
.el-already { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; padding: 14px 18px; margin-bottom: 24px; border-radius: 14px; background: var(--ok-tint); border: 2px solid color-mix(in srgb, var(--ok) 40%, #fff); }
.el-already p { margin: 0; flex: 1 1 280px; }
.el-progress { margin-bottom: 24px; padding: 16px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.el-progress-label { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; }
.el-progress-label .el-icon { color: var(--ok); }
.el-progress-bar { height: 12px; border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.el-progress-bar span { display: block; height: 100%; min-width: 4px; border-radius: 999px; background: var(--ok); transition: width .4s ease; }

/* ---------- Espace élèves : mise en page élargie ---------- */
/* Le contenu prend presque toute la largeur de l'écran, le menu se cale à gauche. */
.space .container { max-width: 1760px; }
.space-grid { grid-template-columns: 260px minmax(0, 1fr); gap: clamp(24px, 3vw, 56px); }
.space-article .entry-content { max-width: none; }
.space-article .entry-content > * { max-width: 100%; }
.space-article .entry-content img,
.space-article .entry-content iframe,
.space-article .entry-content video { max-width: 100%; height: auto; }
.space-article .entry-content iframe { width: 100%; aspect-ratio: 16 / 9; }
/* Les longs mots ou liens ne débordent plus du cadre */
.entry-content, .message-body, .resource-desc, .item-card-text { overflow-wrap: anywhere; }
@media (max-width: 900px) { .space-grid { grid-template-columns: minmax(0, 1fr); } }
.entry-content > :first-child { margin-top: 0; }

/* ---------- Niveaux A1 → C2 ---------- */
.el-levels { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: -8px 0 24px; }
.el-levels-label { font-weight: 700; color: var(--ink-soft); }
.el-levels ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.el-level-chip {
	display: inline-grid; place-items: center; min-width: 48px; min-height: 40px; padding: 0 12px;
	border-radius: 10px; border: 2px solid var(--line-strong); background: var(--surface);
	color: var(--ink); text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: .95rem;
}
.el-level-chip:hover { border-color: var(--ink); color: var(--ink); }
.el-level-chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.el-level-list { display: inline-flex; flex-wrap: wrap; gap: 4px; vertical-align: middle; }
.el-level {
	display: inline-block; padding: 1px 8px; border-radius: 6px;
	background: var(--ink); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .75rem; letter-spacing: .03em; line-height: 1.6;
}
.item-card-body > .el-level-list { margin-bottom: 8px; }
.space-head > .el-level-list { margin: 4px 0 8px; }
.resource-title .el-level-list { margin-left: 6px; }

/* Code couleur des notes : vert (bonne), orange (moyenne), rouge (insuffisante) */
:root { --mid: #b45309; --mid-tint: #fdf0e1; }
.el-done--good { background: var(--ok); }
.el-done--mid { background: var(--mid); }
.el-done--low { background: var(--ko); }
.item-card.tone-good { --tone: var(--ok); }
.item-card.tone-mid { --tone: var(--mid); }
.item-card.tone-low { --tone: var(--ko); }
.item-card.is-done { border: 2px solid var(--tone); }
.item-card.is-done::before { background: var(--tone); }
.el-already--good { background: var(--ok-tint); border-color: color-mix(in srgb, var(--ok) 40%, #fff); }
.el-already--mid { background: var(--mid-tint); border-color: color-mix(in srgb, var(--mid) 40%, #fff); }
.el-already--low { background: var(--ko-tint); border-color: color-mix(in srgb, var(--ko) 40%, #fff); }

/* ==========================================================================
   Modèle « Journal des articles » (archive façon quotidien)
   ========================================================================== */
.page-template-template-journal { background: var(--surface); }
.jr-head { padding: clamp(32px, 5vw, 56px) 0 8px; }
.jr-title { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(2rem, 4vw + .5rem, 3.6rem); line-height: 1.05; margin-bottom: .3em; }
.jr-intro { font-size: 1.15rem; color: var(--ink-soft); max-width: 48em; }
.jr-intro p:last-child { margin-bottom: 0; }
.jr-filters ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 24px 0 0; padding: 0; }
.jr-filter {
	display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
	border: 2px solid var(--ink); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1rem;
}
.jr-filter:hover { background: var(--sun-tint); color: var(--ink); }
.jr-filter.is-active { background: var(--ink); color: #fff; }
.jr-count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--paper-2); color: var(--ink-soft); font-size: .8rem; }
.jr-filter.is-active .jr-count { background: rgba(255,255,255,.2); color: #fff; }

.jr-kicker { margin: 0 0 6px; font-family: var(--font-head); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--primary-dark); }
.jr-byline { margin: 12px 0 0; font-weight: 700; font-size: .95rem; color: var(--ink); }
.jr-byline time { font-weight: 400; color: var(--ink-soft); }
.jr-front a, .jr-section a:not(.jr-filter) { color: var(--ink); text-decoration: none; }
.jr-front h2 a:hover, .jr-front h3 a:hover, .jr-section h3 a:hover { text-decoration: underline; text-decoration-thickness: .06em; }

/* À la une */
.jr-front { padding: 32px 0 8px; }
.jr-lead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.jr-lead--noimg { grid-template-columns: minmax(0, 1fr); max-width: 900px; }
.jr-lead-title { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.8rem, 1.8vw + 1rem, 2.8rem); line-height: 1.12; letter-spacing: -.02em; margin-bottom: .5em; }
.jr-lead-excerpt { font-size: 1.15rem; color: var(--ink-soft); line-height: 1.55; margin: 0; }
.jr-lead-media { margin: 0; }
.jr-lead-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.jr-lead-media figcaption { margin-top: 6px; text-align: right; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); }
.jr-headlines {
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: dense;
	list-style: none; margin: 36px 0 0; padding: 0;
	border-bottom: 1px solid var(--line);
}
.jr-headlines li { padding: 0 20px 28px; border-left: 1px solid var(--line); }
.jr-h-title { font-family: var(--font-head); font-weight: 600; font-size: 1.12rem; line-height: 1.35; margin: 0; }

/* Rubriques */
.jr-section { padding: 0 0 clamp(32px, 4vw, 48px); }
.jr-section-title {
	margin: 0 0 28px; padding-top: 28px; border-top: 4px solid var(--ink);
	font-family: var(--font-display); font-weight: 400; text-transform: uppercase; letter-spacing: 0;
	font-size: clamp(1.5rem, 1.5vw + 1rem, 2.2rem); line-height: 1.1;
}
.jr-section-title a span { display: inline-block; transition: transform .15s ease; }
.jr-section-title a:hover span { transform: translateX(4px); }
.jr-front + .jr-section .jr-section-title { margin-top: 40px; }
.jr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px clamp(20px, 3vw, 40px); }
.jr-card-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 16px; }
.jr-card-title { font-family: var(--font-head); font-weight: 650; font-size: clamp(1.2rem, .6vw + 1rem, 1.5rem); line-height: 1.25; margin: 0; }

.jr-edito { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.jr-edito > * { padding: 0 clamp(16px, 2vw, 28px); }
.jr-edito > :first-child { padding-left: 0; }
.jr-edito > :last-child { padding-right: 0; }
.jr-edito > * + * { border-left: 1px solid var(--line); }
.jr-edito-title { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.35rem, .8vw + 1rem, 1.75rem); line-height: 1.2; margin: 0 0 .5em; }
.jr-edito-excerpt { color: var(--ink-soft); font-size: 1.08rem; line-height: 1.6; margin: 0; }
.jr-edito-item + .jr-edito-item { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.jr-edito-item-title { font-family: var(--font-head); font-weight: 650; font-size: 1.25rem; line-height: 1.3; margin: 0; }
.jr-author { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.jr-author .jr-byline { margin: 0; }
.jr-avatar { width: 48px; height: 48px; border-radius: 50%; flex: none; }
.jr-more { margin: 28px 0 0; }
.jr-more a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--primary-dark) !important; }
.jr-more a:hover { text-decoration: underline; }

@media (max-width: 960px) {
	.jr-lead { grid-template-columns: minmax(0, 1fr); }
	.jr-lead-media { order: -1; }
	.jr-headlines, .jr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.jr-edito { grid-template-columns: minmax(0, 1fr); }
	.jr-edito > * { padding: 0 !important; border-left: 0 !important; }
	.jr-edito > * + * { margin-top: 24px; padding-top: 24px !important; border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
	.jr-headlines, .jr-grid { grid-template-columns: minmax(0, 1fr); }
	.jr-headlines li { border-left: 0; border-top: 1px solid var(--line); padding: 16px 0; }
}
.jr-card-media--empty { display: grid; place-items: center; aspect-ratio: 3 / 2; margin-bottom: 16px; background: var(--sun-tint); border: 2px solid var(--ink); padding: 16px; text-align: center; }
.jr-card-media--empty span { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(1.1rem, 1.4vw, 1.6rem); line-height: 1.1; color: var(--ink); }

/* ---------- QCM avec images ---------- */
.el-options--images { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.el-options--images .el-option { position: relative; flex-direction: column; align-items: stretch; gap: 8px; padding: 10px; text-align: center; }
.el-options--images .el-option input { position: absolute; top: 14px; left: 14px; z-index: 1; background: #fff; }
.el-option-img img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.el-options--images .el-option-text { font-weight: 700; }
.el-options--images .el-option:has(input:checked) { box-shadow: 0 0 0 3px var(--lang); }
.is-corrected .el-options--images .el-option.is-answer::after,
.is-corrected .el-options--images .el-option.is-wrong::after { margin: 0; }

/* ---------- Exercice « Relier » ---------- */
.el-match { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12px clamp(48px, 12vw, 160px); }
.el-match-lines { position: absolute; inset: 0; pointer-events: none; overflow: visible; z-index: 1; }
.el-match-col { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.el-match-item { position: relative; }
.el-match-btn {
	position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
	min-height: 52px; padding: 10px 14px; border: 2px solid var(--line); border-radius: 12px; background: var(--paper);
	color: var(--ink); font: inherit; font-weight: 700; text-align: left; cursor: pointer;
}
.el-match-right .el-match-btn { justify-content: flex-start; }
.el-match-btn:hover { border-color: var(--line-strong); }
.el-match-dot { flex: none; width: 16px; height: 16px; border-radius: 50%; border: 3px solid var(--line-strong); background: #fff; position: relative; z-index: 2; }
.el-match-left .el-match-dot { margin-right: -24px; }
.el-match-right .el-match-dot { margin-left: -24px; }
.el-match-item.is-linked .el-match-btn { border-color: var(--link); background: color-mix(in srgb, var(--link) 8%, #fff); }
.el-match-item.is-linked .el-match-dot { background: var(--link); border-color: var(--link); }
.el-match-item.is-active .el-match-btn { border-color: var(--ink); box-shadow: 0 0 0 3px var(--sun); }
.is-picking .el-match-right .el-match-btn { border-style: dashed; }
.el-match-select { display: block; margin-top: 6px; }
.el-match-select select { width: 100%; min-height: 40px; padding: 4px 8px; border: 2px solid var(--line); border-radius: 8px; background: #fff; font: inherit; font-size: .95rem; }
/* Avec JavaScript, les menus restent disponibles mais plus discrets */
.el-match.is-enhanced .el-match-select select { min-height: 34px; font-size: .85rem; color: var(--ink-soft); }
.el-match:not(.is-enhanced) .el-match-btn { cursor: default; }
.el-match:not(.is-enhanced) .el-match-dot { display: none; }
.el-match-left .el-match-item.is-ok .el-match-btn { border-color: var(--ok); }
.el-match-left .el-match-item.is-ko .el-match-btn { border-color: var(--ko); }
.el-match-fix { display: block; margin-top: 4px; font-weight: 700; color: var(--ok); font-size: .95rem; }
.el-match-help { margin: 14px 0 0; font-size: .92rem; color: var(--ink-soft); }
@media (max-width: 560px) {
	.el-match { gap: 10px 36px; }
	.el-match-btn { padding: 8px 10px; min-height: 46px; font-size: .95rem; }
	.el-match-left .el-match-dot { margin-right: -18px; }
	.el-match-right .el-match-dot { margin-left: -18px; }
}

/* ---------- Commentaires des articles (réservés aux élèves) ---------- */
.article-comments { padding-bottom: 64px; }
.article-comments-title { display: flex; align-items: center; gap: 10px; font-size: 1.6rem; padding-top: 32px; border-top: 4px solid var(--ink); }
.article-comments .replies .message { margin-left: 0; }
.article-comments-empty { color: var(--ink-soft); }
.article-comments-locked { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: var(--radius); background: var(--sun-tint); border: 2px dashed var(--ink); }
.article-comments-locked p { margin: 0; }
.article-comments-locked a { font-weight: 700; }

/* ---------- Profil élève ---------- */
.space-nav-sep { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
@media (max-width: 900px) { .space-nav-sep { margin-top: 0; padding-top: 0; border-top: 0; } }
.space-nav-avatar.topic-avatar { width: 26px; height: 26px; }
.topic-avatar.has-photo { overflow: hidden; padding: 0; background: var(--paper-2); }
.topic-avatar.has-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.profile-card { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; padding: clamp(20px, 3vw, 32px); margin-bottom: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.profile-preview { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 20px; border-radius: var(--radius); background: var(--paper); }
.profile-avatar.topic-avatar { width: 120px; height: 120px; font-size: 3rem; }
.profile-name { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; margin: 0; }
.profile-sub { margin: 0; font-size: .95rem; color: var(--ink-soft); }
.profile-form .el-input { max-width: 420px; display: block; margin-bottom: 4px; }
.el-file { display: block; margin: 4px 0; font: inherit; }
.el-file::file-selector-button { margin-right: 12px; padding: 8px 14px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.abo-check-inline { display: flex; gap: 8px; align-items: center; margin-top: 8px; font-size: .95rem; }
@media (max-width: 760px) { .profile-card { grid-template-columns: 1fr; } }
.my-topics > summary { list-style: none; display: inline-flex; cursor: pointer; }
.my-topics > summary::-webkit-details-marker { display: none; }
.my-topics[open] > summary { margin-bottom: 16px; }
.my-topics-list .topic { gap: 14px; }
.topic .el-inline-form { position: relative; z-index: 2; }
.el-btn-danger { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 2px solid var(--ko); border-radius: 999px; background: #fff; color: var(--ko); font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; }
.el-btn-danger:hover { background: var(--ko); color: #fff; }
.el-pill-wait { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--paper-2); color: var(--ink-soft); font-size: .8rem; font-weight: 700; vertical-align: middle; }

/* ---------- Forum : image et lien partagés ---------- */
.el-form-extras { border: 1px dashed var(--line-strong); border-radius: 12px; padding: 14px 18px 4px; margin: 0 0 16px; }
.el-form-extras legend { padding: 0 6px; font-weight: 700; }
.el-form-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0 16px; }
.el-form input[type="url"] { width: 100%; min-height: 52px; padding: 12px 16px; border: 2px solid var(--line-strong); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; }
@media (max-width: 640px) { .el-form-row { grid-template-columns: 1fr; } }
.message-image { margin: 16px 0 0; }
.message-image img { max-width: 100%; max-height: 520px; width: auto; border-radius: 12px; border: 1px solid var(--line); }
.message-link { margin: 14px 0 0; }
.message-actions { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--line); text-align: right; }
.topic-flag { display: inline-flex; vertical-align: middle; margin-left: 6px; color: var(--ink-soft); }
.space-nav-link span.space-nav-avatar { flex: 0 0 26px; }
.space-nav-link span.space-nav-avatar + span { flex: 1; }
.profile-preview { align-self: start; }
