/*
Theme Name: Que veut dire mon rêve
Theme URI: https://queveutdiremonreve.com
Author: Julien Lejeune
Description: Thème léger, rapide et optimisé SEO / GEO pour un site d'interprétation des rêves. Tout se remplit dans le contenu natif (the_content) avec des blocs HTML simples : voir GUIDE-BLOCS.md. Sommaire automatique, fil d'Ariane, schema Article / FAQ / Breadcrumb, dictionnaire A-Z, mode sombre, zéro dépendance externe.
Version: 1.0.0
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: qvdmr
*/

/* =========================================================================
   1. Variables (couleurs, typo, largeurs)
   ========================================================================= */
:root {
	--c-bg: #fbfaff;
	--c-surface: #ffffff;
	--c-text: #1f1d2b;
	--c-muted: #5f5c77;
	--c-border: #e6e2f3;
	--c-accent: #5b3fd1;
	--c-accent-ink: #ffffff;
	--c-accent-soft: color-mix(in srgb, var(--c-accent) 9%, var(--c-bg));
	--c-night: #1b1838;
	--c-ok: #17724f;
	--c-ok-soft: #e7f5ee;
	--c-warn: #8a5300;
	--c-warn-soft: #fff4de;
	--c-bad: #b0223f;
	--c-bad-soft: #fdebef;
	--c-info: #1f5fa8;
	--c-info-soft: #e8f1fc;

	--f-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--f-title: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", Georgia, serif;

	--w-text: 720px;
	--w-wide: 1180px;
	--r: 14px;
	--r-sm: 8px;
	--pad: clamp(16px, 4vw, 28px);
	--shadow: 0 1px 2px rgb(30 20 80 / .05), 0 8px 24px rgb(30 20 80 / .06);
	--header-h: 64px;
	color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
	:root:not(.force-light) {
		--c-bg: #12111c;
		--c-surface: #1b1a29;
		--c-text: #ebe9f6;
		--c-muted: #a9a6c2;
		--c-border: #2d2b42;
		--c-accent: #a99bff;
		--c-accent-ink: #12111c;
		--c-accent-soft: color-mix(in srgb, var(--c-accent) 13%, var(--c-bg));
		--c-night: #0c0b14;
		--c-ok: #6fd3a5;
		--c-ok-soft: #13271f;
		--c-warn: #f2c06b;
		--c-warn-soft: #2a2213;
		--c-bad: #ff8fa6;
		--c-bad-soft: #2c1520;
		--c-info: #8ab9f5;
		--c-info-soft: #14202f;
		--shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .25);
	}
}
:root.force-dark {
	--c-bg: #12111c;
	--c-surface: #1b1a29;
	--c-text: #ebe9f6;
	--c-muted: #a9a6c2;
	--c-border: #2d2b42;
	--c-accent: #a99bff;
	--c-accent-ink: #12111c;
	--c-accent-soft: color-mix(in srgb, var(--c-accent) 13%, var(--c-bg));
	--c-night: #0c0b14;
	--c-ok: #6fd3a5;
	--c-ok-soft: #13271f;
	--c-warn: #f2c06b;
	--c-warn-soft: #2a2213;
	--c-bad: #ff8fa6;
	--c-bad-soft: #2c1520;
	--c-info: #8ab9f5;
	--c-info-soft: #14202f;
	--shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .25);
	color-scheme: dark;
}
:root.force-light { color-scheme: light; }

/* =========================================================================
   2. Base
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 20px; }
html.no-scroll { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
	margin: 0;
	background: var(--c-bg);
	color: var(--c-text);
	font: 400 1.0625rem/1.7 var(--f-body);
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--c-accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--f-title); line-height: 1.2; font-weight: 700; letter-spacing: -.01em; text-wrap: balance; margin: 0 0 .5em; color: var(--c-text); }
h1 { font-size: clamp(1.9rem, 1.4rem + 2.4vw, 2.85rem); }
h2 { font-size: clamp(1.45rem, 1.2rem + 1.1vw, 1.9rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.35rem); }
h4 { font-size: 1.08rem; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
hr { border: 0; border-top: 1px solid var(--c-border); margin: 2.5em auto; }
button, input, select, textarea { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: var(--w-wide); margin-inline: auto; padding-inline: var(--pad); }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 12px; top: -100px; z-index: 1000; background: var(--c-accent); color: var(--c-accent-ink); padding: 10px 16px; border-radius: var(--r-sm); }
.skip-link:focus { top: 12px; }
.site-main { min-height: 60vh; outline: none; }

/* =========================================================================
   3. Header
   ========================================================================= */
