/* maisontravaux.online : styles du site.
   Base : maquette/assets/style.css (validée). Les ajouts propres à WordPress sont à la fin du fichier. */

:root {
  --blanc: #FFFFFF;
  --coton: #F3F3F1;
  --gris: #E6E6E6;
  --gris-trait: #C9C9C6;
  --gris-texte: #555553;
  --encre: #0A0A0A;
  --nylon: #1A1A1A;
  --orange: #FF5A00;
  --orange-fonce: #E04E00;
  /* Une couleur par famille de travaux, comme les bacs d'un magasin */
  --toi: #2B4C7E; --iso: #F4A3BF; --cha: #D62D20; --gro: #6E7378;
  --sdb: #0094C6; --jar: #237A35; --int: #6C4AB6; --dem: #FFC20E;

  --f-titre: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --f-texte: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-code: "Martian Mono", ui-monospace, Menlo, monospace;

  --trait: 2px;
  --rayon: 12px;
  --ombre: 0 1px 2px rgba(10, 10, 10, .06), 0 12px 28px -12px rgba(10, 10, 10, .32);
  --marge: clamp(16px, 3.4vw, 48px);
  --pas: 8px;

  --hachures: repeating-linear-gradient(-45deg, var(--encre) 0 30px, var(--blanc) 30px 60px);
  --hachures-fines: repeating-linear-gradient(-45deg, var(--encre) 0 3px, transparent 3px 11px);

  --rivet: 2.6px;
  --rivets: radial-gradient(circle at 11px 11px, var(--encre) var(--rivet), transparent calc(var(--rivet) + .6px)),
            radial-gradient(circle at calc(100% - 11px) 11px, var(--encre) var(--rivet), transparent calc(var(--rivet) + .6px)),
            radial-gradient(circle at 11px calc(100% - 11px), var(--encre) var(--rivet), transparent calc(var(--rivet) + .6px)),
            radial-gradient(circle at calc(100% - 11px) calc(100% - 11px), var(--encre) var(--rivet), transparent calc(var(--rivet) + .6px));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--encre) var(--gris); }
