/*
Theme Name: La Vie en Couleur
Theme URI: https://www.la-vie-en-couleur.fr
Author: Benjamin Gergaud
Description: Thème éditorial pour un blog de conseils déco et maison. Typographie Cormorant Garamond / Karla, quatre couleurs de rubrique, ambiance colorée au défilement, blocs éditoriaux (À retenir, Le geste, Le matériel), tableaux interactifs, animations respectueuses de prefers-reduced-motion. Pas de mode sombre.
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: la-vie-en-couleur
Tags: blog, one-column, custom-colors, custom-menu, featured-images, translation-ready
*/

/* ================================================================
   TOKENS — couleurs personnalisables (Apparence → Personnaliser),
   le reste dérive. Pas de mode sombre : palette unique.
   ================================================================ */
:root {
  --paper: #F6F2EA;
  --ink: #2E2A26;
  --main: #A3543E;   /* terre cuite */
  --accent: #56718F; /* bleu encre */
  --peinture: #A3543E;
  --deco: #9C6B31;
  --brico: #5F7350;
  --electro: #56718F;
  --paper-raised: color-mix(in srgb, #FFFFFF 42%, var(--paper));
  --ink-soft: color-mix(in srgb, var(--ink) 70%, var(--paper));
  --main-tint: color-mix(in srgb, var(--main) 13%, var(--paper));
  --accent-tint: color-mix(in srgb, var(--accent) 13%, var(--paper));
  --line: color-mix(in srgb, var(--ink) 13%, var(--paper));
  --line-strong: color-mix(in srgb, var(--ink) 30%, var(--paper));
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Karla', 'Segoe UI', sans-serif;
}

/* ================================================================
   BASE
   ================================================================ */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink);
  background: var(--ambiant, var(--paper));
  transition: background 1.1s ease;
  font-family: var(--sans); font-size: 16px; line-height: 1.65;
}
a { color: inherit; text-decoration: none; cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
img { max-width: 100%; height: auto; }
svg { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* reveals au scroll (actifs seulement si JS présent et animations activées) */
html.js.anim .rv { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,.8,.35,1); }
html.js.anim .rv.rv-in { opacity: 1; transform: none; }
html.js.anim .rv-d1 { transition-delay: .08s; }
html.js.anim .rv-d2 { transition-delay: .16s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js.anim .rv { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  body { transition: none; }
}

/* barre de progression de lecture */
.progression {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 60;
  background: linear-gradient(90deg, var(--main), var(--accent));
}
body.admin-bar .progression { top: 32px; }

/* ================================================================
   BANDEAU + MASTHEAD + NAVIGATION
   ================================================================ */
.notice { border-bottom: 1px solid var(--line); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.notice .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.notice strong { color: var(--main); font-weight: 700; }
@media (max-width: 640px) { .notice .date { display: none; } }

.masthead { text-align: center; padding: 52px 0 0; }
.masthead .eyebrow { font-size: 12.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin: 0; }
.masthead .titre-site {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(42px, 7vw, 84px); line-height: 1.02;
  margin: 14px 0 6px; text-wrap: balance;
}
.masthead .titre-site .amp { font-style: italic; color: var(--main); }
.masthead .tagline { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 20px; color: var(--ink-soft); margin: 0; }
.masthead .custom-logo { max-height: 110px; width: auto; }
.lace-rule { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 26px auto 0; color: var(--line-strong); }
.lace-rule::before, .lace-rule::after { content: ""; height: 1px; background: var(--line); flex: 0 1 180px; }

/* le mot "Couleur" traverse lentement les teintes des rubriques */
html.js.anim .mot-couleur { animation: lvc-teintes 16s ease-in-out infinite; }
@keyframes lvc-teintes {
  0%, 100% { color: var(--peinture); }
  25% { color: var(--deco); }
  50% { color: var(--brico); }
  75% { color: var(--electro); }
}

nav.rubriques {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line); margin-top: 22px;
}
body.admin-bar nav.rubriques { top: 32px; }
nav.rubriques ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; }
nav.rubriques a {
  display: block; padding: 14px 22px;
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
  color: var(--ink-soft); border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
nav.rubriques a:hover { color: var(--ink); }
nav.rubriques .current-menu-item > a,
nav.rubriques .current-cat > a,
nav.rubriques a[aria-current="page"] { color: var(--main); border-bottom-color: var(--main); }
@media (max-width: 640px) { nav.rubriques a { padding: 12px 10px; font-size: 12px; } }
@media (max-width: 782px) { body.admin-bar nav.rubriques, body.admin-bar .progression { top: 46px; } }

/* ================================================================
   FIGURES : voile, parallaxe, zoom.
   La teinte suit --sec (couleur de rubrique) quand elle est posée.
   ================================================================ */
.figure {
  position: relative; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--sec, var(--main)) 13%, var(--paper));
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.figure > svg { width: 46%; height: auto; color: var(--sec, var(--main)); }
.figure figcaption {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 10px 16px; z-index: 2;
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft);
  background: color-mix(in srgb, var(--paper) 82%, transparent); border-top: 1px solid var(--line);
}