.site-header { background: var(--c-surface); border-bottom: 1px solid var(--c-border); position: relative; z-index: 50; }
.header-bar { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; min-height: var(--header-h); gap: 8px; }
.icon-btn {
	display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%;
	background: transparent; color: var(--c-text); cursor: pointer; transition: background .15s;
}
.icon-btn:hover { background: var(--c-accent-soft); color: var(--c-accent); }
.js-menu-toggle { justify-self: end; }
.site-brand { text-align: center; min-width: 0; }
.site-brand img { max-height: 48px; width: auto; margin-inline: auto; }
.site-name {
	display: inline-flex; align-items: center; gap: .45em; text-decoration: none; color: var(--c-text);
	font-family: var(--f-title); font-weight: 700; font-size: clamp(1.1rem, 1rem + .6vw, 1.4rem); white-space: nowrap;
}
.site-name .icon { color: var(--c-accent); flex: none; }
.site-name span { overflow: hidden; text-overflow: ellipsis; }

.search-panel { border-top: 1px solid var(--c-border); padding-block: 14px; background: var(--c-surface); }
.search-panel .search-form { max-width: 640px; margin-inline: auto; }

.cat-bar { border-top: 1px solid var(--c-border); }
.cat-bar__list {
	display: flex; gap: 6px; list-style: none; margin: 0; padding: 8px 0;
	overflow-x: auto; scrollbar-width: none; justify-content: safe center;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
	        mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
}
.cat-bar__list::-webkit-scrollbar { display: none; }
.cat-bar__list li { flex: none; }
.cat-bar__list a {
	display: block; padding: 6px 14px; border-radius: 999px; font-size: .92rem; font-weight: 500;
	color: var(--c-muted); text-decoration: none; white-space: nowrap; transition: background .15s, color .15s;
}
.cat-bar__list a:hover, .cat-bar__list a[aria-current], .cat-bar__list .current-menu-item > a { background: var(--c-accent-soft); color: var(--c-accent); }
.cat-bar--inline { border: 0; margin-top: 1.5rem; }
.cat-bar--inline .cat-bar__list { flex-wrap: wrap; justify-content: center; -webkit-mask-image: none; mask-image: none; }

/* Panneau latéral (burger) */
.side-panel {
	position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw); z-index: 200; overflow-y: auto;
	background: var(--c-surface); box-shadow: -10px 0 40px rgb(0 0 0 / .18); padding: 12px 20px 32px;
	transform: translateX(100%); transition: transform .25s ease;
}
.side-panel.is-open { transform: none; }
.side-panel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.side-panel__title { font-family: var(--f-title); font-weight: 700; font-size: 1.2rem; }
.side-menu, .side-menu ul { list-style: none; margin: 0; padding: 0; }
.side-menu li { position: relative; border-bottom: 1px solid var(--c-border); }
.side-menu a { display: block; padding: 13px 44px 13px 4px; color: var(--c-text); text-decoration: none; font-weight: 500; }
.side-menu a:hover { color: var(--c-accent); }
.side-menu .sub-menu, .side-menu .children { display: none; padding-left: 14px; }
.side-menu li.is-open > .sub-menu, .side-menu li.is-open > .children { display: block; }
.side-menu .sub-menu li, .side-menu .children li { border: 0; }
.side-menu .sub-menu a, .side-menu .children a { padding-block: 9px; font-weight: 400; color: var(--c-muted); }
.submenu-toggle {
	position: absolute; right: 0; top: 6px; width: 38px; height: 38px; border: 0; border-radius: 50%;
	background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--c-muted);
}
.submenu-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.side-panel__search { margin-top: 24px; }
.overlay { position: fixed; inset: 0; z-index: 150; background: rgb(10 8 30 / .45); opacity: 0; transition: opacity .25s; }
.overlay.is-open { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .side-panel, .overlay { transition: none; } }