body {
  margin: 0;
  background: var(--blanc);
  color: var(--encre);
  font-family: var(--f-texte);
  font-size: 17px;
  line-height: 1.55;
  caret-color: var(--orange);
  font-kerning: normal;
}
::selection { background: var(--orange); color: var(--encre); }
img, svg { display: block; max-width: 100%; }
sup { line-height: 0; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: .18em; }
a:hover { text-decoration-color: var(--orange); }
:focus-visible { outline: 3px solid var(--encre); outline-offset: 3px; box-shadow: 0 0 0 7px var(--orange); border-radius: 2px; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3 { overflow-wrap: break-word; } /* un mot très long (nom de domaine, référence) ne fait pas déborder la page */
ul, ol { padding: 0; list-style: none; }
.visuellement-cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Le nom littéral, entre guillemets français */
.g::before { content: "«\202F"; }
.g::after { content: "\202F»"; }

.code {
  font-family: var(--f-code);
  font-variation-settings: "wdth" 87.5;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

/* ---------- Plaques ---------- */
.plaque {
  position: relative;
  background-color: var(--blanc);
  background-image: var(--rivets);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
}
.plaque--nylon { background-color: var(--nylon); color: var(--blanc); --encre: #8E8E8C; }
.plaque--nylon .code { color: #BDBDBA; }

/* Familles de travaux : fond et texte lisible sur ce fond */
.f-toi { --fond: var(--toi); --sur-fond: var(--blanc); }
.f-iso { --fond: var(--iso); --sur-fond: var(--encre); }
.f-cha { --fond: var(--cha); --sur-fond: var(--blanc); }
.f-gro { --fond: var(--gro); --sur-fond: var(--blanc); }
.f-sdb { --fond: var(--sdb); --sur-fond: var(--encre); }
.f-jar { --fond: var(--jar); --sur-fond: var(--blanc); }
.f-int { --fond: var(--int); --sur-fond: var(--blanc); }
.f-dem { --fond: var(--dem); --sur-fond: var(--encre); }
.famille {
  display: inline-block; padding: 4px 9px 3px; border-radius: 4px;
  background: var(--fond); color: var(--sur-fond);
  font-family: var(--f-titre); font-weight: 800; font-size: 15px; line-height: 1.15; letter-spacing: .05em; text-transform: uppercase;
}

.bouton {
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 52px; padding: 12px 26px 12px 26px;
  font-family: var(--f-titre); font-weight: 800; font-size: 21px; letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; color: var(--encre);
  background-color: var(--gris);
  border: 0; border-radius: 999px;
  cursor: pointer;
  transition: background-color .18s ease-out;
}
.bouton svg { width: 22px; height: 22px; flex: none; transition: transform .25s cubic-bezier(.16, 1, .3, 1); }
.bouton:hover svg { transform: translateX(4px); }
.bouton--orange { background-color: var(--orange); }
.bouton--orange:hover { background-color: var(--orange-fonce); }
.bouton--encre { background-color: #0A0A0A; color: var(--blanc); --encre: #6B6B69; border-color: #0A0A0A; }

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 20;
  background: var(--blanc);
  box-shadow: 0 1px 0 var(--gris-trait);
}
.entete__barre {
  display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px);
  padding: 12px var(--marge);
}
.marque { display: flex; align-items: center; gap: 14px; }
.marque a {
  display: inline-block; padding: 6px 30px 4px;
  font-family: var(--f-titre); font-weight: 900; font-size: 24px; letter-spacing: .02em; text-transform: uppercase; line-height: 1.1;
  text-decoration: none;
  background-color: var(--orange); background-image: var(--rivets); --rivet: 1.8px;
  border-radius: 10px;
}
.marque__devise { max-width: 22ch; font-size: 13px; line-height: 1.35; color: var(--gris-texte); }
.nav { border-top: 1px solid var(--gris-trait); }
.nav ul { display: flex; gap: 0 clamp(14px, 1.7vw, 34px); padding: 0 var(--marge); overflow-x: auto; scrollbar-width: none; }
.nav a {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-titre); font-weight: 800; font-size: clamp(15px, 1.3vw, 18px); letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  padding: 11px 0 8px; border-bottom: 3px solid transparent;
}
.nav a::before { content: ""; flex: none; width: 11px; height: 11px; border-radius: 3px; background: var(--fond); }
.nav a:hover { border-bottom-color: var(--fond); }
.nav a[aria-current="page"] { border-bottom-color: var(--fond); }

.recherche { margin-left: auto; display: flex; align-items: stretch; width: min(460px, 36vw); }
.recherche label { display: flex; align-items: center; padding: 0 14px; border-radius: 999px 0 0 999px; background: var(--gris); }
.recherche input {
  flex: 1; min-width: 0; height: 46px; padding: 0 12px;
  font: 500 15px/1 var(--f-texte); color: var(--encre);
  border: 0; border-radius: 0; background: var(--coton);
}
.recherche input::placeholder { color: #6E6E6B; }
.recherche input:focus-visible { box-shadow: none; outline: 3px solid var(--orange); outline-offset: -3px; }
.recherche button {
  width: 50px; display: grid; place-items: center; cursor: pointer;
  background: var(--encre); color: var(--blanc);
  border: 0; border-radius: 0 999px 999px 0;
}
.recherche button svg { width: 20px; height: 20px; }
.menu-bouton { display: none; }

/* ---------- Accueil : ce qu'est le site, puis l'article à la une ---------- */
.accueil {
  overflow-x: clip;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 38%);
}
.accueil__texte { background: var(--orange); padding: clamp(44px, 7vh, 88px) var(--marge) clamp(44px, 7vh, 88px); }
.accueil__titre {
  font-family: var(--f-titre); font-weight: 900; text-transform: uppercase;
  font-size: clamp(46px, 5.6vw, 88px); line-height: .9; letter-spacing: -.005em;
  max-width: 12ch; text-wrap: balance;
}
.accueil__chapo { margin-top: clamp(20px, 3vh, 30px); max-width: 48ch; font-size: clamp(19px, 1.5vw, 22px); line-height: 1.5; font-weight: 500; }
.accueil__neutre { margin-top: 14px; max-width: 52ch; font-size: 15px; line-height: 1.45; font-weight: 500; }
.accueil__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: clamp(26px, 3.6vh, 36px); }

.lien-fleche { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 17px; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.lien-fleche svg { width: 18px; height: 18px; flex: none; transition: transform .25s cubic-bezier(.16, 1, .3, 1); }
.lien-fleche:hover { text-decoration-color: var(--orange); }
.lien-fleche:hover svg { transform: translateX(3px); }

.accueil__une { position: relative; background: var(--fond); color: var(--sur-fond); padding: clamp(36px, 5vh, 64px) clamp(20px, 2.6vw, 40px); }
.accueil__une > h2 { font-family: var(--f-titre); font-weight: 900; font-size: 30px; line-height: 1; text-transform: uppercase; letter-spacing: .01em; }
.carte-une { position: relative; color: var(--encre); margin-top: 20px; padding: 28px 28px 24px; }
.carte-une h3 { font-family: var(--f-titre); font-weight: 900; text-transform: uppercase; font-size: clamp(34px, 2.8vw, 44px); line-height: .92; text-wrap: balance; }
.carte-une h3 a { text-decoration: none; }
.carte-une h3 a:hover { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 4px; }
.carte-une__photos {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3px;
  margin: -28px -28px 22px;
  background: var(--blanc);
  border-radius: var(--rayon) var(--rayon) 0 0; overflow: hidden;
}
.carte-une__photos figure { position: relative; margin: 0; }
.carte-une__photos img { display: block; width: 100%; height: 176px; object-fit: cover; }
.carte-une__photos figcaption { position: absolute; left: 10px; bottom: 10px; padding: 4px 8px 3px; background: var(--blanc); color: var(--encre); border-radius: 999px; padding-inline: 10px; }
.carte-une__resume { margin-top: 16px; font-size: 17px; line-height: 1.5; }
.reperes {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
  border-top: 1px solid var(--gris-trait); border-bottom: 1px solid var(--gris-trait);
}
.reperes > div { padding: 12px 16px 14px 0; }
.reperes > div + div { padding-left: 16px; border-left: 1px solid var(--gris-trait); }
.reperes dt { margin-bottom: 4px; color: var(--gris-texte); }
.reperes dd { font-size: 15px; line-height: 1.4; }
.reperes .chiffre { display: block; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.provenance { margin-top: 10px; font-size: 14px; line-height: 1.45; color: var(--gris-texte); }
.carte-une__pied { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 18px; }
.carte-une__meta { display: inline-flex; align-items: center; gap: 12px; }
.carte-une__meta .code { color: var(--gris-texte); }

/* L'étiquette à collier */
.etiquette {
  --encre: #0A0A0A;
  position: absolute; top: -6px; right: -112px;
  width: 132px;
  transform-origin: 50% 0;
  transform: rotate(-9deg);
  pointer-events: none;
}
.etiquette__collier { width: 46px; height: 64px; margin: 0 auto -14px; overflow: visible; }
.etiquette__corps {
  position: relative;
  padding: 30px 14px 16px;
  background: var(--orange); color: var(--encre);
  border-radius: 10px 10px 8px 8px;
  box-shadow: 0 10px 18px -6px rgba(10, 10, 10, .35);
}
.etiquette__corps::before {
  content: ""; position: absolute; top: 9px; left: 50%; width: 13px; height: 13px; margin-left: -6.5px;
  border-radius: 50%; background: var(--blanc); box-shadow: inset 0 0 0 2px var(--orange-fonce);
}
.etiquette__corps .code { display: block; font-size: 11px; line-height: 1.5; }
.etiquette__corps b { display: block; margin: 4px 0 6px; font-family: var(--f-titre); font-weight: 900; font-size: 26px; line-height: .95; letter-spacing: .01em; }
.etiquette__corps .barres { display: block; height: 16px; margin-top: 8px; background: repeating-linear-gradient(90deg, var(--encre) 0 2px, transparent 2px 4px, var(--encre) 4px 5px, transparent 5px 8px, var(--encre) 8px 11px, transparent 11px 13px); }

.carte-une .etiquette { top: -46px; right: 12px; width: 112px; }
.carte-une .etiquette__corps { padding: 28px 12px 14px; }
.carte-une .etiquette__corps b { font-size: 19px; letter-spacing: .02em; }

@keyframes balance {
  0% { transform: rotate(-24deg); }
  32% { transform: rotate(4deg); }
  58% { transform: rotate(-14deg); }
  80% { transform: rotate(-6deg); }
  100% { transform: rotate(-9deg); }
}
.etiquette.balance { animation: balance 1.1s cubic-bezier(.22, 1, .36, 1) both; }

.section { padding: clamp(56px, 8vw, 104px) var(--marge); }
.section--coton { background: var(--coton); }
.section__tete { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(24px, 3vw, 36px); }
.section__tete h2 { font-family: var(--f-titre); font-weight: 900; text-transform: uppercase; font-size: clamp(40px, 4.6vw, 64px); line-height: .92; letter-spacing: 0; }
.section__tete p { max-width: 52ch; color: var(--gris-texte); }

/* Tous les travaux : les plaques de silo */
.silos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.silo { position: relative; }
.silo > a {
  display: flex; flex-direction: column; height: 100%;
  padding: 22px 24px 20px;
  text-decoration: none;
  background-color: var(--fond, var(--blanc)); color: var(--sur-fond, var(--encre)); background-image: var(--rivets);
  border-radius: var(--rayon); box-shadow: var(--ombre);
  transition: background-color .18s ease-out;
  overflow: hidden;
}
.silo > a:hover { background-color: color-mix(in srgb, var(--fond) 86%, #000); }
.silo__photo {
  display: block; width: calc(100% + 48px); max-width: none; height: 160px;
  margin: -22px -24px 18px; object-fit: cover;
  transition: transform .5s cubic-bezier(.16, 1, .3, 1);
}
.silo > a:hover .silo__photo { transform: scale(1.04); }
.silo__haut { display: flex; gap: 14px; padding: 0 8px; }
.silo__haut .code { color: inherit; opacity: .86; }
.silo h3 { margin-top: 18px; font-family: var(--f-titre); font-weight: 900; font-size: 32px; line-height: .95; text-transform: uppercase; letter-spacing: .005em; }
.silo__themes { margin-top: 14px; font-size: 15px; line-height: 1.5; opacity: .9; }
.silo__themes li { display: inline; }
.silo__themes li:not(:last-child)::after { content: " · "; }

/* Derniers articles : le bordereau */
.bordereau { border-top: 1px solid var(--gris-trait); }
.bordereau li { border-bottom: 1px solid var(--gris-trait); }
.bordereau a {
  display: grid; grid-template-columns: 96px 180px minmax(0, 1fr) 40px; align-items: center; gap: 8px 24px;
  padding: 18px 8px; text-decoration: none;
  transition: background-color .15s ease-out;
}
.bordereau a:hover { background: var(--blanc); }
.bordereau a:hover .bordereau__titre { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; }
.bordereau__silo { font-family: var(--f-titre); font-weight: 800; font-size: 18px; text-transform: uppercase; letter-spacing: .04em; }
.bordereau__titre { font-size: 19px; font-weight: 600; line-height: 1.35; }
.bordereau__vignette { width: 96px; height: 64px; object-fit: cover; border-radius: 8px; }
.bordereau svg { width: 22px; height: 22px; justify-self: end; }

/* Méthode : la fiche de contrôle sur la bande hachurée */
.controle { background: var(--hachures); padding: clamp(48px, 8vw, 104px) var(--marge); }
.controle .plaque { max-width: 1080px; margin: 0 auto; padding: clamp(28px, 3.6vw, 48px); }
.controle h2 { font-family: var(--f-titre); font-weight: 900; text-transform: uppercase; font-size: clamp(40px, 4.6vw, 64px); line-height: .92; }
.controle__lignes { margin-top: 26px; border-top: 1px solid var(--gris-trait); }
.controle__lignes > div { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 8px 32px; padding: 18px 0; border-bottom: 1px solid var(--gris-trait); }
.controle__lignes dt { font-family: var(--f-titre); font-weight: 800; font-size: 24px; line-height: 1.1; text-transform: uppercase; letter-spacing: .02em; }
.controle__lignes dd { max-width: 62ch; }
.controle .bouton { margin-top: 28px; }

/* ---------- Pied de page ---------- */
.pied { background: var(--nylon); color: var(--blanc); padding: clamp(48px, 6vw, 72px) var(--marge) 40px; }
.pied__haut { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.pied .marque a { background-color: var(--orange); color: var(--encre); }
.pied p { margin-top: 18px; max-width: 46ch; color: #CFCFCC; }
.pied nav ul { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: flex-end; }
.pied nav a, .pied nav button { font-family: var(--f-titre); font-weight: 800; font-size: 18px; letter-spacing: .05em; text-transform: uppercase; text-decoration: none; color: var(--blanc); background: none; border: 0; padding: 4px 0; cursor: pointer; }
.pied nav a:hover, .pied nav button:hover { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; }
.pied__bas { margin-top: 48px; padding-top: 18px; border-top: 1px solid #3A3A38; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: #A9A9A6; }

/* ---------- Bandeau de consentement ---------- */
.consentement {
  position: fixed; left: var(--marge); bottom: 18px; z-index: 40;
  width: min(560px, calc(100vw - 2 * var(--marge)));
  padding: 22px 24px 20px;
  box-shadow: 0 18px 40px -12px rgba(10, 10, 10, .45);
}
.consentement[hidden] { display: none; }
.consentement h2 { font-family: var(--f-titre); font-weight: 900; font-size: 26px; text-transform: uppercase; line-height: 1; }
.consentement p { margin-top: 10px; font-size: 15px; line-height: 1.5; }
.consentement__choix { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.consentement__choix .bouton { justify-content: center; min-height: 48px; font-size: 19px; }
.consentement__lien { display: inline-block; margin-top: 12px; font-size: 14px; }

/* ==================== Page article ==================== */
.evitement { position: absolute; left: 12px; top: -80px; z-index: 60; padding: 10px 18px; background: var(--encre); color: var(--blanc); border-radius: 999px; font-weight: 700; text-decoration: none; }
.evitement:focus { top: 12px; }
.article [id] { scroll-margin-top: 150px; }

/* Tête d'article : la bande de couleur de la famille */
.article-tete {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 72px); align-items: center;
  padding: clamp(30px, 4.4vw, 60px) var(--marge) clamp(40px, 5vw, 72px);
  background: var(--fond); color: var(--sur-fond);
  overflow-x: clip;
}
.ariane ol { display: flex; flex-wrap: wrap; font-size: 15px; font-weight: 500; }
.ariane li:not(:last-child)::after { content: "/"; margin: 0 10px; opacity: .55; }
.ariane a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ariane a:hover { text-decoration-color: var(--orange); text-decoration-thickness: 2px; }
.ariane [aria-current] { opacity: .82; }
.article-tete__titre {
  margin-top: 20px; max-width: 19ch;
  font-family: var(--f-titre); font-weight: 900; text-transform: uppercase;
  font-size: clamp(40px, 4.3vw, 70px); line-height: .92; letter-spacing: .002em; text-wrap: balance;
}
.signature { display: flex; align-items: center; gap: 14px; margin-top: clamp(22px, 3vh, 30px); }
.signature__portrait {
  flex: none; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  background: var(--orange); color: var(--encre);
  font-family: var(--f-titre); font-weight: 900; font-size: 20px; letter-spacing: .03em;
}
.signature p { display: flex; flex-direction: column; gap: 2px; line-height: 1.35; }
.signature__nom { font-weight: 700; font-size: 17px; }
.signature__meta { font-size: 15px; opacity: .88; }
.resumer { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 22px; font-size: 15px; font-weight: 500; }
.resumer ul { display: flex; flex-wrap: wrap; gap: 8px; }
.resumer a {
  display: inline-flex; align-items: center; min-height: 38px; padding: 6px 16px;
  border-radius: 999px; background: color-mix(in srgb, var(--sur-fond) 15%, transparent); color: inherit;
  font-weight: 600; text-decoration: none; transition: background-color .15s ease-out, color .15s ease-out;
}
.resumer a:hover { background: var(--blanc); color: var(--encre); }
.article-tete__visuel { position: relative; }
.article-tete__photos {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  border-radius: var(--rayon); overflow: hidden; background: var(--blanc);
  box-shadow: 0 26px 50px -22px rgba(0, 0, 0, .6);
}
.article-tete__photos figure { position: relative; }
.article-tete__photos img { width: 100%; height: clamp(280px, 29vw, 440px); object-fit: cover; }
.article-tete__photos figcaption { position: absolute; left: 12px; bottom: 12px; padding: 4px 10px 3px; background: var(--blanc); color: var(--encre); border-radius: 999px; }
.article-tete .etiquette { top: -42px; right: 20px; width: 122px; }
.article-tete .etiquette__corps b { font-size: 21px; }

/* Corps : sommaire et colonne de lecture */
.article-corps {
  display: grid; grid-template-columns: 240px minmax(0, 680px); justify-content: center; gap: clamp(40px, 5vw, 88px);
  padding: clamp(40px, 5vw, 64px) var(--marge) clamp(72px, 9vw, 120px);
}
.sommaire { align-self: start; position: sticky; top: 132px; }
.sommaire summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; cursor: pointer; }
.sommaire summary::-webkit-details-marker { display: none; }
.sommaire summary svg { width: 22px; height: 22px; transition: transform .25s cubic-bezier(.16, 1, .3, 1); }
.sommaire details[open] summary svg { transform: rotate(45deg); }
.sommaire__titre { font-family: var(--f-titre); font-weight: 900; font-size: 26px; line-height: 1; text-transform: uppercase; letter-spacing: .02em; }
.sommaire__avancement { height: 4px; margin: 14px 0 10px; border-radius: 999px; background: var(--gris); overflow: hidden; }
.sommaire__avancement span { display: block; height: 100%; background: var(--fond); transform-origin: 0 50%; transform: scaleX(var(--avance, 0)); }
.sommaire ol li a {
  display: flex; align-items: baseline; gap: 10px; padding: 7px 0;
  font-size: 15px; line-height: 1.35; color: var(--gris-texte); text-decoration: none;
}
.sommaire ol li a::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 2px; background: var(--gris-trait); transform: translateY(-1px); transition: background-color .2s ease-out; }
.sommaire ol li a:hover { color: var(--encre); }
.sommaire ol li a.actif { color: var(--encre); font-weight: 700; }
.sommaire ol li a.actif::before { background: var(--fond); }
@media (min-width: 1101px) { .sommaire summary { pointer-events: none; } .sommaire summary svg { display: none; } }
@media (min-width: 1240px) { .tableau { margin-right: -96px; } }
@media (min-width: 1400px) { .tableau { margin-right: -160px; } }

.article-texte { min-width: 0; font-size: 18px; line-height: 1.65; }
.article-texte p { max-width: 70ch; }
.article-texte strong { font-weight: 700; }
.article-texte > section + section { margin-top: clamp(52px, 6vw, 80px); }
.partie > * + * { margin-top: 20px; }
.partie h2 {
  font-family: var(--f-titre); font-weight: 900; text-transform: uppercase;
  font-size: clamp(32px, 3vw, 46px); line-height: .95; letter-spacing: .004em; text-wrap: balance;
}
.partie h2 + * { margin-top: 22px; }
.attaque { font-size: 19px; line-height: 1.55; }
.partie h3 {
  display: flex; align-items: flex-start; gap: 14px;
  margin-top: 48px;
  font-size: clamp(21px, 1.8vw, 25px); font-weight: 700; line-height: 1.3; text-wrap: balance;
}
.partie h3 + p { margin-top: 12px; }
.rang {
  flex: none; display: grid; place-items: center; width: 38px; height: 38px; margin-top: -3px;
  border-radius: 9px; background: var(--fond); color: var(--sur-fond);
  font-family: var(--f-titre); font-weight: 900; font-size: 24px; line-height: 1;
}
.partie--methode { padding: clamp(24px, 3vw, 36px); border-radius: var(--rayon); background: var(--coton); }
.partie--methode h2 { font-size: clamp(28px, 2.4vw, 36px); }
.partie--methode p { font-size: 17px; }

/* En bref */
.en-bref { padding: 24px 0 28px; border-top: 4px solid var(--fond); border-bottom: 4px solid var(--fond); }
.en-bref h2 { font-family: var(--f-titre); font-weight: 900; font-size: 28px; line-height: 1; text-transform: uppercase; letter-spacing: .03em; }
.en-bref p { margin-top: 14px; font-size: 20px; line-height: 1.55; font-weight: 500; }

/* Fiche d'une option : libellé et valeur */
.fiche { margin-top: 22px; border-top: 1px solid var(--gris-trait); }
.fiche li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 2px 20px; padding: 12px 0; border-bottom: 1px solid var(--gris-trait); font-size: 17px; line-height: 1.5; }

/* Image dans le texte */
.illustration { margin-top: 26px; }
.illustration img { width: 100%; height: auto; aspect-ratio: 72 / 38; object-fit: cover; border-radius: var(--rayon); box-shadow: var(--ombre); }
.illustration figcaption { margin-top: 10px; font-size: 14.5px; color: var(--gris-texte); max-width: 62ch; }

/* Tableaux */
.tableau { margin-top: 28px; }
.tableau__titre { margin-bottom: 12px; font-family: var(--f-titre); font-weight: 800; font-size: 24px; line-height: 1.05; text-transform: uppercase; letter-spacing: .02em; }
.tableau__defile { overflow-x: auto; border-radius: var(--rayon); background: var(--blanc); box-shadow: var(--ombre); scrollbar-width: thin; }
.tableau__defile:focus-visible { box-shadow: 0 0 0 3px var(--encre), 0 0 0 7px var(--orange); outline: 0; }
.tableau table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.42; }
.tableau th, .tableau td { padding: 12px 14px; text-align: left; vertical-align: top; }
.tableau thead th {
  vertical-align: bottom; background: var(--fond); color: var(--sur-fond);
  font-family: var(--f-titre); font-weight: 800; font-size: 16.5px; line-height: 1.12; letter-spacing: .04em; text-transform: uppercase;
}
.tableau tbody tr + tr { border-top: 1px solid var(--gris); }
.tableau tbody tr:nth-child(even) { background: #F8F8F6; }
.tableau tbody th { font-weight: 700; background: var(--blanc); }
.tableau tbody tr:nth-child(even) th { background: #F8F8F6; }
.tableau tbody th, .tableau thead th:first-child { position: sticky; left: 0; z-index: 1; }
.tableau .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tableau td.num { font-weight: 600; }
.tableau__source { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--gris-texte); max-width: 62ch; }
.tableau__source .code { margin-left: 6px; font-size: 11px; white-space: nowrap; }
.tableau__glisser { display: none; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--gris-texte); }
.tableau__glisser svg { width: 16px; height: 16px; }
.tableau.deborde .tableau__glisser { display: flex; }
.tableau tbody th { min-width: 150px; }
.col-fourchette { width: 110px; }
.fourchette { position: relative; display: block; width: 92px; height: 10px; margin-top: 6px; border-radius: 999px; background: var(--gris); }
.fourchette::after { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--de) * 1%); width: calc((var(--a) - var(--de)) * 1%); border-radius: 999px; background: var(--fond); }
.note { display: inline-flex; gap: 3px; margin-right: 10px; vertical-align: 1px; }
.note i { width: 15px; height: 9px; border-radius: 2px; background: var(--gris); }
.note[data-note="1"] i:nth-child(-n+1), .note[data-note="2"] i:nth-child(-n+2), .note[data-note="3"] i:nth-child(-n+3),
.note[data-note="4"] i:nth-child(-n+4), .note[data-note="5"] i:nth-child(-n+5) { background: var(--orange); }
.tableau--notes td { white-space: nowrap; }
.tableau--notes td .code { font-size: 12px; }
.note__precision { font-size: 13.5px; color: var(--gris-texte); }

/* Encadrés */
.encadre {
  display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 6px 16px;
  margin-top: 28px; padding: 22px 26px 24px 22px; border-radius: var(--rayon);
}
.encadre > svg { grid-row: 1 / span 2; width: 32px; height: 32px; }
.encadre__titre { font-weight: 700; font-size: 18px; line-height: 1.35; padding-top: 4px; }
.encadre p:not(.encadre__titre) { font-size: 17px; line-height: 1.55; }
.encadre--exemple { background: #FFEADB; }
.encadre--exemple > svg { color: var(--orange-fonce); }
.encadre--info { background: #E4ECF6; }
.encadre--info > svg { color: var(--toi); }
.encadre--attention { background: var(--dem); color: var(--encre); }

/* Liste de décision */
.decision { margin-top: 26px; border-radius: var(--rayon); background: var(--blanc); box-shadow: var(--ombre); overflow: hidden; }
.decision li { display: grid; grid-template-columns: 34px minmax(0, .95fr) minmax(0, 1.05fr); gap: 6px 18px; align-items: start; padding: 17px 22px; font-size: 17px; line-height: 1.45; }
.decision li + li { border-top: 1px solid var(--gris); }
.decision__icone { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--blanc); }
.decision__icone svg { width: 18px; height: 18px; }
.decision--oui .decision__icone { background: var(--jar); }
.decision--non .decision__icone { background: var(--cha); }
.decision--non { background: #FFF4F2; }
/* Lien facultatif d'une situation : vers la partie qui la détaille, sous le conseil */
.decision__lien {
  grid-column: 3; justify-self: start; display: inline-flex; align-items: center; gap: 6px; margin-top: 2px;
  font-size: 15px; font-weight: 700; line-height: 1.3;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--gris-trait);
}
.decision__lien:hover { text-decoration-color: var(--orange); text-decoration-thickness: 2px; }
.decision__lien svg { flex: none; width: 15px; height: 15px; transition: transform .25s cubic-bezier(.16, 1, .3, 1); }
.decision__lien:hover svg { transform: translateY(2px); }
.decision__lien[href^="http"]:hover svg, .decision__lien[href^="/"]:hover svg { transform: translateX(2px); }

/* FAQ */
.faq { margin-top: 18px; border-top: 1px solid var(--gris-trait); }
.faq details { border-bottom: 1px solid var(--gris-trait); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; display: block; font-size: 19px; font-weight: 700; line-height: 1.35; }
.faq summary svg { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: var(--gris); transition: transform .25s cubic-bezier(.16, 1, .3, 1), background-color .15s ease-out; }
.faq summary:hover svg { background: var(--orange); }
.faq details[open] summary svg { transform: rotate(45deg); background: var(--fond); color: var(--sur-fond); }
.faq details > p { padding: 0 54px 22px 0; font-size: 17px; }

/* Sources */
.partie--sources { padding: clamp(24px, 3vw, 36px); border-radius: var(--rayon); background: var(--coton); }
.partie--sources h2 { font-size: clamp(28px, 2.4vw, 36px); }
.sources { counter-reset: source; }
.sources li { counter-increment: source; display: grid; grid-template-columns: 30px minmax(0, 1fr); padding: 11px 0; border-bottom: 1px solid var(--gris-trait); font-size: 15.5px; line-height: 1.45; }
.sources li:last-child { border-bottom: 0; }
.sources li::before { content: counter(source); grid-row: 1 / span 2; font-family: var(--f-code); font-size: 12px; font-weight: 600; color: var(--gris-texte); padding-top: 2px; }
.sources a { font-weight: 600; text-decoration-thickness: 1px; }
.sources .code { margin-top: 3px; font-size: 11px; color: var(--gris-texte); }

/* Comment cette page a été faite */
.fabrication { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 18px 20px; padding: clamp(22px, 3vw, 32px); border-radius: var(--rayon); background: var(--blanc); box-shadow: var(--ombre); }
.fabrication h2 { font-family: var(--f-titre); font-weight: 900; text-transform: uppercase; font-size: 28px; line-height: 1; }
.fabrication p { margin-top: 12px; max-width: 62ch; font-size: 16px; line-height: 1.6; }
.fabrication__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; color: var(--gris-texte); font-size: 15px; }

/* À lire aussi */
.a-lire h2 { font-family: var(--f-titre); font-weight: 900; text-transform: uppercase; font-size: clamp(32px, 3vw, 44px); line-height: .95; }
.a-lire ul { display: grid; gap: 16px; margin-top: 22px; }
.carte-article { display: grid; grid-template-columns: 240px minmax(0, 1fr); border-radius: var(--rayon); overflow: hidden; background: var(--blanc); box-shadow: var(--ombre); text-decoration: none; }
.carte-article img { width: 100%; height: 100%; min-height: 160px; object-fit: cover; transition: transform .5s cubic-bezier(.16, 1, .3, 1); }
.carte-article:hover img { transform: scale(1.04); }
.carte-article__texte { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 22px 24px; }
.carte-article__titre { font-family: var(--f-titre); font-weight: 900; text-transform: uppercase; font-size: 30px; line-height: .95; }
.carte-article:hover .lien-fleche { text-decoration-color: var(--orange); }
.carte-article:hover .lien-fleche svg { transform: translateX(3px); }

/* Questionnaire */
.quiz { padding: clamp(24px, 3.2vw, 40px); border-radius: var(--rayon); background: var(--fond); color: var(--sur-fond); box-shadow: var(--ombre); }
.quiz__titre { font-family: var(--f-titre); font-weight: 900; text-transform: uppercase; font-size: clamp(30px, 2.8vw, 42px); line-height: .95; text-wrap: balance; }
.quiz__sous-titre { margin-top: 10px; font-size: 16px; }
.quiz__zone { margin-top: 24px; }
.quiz__etape { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.quiz__barre { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 4px; flex: 1; max-width: 240px; }
.quiz__barre i { height: 6px; border-radius: 999px; background: color-mix(in srgb, var(--sur-fond) 28%, transparent); }
.quiz__barre i.fait { background: var(--orange); }
.quiz__barre i.en-cours { background: var(--sur-fond); }
.quiz fieldset { margin: 18px 0 0; padding: 0; border: 0; min-width: 0; }
.quiz legend { padding: 0; font-size: 21px; font-weight: 700; line-height: 1.35; }
.quiz legend:focus { outline: none; }
.quiz__choix { display: grid; gap: 8px; margin-top: 16px; }
.quiz__choix label {
  display: flex; align-items: center; gap: 14px; min-height: 54px; padding: 12px 18px;
  border-radius: 10px; background: var(--blanc); color: var(--encre);
  font-size: 17px; font-weight: 500; line-height: 1.35; cursor: pointer;
  transition: background-color .15s ease-out, transform .15s ease-out;
}
.quiz__choix label:hover { background: #FFF1E8; }
.quiz__choix input {
  flex: none; appearance: none; -webkit-appearance: none; margin: 0;
  width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--encre); background: var(--blanc);
  display: grid; place-items: center; cursor: pointer;
}
.quiz__choix input::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--encre); transform: scale(0); transition: transform .15s cubic-bezier(.16, 1, .3, 1); }
.quiz__choix input:checked::after { transform: scale(1); }
.quiz__choix label:has(input:checked) { background: var(--orange); font-weight: 700; }
.quiz__choix input:focus-visible { outline: 3px solid var(--encre); outline-offset: 2px; box-shadow: none; }
.quiz__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 20px; }
.quiz__actions .bouton { min-height: 50px; font-size: 19px; }
.quiz__actions .bouton:disabled { background: color-mix(in srgb, var(--sur-fond) 20%, transparent); color: var(--sur-fond); cursor: not-allowed; }
.quiz__retour { padding: 6px 0; background: none; border: 0; color: inherit; font: 600 16px/1.2 var(--f-texte); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.quiz__retour[hidden] { display: none; }
.quiz__resultat { margin-top: 30px; }
.quiz__resultat:focus { outline: none; }
.quiz__resultat h3 { font-family: var(--f-titre); font-weight: 900; text-transform: uppercase; font-size: clamp(32px, 3vw, 44px); line-height: .95; text-wrap: balance; }
.quiz__resultat > p { margin-top: 12px; font-size: 18px; line-height: 1.5; }
.quiz__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.quiz__badges li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 999px; background: var(--blanc); color: var(--encre); font-size: 15px; font-weight: 600; }
.quiz__badges svg { width: 18px; height: 18px; color: var(--jar); }
.quiz__egalite { font-size: 16px; }

