/* Qilibri mag, piste 1 « Toile cirée » : trois teintures (sauge, menthe, soleil) et le blanc des serviettes.
   Reprise fidèle de maquettes/piste-1/styles.css, étendue au contenu réel des articles. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 600 800;
  font-stretch: 100%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson-hyperlegible-next-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --sauge: #074957;
  --menthe: #7AD1B9;
  --soleil: #FAC26B;
  --blanc: #FFFFFF;
  --sauge-doux: #396E79;          /* texte secondaire : 5,7:1 sur blanc, 4,9:1 sur les encadrés menthe */
  --fil: rgba(7, 73, 87, .38);    /* surpiqûres */
  --menthe-voile: rgba(122, 209, 185, .26);
  --soleil-voile: rgba(250, 194, 107, .36);
  --menthe-pale: #DAF2EB;          /* Mint fresh du kit : aplat des en-têtes de rubrique */
  --tampon: #C42B36;               /* rouge du tampon « Faux » : 5,6:1 sur blanc */
  --carreau: 26px;
  --display: "Bricolage Grotesque", "Atkinson Hyperlegible Next", sans-serif;
  --texte: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, sans-serif;
  --ombre: 0 22px 34px -20px rgba(7, 73, 87, .55), 0 2px 4px rgba(7, 73, 87, .14);
  --ombre-douce: 0 2px 4px rgba(7, 73, 87, .15);
  --gouttiere: clamp(16px, 4vw, 56px);
  --ressort: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--sauge) var(--menthe); }
body {
  margin: 0;
  background: var(--blanc);
  color: var(--sauge);
  font: 400 18px/1.6 var(--texte);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: .2em; text-decoration-color: var(--menthe); }