/* Formulaire de recherche */
.search-form { position: relative; display: flex; }
.search-form__input {
	width: 100%; height: 50px; padding: 0 56px 0 20px; border-radius: 999px; font-size: 1rem;
	border: 1.5px solid var(--c-border); background: var(--c-bg); transition: border-color .15s, box-shadow .15s;
	-webkit-appearance: none; appearance: none;
}
.search-form__input:focus { outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 4px var(--c-accent-soft); }
.search-form__btn {
	position: absolute; right: 5px; top: 5px; width: 40px; height: 40px; border: 0; border-radius: 50%;
	background: var(--c-accent); color: var(--c-accent-ink); display: grid; place-items: center; cursor: pointer;
}
.search-form__btn .icon { width: 19px; height: 19px; }

/* =========================================================================
   4. Fil d'Ariane, en-têtes
   ========================================================================= */
.breadcrumb { margin: 20px 0 0; font-size: .86rem; color: var(--c-muted); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.breadcrumb li:not(:last-child)::after { content: "›"; margin-left: 6px; opacity: .6; }
.breadcrumb a { color: var(--c-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--c-accent); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--c-text); }

.article > .wrap > *, .listing-header, .error-404 { max-width: var(--w-text); margin-inline: auto; }
.article > .wrap > .entry-content { max-width: none; }

.article-header { margin-top: 18px; margin-bottom: 26px; }
.article-header__cat {
	display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
	color: var(--c-accent); text-decoration: none; margin-bottom: 10px;
}
.article-header__title { margin-bottom: .35em; }
.article-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: .9rem; color: var(--c-muted); margin: 0; }
.article-meta a { color: inherit; }
.article-cover { margin: 0 auto 32px; max-width: 760px !important; }
.article-cover img { width: 100%; border-radius: var(--r); aspect-ratio: 16 / 9; object-fit: cover; }
.article-cover figcaption { font-size: .85rem; color: var(--c-muted); margin-top: 8px; text-align: center; }

/* =========================================================================
   5. Contenu de l'article (the_content)
   ========================================================================= */
.entry-content > * { max-width: var(--w-text); margin-inline: auto; }
.entry-content > .large, .entry-content > .alignwide { max-width: var(--w-wide); }
.entry-content > .pleine, .entry-content > .alignfull { max-width: none; margin-inline: calc(50% - 50vw); }
.entry-content h2 { margin-top: 2em; scroll-margin-top: 20px; }
.entry-content h3 { margin-top: 1.6em; scroll-margin-top: 20px; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; margin-bottom: 1.2em; }
.entry-content li { margin-bottom: .35em; }
.entry-content li::marker { color: var(--c-accent); }
.entry-content img { border-radius: var(--r-sm); }
.entry-content figure { margin: 2em auto; }
.entry-content figcaption { font-size: .85rem; color: var(--c-muted); margin-top: 8px; text-align: center; }
.entry-content strong { font-weight: 650; }
.entry-content blockquote, .citation {
	margin: 1.8em auto; padding: 4px 0 4px 22px; border-left: 3px solid var(--c-accent);
	font-family: var(--f-title); font-size: 1.15rem; font-style: italic; color: var(--c-text);
}
.entry-content blockquote cite, .citation cite { display: block; font: normal .88rem var(--f-body); color: var(--c-muted); margin-top: 6px; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.entry-content th, .entry-content td { padding: 10px 12px; border-bottom: 1px solid var(--c-border); text-align: left; vertical-align: top; }
.entry-content th { background: var(--c-accent-soft); font-weight: 650; }
.tableau { overflow-x: auto; }
.entry-content iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--r-sm); }
.entry-content > :last-child { margin-bottom: 0; }