/* ---------- Adaptation ---------- */
@media (max-width: 1180px) {
  .marque span { display: none; }
  .silos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bordereau a { grid-template-columns: 96px 150px minmax(0, 1fr) 32px; }
}
@media (max-width: 1100px) {
  .article-corps { grid-template-columns: minmax(0, 680px); gap: 28px; }
  .sommaire { position: static; padding: 16px 20px; border-radius: var(--rayon); background: var(--coton); }
  .sommaire ol { margin-top: 4px; }
}
@media (max-width: 960px) {
  .accueil { grid-template-columns: minmax(0, 1fr); }
  .article-tete { grid-template-columns: minmax(0, 1fr); }
  .article-tete__visuel { margin-top: 44px; }
  .article [id] { scroll-margin-top: 170px; }
  .carte-une { max-width: 640px; margin-top: 76px; }
  .carte-une .etiquette { top: -78px; }
  .entete__barre { flex-wrap: wrap; }
  .menu-bouton { display: inline-flex; margin-left: auto; min-height: 44px; padding: 8px 16px; font-size: 18px; }
  .nav { display: none; }
  .nav.ouvert { display: block; }
  .nav ul { flex-direction: column; gap: 0; overflow: visible; }
  .nav a { font-size: 18px; }
  .nav li { border-bottom: 1px solid var(--gris-trait); }
  .nav a { display: flex; padding: 13px 0; border-bottom: 0; }
  .recherche { order: 2; width: 100%; margin-left: 0; }
  .controle__lignes > div { grid-template-columns: minmax(0, 1fr); }
  .pied__haut { grid-template-columns: minmax(0, 1fr); }
  .pied nav ul { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .accueil__titre { font-size: clamp(42px, 12.4vw, 58px); }
  .accueil__actions .bouton { width: 100%; justify-content: space-between; }
  .carte-une { padding: 24px 20px 20px; }
  .carte-une h3 { font-size: 32px; }
  .carte-une__photos { margin: -24px -20px 20px; }
  .carte-une__photos img { height: 140px; }
  .carte-une .etiquette { right: 8px; width: 100px; }
  .carte-une .etiquette__corps b { font-size: 17px; }
  .carte-une .etiquette__corps .barres { display: none; }
  body { font-size: 16px; }
  .marque a { font-size: 19px; padding: 5px 24px 3px; }
  .silos { grid-template-columns: minmax(0, 1fr); }
  .bordereau a { grid-template-columns: 72px minmax(0, 1fr) 24px; gap: 6px 14px; padding: 14px 2px; }
  .bordereau__vignette { grid-row: 1 / span 2; width: 72px; height: 72px; }
  .bordereau__silo, .bordereau__titre { grid-column: 2; }
  .bordereau svg { grid-column: 3; grid-row: 1 / span 2; }
  .bordereau__titre { font-size: 17px; }
  .consentement { bottom: 10px; }
  .consentement__choix .bouton { padding: 10px 12px; }
  .article-tete__titre { font-size: clamp(34px, 9.4vw, 46px); }
  .article-tete__photos img { height: 220px; }
  .article-tete .etiquette { right: 10px; width: 114px; }
  .article-tete .etiquette__corps b { font-size: 17px; }
  .article-tete .etiquette__corps .barres { display: none; }
  .article-texte { font-size: 17px; }
  .attaque, .en-bref p { font-size: 18px; }
  .fiche li { grid-template-columns: minmax(0, 1fr); }
  .tableau table { min-width: 600px; }
  .tableau[data-type^="prix"] td:last-child { min-width: 180px; } /* colonne « ce qui est compris » lisible */
  .tableau--notes table { min-width: 520px; }
  .encadre { grid-template-columns: minmax(0, 1fr); padding: 20px; }
  .encadre > svg { grid-row: auto; }
  .decision li { grid-template-columns: 30px minmax(0, 1fr); padding: 16px; }
  .decision li > :nth-child(n+3) { grid-column: 2; } /* le conseil et le lien sous la situation */
  .faq details > p { padding-right: 0; }
  .carte-article { grid-template-columns: minmax(0, 1fr); }
  .carte-article img { height: 170px; min-height: 0; }
  .carte-article__titre { font-size: 26px; }
  .fabrication { grid-template-columns: minmax(0, 1fr); }
}

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

/* ==================== Ajouts WordPress ==================== */

/* Article sans famille (catégorie sans couleur) */
.f-neutre { --fond: var(--nylon); --sur-fond: var(--blanc); }

/* Texte réservé aux lecteurs d'écran (WordPress) */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Barre d'administration WordPress */
.admin-bar .entete { top: 32px; }
.admin-bar .sommaire { top: calc(132px + 32px); }
.admin-bar .article [id] { scroll-margin-top: calc(150px + 32px); }
@media (max-width: 782px) { .admin-bar .entete { top: 46px; } }
@media (max-width: 600px) { .admin-bar .entete { top: 0; } }

/* Menu des familles : la famille de l'article affiché */
.nav a[aria-current] { border-bottom-color: var(--fond); }
.nav li { list-style: none; }

/* Titre des listes (catégorie, recherche, page introuvable) */
.section__tete h1 { font-family: var(--f-titre); font-weight: 900; text-transform: uppercase; font-size: clamp(40px, 4.6vw, 64px); line-height: .92; letter-spacing: 0; }
.vide { display: grid; gap: 20px; justify-items: start; max-width: 62ch; }
.vide .recherche { width: min(560px, 100%); margin-left: 0; }

/* Tête d'article sans photo, corps sans sommaire */
.article-tete--sans-visuel { grid-template-columns: minmax(0, 1fr); }
.article-tete--sans-visuel .article-tete__texte { max-width: 980px; }
.article-tete__photos figure:only-child { grid-column: 1 / -1; } /* Anciens articles : une seule photo. */
.article-corps--seul { grid-template-columns: minmax(0, 680px); }

/* Liste d'articles : vignette absente */
.bordereau__vignette--vide { display: block; background: var(--gris) var(--hachures-fines); opacity: .5; }

/* Famille de travaux sans lien */
.silo > .silo__corps {
  display: flex; flex-direction: column; height: 100%;
  padding: 22px 24px 20px;
  background-color: var(--fond, var(--blanc)); color: var(--sur-fond, var(--encre)); background-image: var(--rivets);
  border-radius: var(--rayon); box-shadow: var(--ombre);
  overflow: hidden;
}

/* Pagination */
.pagination { margin-top: 32px; }
.pagination ul { display: flex; flex-wrap: wrap; gap: 10px; }
.pagination a, .pagination span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px; background: var(--gris); font-family: var(--f-titre); font-weight: 800; font-size: 18px; text-transform: uppercase; letter-spacing: .04em; text-decoration: none; }
.pagination .current { background: var(--encre); color: var(--blanc); }
.pagination a:hover { background: var(--gris-trait); }