html.js.anim .voile::after {
  content: ""; position: absolute; inset: 0; z-index: 3;
  background: var(--sec, var(--main)); transform: scaleX(1); transform-origin: right;
  transition: transform .95s cubic-bezier(.7, 0, .25, 1);
}
html.js.anim .voile.voile-in::after { transform: scaleX(0); }
html.js.anim .voile img, html.js.anim .voile > svg { transform: scale(1.14); }
html.js.anim .voile.voile-in img, html.js.anim .voile.voile-in > svg { transform: scale(1); transition: transform 1.2s cubic-bezier(.22, .8, .3, 1); }
[data-plx] img, [data-plx] > svg { transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  html.js.anim .voile::after { display: none; }
  html.js.anim .voile img, html.js.anim .voile > svg { transform: none; transition: none; }
}

/* teintes de rubrique posables sur n'importe quel bloc */
.teinte-peinture { --sec: var(--peinture); }
.teinte-deco { --sec: var(--deco); }
.teinte-brico { --sec: var(--brico); }
.teinte-electro { --sec: var(--electro); }

/* ================================================================
   ACCUEIL
   ================================================================ */
.hero { padding: 64px 0 68px; border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.kicker { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--sec, var(--accent)); margin: 0 0 18px; }
.kicker a:hover { color: var(--ink); }
.hero h2, .hero h1.titre-une, .hero h2.titre-une { font-family: var(--serif); font-weight: 600; font-size: clamp(34px, 4.2vw, 54px); line-height: 1.08; margin: 0 0 20px; text-wrap: balance; }
.hero .chapo { font-family: var(--serif); font-size: 21px; line-height: 1.5; color: var(--ink-soft); margin: 0 0 26px; max-width: 34em; }
.hero .figure { aspect-ratio: 16 / 9; }
.hero .figure > svg { width: 68%; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.meta .dot::before { content: "·"; margin-right: 18px; color: var(--line-strong); }

/* le titre de la une se peint au chargement (balayage type rouleau) */
html.js.anim.titre-peint .hero .peint {
  color: transparent;
  background-image:
    linear-gradient(90deg, var(--ink), var(--ink)),
    linear-gradient(90deg, color-mix(in srgb, var(--ink) 20%, var(--paper)), color-mix(in srgb, var(--ink) 20%, var(--paper)));
  background-repeat: no-repeat;
  background-size: 0% 100%, 100% 100%;
  -webkit-background-clip: text; background-clip: text;
  animation: lvc-peindre 1.5s cubic-bezier(.65, .05, .3, 1) .35s forwards;
}
@keyframes lvc-peindre { to { background-size: 100% 100%, 100% 100%; } }
@media (prefers-reduced-motion: reduce) {
  html.js.anim.titre-peint .hero .peint { color: var(--ink); background: none; animation: none; }
}

.btn {
  display: inline-block; margin-top: 30px; padding: 13px 30px; min-height: 44px;
  border: 1.5px solid var(--ink); border-radius: 0;
  font-size: 13px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700;
  color: var(--ink); background: transparent;
  transition: background .2s ease, color .2s ease;
  cursor: pointer; font-family: var(--sans);
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-plein { background: var(--main); border-color: var(--main); color: var(--paper); }
.btn-plein:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* sections de rubrique */
.rubrique-section { padding: 64px 0 12px; position: relative; overflow: hidden; }
.rubrique-section .wrap { position: relative; z-index: 1; }
.rubrique-titre { display: flex; align-items: center; gap: 20px; margin-bottom: 36px; }
.rubrique-titre h2, .rubrique-titre h3 { font-family: var(--serif); font-weight: 600; font-size: 32px; margin: 0; white-space: nowrap; }
.rubrique-titre .fil { height: 1px; background: color-mix(in srgb, var(--sec, var(--ink)) 34%, var(--paper)); flex: 1; }
.rubrique-titre .voir-tout { flex-shrink: 0; }
.rubrique-titre .nb { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--sec, var(--ink-soft)); white-space: nowrap; }
.voir-tout {
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700;
  color: var(--sec, var(--main)); border-bottom: 1px solid transparent; transition: border-color .2s ease; white-space: nowrap;
}
.voir-tout:hover { border-bottom-color: var(--sec, var(--main)); }

/* numéro de rubrique en filigrane */
.filigrane {
  position: absolute; top: -10px; right: -14px; z-index: 0; pointer-events: none;
  font-family: var(--serif); font-style: italic; font-weight: 500; line-height: 1;
  font-size: clamp(160px, 22vw, 300px);
  color: color-mix(in srgb, var(--sec, var(--ink)) 8%, transparent);
  user-select: none;
}

/* souligné qui se trace sous le titre de rubrique quand il apparaît */
html.js.anim .rubrique-titre h2 { position: relative; padding-bottom: 6px; }
html.js.anim .rubrique-titre h2::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
  background: var(--sec, var(--main));
  transform: scaleX(0); transform-origin: left;
  transition: transform .9s cubic-bezier(.7, 0, .25, 1) .15s;
}
html.js.anim .rv-in.rubrique-titre h2::after, html.js.anim .rv-in .rubrique-titre h2::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) { html.js.anim .rubrique-titre h2::after { transform: scaleX(1); transition: none; } }