/* Sommaire automatique */
.sommaire { margin: 1.8em auto 2.2em; }
.sommaire details { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r); padding: 4px 20px; }
.sommaire summary {
	cursor: pointer; list-style: none; font-weight: 700; padding: 12px 0; display: flex; justify-content: space-between; align-items: center;
}
.sommaire summary::-webkit-details-marker { display: none; }
.sommaire summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--c-accent); }
.sommaire details[open] summary::after { content: "−"; }
.sommaire ol { margin: 0 0 14px; padding-left: 1.3em; counter-reset: none; }
.sommaire li { margin: 0; padding: 4px 0; }
.sommaire a { color: var(--c-text); text-decoration: none; }
.sommaire a:hover { color: var(--c-accent); text-decoration: underline; }

/* =========================================================================
   6. Blocs prêts à l'emploi (à utiliser dans le contenu, voir GUIDE-BLOCS.md)
   ========================================================================= */

/* En bref : résumé clé en tête d'article (idéal pour Google et les IA) */
.en-bref {
	background: var(--c-accent-soft); border: 1px solid color-mix(in srgb, var(--c-accent) 25%, transparent);
	border-radius: var(--r); padding: 20px 24px; margin-block: 1.6em 2em;
}
.en-bref > :first-child { margin-top: 0; }
.en-bref > :last-child { margin-bottom: 0; }
.en-bref .titre, .en-bref > h2:first-child, .en-bref > p:first-child > strong:only-child {
	display: block; font-family: var(--f-body); font-size: .8rem; font-weight: 800; letter-spacing: .08em;
	text-transform: uppercase; color: var(--c-accent); margin: 0 0 .6em;
}
.en-bref ul { margin: 0; padding-left: 1.2em; }

/* Encadrés */
.encadre { border-radius: var(--r); padding: 18px 22px 18px 20px; margin-block: 1.6em; background: var(--c-surface); border: 1px solid var(--c-border); border-left: 4px solid var(--c-accent); }
.encadre > :last-child { margin-bottom: 0; }
.encadre > :first-child { margin-top: 0; }
.encadre .titre { display: block; font-weight: 750; margin-bottom: .35em; }
.encadre.astuce { background: var(--c-ok-soft); border-color: transparent; border-left-color: var(--c-ok); }
.encadre.astuce .titre { color: var(--c-ok); }
.encadre.attention { background: var(--c-warn-soft); border-color: transparent; border-left-color: var(--c-warn); }
.encadre.attention .titre { color: var(--c-warn); }
.encadre.info { background: var(--c-info-soft); border-color: transparent; border-left-color: var(--c-info); }
.encadre.info .titre { color: var(--c-info); }