/* ---------- Styles de blocs proposés dans l'éditeur ---------- */

/* Paragraphe « Phrase d'attaque » */
.is-style-attaque { font-size: 19px; line-height: 1.55; }

/* Titre « Option numérotée » : le numéro est compté dans chaque partie */
.partie { counter-reset: option; }
.partie h3.is-style-option { counter-increment: option; }
.partie h3.is-style-option::before {
  content: counter(option);
  flex: none; display: grid; place-items: center; width: 38px; height: 38px; margin-top: -3px;
  border-radius: 9px; background: var(--fond); color: var(--sur-fond);
  font-family: var(--f-titre); font-weight: 900; font-size: 24px; line-height: 1;
}

/* Liste « Fiche » : libellé en gras, puis valeur */
.is-style-fiche { margin-top: 22px; border-top: 1px solid var(--gris-trait); }
.is-style-fiche li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 2px 20px; padding: 12px 0; border-bottom: 1px solid var(--gris-trait); font-size: 17px; line-height: 1.5; }

/* Groupe « Méthode » */
.partie.is-style-methode { padding: clamp(24px, 3vw, 36px); border-radius: var(--rayon); background: var(--coton); }
.partie.is-style-methode h2 { font-size: clamp(28px, 2.4vw, 36px); }
.partie.is-style-methode p { font-size: 17px; }