.cartes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; padding-bottom: 56px; border-bottom: 1px solid var(--line); }
.carte { display: flex; flex-direction: column; }
.carte .figure { aspect-ratio: 16 / 9; margin-bottom: 18px; transition: box-shadow .25s ease; }
.carte .figure img, .carte .figure > svg { transition: transform .3s cubic-bezier(.22,.8,.35,1); }
.carte:hover .figure { box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .45); }
.carte:hover .figure img { transform: scale(1.06); }
.carte:hover .figure > svg { transform: scale(1.08) rotate(-2deg); }
@media (prefers-reduced-motion: reduce) { .carte:hover .figure img, .carte:hover .figure > svg { transform: none; } }
.carte .sur-titre { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--sec, var(--accent)); margin: 0 0 8px; }
.carte .sur-titre a:hover { color: var(--ink); }
.carte h3 { font-family: var(--serif); font-weight: 600; font-size: 24px; line-height: 1.2; margin: 0 0 10px; text-wrap: balance; }
.carte h3 a { background-image: linear-gradient(var(--sec, var(--main)), var(--sec, var(--main))); background-repeat: no-repeat; background-size: 0% 1px; background-position: 0 96%; transition: background-size .3s ease, color .2s ease; }
.carte h3 a:hover { color: var(--sec, var(--main)); background-size: 100% 1px; }
.carte p { margin: 0 0 14px; color: var(--ink-soft); font-size: 15px; }
.carte .meta { margin-top: auto; font-size: 12px; }