a:hover { text-decoration-color: var(--soleil); }
::selection { background: var(--soleil); color: var(--sauge); }
:focus-visible { outline: 3px solid var(--sauge); outline-offset: 3px; border-radius: 2px; }
input, button, select, textarea { font: inherit; color: inherit; caret-color: var(--sauge); }
main:focus { outline: 0; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 750; line-height: 1.08; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
.h4 { font-size: 19px; line-height: 1.25; }

.screen-reader-text, .lettre__piege {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.evitement {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--soleil); color: var(--sauge); font-weight: 700; padding: 10px 16px; border-radius: 2px; text-decoration: none;
  transition: top .2s var(--ressort);
}
.evitement:focus { top: 12px; }

/* ---------- La toile cirée : vichy tissé en dégradés croisés ---------- */
.vichy {
  --teinte: rgba(122, 209, 185, .62);
  background-color: var(--blanc);
  background-image:
    repeating-linear-gradient(135deg, rgba(255,255,255,.07) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(0deg, var(--teinte) 0 var(--carreau), transparent var(--carreau) calc(var(--carreau) * 2)),
    repeating-linear-gradient(90deg, var(--teinte) 0 var(--carreau), transparent var(--carreau) calc(var(--carreau) * 2));
}
.vichy--menthe { --teinte: rgba(122, 209, 185, .62); }
.vichy--soleil { --teinte: rgba(250, 194, 107, .66); }
.vichy--sauge  { --teinte: rgba(7, 73, 87, .55); }
.vichy--petit  { --carreau: 12px; }
.vichy--grand  { --carreau: 40px; }
/* Aplat sous un en-tête à vichy (retour de Pierre-Henri) : un seul quadrillage par page, le texte
   d'un article se lit sur un fond calme ; la barre menthe reprend celle des en-têtes de rubrique. */
.aplat-menthe { background: var(--menthe-pale); border-top: 10px solid var(--menthe); }

/* ---------- Serviette blanche à ourlet surpiqué ---------- */
.serviette {
  position: relative;
  background: var(--blanc);
  box-shadow: var(--ombre);
  border-radius: 3px;
  padding: clamp(24px, 3.4vw, 44px);
}
.serviette::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1.5px dashed var(--fil);
  border-radius: 2px;
  pointer-events: none;
}
.serviette > * { position: relative; }

/* Étiquette cousue */
.etiquette {
  display: inline-flex; align-items: center; gap: .45em;
  position: relative;
  padding: .32em .8em .3em;
  font: 700 13px/1.2 var(--texte);
  letter-spacing: .02em;
  color: var(--sauge);
  background: var(--soleil);
  border-radius: 2px;
  text-decoration: none;
  box-shadow: 0 2px 3px rgba(7,73,87,.18);
}
.etiquette::before {
  content: ""; position: absolute; inset: 3px;
  border: 1px dashed rgba(7, 73, 87, .55); border-radius: 1px; pointer-events: none;
}
.etiquette--blanche { background: var(--blanc); }
.etiquette--menthe { background: var(--menthe); }
.etiquette .compte { font-weight: 400; font-variant-numeric: tabular-nums; }
a.etiquette { transition: transform .25s var(--ressort); }
a.etiquette:hover { transform: translateY(-1px) rotate(-1deg); }

/* ---------- En-tête ---------- */
.entete {
  position: relative;
  z-index: 5;
  background: var(--blanc);
  border-bottom: 1.5px dashed var(--fil);
  box-shadow: 0 1px 0 var(--blanc), 0 6px 14px -10px rgba(7,73,87,.4);
}
.entete__in {
  max-width: 1360px; margin: 0 auto;
  display: flex; align-items: center; gap: 28px;
  padding: 12px var(--gouttiere);
  min-height: 74px;
}
.logo-etiquette {
  flex: none;
  display: block;
  position: relative;
  background: var(--blanc);
  padding: 14px 18px 12px;
  margin-bottom: -34px;
  align-self: flex-start;
  box-shadow: var(--ombre);
  transform: rotate(-2deg);
  border-radius: 2px;
  text-decoration: none;
  transition: transform .3s var(--ressort);
}
.logo-etiquette:hover { transform: rotate(-3.5deg) translateY(-1px); }
.logo-etiquette::before { content: ""; position: absolute; inset: 5px; border: 1.5px dashed var(--fil); pointer-events: none; }
.logo-etiquette img { width: 104px; height: auto; }
.logo-etiquette span { display: block; font: 700 12px/1 var(--display); letter-spacing: .04em; margin-top: 6px; text-align: right; }
.nav { display: flex; gap: clamp(10px, 2vw, 30px); flex-wrap: wrap; margin-left: auto; }
.nav a { font: 600 16px/1 var(--texte); text-decoration: none; padding: 8px 2px; border-bottom: 3px solid transparent; transition: border-color .2s; }
.nav a:hover, .nav a[aria-current] { border-color: var(--soleil); }

/* Recherche : pastille qui déplie une serviette */
.recherche { position: relative; flex: none; }
.recherche summary {
  display: flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--sauge); border-radius: 999px; padding: 6px 14px;
  font: 400 15px var(--texte); color: var(--sauge); background: var(--blanc);
  cursor: pointer; list-style: none; user-select: none;
  transition: background .2s;
}
.recherche summary::-webkit-details-marker { display: none; }
.recherche summary:hover, .recherche[open] summary { background: var(--soleil); }
.recherche summary svg { width: 18px; height: 18px; }
.recherche__panneau {
  position: absolute; right: 0; top: calc(100% + 14px);
  width: min(440px, calc(100vw - 32px));
  padding: 26px 26px 22px;
  transform: rotate(.6deg);
  animation: deplie .28s var(--ressort);
}
@keyframes deplie { from { opacity: 0; transform: translateY(-6px) rotate(0); } }

.cherche label { display: block; font: 700 17px/1.3 var(--display); margin-bottom: 10px; }
.cherche__ligne { display: flex; gap: 8px; }
.cherche input {
  flex: 1 1 auto; min-width: 0;
  font-size: 17px; padding: 11px 14px;
  border: 2px solid var(--sauge); border-radius: 2px; background: var(--blanc);
}
.cherche input::placeholder { color: rgba(7,73,87,.62); }
.cherche input::-webkit-search-cancel-button { filter: hue-rotate(140deg); }
.cherche button {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 16px; padding: 11px 16px;
  border: 0; border-radius: 2px; background: var(--soleil); cursor: pointer;
}
.cherche button:hover { background: var(--menthe); }
.cherche button svg { width: 18px; height: 18px; }