/* Image du texte (bloc Image du cœur) */
.article-texte .wp-block-image { margin-bottom: 0; }
.article-texte .wp-block-image.illustration img { height: auto; }

/* ---------- Contenus libres (articles écrits avant la refonte) ---------- */
.article-texte > :where(p, ul, ol, figure, table, blockquote, h2, h3, h4, .wp-block-table, .wp-block-image) + :where(*) { margin-top: 20px; }
.article-texte > h2 {
  margin-top: clamp(52px, 6vw, 80px);
  font-family: var(--f-titre); font-weight: 900; text-transform: uppercase;
  font-size: clamp(32px, 3vw, 46px); line-height: .95; letter-spacing: .004em; text-wrap: balance;
}
.article-texte > h3 { margin-top: 40px; font-size: clamp(21px, 1.8vw, 25px); font-weight: 700; line-height: 1.3; text-wrap: balance; }
.article-texte > h4, .partie h4 { margin-top: 28px; font-size: 19px; font-weight: 700; line-height: 1.35; }
/* Listes à puces : celles des anciens articles, des réponses de FAQ et du bloc Liste */
.article-texte > :where(ul, ol):not([class]),
.partie > :where(ul, ol):not([class]),
.faq details :where(ul, ol),
.article-texte :where(ul.wp-block-list, ol.wp-block-list):not(.is-style-fiche) { padding-left: 1.3em; list-style: disc; }
.article-texte > ol:not([class]), .partie > ol:not([class]), .faq details ol, .article-texte ol.wp-block-list { list-style: decimal; }
.article-texte :where(ul, ol):where(:not([class]), .wp-block-list:not(.is-style-fiche)) > li + li { margin-top: 6px; }
.article-texte li::marker { color: var(--fond, var(--encre)); }
.article-texte blockquote { margin: 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--fond, var(--encre)); font-size: 19px; }
.article-texte .wp-block-table table, .article-texte > table { width: 100%; border-collapse: collapse; font-size: 16px; }
.article-texte .wp-block-table :where(th, td), .article-texte > table :where(th, td) { padding: 10px 12px; border: 1px solid var(--gris-trait); text-align: left; vertical-align: top; }
.article-texte .wp-block-table thead th { background: var(--encre); color: var(--blanc); }
.article-texte img { height: auto; }
.article-texte figure > img { border-radius: var(--rayon); }
.article-texte figcaption, .article-texte .wp-element-caption { margin-top: 10px; font-size: 14.5px; color: var(--gris-texte); }