/* liste "derniers articles" + aperçu flottant */
.derniers { padding: 64px 0 72px; }
.liste-derniers { list-style: none; margin: 0; padding: 0; }
.liste-derniers li { border-bottom: 1px solid var(--line); }
.liste-derniers li:first-child { border-top: 1px solid var(--line); }
.liste-derniers a {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 26px; align-items: baseline;
  padding: 24px 10px; transition: padding-left .3s cubic-bezier(.22,.8,.35,1), background .3s ease;
}
.liste-derniers a:hover { padding-left: 26px; background: var(--paper-raised); }
.ld-date { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); white-space: nowrap; }
.ld-titre { font-family: var(--serif); font-weight: 600; font-size: clamp(21px, 2.6vw, 30px); line-height: 1.18; transition: color .2s ease; }
.liste-derniers a:hover .ld-titre { color: var(--main); }
.ld-rub { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--accent); white-space: nowrap; }
.ld-thumb { display: none; }
@media (max-width: 640px) {
  .liste-derniers a { grid-template-columns: 1fr auto; }
  .ld-date { display: none; }
}
.apercu-flottant {
  position: fixed; top: 0; left: 0; z-index: 50; width: 300px; aspect-ratio: 16 / 9;
  pointer-events: none; opacity: 0; overflow: hidden;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--sec, var(--main)) 13%, var(--paper));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 22px 44px -20px rgba(0, 0, 0, .5);
  transition: opacity .25s ease;
}
.apercu-flottant img { width: 100%; height: 100%; object-fit: cover; }
.apercu-flottant svg { width: 46%; color: var(--sec, var(--main)); }

/* bandeau défilant */
.defile { border-bottom: 1px solid var(--line); overflow: hidden; padding: 18px 0; white-space: nowrap; }
.defile-piste { display: inline-flex; animation: lvc-defiler 36s linear infinite; }
.defile:hover .defile-piste { animation-play-state: paused; }
.defile span { font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--ink-soft); padding: 0 28px; }
.defile .puce { color: var(--accent); font-style: normal; }
@keyframes lvc-defiler { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .defile-piste { animation: none; } }

/* newsletter */
.lettre { text-align: center; padding: 76px 0; border-bottom: 1px solid var(--line); }
.lettre .kicker { margin-bottom: 14px; color: var(--accent); }
.lettre h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 3.6vw, 40px); margin: 0 0 12px; text-wrap: balance; }
.lettre .sous { color: var(--ink-soft); max-width: 42em; margin: 0 auto 30px; font-size: 16.5px; }
.lettre form { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; max-width: 520px; margin: 0 auto; }
.lettre input[type="email"] {
  flex: 1 1 280px; min-height: 48px; padding: 10px 16px;
  border: 1.5px solid var(--line-strong); background: var(--paper-raised);
  color: var(--ink); font-family: var(--sans); font-size: 16px; border-radius: 0;
}
.lettre input[type="email"]::placeholder { color: var(--ink-soft); }
.lettre .btn { margin-top: 0; }
.lettre .aide { font-size: 13px; color: var(--ink-soft); margin-top: 16px; }

/* pied de page */
.site-footer { padding: 56px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.footer-grid .marque { font-family: var(--serif); font-weight: 600; font-size: 24px; margin: 0 0 10px; }
.footer-grid .manifeste { color: var(--ink-soft); font-size: 14.5px; max-width: 30em; margin: 0; }
.footer-grid h2 { font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); margin: 4px 0 14px; font-weight: 700; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14.5px; }
.footer-grid ul a:hover { color: var(--main); }
.footer-bas { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: 13px; color: var(--ink-soft); }

/* ================================================================
   ARTICLE (single)
   ================================================================ */
.art-entete { border-bottom: 1px solid var(--line); }
.art-entete .wrap { padding-top: 18px; padding-bottom: 18px; }
.fil-ariane { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin: 0; }
.fil-ariane a:hover { color: var(--main); }
.fil-ariane .sep { margin: 0 8px; color: var(--line-strong); }