/* ---------- Mise en page ---------- */
.cadre { max-width: 1360px; margin: 0 auto; padding: 0 var(--gouttiere); }
.region { padding: clamp(48px, 7vw, 96px) 0; }
.titre-section { font-size: clamp(30px, 3.4vw, 44px); margin-bottom: 26px; }
.titre-section--blanc { color: var(--sauge); background: var(--blanc); display: inline-block; padding: 10px 18px; box-shadow: var(--ombre); transform: rotate(-1deg); }
.titre-section--liste { font-size: 30px; margin-bottom: 6px; }
.meta { font-size: 15px; color: var(--sauge-doux); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.meta strong { color: var(--sauge); font-weight: 700; }
.meta a { text-decoration: none; }
.meta a:hover { text-decoration: underline; text-decoration-color: var(--soleil); }
.lien-fleche { font-weight: 700; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; border-bottom: 3px solid var(--soleil); padding-bottom: 2px; }
.lien-fleche:hover { border-color: var(--sauge); }
.lien-fleche svg { transition: transform .25s var(--ressort); flex: none; }
.lien-fleche:hover svg { transform: translateX(3px); }

/* Photo épinglée par un ruban adhésif soleil */
.photo-epinglee { position: relative; display: block; }
.photo-epinglee img, .photo-epinglee .image-absente { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 2px; }
.photo-epinglee::after {
  content: ""; position: absolute; top: -12px; left: 50%;
  width: 110px; height: 26px; margin-left: -55px;
  background: rgba(250, 194, 107, .88);
  transform: rotate(-4deg);
  box-shadow: 0 1px 2px rgba(7,73,87,.2);
}

/* Article sans image : un carré de toile et le Q */
.image-absente { display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 3; border-radius: 2px; }
.image-absente img { width: 34%; max-width: 64px; height: auto; aspect-ratio: auto !important; background: var(--blanc); padding: 10px; border-radius: 50%; box-shadow: var(--ombre-douce); }
.vignette { display: block; text-decoration: none; }

/* ---------- Accueil : premier écran ---------- */
.une { padding: 70px 0 80px; }
.une__grille { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); align-items: start; }
.une__serviette { transform: rotate(-.6deg); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 30px 34px; align-items: center; }
.une__titre { grid-column: 1 / -1; }
.une__serviette h1 { font-size: clamp(34px, 4.2vw, 60px); margin: 16px 0 0; max-width: 17ch; }
.une__serviette h1 a { text-decoration: none; }
.une__serviette h1 a:hover { text-decoration: underline; text-decoration-color: var(--soleil); text-decoration-thickness: 4px; }
.une__serviette .chapo { font-size: 19px; }
.une__etiquette { margin-top: 14px; }
.une__lire { margin: 18px 0 0; }
.questions { transform: rotate(.8deg); margin-top: 40px; }
.questions h2 { font-size: 28px; margin-bottom: 8px; }
.questions ol { list-style: none; margin: 0; padding: 0; }
.questions li { border-top: 1.5px dashed var(--fil); padding: 14px 0; }
.questions li:first-child { border-top: 0; }
.questions a { font: 700 18px/1.3 var(--display); text-decoration: none; display: block; }
.questions a:hover { text-decoration: underline; text-decoration-color: var(--soleil); }
.questions .lectures, .plus-lus span { font-size: 14px; color: var(--sauge-doux); font-variant-numeric: tabular-nums; }

/* Idées reçues : entre guillemets droits, barrées */
.idees { background: var(--sauge); color: var(--blanc); }
.idees .titre-section { color: var(--blanc); }
.idees__liste { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.idee { background: var(--blanc); color: var(--sauge); padding: 30px 28px; position: relative; box-shadow: 0 20px 30px -22px rgba(0,0,0,.6); }
.idee::before { content: ""; position: absolute; inset: 8px; border: 1.5px dashed var(--fil); pointer-events: none; }
.idee:nth-child(2) { transform: rotate(.7deg) translateY(14px); }
.idee:nth-child(3) { transform: rotate(-.5deg); }
.idee__recue { font: 750 clamp(22px, 2.1vw, 28px)/1.2 var(--display); margin: 0; }
.idee__recue s {
  text-decoration: line-through;
  text-decoration-color: var(--tampon);
  text-decoration-thickness: 3px;
}
/* Tampon « Faux » encré à la suite de l'idée barrée : en ligne, il passe à la ligne avec le texte
   au lieu de le recouvrir. Double filet et léger relief d'encre, sans image. */
.tampon {
  display: inline-block;
  vertical-align: .2em;
  margin-left: .35em;
  padding: 3px 9px 2px;
  font: 800 15px/1.1 var(--display);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tampon);
  border: 2.5px solid currentColor;
  border-radius: 4px;
  box-shadow: inset 0 0 0 2px var(--blanc), inset 0 0 0 3.5px currentColor;
  transform: rotate(-9deg);
  mix-blend-mode: multiply;
  white-space: nowrap;
}
.idee__recue + p { margin-top: 18px; }
.idee p { font-size: 16.5px; position: relative; }
.idee .lien-fleche { position: relative; }