@media (max-width: 640px) {
  .is-style-attaque { font-size: 18px; }
  .is-style-fiche li { grid-template-columns: minmax(0, 1fr); }
}

/* Pages de famille : les autres familles, en plaques de couleur (d'après le menu des familles) */
.familles-voisines ul { display: flex; flex-wrap: wrap; gap: 12px; }
.familles-voisines li { list-style: none; flex: 1 1 260px; } /* la dernière rangée s'étire : pas de case vide */
.familles-voisines a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 80px; height: 100%;
  padding: 16px 20px; border-radius: var(--rayon);
  background-color: var(--fond); color: var(--sur-fond); background-image: var(--rivets);
  font-family: var(--f-titre); font-weight: 900; font-size: clamp(22px, 2vw, 28px); line-height: .95; text-transform: uppercase; text-decoration: none;
  box-shadow: var(--ombre); transition: background-color .18s ease-out;
}
.familles-voisines a:hover { background-color: color-mix(in srgb, var(--fond) 86%, #000); }
.familles-voisines a:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.familles-voisines svg { flex: none; width: 22px; height: 22px; transition: transform .2s ease-out; }
.familles-voisines a:hover svg { transform: translateX(3px); }
@media (max-width: 480px) { .familles-voisines ul { gap: 10px; } .familles-voisines li { flex-basis: calc(50% - 5px); } .familles-voisines a { min-height: 72px; padding: 14px 14px 12px 16px; font-size: 20px; } .familles-voisines svg { width: 18px; height: 18px; } }

/* ==================== Familles et dossiers (catégories) ==================== */

/* Bandeau : la couleur de la famille, sa plaque (nom, nombre de guides et de dossiers), le titre, le chapô
   et les dossiers en raccourcis. La photo de la page de famille à droite, sans photo pour un dossier. */
.rayon {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 72px); align-items: center;
  padding: clamp(30px, 4.4vw, 56px) var(--marge) clamp(40px, 5vw, 64px);
  background: var(--fond); color: var(--sur-fond);
  overflow-x: clip;
}
.rayon--sans-visuel { grid-template-columns: minmax(0, 1fr); }
.rayon--sans-visuel .rayon__texte { max-width: 1040px; }
.rayon__plaque {
  display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 16px;
  margin-top: 22px; padding: 13px 24px 11px;
  border-radius: var(--rayon); background-color: var(--blanc); background-image: var(--rivets); color: var(--encre); box-shadow: var(--ombre);
}
.rayon__famille { font-family: var(--f-titre); font-weight: 900; font-size: clamp(28px, 2.6vw, 36px); line-height: 1; text-transform: uppercase; letter-spacing: .02em; }
.rayon__famille a { text-decoration: none; }
.rayon__famille a:hover { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 3px; }
.rayon__plaque .code { color: var(--gris-texte); }
.rayon__titre {
  margin-top: 22px; max-width: 24ch;
  font-family: var(--f-titre); font-weight: 900; text-transform: uppercase;
  font-size: clamp(34px, 3.4vw, 54px); line-height: .94; letter-spacing: .002em; text-wrap: balance;
}
.rayon--sans-visuel .rayon__titre { font-size: clamp(48px, 6vw, 88px); line-height: .9; }
.rayon__chapo { margin-top: 18px; max-width: 60ch; font-size: 19px; line-height: 1.5; font-weight: 500; }
.rayon__dossiers { margin-top: 26px; }
.rayon__dossiers ul { display: flex; flex-wrap: wrap; gap: 8px; }
.rayon__dossiers a {
  display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 7px 16px;
  border-radius: 999px; background: color-mix(in srgb, var(--sur-fond) 16%, transparent); color: inherit;
  font-weight: 600; font-size: 15.5px; line-height: 1.2; text-decoration: none;
  transition: background-color .15s ease-out, color .15s ease-out;
}
.rayon__dossiers .code { font-size: 11px; opacity: .78; }
.rayon__dossiers a:hover, .rayon__dossiers a[aria-current] { background: var(--blanc); color: var(--encre); }
.rayon .article-tete__photos img { height: clamp(260px, 26vw, 400px); }
.rayon .etiquette { top: -42px; right: 20px; width: 122px; }
.rayon .etiquette__corps b { font-size: 21px; }

/* Lien du bandeau vers le guide : l'action principale du bandeau, en blanc plein ; les dossiers restent en pastilles */
.rayon__guide { margin-top: 24px; }
.rayon__guide a {
  display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 10px 20px 10px 22px;
  border-radius: 999px; background: var(--blanc); color: var(--encre); box-shadow: var(--ombre);
  font-weight: 700; font-size: 16px; line-height: 1.2; text-decoration: none;
  transition: background-color .15s ease-out, color .15s ease-out;
}
.rayon__guide svg { flex: none; width: 18px; height: 18px; transition: transform .25s cubic-bezier(.16, 1, .3, 1); }
.rayon__guide a:hover { background: var(--encre); color: var(--blanc); }
.rayon__guide a:hover svg { transform: translateY(2px); }
.rayon__guide + .rayon__dossiers { margin-top: 16px; }
#le-guide { scroll-margin-top: 100px; }

/* L'essentiel, sous le bandeau d'une page de famille : En bref, qui reste en vue pendant la lecture,
   et Par où commencer, dont chaque situation mène à la partie du guide qui la détaille */
.essentiel {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 88px); align-items: start;
  padding: clamp(48px, 6vw, 88px) var(--marge) clamp(56px, 7vw, 104px);
}
.essentiel--seul { grid-template-columns: minmax(0, 1fr); max-width: calc(920px + 2 * var(--marge)); }
.essentiel__bref { position: sticky; top: 132px; }
.essentiel .en-bref { padding: 26px 0 30px; }
.essentiel .en-bref h2 { font-size: clamp(30px, 2.6vw, 38px); }
.essentiel .en-bref p { font-size: clamp(19px, 1.5vw, 21px); line-height: 1.5; }
.essentiel__depart .partie > * + * { margin-top: 18px; }
.essentiel__depart .partie h2 { font-size: clamp(36px, 3.6vw, 56px); line-height: .92; }
.essentiel__depart .partie h2 + * { margin-top: 20px; }
.essentiel__depart .partie > p { max-width: 62ch; font-size: 18px; line-height: 1.6; }
.essentiel__depart .partie > .decision + p { margin-top: 22px; color: var(--gris-texte); font-size: 16.5px; }
.essentiel .decision { margin-top: 26px; }

