/*
Theme Name: Le Piano Jazz
Theme URI: https://lepianojazz.com/
Author: Céline T.
Description: Thème léger, sobre et poétique pour Le Piano Jazz — blog de leçons et vente de formations. Sans constructeur de pages, polices hébergées localement, presque sans JavaScript.
Version: 1.3.0
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lepianojazz
Tags: blog, one-column, custom-menu, custom-logo, featured-images, translation-ready
*/

/* ---------- Polices (hébergées sur votre serveur : rapide + RGPD) ---------- */
@font-face { font-family: "Cormorant"; src: url(assets/fonts/cormorant-garamond-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url(assets/fonts/cormorant-garamond-latin-500-italic.woff2) format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url(assets/fonts/cormorant-garamond-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url(assets/fonts/jost-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url(assets/fonts/jost-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

/* ---------- Couleurs & mesures ---------- */
:root {
	--night: #121110;      /* la salle, après minuit */
	--night-2: #1c1a18;
	--ivory: #f7f2e8;      /* les touches blanches */
	--paper: #fcfaf5;
	--brass: #b4904f;      /* le pavillon de la trompette */
	--brass-deep: #8c6b33;
	--ink: #1d1b19;
	--muted: #6d665c;
	--line: #e6dece;
	--blue: #2d3e5c;       /* la note bleue */

	--serif: "Cormorant", "Cormorant Garamond", Georgia, serif;
	--sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;

	--wrap: 1160px;
	--text: 700px;
	--radius: 3px;
	--gutter: clamp(16px, 4vw, 40px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 1.0625rem/1.75 var(--sans);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}
img, svg, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: var(--brass-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
::selection { background: var(--brass); color: #fff; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.5rem, 5.5vw, 4.25rem); }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.3rem; }
em, .italic { font-style: italic; }
p { margin: 0 0 1.2em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--text { max-width: calc(var(--text) + 2 * var(--gutter)); }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

/* Petite étiquette au-dessus des titres */
.eyebrow {
	display: inline-flex; align-items: center; gap: .75em;
	font: 500 .78rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
	color: var(--brass-deep); margin-bottom: 1.2rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

/* ---------- Boutons ---------- */
.btn {
	display: inline-flex; align-items: center; gap: .6em;
	padding: .95em 1.7em; border-radius: var(--radius);
	font: 500 .85rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
	text-decoration: none; border: 1px solid transparent; cursor: pointer;
	transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--brass { background: var(--brass); color: #fff; }
.btn--brass:hover { background: var(--brass-deep); color: #fff; }
.btn--ghost { border-color: currentColor; color: inherit; }
.btn--ghost:hover { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.btn--dark { background: var(--ink); color: var(--ivory); }
.btn--dark:hover { background: var(--blue); color: #fff; }
.btn-arrow::after { content: "→"; font-size: 1.1em; letter-spacing: 0; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(18,17,16,.96); color: var(--ivory); backdrop-filter: blur(6px); border-bottom: 1px solid rgba(180,144,79,.25); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; position: relative; } }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ivory); }
.brand:hover { color: #fff; }
.brand__name { font: italic 500 1.65rem/1 var(--serif); letter-spacing: .01em; }
.brand__mark { width: 30px; height: 30px; color: var(--brass); flex: none; }
.custom-logo { max-height: 48px; width: auto; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 30px; }
.main-nav a { color: rgba(247,242,232,.82); text-decoration: none; font-size: .92rem; letter-spacing: .04em; padding: 6px 0; position: relative; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--brass); transition: right .25s; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: #fff; }
.main-nav a:hover::after, .main-nav .current-menu-item > a::after { right: 0; }
.main-nav .menu-cta > a { border: 1px solid var(--brass); padding: 9px 16px; border-radius: var(--radius); color: var(--ivory); }
.main-nav .menu-cta > a::after { display: none; }
.main-nav .menu-cta > a:hover { background: var(--brass); }
.main-nav .sub-menu { display: none; }

.nav-toggle { display: none; background: none; border: 0; color: var(--ivory); padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 1px; background: currentColor; margin: 6px 0; transition: transform .25s, opacity .25s; }

@media (max-width: 900px) {
	.nav-toggle { display: block; }
	.main-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--night); border-bottom: 1px solid rgba(180,144,79,.25); display: none; }
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px; }
	.main-nav li { border-bottom: 1px solid rgba(247,242,232,.08); }
	.main-nav a { display: block; padding: 14px 0; font-size: 1rem; }
	.main-nav .menu-cta { border: 0; margin-top: 16px; }
	.main-nav .menu-cta > a { text-align: center; }
	.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
	.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Héros (accueil) ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 85% 10%, #26221d 0%, var(--night) 60%); color: var(--ivory); padding: clamp(80px, 13vw, 150px) 0 clamp(110px, 14vw, 170px); }
.hero h1 { color: var(--ivory); max-width: 17ch; margin-bottom: .45em; }
.hero h1 em { color: var(--brass); }
.hero__lead { max-width: 52ch; font-size: 1.15rem; color: rgba(247,242,232,.78); margin-bottom: 2.2rem; }
.hero .eyebrow { color: var(--brass); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__staff { position: absolute; right: -6%; top: 12%; width: 72%; max-width: 980px; color: var(--brass); opacity: .3; pointer-events: none; }
.hero__inner { position: relative; z-index: 1; }

/* Clavier : une octave qui se répète, en bas des sections sombres */
.keys {
	position: absolute; left: 0; right: 0; bottom: 0; height: 46px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='46'%3E%3Cg fill='%23f7f2e8'%3E%3Crect x='0.5' y='0' width='19' height='46'/%3E%3Crect x='20.5' y='0' width='19' height='46'/%3E%3Crect x='40.5' y='0' width='19' height='46'/%3E%3Crect x='60.5' y='0' width='19' height='46'/%3E%3Crect x='80.5' y='0' width='19' height='46'/%3E%3Crect x='100.5' y='0' width='19' height='46'/%3E%3Crect x='120.5' y='0' width='19' height='46'/%3E%3C/g%3E%3Cg fill='%23121110'%3E%3Crect x='14' y='0' width='12' height='28'/%3E%3Crect x='34' y='0' width='12' height='28'/%3E%3Crect x='74' y='0' width='12' height='28'/%3E%3Crect x='94' y='0' width='12' height='28'/%3E%3Crect x='114' y='0' width='12' height='28'/%3E%3C/g%3E%3C/svg%3E");
	background-repeat: repeat-x; background-size: auto 100%;
	opacity: .1;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
}

/* ---------- Sections ---------- */
.section { padding: clamp(70px, 9vw, 120px) 0; }
.section--ivory { background: var(--ivory); }
.section--dark { background: var(--night); color: var(--ivory); position: relative; overflow: hidden; }
.section--dark h2, .section--dark h3 { color: var(--ivory); }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }
.section__head h2 { margin: 0; max-width: 20ch; }
.section__head p { margin: 0; color: var(--muted); max-width: 44ch; }
.link-more { font: 500 .82rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--brass-deep); white-space: nowrap; }
.link-more::after { content: " →"; }

/* Le chemin : Écouter, Comprendre, Jouer */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.step { padding: 40px 36px 8px 0; }
.step + .step { padding-left: 36px; border-left: 1px solid var(--line); }
.step__num { font: italic 500 3.4rem/1 var(--serif); color: var(--brass); display: block; margin-bottom: 18px; }
.step h3 { margin-bottom: .4em; }
.step p { color: var(--muted); margin-bottom: 1em; }
.step a { font-size: .92rem; }
@media (max-width: 800px) {
	.steps { grid-template-columns: 1fr; }
	.step, .step + .step { padding: 32px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Cartes d'articles ---------- */
.grid { display: grid; gap: 40px 32px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }

.card { display: flex; flex-direction: column; }
.card__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--night-2); margin-bottom: 20px; border-radius: var(--radius); position: relative; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card__media--empty { display: grid; place-items: center; color: var(--brass); }
.card__media--empty svg { width: 54px; opacity: .6; }
.card__meta { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; display: flex; gap: 10px; flex-wrap: wrap; }
.card__meta a { color: var(--brass-deep); text-decoration: none; }
.card__title { font-size: 1.65rem; margin-bottom: .35em; }
.card__title a { color: var(--ink); text-decoration: none; background: linear-gradient(var(--brass), var(--brass)) 0 100% / 0 1px no-repeat; transition: background-size .35s; }
.card__title a:hover { background-size: 100% 1px; }
.card__excerpt { color: var(--muted); font-size: .98rem; margin: 0; }

/* Carte « à la une » sur la page blog */
.card--feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.card--feature .card__media { margin: 0; aspect-ratio: 16 / 10; }
.card--feature .card__title { font-size: clamp(2rem, 3.4vw, 2.8rem); }
@media (max-width: 800px) { .card--feature { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- Formations ---------- */
.formations { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.formation-card { background: var(--night-2); border: 1px solid rgba(180,144,79,.28); border-radius: var(--radius); padding: 40px 34px 34px; display: flex; flex-direction: column; position: relative; transition: border-color .25s, transform .25s; }
.formation-card:hover { border-color: var(--brass); transform: translateY(-3px); }
.formation-card__level { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--brass); margin-bottom: 16px; }
.formation-card h3 { font-size: 1.95rem; }
.formation-card h3 a { color: var(--ivory); text-decoration: none; }
.formation-card p { color: rgba(247,242,232,.7); font-size: .98rem; flex: 1; }
.formation-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; border-top: 1px solid rgba(247,242,232,.1); }
.price { font: 500 1.9rem/1 var(--serif); color: var(--ivory); }
.price small { font: .8rem var(--sans); color: rgba(247,242,232,.55); margin-left: 4px; }
.formation-card--soon { border-style: dashed; justify-content: center; text-align: center; }
.section--light .formation-card { background: #fff; border-color: var(--line); }
.section--light .formation-card h3 a, .section--light .price { color: var(--ink); }
.section--light .formation-card p { color: var(--muted); }
.section--light .formation-card__foot { border-color: var(--line); }

/* ---------- Newsletter / aimant à prospects ---------- */
.optin { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.optin h2 { margin-bottom: .35em; }
.optin p { color: var(--muted); }
.optin__note { font-size: .82rem; color: var(--muted); margin-top: 14px; }
.optin-form { display: flex; flex-direction: column; gap: 12px; }
.optin-form input[type="email"], .optin-form input[type="text"] {
	width: 100%; padding: 1em 1.1em; font: 1rem var(--sans); color: var(--ink);
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.optin-form input:focus { border-color: var(--brass); outline: none; box-shadow: 0 0 0 3px rgba(180,144,79,.18); }
.optin-form .btn { justify-content: center; }
.optin-box { background: #fff; padding: clamp(28px, 4vw, 44px); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 30px 60px -40px rgba(18,17,16,.35); }
@media (max-width: 800px) { .optin { grid-template-columns: 1fr; } }

/* ---------- À propos ---------- */
.about { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.about__photo { position: relative; }
.about__photo img, .about__photo .ph { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.about__photo .ph svg { width: 34%; }
.about__photo .ph { background: linear-gradient(160deg, #2a2620, var(--night)); display: grid; place-items: center; color: var(--brass); }
.about__photo::after { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--brass); border-radius: var(--radius); z-index: -1; }
.about__photo { z-index: 0; }
.about__sign { font: italic 500 2rem/1 var(--serif); color: var(--brass-deep); margin-top: 8px; }
@media (max-width: 800px) { .about { grid-template-columns: 1fr; } .about__photo { max-width: 360px; } }

/* ---------- Citation ---------- */
.quote { text-align: center; padding: clamp(80px, 10vw, 130px) 0 clamp(110px, 12vw, 160px); }
.quote blockquote { margin: 0 auto; max-width: 26ch; font: italic 500 clamp(1.8rem, 3.6vw, 2.8rem)/1.25 var(--serif); color: var(--ivory); }
.quote blockquote::before { content: "“"; display: block; font-size: 4rem; line-height: .6; color: var(--brass); margin-bottom: 18px; }

/* ---------- En-tête de page / archive ---------- */
.page-head { background: var(--night); color: var(--ivory); padding: clamp(64px, 9vw, 110px) 0 clamp(80px, 10vw, 120px); position: relative; overflow: hidden; }
.page-head h1 { color: var(--ivory); margin: 0; max-width: 20ch; }
.page-head p { color: rgba(247,242,232,.72); max-width: 56ch; margin: 18px 0 0; }
.page-head .eyebrow { color: var(--brass); }
.cat-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; position: relative; z-index: 1; }
.cat-filter a { color: rgba(247,242,232,.8); text-decoration: none; font-size: .85rem; border: 1px solid rgba(247,242,232,.2); padding: 7px 14px; border-radius: 99px; }
.cat-filter a:hover, .cat-filter a.is-active { border-color: var(--brass); color: #fff; background: rgba(180,144,79,.15); }

/* ---------- Article ---------- */
.post-head { background: var(--night); color: var(--ivory); padding: clamp(60px, 8vw, 100px) 0 clamp(70px, 9vw, 110px); position: relative; overflow: hidden; text-align: center; }
.post-head h1 { color: var(--ivory); margin: 0 auto .4em; max-width: 22ch; font-size: clamp(2.3rem, 5vw, 3.8rem); }
.post-head .card__meta { justify-content: center; color: rgba(247,242,232,.6); }
.post-head .card__meta a { color: var(--brass); }
.post-cover { max-width: 1000px; margin: -50px auto 0; padding: 0 var(--gutter); position: relative; z-index: 2; }
.post-cover img { width: 100%; border-radius: var(--radius); box-shadow: 0 30px 60px -30px rgba(0,0,0,.45); }

.entry { padding: clamp(48px, 7vw, 80px) 0; }
.entry-content { max-width: var(--text); margin: 0 auto; font-size: 1.125rem; }
.entry-content > * { margin-top: 0; margin-bottom: 1.4em; }
.entry-content h2 { font-size: 2.2rem; margin-top: 1.8em; margin-bottom: .55em; }
.entry-content h3 { font-size: 1.7rem; margin-top: 1.6em; margin-bottom: .5em; }
.entry-content > p:first-child::first-letter { float: left; font: 500 4.4rem/.8 var(--serif); color: var(--brass-deep); padding: 8px 10px 0 0; }
.entry-content blockquote, .wp-block-quote { border-left: 2px solid var(--brass); margin-left: 0; padding: .2em 0 .2em 1.4em; font: italic 500 1.55rem/1.4 var(--serif); color: var(--ink); }
.entry-content blockquote cite { display: block; font: .85rem var(--sans); color: var(--muted); margin-top: .6em; font-style: normal; }
.entry-content img { border-radius: var(--radius); }
.entry-content figcaption { font-size: .85rem; color: var(--muted); text-align: center; margin-top: .6em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .4em; }
.entry-content li::marker { color: var(--brass); }
.entry-content hr { border: 0; text-align: center; margin: 3em 0; }
.entry-content hr::after { content: "♪   ♪   ♪"; color: var(--brass); letter-spacing: .4em; white-space: pre; }
.entry-content code { background: var(--ivory); padding: .1em .35em; border-radius: 3px; font-size: .9em; }
.entry-content .wp-block-embed, .entry-content iframe { width: 100%; }
.entry-content .wp-block-embed__wrapper iframe { aspect-ratio: 16 / 9; height: auto; }
.entry-content .alignwide { max-width: 1000px; margin-left: 50%; transform: translateX(-50%); width: min(1000px, 100vw - 2 * var(--gutter)); }
.entry-content .alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.entry-content .wp-block-button__link { background: var(--brass); border-radius: var(--radius); font: 500 .85rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; padding: 1em 1.7em; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.entry-content th, .entry-content td { border-bottom: 1px solid var(--line); padding: .7em .5em; text-align: left; }

.post-foot { max-width: var(--text); margin: 0 auto; padding-top: 32px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: .8rem; color: var(--muted); border: 1px solid var(--line); padding: 5px 12px; border-radius: 99px; text-decoration: none; }
.tag:hover { border-color: var(--brass); color: var(--ink); }

/* Encart formation en fin d'article : le pont entre le blog et la vente */
.cta-box { max-width: var(--text); margin: 48px auto 0; background: var(--night); color: var(--ivory); padding: 40px; border-radius: var(--radius); position: relative; overflow: hidden; }
.cta-box h3 { color: var(--ivory); font-size: 1.9rem; margin-bottom: .3em; }
.cta-box p { color: rgba(247,242,232,.75); }
.cta-box .keys { height: 30px; }

.post-nav { max-width: var(--text); margin: 56px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.post-nav a { text-decoration: none; color: var(--ink); display: block; }
.post-nav small { display: block; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.post-nav span { font: 500 1.3rem/1.25 var(--serif); }
.post-nav .next { text-align: right; }

/* ---------- Formation (page de vente) ---------- */
.course { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.course .entry-content { margin: 0; }
.buy-box { position: sticky; top: 100px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: 0 30px 60px -40px rgba(18,17,16,.35); }
.buy-box .price { color: var(--ink); font-size: 2.6rem; display: block; margin-bottom: 18px; }
.buy-box .price small { color: var(--muted); }
.buy-box ul { list-style: none; padding: 0; margin: 0 0 24px; font-size: .95rem; }
.buy-box li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; }
.buy-box li span:first-child { color: var(--muted); }
.buy-box .btn { width: 100%; justify-content: center; }
.buy-box__note { font-size: .8rem; color: var(--muted); text-align: center; margin: 14px 0 0; }
@media (max-width: 900px) { .course { grid-template-columns: 1fr; } .buy-box { position: static; } }

/* ---------- Commentaires ---------- */
.comments { max-width: var(--text); margin: 64px auto 0; }
.comments h2 { font-size: 1.9rem; }
.comment-list { list-style: none; padding: 0; margin: 0 0 40px; }
.comment-list .children { list-style: none; padding-left: 28px; }
.comment-body { padding: 22px 0; border-bottom: 1px solid var(--line); }
.comment-author { font-weight: 500; }
.comment-author .avatar { display: inline-block; border-radius: 50%; vertical-align: middle; margin-right: 10px; }
.comment-metadata { font-size: .8rem; color: var(--muted); }
.comment-metadata a { color: inherit; text-decoration: none; }
.comment-respond input:not([type="submit"]):not([type="checkbox"]), .comment-respond textarea { width: 100%; padding: .8em 1em; font: 1rem var(--sans); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.comment-respond .submit { background: var(--ink); color: var(--ivory); border: 0; padding: 1em 1.7em; font: 500 .85rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; border-radius: var(--radius); cursor: pointer; }

/* ---------- Pagination, recherche ---------- */
.pagination { margin-top: 64px; display: flex; justify-content: center; }
.pagination .nav-links { display: flex; gap: 6px; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.pagination .current, .pagination a:hover { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.search-form { display: flex; gap: 8px; max-width: 520px; position: relative; z-index: 1; margin-top: 28px; }
.search-form input { flex: 1; padding: .85em 1em; font: 1rem var(--sans); border: 1px solid rgba(247,242,232,.25); background: rgba(247,242,232,.06); color: var(--ivory); border-radius: var(--radius); }
.search-form input::placeholder { color: rgba(247,242,232,.5); }
.empty { text-align: center; padding: 40px 0; color: var(--muted); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--night); color: rgba(247,242,232,.65); padding: 80px 0 32px; font-size: .95rem; position: relative; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: min(var(--wrap), 100%); height: 1px; background: linear-gradient(90deg, transparent, var(--brass), transparent); opacity: .5; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
.footer-grid h4 { color: var(--ivory); font-size: 1.25rem; margin-bottom: 1em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .6em; }
.site-footer a { color: rgba(247,242,232,.8); text-decoration: none; }
.site-footer a:hover { color: var(--brass); }
.footer-brand .brand__name { color: var(--ivory); font-size: 2rem; display: block; margin-bottom: 14px; }
.footer-brand p { max-width: 38ch; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid rgba(247,242,232,.08); font-size: .82rem; }
.footer-bottom ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; flex-wrap: wrap; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Animation d'apparition, très discrète ---------- */
@media (prefers-reduced-motion: no-preference) {
	.hero__inner > * { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
	.hero__inner > *:nth-child(2) { animation-delay: .08s; }
	.hero__inner > *:nth-child(3) { animation-delay: .16s; }
	.hero__inner > *:nth-child(4) { animation-delay: .24s; }
	.hero__staff path { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 2.6s ease-out .3s forwards; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* WordPress */
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text { font-size: .85rem; color: var(--muted); }
.sticky, .bypostauthor, .gallery-caption { }

/* Palette de l'éditeur */
.has-nuit-color { color: #121110; } .has-nuit-background-color { background-color: #121110; }
.has-ivoire-color { color: #f7f2e8; } .has-ivoire-background-color { background-color: #f7f2e8; }
.has-laiton-color { color: #b4904f; } .has-laiton-background-color { background-color: #b4904f; }
.has-note-bleue-color { color: #2d3e5c; } .has-note-bleue-background-color { background-color: #2d3e5c; }
.has-encre-color { color: #1d1b19; } .has-encre-background-color { background-color: #1d1b19; }
.has-blanc-color { color: #fff; } .has-blanc-background-color { background-color: #fff; }

/* Logos des radios : grille sobre */
.entry-content .pj-radios { gap: 16px; }
.entry-content .pj-radios img { border-radius: var(--radius); border: 1px solid var(--line); background: #fff; transition: border-color .2s, transform .2s; }
.entry-content .pj-radios a:hover img { border-color: var(--brass); transform: translateY(-2px); }