.art-titre-bloc { text-align: center; max-width: 880px; margin: 0 auto; padding: 46px 24px 54px; }
.art-titre-bloc .kicker { margin-bottom: 0; }
.art-titre-bloc h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(36px, 5.2vw, 64px); line-height: 1.06; margin: 18px 0 22px; text-wrap: balance;
}
.art-titre-bloc .chapo { font-family: var(--serif); font-size: 22px; line-height: 1.5; color: var(--ink-soft); margin: 0 auto 28px; max-width: 30em; }
.art-titre-bloc .meta { justify-content: center; }
.art-hero-figure { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.art-hero-figure .figure { aspect-ratio: 16 / 9; }
.art-hero-figure .figure > svg { width: 30%; }

/* sommaire + article = 80 % de la largeur écran */
.art-corps { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; width: 80%; margin: 0 auto; padding: 64px 0 0; }
.sommaire { position: sticky; top: 76px; align-self: start; font-size: 14px; }
body.admin-bar .sommaire { top: 108px; }
.sommaire.vide { display: none; }
.sommaire .som-titre { font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 14px; font-weight: 700; }
.sommaire ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sommaire ol a {
  display: block; padding: 7px 0 7px 14px; color: var(--ink-soft); line-height: 1.4;
  border-left: 2px solid var(--line); transition: color .2s ease, border-color .2s ease;
}
.sommaire ol a:hover { color: var(--ink); }
.sommaire ol a.actif { color: var(--main); border-left-color: var(--main); font-weight: 700; }
.sommaire .som-retour { display: block; margin-top: 22px; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
@media (max-width: 1000px) {
  .art-corps { grid-template-columns: minmax(0, 1fr); width: auto; padding: 64px 24px 0; }
  .sommaire { display: none; }
}

/* ================================================================
   CONTENU D'ARTICLE — tout s'accroche aux balises standard.
   Le pipeline publie du HTML nu, le thème l'habille.
   ================================================================ */
.entry-content { font-size: 17.5px; line-height: 1.75; counter-reset: chapitre; }
.entry-content > * { margin: 0 0 26px; }
.entry-content h2 {
  font-family: var(--serif); font-weight: 600; font-size: 33px; line-height: 1.15;
  margin: 54px 0 20px; text-wrap: balance; scroll-margin-top: 84px;
  counter-increment: chapitre;
}
.entry-content h2::before { content: counter(chapitre, upper-roman) "."; font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--accent); margin-right: 12px; }
.entry-content h3 { font-family: var(--serif); font-weight: 600; font-size: 25px; margin: 40px 0 14px; }
.entry-content > p:first-child::first-letter {
  font-family: var(--serif); font-weight: 600; font-size: 74px; line-height: .78;
  float: left; padding: 8px 12px 0 0; color: var(--main);
}
.entry-content strong { font-weight: 700; }
.entry-content em { font-family: var(--serif); font-size: 1.06em; }
.entry-content a { color: var(--main); border-bottom: 1px solid color-mix(in srgb, var(--main) 40%, transparent); transition: border-color .2s ease; }
.entry-content a:hover { border-bottom-color: var(--main); }
.entry-content ul, .entry-content ol { padding-left: 26px; }
.entry-content li { margin-bottom: 8px; }
.entry-content figure, .entry-content .wp-block-image { margin: 40px 0; position: relative; overflow: hidden; }
.entry-content figure img { display: block; width: 100%; height: auto; }
.entry-content figcaption { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); padding: 10px 2px 0; }
.entry-content hr { border: none; border-top: 1px dashed var(--line-strong); margin: 48px auto; width: 40%; }
.entry-content p:empty { display: none; }

/* citation → exergue */
.entry-content blockquote {
  border: none; margin: 56px 0; padding: 0 0 0 28px; border-left: 3px solid var(--accent);
}
.entry-content blockquote p { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 29px; line-height: 1.32; margin: 0 0 12px; color: var(--ink); }
.entry-content blockquote cite { font-style: normal; font-family: var(--sans); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }

/* tableau → habillé automatiquement (le JS ajoute .table-wrap + surbrillance) */
.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--line); background: var(--paper-raised); margin: 0 0 10px; }
.table-glow {
  position: absolute; left: 0; width: 100%; pointer-events: none; z-index: 0; opacity: 0;
  background: color-mix(in srgb, var(--main) 10%, transparent);
  border-left: 3px solid var(--main);
  transition: top .16s cubic-bezier(.25,.9,.3,1), height .16s cubic-bezier(.25,.9,.3,1), opacity .18s ease;
}
@media (prefers-reduced-motion: reduce) { .table-glow { transition: opacity .18s ease; } }
.entry-content table { width: 100%; border-collapse: collapse; position: relative; z-index: 1; font-size: 15px; min-width: 560px; margin: 0; }
.entry-content table caption { font-family: var(--serif); font-weight: 600; font-size: 21px; text-align: left; padding: 14px 18px 12px; color: var(--ink); }
.entry-content table th {
  text-align: left; padding: 14px 18px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--paper); background: var(--main); font-weight: 700; white-space: nowrap; border: none;
}
.entry-content table td { padding: 14px 18px; border-top: 1px solid var(--line); border-left: none; border-right: none; color: var(--ink-soft); transition: color .15s ease; vertical-align: top; }
.entry-content table tr.tr-actif td { color: var(--ink); }
.entry-content table td:first-child { font-family: var(--serif); font-weight: 600; font-size: 18.5px; color: var(--ink); white-space: nowrap; }
.entry-content table td { font-variant-numeric: tabular-nums; }
.table-legende, .entry-content .table-wrap + p em:only-child { font-size: 13px; color: var(--ink-soft); }

/* badges + gouttes (shortcodes) */
.badge { display: inline-block; padding: 3px 10px; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; border: 1px solid currentColor; }
.badge-brique { color: var(--main); background: color-mix(in srgb, var(--main) 9%, transparent); }
.badge-bleu { color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, transparent); }
.badge-neutre { color: var(--ink-soft); background: color-mix(in srgb, var(--ink-soft) 8%, transparent); }
.gouttes { display: inline-flex; gap: 3px; align-items: center; }
.gouttes svg { width: 13px; height: 16px; color: var(--main); }
.gouttes svg.vide { opacity: .25; }
.gouttes .g-txt { margin-left: 7px; font-size: 12.5px; color: var(--ink-soft); }

/* blocs éditoriaux (shortcodes [geste] [retenir] [materiel] [lecture]) */
.bloc-geste { margin: 48px 0; border: 1px solid var(--line); background: var(--main-tint); padding: 34px 36px 30px; position: relative; }
.bloc-geste::before {
  content: attr(data-etiquette); position: absolute; top: -11px; left: 28px;
  font-family: var(--sans); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700;
  color: var(--main); background: var(--paper); padding: 0 12px; border: 1px solid var(--line);
}
.bloc-geste .bloc-titre { font-family: var(--serif); font-weight: 600; font-size: 25px; margin: 4px 0 20px; }
.bloc-geste ol { list-style: none; margin: 0; padding: 0; counter-reset: etape; display: grid; gap: 18px; }
.bloc-geste ol li { counter-increment: etape; position: relative; padding-left: 62px; min-height: 46px; font-size: 16px; margin: 0; }
.bloc-geste ol li::before {
  content: counter(etape); position: absolute; left: 0; top: 0;
  font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--main);
  border: 1px solid var(--line-strong); width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center; background: var(--paper-raised);
}
.bloc-geste ol li > strong:first-child { display: block; padding-top: 8px; margin-bottom: 4px; }
.bloc-geste br, .bloc-retenir br, .bloc-materiel br { display: none; }

.bloc-retenir { margin: 48px 0; border: 1px solid var(--line); border-top: 3px solid var(--accent); background: var(--accent-tint); padding: 30px 36px; }
.bloc-retenir .bloc-titre { display: flex; align-items: center; gap: 10px; font-family: var(--sans); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin: 0 0 16px; font-weight: 700; }
.bloc-retenir ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; font-size: 16px; }
.bloc-retenir ul li { padding-left: 26px; position: relative; margin: 0; }
.bloc-retenir ul li::before { content: ""; position: absolute; left: 0; top: 9px; width: 12px; height: 1.5px; background: var(--accent); }