/* Les dossiers : une carte par sous-catégorie, avec la photo de son dernier article */
.dossiers { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.dossier {
  display: flex; flex-direction: column; gap: 12px; padding: 0 24px 22px; overflow: hidden;
  border-radius: var(--rayon); background: var(--blanc); box-shadow: var(--ombre);
}
.dossier__photo {
  display: block; width: calc(100% + 48px); max-width: none; height: 180px; margin: 0 -24px 8px;
  object-fit: cover; border-bottom: 6px solid var(--fond, var(--encre));
}
.dossier__photo--vide { background: var(--gris) var(--hachures-fines); }
.dossier__nom { font-family: var(--f-titre); font-weight: 900; text-transform: uppercase; font-size: clamp(28px, 2.4vw, 34px); line-height: .95; letter-spacing: .01em; text-wrap: balance; }
.dossier__nom a { text-decoration: none; }
.dossier__nom a:hover { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; }
.dossier__compte { color: var(--gris-texte); }
.dossier__texte { font-size: 16px; line-height: 1.5; }
.dossier__articles { display: grid; gap: 10px; font-size: 16px; line-height: 1.4; }
.dossier__articles li { position: relative; padding-left: 18px; }
.dossier__articles li::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border-radius: 2px; background: var(--fond, var(--encre)); }
.dossier__articles a { text-decoration: none; font-weight: 600; }
.dossier__articles a:hover { text-decoration: underline; text-decoration-color: var(--orange); }
.dossier__lien { margin-top: auto; padding-top: 4px; font-size: 16px; }