/* Sous-menu interne (liens d'ancre ou liens vers d'autres rêves) */
.sous-menu { margin-block: 1.4em; }
.sous-menu ul, ul.symboles, .pills {
	list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px;
}
.sous-menu li, ul.symboles li, .pills li { margin: 0; }
.sous-menu a, ul.symboles a, .pills a {
	display: inline-block; padding: 7px 15px; border-radius: 999px; border: 1px solid var(--c-border);
	background: var(--c-surface); color: var(--c-text); text-decoration: none; font-size: .92rem; font-weight: 500;
	transition: border-color .15s, color .15s, background .15s;
}
.sous-menu a:hover, ul.symboles a:hover, .pills a:hover { border-color: var(--c-accent); color: var(--c-accent); background: var(--c-accent-soft); }
.sous-menu .titre { display: block; font-size: .85rem; font-weight: 700; color: var(--c-muted); margin-bottom: 8px; }
@media (max-width: 600px) {
	.sous-menu.defilant ul { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
	.sous-menu.defilant li { flex: none; }
}

/* Positif / négatif côte à côte */
.deux-colonnes { display: grid; gap: 16px; margin-block: 1.6em; }
@media (min-width: 640px) { .deux-colonnes { grid-template-columns: 1fr 1fr; } }
.deux-colonnes > * { margin: 0 !important; }
.positif, .negatif, .neutre { border-radius: var(--r); padding: 18px 20px; margin-block: 1.2em; }
.positif { background: var(--c-ok-soft); }
.negatif { background: var(--c-bad-soft); }
.neutre { background: var(--c-accent-soft); }
.positif .titre, .negatif .titre, .neutre .titre { display: block; font-weight: 750; margin-bottom: .5em; }
.positif .titre { color: var(--c-ok); }
.negatif .titre { color: var(--c-bad); }
.neutre .titre { color: var(--c-accent); }
.positif > :last-child, .negatif > :last-child, .neutre > :last-child { margin-bottom: 0; }
.positif ul, .negatif ul, .neutre ul { margin: 0; padding-left: 1.2em; }

/* Cartes (variantes d'un rêve, situations, symboles liés) */
.cartes { display: grid; gap: 14px; margin-block: 1.6em; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.carte {
	position: relative; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r);
	padding: 18px 20px; transition: border-color .15s, transform .15s, box-shadow .15s;
}
.carte:has(a):hover { border-color: var(--c-accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.carte h3, .carte .titre { font-size: 1.1rem; margin: 0 0 .4em; display: block; font-family: var(--f-title); font-weight: 700; }
.carte p { font-size: .95rem; color: var(--c-muted); margin: 0; }
.carte a { color: var(--c-text); text-decoration: none; }
.carte a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.carte .emoji { font-size: 1.6rem; line-height: 1; display: block; margin-bottom: 10px; }

/* Étapes numérotées */
ol.etapes { list-style: none; padding: 0; counter-reset: etape; margin-block: 1.6em; }
ol.etapes > li { counter-increment: etape; position: relative; padding: 2px 0 14px 52px; margin: 0; }
ol.etapes > li::before {
	content: counter(etape); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%;
	display: grid; place-items: center; background: var(--c-accent); color: var(--c-accent-ink); font-weight: 700; font-size: .95rem;
}
ol.etapes > li > strong:first-child { display: block; }

/* FAQ (génère automatiquement le schema FAQPage) */
.faq { margin-block: 1.6em; }
details.faq, .faq details {
	border: 1px solid var(--c-border); border-radius: var(--r); background: var(--c-surface);
	margin: 0 auto 10px; padding: 0 20px; transition: border-color .15s;
}
details.faq[open], .faq details[open] { border-color: color-mix(in srgb, var(--c-accent) 45%, var(--c-border)); }
details.faq summary, .faq details summary {
	cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font-weight: 650; position: relative;
}
details.faq summary::-webkit-details-marker, .faq details summary::-webkit-details-marker { display: none; }
details.faq summary::after, .faq details summary::after {
	content: "+"; position: absolute; right: 0; top: 50%; translate: 0 -50%; font-size: 1.4rem; font-weight: 400; color: var(--c-accent);
}
details.faq[open] summary::after, .faq details[open] summary::after { content: "−"; }
details.faq > :not(summary), .faq details > :not(summary) { margin-top: 0; }
details.faq > :last-child:not(summary), .faq details > :last-child:not(summary) { padding-bottom: 16px; margin-bottom: 0; }

.faq-section { margin-top: 2.4em; }
.faq-section h2 { margin-top: 0; }

/* Note / mention discrète */
.note { font-size: .88rem; color: var(--c-muted); }

/* Boutons */
.bouton, .bouton-secondaire, .comment-form .submit {
	display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 650;
	text-decoration: none; border: 2px solid var(--c-accent); cursor: pointer; transition: filter .15s, background .15s;
}
.bouton, .comment-form .submit { background: var(--c-accent); color: var(--c-accent-ink); }
.bouton:hover, .comment-form .submit:hover { filter: brightness(1.08); }
.bouton-secondaire { background: transparent; color: var(--c-accent); }
.bouton-secondaire:hover { background: var(--c-accent-soft); }
.centre { text-align: center; }

/* Hero (pour construire l'accueil en page statique) */
.hero {
	position: relative; overflow: hidden; color: #f3f1ff; text-align: center;
	background:
		radial-gradient(1.5px 1.5px at 12% 22%, #fff9 50%, transparent 51%),
		radial-gradient(1px 1px at 28% 68%, #fff8 50%, transparent 51%),
		radial-gradient(1.5px 1.5px at 72% 18%, #fffa 50%, transparent 51%),
		radial-gradient(1px 1px at 86% 58%, #fff7 50%, transparent 51%),
		radial-gradient(1px 1px at 52% 40%, #fff6 50%, transparent 51%),
		radial-gradient(1.2px 1.2px at 40% 12%, #fff8 50%, transparent 51%),
		radial-gradient(ellipse at 50% -20%, color-mix(in srgb, var(--c-accent) 70%, #000) 0, transparent 65%),
		var(--c-night);
	padding: clamp(48px, 9vw, 96px) 0 clamp(40px, 7vw, 72px);
}
.entry-content > .hero { max-width: none; margin-inline: calc(50% - 50vw); padding-inline: var(--pad); }
.hero__inner, .hero > * { max-width: 760px; margin-inline: auto; }
.hero h1, .hero__title { color: #fff; margin-bottom: .3em; }
.hero p, .hero__lead { color: #d6d2f0; font-size: 1.1rem; max-width: 600px; margin-inline: auto; }
.hero .search-form, .hero__search { max-width: 560px; margin: 26px auto 0; }
.hero .search-form__input { background: #fff; color: #1f1d2b; border-color: transparent; height: 56px; }
.hero .search-form__btn { width: 46px; height: 46px; }
.hero .alphabet { margin-top: 24px; }
.hero .alphabet a { color: #fff; border-color: #ffffff30; background: #ffffff10; }
.hero .alphabet a:hover { background: #fff; color: var(--c-night); }
.hero .alphabet span { color: #ffffff40; }

/* Grille de catégories pour l'accueil */
.grille-categories { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); margin-block: 1.6em; list-style: none; padding: 0 !important; }
.grille-categories li { margin: 0; }
.grille-categories a {
	display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px; border-radius: var(--r);
	background: var(--c-surface); border: 1px solid var(--c-border); text-decoration: none; color: var(--c-text); font-weight: 650;
	transition: border-color .15s, transform .15s;
}
.grille-categories a:hover { border-color: var(--c-accent); transform: translateY(-2px); }
.grille-categories .emoji { font-size: 1.7rem; line-height: 1; }
.grille-categories small { font-weight: 400; color: var(--c-muted); font-size: .85rem; }

/* Section plein écran colorée */
.bandeau { background: var(--c-accent-soft); padding-block: clamp(32px, 6vw, 56px); }
.bandeau > * { max-width: var(--w-text); margin-inline: auto; }
.entry-content > .bandeau { max-width: none; margin-inline: calc(50% - 50vw); padding-inline: var(--pad); margin-block: 2.5em; }

/* =========================================================================
   7. Listes d'articles (cartes)
   ========================================================================= */
.listing { padding-bottom: 56px; }
.listing-header { margin: 18px auto 30px; text-align: center; }
.listing-header__desc { color: var(--c-muted); text-align: left; }
.listing-header__desc > * { max-width: none; }
.listing-header__search { max-width: 520px; margin: 18px auto 0; }
.listing-header .pills { justify-content: center; margin-top: 18px; }
.section-title { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.65rem); margin: 44px 0 20px; }
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card {
	position: relative; display: flex; flex-direction: column; background: var(--c-surface);
	border: 1px solid var(--c-border); border-radius: var(--r); overflow: hidden; transition: transform .18s, box-shadow .18s, border-color .18s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--c-accent) 35%, var(--c-border)); }
.card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.card__cat { font-size: .74rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; color: var(--c-accent); }
.card__title { font-size: 1.18rem; margin: 0; }
.card__title a { color: var(--c-text); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__excerpt { font-size: .94rem; color: var(--c-muted); margin: 0; }
.empty { text-align: center; max-width: 560px; margin: 0 auto; color: var(--c-muted); }

.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pagination .page-numbers {
	min-width: 44px; height: 44px; padding: 0 14px; display: inline-grid; place-items: center; border-radius: 999px;
	border: 1px solid var(--c-border); background: var(--c-surface); color: var(--c-text); text-decoration: none; font-weight: 600;
}
.pagination .page-numbers.current { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-accent-ink); }
.pagination a.page-numbers:hover { border-color: var(--c-accent); color: var(--c-accent); }
.pagination .dots { border: 0; background: none; }

/* =========================================================================
   8. Bas d'article : auteur, similaires, commentaires
   ========================================================================= */
.article { padding-bottom: 24px; }
.author-box {
	display: flex; gap: 16px; align-items: flex-start; margin-top: 44px !important; padding: 20px;
	background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r);
}
.author-box img { border-radius: 50%; flex: none; }
.author-box__name { font-weight: 700; margin: 0 0 4px; }
.author-box__bio { font-size: .94rem; color: var(--c-muted); margin: 0; }
.related { padding-bottom: 40px; }
.page-links { margin-top: 24px; display: flex; gap: 8px; }
.comments { max-width: var(--w-text); margin: 20px auto 56px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { padding: 16px 0; border-bottom: 1px solid var(--c-border); }
.comment-list .children { list-style: none; padding-left: 24px; }
.comment-meta { font-size: .88rem; color: var(--c-muted); }
.comment-author img { border-radius: 50%; float: left; margin-right: 10px; }
.comment-form label { display: block; font-weight: 600; margin-bottom: 4px; }
.comment-form input:not([type="checkbox"]):not([type="submit"]), .comment-form textarea {
	width: 100%; padding: 12px 14px; border: 1.5px solid var(--c-border); border-radius: var(--r-sm); background: var(--c-surface);
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--c-accent); }

/* =========================================================================
   9. Dictionnaire A-Z
   ========================================================================= */
.alphabet ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.alphabet li { margin: 0; }
.alphabet a, .alphabet span {
	display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; font-weight: 700; font-size: .95rem; text-decoration: none;
}
.alphabet a { border: 1px solid var(--c-border); background: var(--c-surface); color: var(--c-text); transition: background .15s, color .15s; }
.alphabet a:hover { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-accent-ink); }
.alphabet span { color: var(--c-border); }
.article--dico .alphabet { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--c-bg) 92%, transparent); backdrop-filter: blur(6px); padding: 10px 0; margin-block: 10px 20px; }
.article--dico .wrap > .dico { max-width: var(--w-wide); }
.dico { columns: 3 260px; column-gap: 32px; }
.dico__letter { break-inside: avoid; margin-bottom: 26px; scroll-margin-top: 70px; }
.dico__letter h2 {
	font-size: 1.6rem; color: var(--c-accent); border-bottom: 2px solid var(--c-accent-soft); padding-bottom: 4px; margin: 0 0 10px;
}
.dico__letter ul { list-style: none; margin: 0; padding: 0; }
.dico__letter li { padding: 3px 0; }
.dico__letter a { color: var(--c-text); text-decoration: none; }
.dico__letter a:hover { color: var(--c-accent); text-decoration: underline; }

/* =========================================================================
   10. 404 et footer
   ========================================================================= */
.error-404 { text-align: center; padding-block: 56px 72px; }
.error-404__code { font-family: var(--f-title); font-size: clamp(4rem, 12vw, 7rem); font-weight: 700; line-height: 1; margin: 0 0 10px; color: var(--c-accent-soft); -webkit-text-stroke: 2px var(--c-accent); }
.error-404__search { max-width: 520px; margin: 24px auto 0; }

.site-footer { background: var(--c-night); color: #cfcbe6; margin-top: 40px; font-size: .94rem; }
.site-footer a { color: #fff; }
.site-footer .site-name { color: #fff; }
.site-footer .site-name .icon { color: #b9adff; }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: 28px 56px; justify-content: space-between; padding-block: 44px 28px; }
.site-footer__brand { max-width: 420px; }
.site-footer__text { margin-top: 12px; color: #aaa6c8; }
.site-footer__text p:last-child { margin-bottom: 0; }
.footer-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-menu a { color: #cfcbe6; text-decoration: none; }
.footer-menu a:hover { color: #fff; text-decoration: underline; }
.site-footer__copy { border-top: 1px solid #ffffff14; padding-block: 18px 24px; font-size: .84rem; color: #8d89ab; }

/* =========================================================================
   11. Ajustements mobiles et impression
   ========================================================================= */
@media (max-width: 600px) {
	body { font-size: 1.03rem; }
	.header-bar { --header-h: 58px; }
	.en-bref, .encadre { padding: 16px 18px; }
	.grid { gap: 16px; }
	.dico { columns: 1; }
}
@media print {
	.site-header, .side-panel, .overlay, .site-footer, .related, .comments, .sommaire, .breadcrumb { display: none !important; }
	body { background: #fff; color: #000; }
	a { color: #000; }
}