.bloc-materiel { margin: 48px 0; border: 1px dashed var(--line-strong); padding: 26px 32px; display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; }
.bloc-materiel > svg { width: 44px; height: 44px; color: var(--main); margin-top: 4px; }
.bloc-materiel .bloc-titre { font-family: var(--serif); font-weight: 600; font-size: 21px; margin: 0 0 10px; }
.bloc-materiel ul { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 36px; font-size: 15.5px; color: var(--ink-soft); }
.bloc-materiel ul li { padding: 5px 0; break-inside: avoid; margin: 0; }
.bloc-materiel ul li::before { content: "— "; color: var(--accent); }
@media (max-width: 620px) { .bloc-materiel { grid-template-columns: 1fr; } .bloc-materiel ul { columns: 1; } }

.lecture-reveal { margin: 60px 0; padding: 44px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lecture-reveal p { font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.4; margin: 0; }
.lecture-reveal .lr-label { font-family: var(--sans); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); font-weight: 700; display: block; margin-bottom: 18px; }
html.js.anim .lecture-reveal .mot-r { color: var(--line-strong); transition: color .35s ease, opacity .35s ease; opacity: .45; }
html.js.anim .lecture-reveal .mot-r.on { color: var(--ink); opacity: 1; }
@media (prefers-reduced-motion: reduce) { html.js.anim .lecture-reveal .mot-r { color: var(--ink); opacity: 1; } }

/* fin d'article */
.art-fin { width: 80%; margin: 70px auto 0; }
@media (max-width: 1000px) { .art-fin { width: auto; padding: 0 24px; } }
.auteur { display: grid; grid-template-columns: 84px 1fr; gap: 24px; align-items: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 30px 0; }
.auteur .portrait {
  width: 84px; height: 84px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: var(--main-tint); display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 30px; color: var(--main); font-weight: 600; overflow: hidden;
}
.auteur .portrait img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.auteur h2 { font-family: var(--serif); font-weight: 600; font-size: 22px; margin: 0 0 6px; }
.auteur p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.lire-ensuite { padding: 64px 0 30px; }
.lire-ensuite .rubrique-titre, .lire-ensuite .cartes { max-width: 1120px; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
.lire-ensuite .cartes { border-bottom: none; }

/* commentaires (léger) */
.commentaires { width: 80%; margin: 40px auto 0; }
@media (max-width: 1000px) { .commentaires { width: auto; padding: 0 24px; } }
.commentaires .comment-list { list-style: none; padding: 0; }
.commentaires .comment { border-top: 1px solid var(--line); padding: 20px 0; }

/* archives */
.archive-entete { text-align: center; padding: 56px 24px 10px; }
.archive-entete h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(32px, 4vw, 48px); margin: 0 0 10px; }
.archive-entete .archive-description { color: var(--ink-soft); max-width: 40em; margin: 0 auto; }
.archive-grille { padding: 46px 0 20px; }
.navigation.pagination { text-align: center; padding: 30px 0 60px; }
.navigation.pagination .nav-links { display: inline-flex; gap: 8px; }
.navigation.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px;
  border: 1px solid var(--line); font-size: 14px; font-weight: 700; color: var(--ink-soft); padding: 0 10px;
  transition: color .2s ease, border-color .2s ease;
}
.navigation.pagination .page-numbers.current { color: var(--paper); background: var(--main); border-color: var(--main); }
.navigation.pagination .page-numbers:hover { color: var(--main); border-color: var(--main); }

/* pages simples */
.page-simple { max-width: 680px; margin: 0 auto; padding: 56px 24px; }
.page-simple h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(34px, 4.4vw, 52px); margin: 0 0 30px; text-align: center; }

/* ================================================================
   RESPONSIVE global
   ================================================================ */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .hero .figure { order: -1; }
  .cartes { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .cartes { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .bloc-geste, .bloc-retenir { padding-left: 18px; padding-right: 18px; }
  .bloc-geste ol li { padding-left: 48px; min-height: 38px; }
  .bloc-geste ol li::before { width: 36px; height: 36px; font-size: 21px; }
  .bloc-geste ol li > strong:first-child { padding-top: 5px; }
  .bloc-materiel { padding-left: 18px; padding-right: 18px; }
  .entry-content { font-size: 16.5px; }
}