/* Nouveautés : une serviette large et une liste */
.nouveautes__grille { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 34px; align-items: start; }
.grande__etiquette { margin-top: 22px; }
.grande h3 { font-size: clamp(26px, 2.6vw, 36px); margin: 18px 0 12px; }
.grande h3 a { text-decoration: none; }
.grande h3 a:hover { text-decoration: underline; text-decoration-color: var(--soleil); }
.liste-articles { list-style: none; margin: 0; padding: 0; }
.liste-articles li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; padding: 18px 0; border-top: 1.5px dashed var(--fil); }
.liste-articles li:first-child { border-top: 0; padding-top: 4px; }
.liste-articles .vignette img, .liste-articles .image-absente { width: 120px; height: 90px; max-width: none; object-fit: cover; border-radius: 2px; aspect-ratio: auto; }
.liste-articles h2, .liste-articles h3 { font-size: 19px; line-height: 1.25; margin: 6px 0 6px; }
.liste-articles h2 a, .liste-articles h3 a { text-decoration: none; }
.liste-articles h2 a:hover, .liste-articles h3 a:hover { text-decoration: underline; text-decoration-color: var(--soleil); }

/* Rubriques posées sur la table */
.rubriques { display: grid; gap: 54px; }
.rubrique { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 34px; align-items: start; }
.rubrique:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); }
.rubrique:nth-child(even) .rubrique__tete { order: 2; }
.rubrique__tete { transform: rotate(-1deg); }
.rubrique:nth-child(even) .rubrique__tete { transform: rotate(1deg); }
.rubrique__tete h3 { font-size: 32px; margin-bottom: 10px; }
.rubrique__tete h3 a { text-decoration: none; }
.rubrique__tete h3 a:hover { text-decoration: underline; text-decoration-color: var(--soleil); }
.rubrique__tete p { font-size: 16px; }
.rubrique__nappe { padding: 22px; }
.sous { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.rubrique__articles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding: 0; }
.rubrique__articles article { padding: 26px 24px; border-left: 1.5px dashed var(--fil); }
.rubrique__articles article:first-child { border-left: 0; }
.rubrique__articles .vignette img, .rubrique__articles .image-absente { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; height: auto; border-radius: 2px; margin-bottom: 14px; }
.rubrique__articles h3, .rubrique__articles h4 { font-size: 19px; line-height: 1.25; margin-bottom: 8px; }
.rubrique__articles .etiquette + h3, .rubrique__articles .etiquette + h4 { margin-top: 10px; }
.rubrique__articles h3 a, .rubrique__articles h4 a { text-decoration: none; }
.rubrique__articles h3 a:hover, .rubrique__articles h4 a:hover { text-decoration: underline; text-decoration-color: var(--soleil); }
.rubrique__articles--quatre { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Programme Qilibri, suite naturelle ---------- */
.programme { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.programme h2 { font-size: clamp(24px, 2.4vw, 32px); margin-bottom: 8px; }
.programme p { margin: 0; max-width: 60ch; }
.bouton, .lettre button {
  font: 700 16px var(--texte); padding: 12px 20px; border: 0; border-radius: 2px;
  background: var(--soleil); color: var(--sauge); cursor: pointer; position: relative;
  text-decoration: none; display: inline-block; text-align: center;
  transition: background .2s, transform .25s var(--ressort);
}
.bouton:hover, .lettre button:hover { background: var(--menthe); }
.bouton:active, .lettre button:active { transform: translateY(1px); }

/* ---------- Pied de page ---------- */
.pied { background: var(--sauge); color: var(--blanc); padding: 64px 0 40px; }
.pied a { color: var(--blanc); text-decoration-color: var(--menthe); }
.pied :focus-visible { outline-color: var(--soleil); }
.pied__grille { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; }
.pied__logo { width: 120px; margin-bottom: 18px; }
.pied h2 { font-size: 26px; margin-bottom: 12px; color: var(--blanc); }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.reseaux { margin-top: 22px !important; display: flex !important; gap: 10px 18px !important; flex-wrap: wrap; }
.reseaux a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; }
.reseaux a:hover span { text-decoration: underline; text-decoration-color: var(--soleil); }
.lettre { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.lettre > label { flex-basis: 100%; font-size: 15px; }
.lettre input[type="email"] { flex: 1 1 200px; min-width: 0; font: 400 17px var(--texte); padding: 12px 14px; border: 2px solid var(--blanc); border-radius: 2px; background: var(--blanc); color: var(--sauge); }
.lettre input::placeholder { color: rgba(7,73,87,.8); }
.lettre__etat { flex-basis: 100%; margin: 4px 0 0; font-size: 15px; min-height: 1.5em; }
.lettre__etat:not(:empty) { padding: 8px 12px; background: rgba(255,255,255,.12); border-radius: 2px; }
.pied__bas { border-top: 1.5px dashed rgba(255,255,255,.35); margin-top: 44px; padding-top: 22px; font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.pied__bas ul { display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* ---------- Rubrique, étiquette, recherche, auteur ---------- */
.ariane { font-size: 14px; margin-bottom: 14px; color: var(--sauge-doux); }
.ariane a { color: var(--sauge); text-decoration-color: var(--menthe); }
.ariane [aria-current] { color: var(--sauge-doux); }
.cat-tete { padding: 64px 0 70px; }
/* En-tête à aplat (retour d'Emma) : la toile cirée reste pour la liste, une barre menthe sépare les deux. */
.cat-tete--aplat { background: var(--menthe-pale); border-bottom: 10px solid var(--menthe); }
.cat-tete__serviette { max-width: 980px; transform: rotate(-.4deg); }
.cat-tete h1 { font-size: clamp(42px, 6vw, 84px); margin-bottom: 14px; }
.cat-tete .chapo { font-size: 20px; max-width: 46ch; }
.cat-tete .chapo p { margin: 0 0 .6em; }
.cat-tete__cherche { margin-top: 22px; max-width: 560px; }
.cat-region { padding-top: 56px; }
.cat-corps { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; align-items: start; }
.cat-premier { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: center; margin-bottom: 40px; }
.cat-premier h2 { font-size: clamp(28px, 3vw, 40px); margin: 16px 0 12px; }
.cat-premier h2 a { text-decoration: none; }
.cat-premier h2 a:hover { text-decoration: underline; text-decoration-color: var(--soleil); }
.cat-liste li { grid-template-columns: 200px minmax(0, 1fr); gap: 24px; padding: 24px 0; }
.cat-liste .vignette img, .cat-liste .image-absente { width: 200px; height: 140px; }
.cat-liste h2, .cat-liste h3 { font-size: 23px; }
.cat-liste p { font-size: 16.5px; margin: 0 0 8px; }
.cat-liste .etiquette { margin-bottom: 4px; }
.pagination { display: flex; gap: 10px; align-items: center; margin-top: 28px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.pagination .page-numbers { padding: 8px 14px; background: var(--blanc); text-decoration: none; box-shadow: var(--ombre-douce); border-radius: 2px; font-weight: 700; transition: background .2s; }
.pagination a.page-numbers:hover { background: var(--menthe); }
.pagination .current { background: var(--soleil); }
.pagination .points { box-shadow: none; background: none; padding: 8px 2px; }
.cote { display: grid; gap: 30px; position: sticky; top: 24px; }
.cote h2 { font-size: 24px; margin-bottom: 12px; }
.cote ul { list-style: none; margin: 0; padding: 0; }
.cote li { border-top: 1.5px dashed var(--fil); padding: 10px 0; display: flex; justify-content: space-between; gap: 12px; }
.cote li:first-child { border-top: 0; }
.cote li a { text-decoration: none; font-weight: 700; }
.cote li a:hover, .cote li a[aria-current] { text-decoration: underline; text-decoration-color: var(--soleil); text-decoration-thickness: 3px; }
.cote li > span { color: var(--sauge-doux); font-variant-numeric: tabular-nums; font-size: 15px; }
.cote .plus-lus li { display: block; }
.cote .plus-lus span { display: block; margin-top: 2px; }
.bilan { background: var(--blanc); }
.bilan p { font-size: 16px; }
.vide h2 { font-size: 28px; margin-bottom: 10px; }
.auteur-tete__grille { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 30px; align-items: start; }
.auteur-tete .auteur__photo, .auteur-tete .auteur__initiales { width: 132px; height: 132px; font-size: 44px; }
.auteur-tete h1 { margin-bottom: 6px; }
.auteur-tete__job { font: 700 19px/1.3 var(--display); margin-bottom: 14px; }
.auteur-tete .chapo { font-size: 18px; max-width: 62ch; }
.auteur-liste { max-width: 1040px; }
.introuvable__code { font: 800 clamp(72px, 12vw, 150px)/0.9 var(--display); letter-spacing: -.04em; margin: 0 0 10px; color: var(--menthe); -webkit-text-stroke: 2px var(--sauge); }
.introuvable__retour { margin: 22px 0 0; }

/* ---------- Article ---------- */
.art-tete { padding: 56px 0 0; }
.art-tete__cadre { padding-bottom: 56px; }
.art-tete__serviette { max-width: 1120px; margin: 0 auto; transform: rotate(-.3deg); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.art-tete__serviette--seule { grid-template-columns: minmax(0, 1fr); max-width: 980px; }
.art-tete h1 { font-size: clamp(32px, 4vw, 54px); margin: 16px 0 18px; }
.art-tete .chapo { font-size: 19px; }
.art-corps { display: grid; grid-template-columns: 260px minmax(0, 760px); gap: 40px; justify-content: center; padding: 56px 0 80px; align-items: start; }
.art-corps--seul { grid-template-columns: minmax(0, 820px); }
.sommaire { position: sticky; top: 24px; padding: 26px 24px; max-height: calc(100vh - 48px); overflow: auto; overscroll-behavior: contain; }
.sommaire h2 { font-size: 20px; margin-bottom: 10px; }
.sommaire ol { margin: 0; padding: 0 0 0 1.1em; font-size: 15.5px; line-height: 1.4; }
.sommaire li { padding: 6px 0; }
.sommaire li::marker { font-variant-numeric: tabular-nums; color: var(--sauge-doux); }
.sommaire a { text-decoration: none; }
.sommaire a:hover, .sommaire a.actif { text-decoration: underline; text-decoration-color: var(--soleil); text-decoration-thickness: 3px; font-weight: 700; }
.lecture { padding: clamp(28px, 4vw, 60px) clamp(22px, 4.5vw, 64px); font-size: 19px; line-height: 1.7; }
.lecture__texte > * { max-width: 68ch; }
.lecture__texte > .tableau, .lecture__texte > figure, .lecture__texte > .wp-block-image, .lecture__texte > .programme { max-width: none; }
.ruban {
  position: absolute; left: -14px; top: 0; bottom: 0; width: 22px;
  background: var(--soleil);
  clip-path: inset(0 0 calc(100% - var(--avance, 0px)) 0);
  z-index: 2;
}
.lecture h2 { font-size: clamp(26px, 2.6vw, 34px); margin: 1.8em 0 .6em; scroll-margin-top: 24px; }
.lecture__texte > h2:first-child, .lecture__texte > .retenir:first-child h2 { margin-top: 0; }
.lecture h3 { font-size: clamp(21px, 2vw, 25px); margin: 1.6em 0 .5em; line-height: 1.2; scroll-margin-top: 24px; }
.lecture h4 { font-size: 20px; margin: 1.4em 0 .4em; line-height: 1.25; }
.lecture .intro { font-size: 21px; line-height: 1.55; font-weight: 700; }
.lecture figure { margin: 0 0 1.6em; }
.lecture figure img, .lecture p > img, .lecture__texte > img { width: auto; max-width: 100%; height: auto !important; border-radius: 2px; margin-inline: auto; object-fit: initial !important; }
.lecture figcaption { font-size: 15px; color: var(--sauge-doux); margin-top: 8px; text-align: center; }
.lecture ul, .lecture ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.lecture li { margin-bottom: .55em; }
.lecture li::marker { color: var(--sauge); }
.lecture sup a, .lecture .fn a { text-decoration: none; font-weight: 700; background: var(--soleil); padding: 0 .35em; border-radius: 2px; font-size: .8em; }
.lecture hr { border: 0; border-top: 1.5px dashed var(--fil); margin: 2em 0; }
.lecture iframe, .lecture video { max-width: 100%; }
.lecture strong { font-weight: 700; }
.lecture blockquote, .citation { margin: 1.6em 0; padding: 26px 30px; background: var(--soleil); position: relative; transform: rotate(-.4deg); border: 0; }
.lecture blockquote::before { content: ""; position: absolute; inset: 7px; border: 1.5px dashed rgba(7,73,87,.5); pointer-events: none; }
.lecture blockquote p { margin: 0 0 .6em; font-size: 19px; position: relative; }
.lecture blockquote p:last-child, .lecture blockquote cite { margin-bottom: 0; }
.lecture blockquote cite { display: block; font-style: normal; font-weight: 700; font-size: 16px; position: relative; }
.retenir { background: var(--menthe-voile); padding: 26px 30px 12px; margin: 0 0 1.8em; position: relative; }
.retenir::before { content: ""; position: absolute; inset: 7px; border: 1.5px dashed var(--fil); pointer-events: none; }
.retenir > * { position: relative; }
.retenir h2 { margin-top: 0 !important; font-size: clamp(24px, 2.4vw, 30px); }
.retenir li { margin-bottom: .7em; }
.tableau { overflow-x: auto; margin: 0 0 1.6em; }
.tableau:focus-visible { outline-offset: 0; }
.lecture table { border-collapse: collapse; width: 100%; font-size: 16px; line-height: 1.45; font-variant-numeric: tabular-nums; }
.lecture th, .lecture td { padding: 10px 12px; border-bottom: 1.5px dashed var(--fil); text-align: left; vertical-align: top; }
.lecture thead th, .lecture tr:first-child > th { background: var(--menthe-voile); font-weight: 700; }
.lecture .wp-block-table { margin: 0 0 1.6em; }
.lecture .wp-block-footnotes { font-size: 15.5px; line-height: 1.5; padding-top: 18px; border-top: 1.5px dashed var(--fil); color: var(--sauge-doux); }
.lecture .wp-block-footnotes a { color: var(--sauge); word-break: break-word; }
.lecture a { overflow-wrap: anywhere; }
.lecture .programme { margin: 2em 0; padding: 28px 30px; background: var(--soleil-voile); box-shadow: none; transform: rotate(-.3deg); }
.lecture .programme::before { inset: 7px; border-color: rgba(7,73,87,.45); }
.lecture .programme h2 { margin: 0 0 8px; font-size: clamp(22px, 2.2vw, 28px); }
.lecture .programme p { font-size: 17px; }
.faq { margin-top: 2em; }
.faq h2 { margin-top: 0; }
.faq details { border-top: 1.5px dashed var(--fil); padding: 14px 0; }
.faq details:last-child { border-bottom: 1.5px dashed var(--fil); }
.faq summary { font: 700 20px/1.3 var(--display); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; border-radius: 2px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; line-height: .9; flex: none; transition: transform .25s var(--ressort); }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { text-decoration: underline; text-decoration-color: var(--soleil); text-decoration-thickness: 3px; }
.faq__reponse p { margin: 12px 0 4px; }
.auteur { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 22px; margin-top: 2.6em; padding-top: 28px; border-top: 1.5px dashed var(--fil); }
.auteur__initiales, .auteur__photo { width: 84px; height: 84px; border-radius: 50%; }
.auteur__initiales { background: var(--menthe); display: grid; place-items: center; font: 800 30px var(--display); }
.auteur__photo { object-fit: cover; background: var(--menthe); box-shadow: 0 0 0 4px var(--blanc), 0 0 0 5.5px var(--fil); }
.auteur h2 { font-size: 22px; margin: 0 0 4px !important; }
.auteur h2 a { text-decoration: none; }
.auteur h2 a:hover { text-decoration: underline; text-decoration-color: var(--soleil); }
.auteur__job { font-weight: 700; font-size: 16px; margin: 0 0 8px !important; }
.auteur p { font-size: 16px; margin: 0; }
.auteur__liens { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 14px !important; }
.auteur__liens .lien-fleche { font-size: 15.5px; }
.reprendre {
  position: fixed; right: 20px; bottom: 20px; z-index: 20;
  display: inline-flex; align-items: center; gap: 10px;
  animation: deplie .3s var(--ressort);
}
.reprendre button { font: 700 15px var(--texte); background: transparent; border: 0; color: var(--sauge); cursor: pointer; padding: 4px; position: relative; }
.reprendre button:hover { text-decoration: underline; }

/* ---------- Écrans moyens et téléphone ---------- */
@media (max-width: 1080px) {
  .une__serviette { grid-template-columns: 1fr; }
  .idees__liste { grid-template-columns: 1fr; }
  .idee:nth-child(2) { transform: rotate(.5deg); }
  .rubrique, .rubrique:nth-child(even) { grid-template-columns: 1fr; }
  .rubrique:nth-child(even) .rubrique__tete { order: 0; }
  .cat-corps { grid-template-columns: 1fr; }
  .cote { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .art-corps { grid-template-columns: minmax(0, 1fr); }
  .sommaire { position: static; max-height: none; }
  .art-tete__serviette { grid-template-columns: 1fr; }
  .rubrique__articles--quatre { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rubrique__articles--quatre article:nth-child(3) { border-left: 0; }
  .rubrique__articles--quatre article:nth-child(n+3) { border-top: 1.5px dashed var(--fil); }
}
@media (max-width: 820px) {
  :root { --carreau: 18px; }
  body { font-size: 17.5px; }
  .entete__in { flex-wrap: wrap; gap: 12px; min-height: 0; }
  .logo-etiquette { margin-bottom: -18px; padding: 10px 12px 8px; }
  .logo-etiquette img { width: 82px; }
  .nav { order: 3; flex-basis: 100%; flex-wrap: nowrap; overflow-x: auto; gap: 18px; margin: 10px 0 0; padding-bottom: 4px; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; font-size: 15px; }
  .recherche { margin-left: auto; }
  .recherche summary { padding: 9px 12px; }
  .recherche summary span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .recherche__panneau { position: fixed; left: 16px; right: 16px; top: 76px; width: auto; transform: none; z-index: 30; }
  .cherche button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .une { padding: 40px 0 50px; }
  .une__grille, .nouveautes__grille { grid-template-columns: 1fr; }
  .questions { margin-top: 0; }
  .rubrique__nappe { padding: 12px; }
  .rubrique__articles, .rubrique__articles--quatre { grid-template-columns: 1fr; }
  .rubrique__articles article { border-left: 0 !important; border-top: 1.5px dashed var(--fil); display: grid; grid-template-columns: 96px minmax(0,1fr); gap: 14px; padding: 18px 20px; }
  .rubrique__articles article:first-child { border-top: 0; }
  .rubrique__articles .vignette img, .rubrique__articles .image-absente { width: 96px; aspect-ratio: 1; margin: 0; }
  .liste-articles li, .cat-liste li { grid-template-columns: 92px minmax(0, 1fr); gap: 14px; }
  .liste-articles .vignette img, .cat-liste .vignette img, .liste-articles .image-absente, .cat-liste .image-absente { width: 92px; height: 92px; }
  .cat-liste p:not(.meta) { display: none; }
  .cat-liste h2, .cat-liste h3 { font-size: 19px; }
  .cat-premier { grid-template-columns: 1fr; }
  .pied__grille { grid-template-columns: 1fr; }
  .programme { grid-template-columns: 1fr; }
  .lecture { font-size: 18px; }
  .lecture .intro { font-size: 19px; }
  .lecture blockquote, .retenir, .lecture .programme { padding-left: 22px; padding-right: 22px; }
  .ruban { left: -8px; width: 14px; }
  .auteur { grid-template-columns: 1fr; }
  .auteur-tete__grille { grid-template-columns: 1fr; gap: 18px; }
  .auteur-tete .auteur__photo, .auteur-tete .auteur__initiales { width: 96px; height: 96px; font-size: 34px; }
  .reprendre { left: 16px; right: 16px; bottom: 16px; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .entete, .pied, .sommaire, .ruban, .reprendre, .programme, .rubrique__articles--quatre { display: none !important; }
  .vichy { background: none !important; }
  .serviette { box-shadow: none; transform: none !important; }
}

/* Sommaire : déplié en colonne sur grand écran, replié sous l'en-tête sur téléphone et tablette */
.sommaire__plie > summary { list-style: none; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sommaire__plie > summary::-webkit-details-marker { display: none; }
.sommaire__compte { display: none; font-size: 14px; color: var(--sauge-doux); font-variant-numeric: tabular-nums; }
@media (min-width: 1081px) {
  .sommaire__plie > summary { pointer-events: none; }
}
@media (max-width: 1080px) {
  .sommaire { padding: 20px 24px; }
  .sommaire__plie > summary { cursor: pointer; }
  .sommaire__plie > summary h2 { margin: 0; }
  .sommaire__plie > summary::after { content: "+"; font: 700 24px/1 var(--display); margin-left: auto; }
  .sommaire__plie[open] > summary::after { content: "\2212"; }
  .sommaire__compte { display: inline; }
  .sommaire__plie[open] > summary { margin-bottom: 10px; }
}