/* Les articles : une grille de cartes. En première page, le plus récent en bandeau sur toute la largeur
   (hauteur fixe, photo à gauche), puis les huit suivants sur deux rangées de quatre ; ensuite, trois rangées de trois. */
.guides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
/* Après la grande carte : rangées de 4, ou de 3 et de 2 (classes --par3, --par2 posées par le gabarit) pour ne pas
   laisser de trou ; les photos des cartes plus larges sont moins hautes, pour garder des rangées de même hauteur. */
@media (min-width: 1101px) {
  .guides--une { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .guides--une > .carte-guide { grid-column: span 3; }
  .guides--une > .carte-guide--par3 { grid-column: span 4; }
  .guides--une > .carte-guide--par2 { grid-column: span 6; }
  .carte-guide--par3 .carte-guide__photo img, .carte-guide--par3 .carte-guide__vide { aspect-ratio: 32 / 15; }
  .carte-guide--par2 .carte-guide__photo img, .carte-guide--par2 .carte-guide__vide { aspect-ratio: 16 / 5; }
}
.carte-guide { position: relative; display: flex; flex-direction: column; border-radius: var(--rayon); overflow: hidden; background: var(--blanc); box-shadow: var(--ombre); }
.carte-guide__photo { position: relative; overflow: hidden; background: var(--gris); }
.carte-guide__photo img, .carte-guide__vide { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .5s cubic-bezier(.16, 1, .3, 1); }
.carte-guide__vide { background: var(--gris) var(--hachures-fines); }
.carte-guide:hover .carte-guide__photo img { transform: scale(1.04); }
.carte-guide__texte { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 22px; }
.carte-guide__haut { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.carte-guide__haut .code { color: var(--gris-texte); font-size: 11px; }
.carte-guide__titre { font-size: 19px; font-weight: 700; line-height: 1.3; text-wrap: pretty; }
.carte-guide__titre a { text-decoration: none; }
.carte-guide__titre a::after { content: ""; position: absolute; inset: 0; } /* toute la carte mène à l'article */
.carte-guide:hover .carte-guide__titre a { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; }
.carte-guide__titre a:focus-visible { outline: none; box-shadow: none; }
.carte-guide:has(.carte-guide__titre a:focus-visible) { outline: 3px solid var(--encre); outline-offset: 3px; box-shadow: 0 0 0 7px var(--orange); }
.carte-guide__resume { color: var(--gris-texte); font-size: 16.5px; line-height: 1.5; }
.guides .carte-guide--une { grid-column: 1 / -1; }
.carte-guide--une { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.carte-guide--une .carte-guide__photo { min-height: clamp(280px, 24vw, 360px); }
.carte-guide--une .carte-guide__photo img, .carte-guide--une .carte-guide__vide { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
.carte-guide--une .carte-guide__texte { justify-content: center; gap: 14px; padding: clamp(24px, 3vw, 44px); }
.carte-guide--une .carte-guide__titre { font-family: var(--f-titre); font-weight: 900; text-transform: uppercase; font-size: clamp(30px, 2.8vw, 42px); line-height: .95; text-wrap: balance; }

/* Le guide de la famille : son titre, sa signature, puis le texte et son sommaire */
.famille-guide__tete { max-width: calc(920px + clamp(40px, 5vw, 88px)); margin: 0 auto; /* la largeur du sommaire et du texte, plus leur écart */ padding: clamp(56px, 8vw, 104px) var(--marge) 0; box-sizing: content-box; }
.famille-guide__titre {
  padding-top: 22px; border-top: 6px solid var(--fond);
  font-family: var(--f-titre); font-weight: 900; text-transform: uppercase; font-size: clamp(40px, 4.6vw, 64px); line-height: .92;
}
.famille-guide .signature { margin-top: 20px; }
.famille-guide .resumer a { background: var(--coton); }
.famille-guide .resumer a:hover { background: var(--encre); color: var(--blanc); }
.famille-guide .article-corps { padding-top: clamp(32px, 4vw, 48px); }

@media (max-width: 1100px) {
  .guides { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .famille-guide__tete { max-width: 680px; }
}
@media (min-width: 641px) and (max-width: 1100px) {
  /* Deux colonnes : une dernière carte seule occupe toute la rangée, photo en bandeau. */
  .guides--une > .carte-guide:last-child:nth-child(even) { grid-column: 1 / -1; }
  .guides--une > .carte-guide:last-child:nth-child(even) .carte-guide__photo img,
  .guides--une > .carte-guide:last-child:nth-child(even) .carte-guide__vide { aspect-ratio: 16 / 5; }
}
@media (max-width: 960px) {
  .essentiel { grid-template-columns: minmax(0, 1fr); }
  .essentiel__bref { position: static; }
  .carte-guide--une { display: flex; flex-direction: column; }
  .carte-guide--une .carte-guide__photo { min-height: 280px; }
  .rayon { grid-template-columns: minmax(0, 1fr); }
  .rayon .article-tete__visuel { margin-top: 44px; }
}
@media (max-width: 640px) {
  .rayon__titre { font-size: clamp(32px, 8.6vw, 42px); }
  .rayon--sans-visuel .rayon__titre { font-size: clamp(44px, 13vw, 60px); }
  .rayon__chapo { font-size: 17px; }
  .rayon__dossiers ul { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--marge)); padding: 0 var(--marge) 4px; scrollbar-width: none; }
  .rayon__dossiers ul::-webkit-scrollbar { display: none; }
  .rayon__dossiers li { flex: none; }
  .rayon .article-tete__photos img { height: 200px; }
  .rayon .etiquette { right: 10px; width: 114px; }
  .rayon .etiquette__corps b { font-size: 17px; }
  .rayon .etiquette__corps .barres { display: none; }
  .dossier { padding: 0 20px 20px; }
  .dossier__photo { width: calc(100% + 40px); height: 120px; margin: 0 -20px 6px; }
  .guides { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .carte-guide:not(.carte-guide--une) { display: grid; grid-template-columns: 108px minmax(0, 1fr); }
  .carte-guide:not(.carte-guide--une) .carte-guide__photo { min-height: 108px; }
  .carte-guide:not(.carte-guide--une) .carte-guide__photo img, .carte-guide:not(.carte-guide--une) .carte-guide__vide { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
  .carte-guide:not(.carte-guide--une) .carte-guide__texte { gap: 8px; padding: 14px 16px; }
  .carte-guide__titre { font-size: 17px; }
  .carte-guide--une .carte-guide__photo { min-height: 210px; }
  .carte-guide--une .carte-guide__texte { padding: 20px 20px 22px; }
  .carte-guide--une .carte-guide__titre { font-size: 30px; }
  .carte-guide__resume { font-size: 16px; }
}
