/* ═══════════════════════════════════════════════════════════════
   LeBricoLab : design « Carnet d'atelier »
   Palette : vert forêt, ivoire, terracotta, sauge, ocre, pêche
   Polices : Source Serif 4 (titres, texte), Source Sans 3 (étiquettes)
   ═══════════════════════════════════════════════════════════════ */

@font-face { font-family: 'Source Serif 4'; src: url('/fonts/source-serif-4.woff2') format('woff2'); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Source Serif 4'; src: url('/fonts/source-serif-4-italique.woff2') format('woff2'); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'Source Sans 3'; src: url('/fonts/source-sans-3.woff2') format('woff2'); font-weight: 500 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Numeros main'; src: url('/fonts/numeros-main.woff2') format('woff2'); font-display: swap; }

:root {
  --foret:        #193526;
  --terre:        #AF4927;
  --terre-sombre: #93391b;
  --sauge:        #AAB998;
  --ocre:         #E9BF6F;
  --peche:        #DCA58D;
  --filet:        #B7A58C;
  /* Noms repris par les composants éditoriaux des articles */
  --vert:         #2c5a40;
  --vert-sombre:  #193526;
  --vert-pale:    #e6ebdc;
  --marron:       #E9BF6F;
  --marron-sombre:#AF4927;
  --marron-pale:  #f2e4cf;
  --or:           #E9BF6F;
  --or-pale:      #f8ead0;
  --fond:         #F7F0E4;
  --fond-alt:     #efe5d3;
  --carte:        #fbf7ef;
  --texte:        #2a2a22;
  --texte-leger:  #5a5142;
  --bordure:      rgba(140,118,88,.38);
  --ombre:        rgba(48,39,24,.14);
  --rayon:        7px;
  --largeur:      1200px;
  --serif:        'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans:         'Source Sans 3', 'Segoe UI', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 92px; }

body {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  color: var(--texte);
  background: var(--fond) url('/img/ui/texture.webp');
  overflow-x: clip;
}

.container { max-width: var(--largeur); margin: 0 auto; padding: 0 24px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--vert); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--terre); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--foret); line-height: 1.16; }

/* ── Motifs communs ─────────────────────────────────────────── */
.carnet {
  border-style: solid;
  border-color: transparent;
  border-width: 22px 64px 22px 62px;
  border-image: url('/img/ui/carnet.webp') 24 104 24 72 fill / 22px 64px 22px 62px stretch;
  filter: drop-shadow(0 3px 7px rgba(48,39,24,.22));
}
.surtitre {
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--terre);
}
.souligne { width: 120px; height: auto; }
.filet { flex: 1; height: 1px; background: var(--filet); min-width: 24px; }

.fleche-seule, .btn-plein::after, .btn-contour::after, .lien-fleche::after, .lien-bandeau::after {
  content: '';
  display: inline-block;
  width: 1.3em;
  height: .78em;
  flex: none;
  background: currentColor;
  -webkit-mask: url('/img/ui/fleche.svg') center / contain no-repeat;
  mask: url('/img/ui/fleche.svg') center / contain no-repeat;
  transition: transform .15s;
}
.btn-plein, .btn-contour {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-family: var(--serif);
  font-weight: 600;
  border-radius: 6px;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.btn-plein {
  padding: .62em 1.15em;
  font-size: 1.1rem;
  color: var(--fond);
  background: var(--terre);
  border: 1px solid var(--terre-sombre);
  box-shadow: 0 1px 2px rgba(48,39,24,.3);
}
.btn-plein:hover { background: var(--terre-sombre); text-decoration: none; }
.btn-plein:hover::after, .lien-fleche:hover::after { transform: translateX(3px); }
.btn-contour {
  padding: .42em .95em;
  font-size: .98rem;
  color: var(--terre);
  border: 1px solid var(--terre);
}
.lien-fleche {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-weight: 700;
  font-size: 1rem;
  color: var(--terre);
}
.lien-bandeau {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  flex: none;
  padding: .72em 1.5em;
  font-weight: 600;
  font-size: 1rem;
  color: var(--foret);
  background: url('/img/ui/bandeau-beige.webp') center / 100% 100% no-repeat;
}
.lien-bandeau:hover { color: var(--terre); text-decoration: none; }
.lien-bandeau:hover::after { transform: translateX(3px); }
.titre-file {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 1.95rem;
  font-weight: 800;
  text-align: center;
}
.titre-file::before, .titre-file::after { content: ''; flex: 1; height: 1px; background: var(--filet); min-width: 20px; }
.titre-bandeau {
  flex: none;
  padding: .55em 1.5em;
  font-size: 1.32rem;
  font-weight: 700;
  color: var(--fond);
  background: url('/img/ui/bandeau-vert.webp') center / 100% 100% no-repeat;
}
.a-la-une-entete, .derniers-entete { display: flex; align-items: center; gap: 30px; }

.badge-rubrique {
  position: relative;
  z-index: 2;
  display: inline-block;
  padding: .22em .85em;
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--foret);
  background: #d5ddc8;
  border: 1px solid var(--sauge);
  border-radius: 999px;
}
a.badge-rubrique:hover { text-decoration: none; background: var(--sauge); }
.badge-rubrique.b-eclairage { background: #f6dca9; border-color: var(--ocre); }
a.badge-rubrique.b-eclairage:hover { background: var(--ocre); }
.badge-rubrique.b-decoration { background: #f0d0c1; border-color: var(--peche); }
a.badge-rubrique.b-decoration:hover { background: var(--peche); }

.visuel-rubrique { position: relative; display: block; flex: none; width: 104px; }
.visuel-rubrique img { width: 100%; }
.visuel-rubrique .visuel-icone { position: absolute; left: 50%; top: 50%; width: auto; height: 62%; transform: translate(-50%, -50%); }
.visuel-rubrique.grand { width: 170px; }

/* ── EN-TÊTE ────────────────────────────────────────────────── */
.labo-header {
  background: var(--foret);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px var(--ombre);
}
.labo-header-inner { display: flex; align-items: center; height: 72px; }
.labo-logo { flex: none; }
.labo-logo img { width: 220px; height: auto; }
.labo-nav { display: flex; align-items: center; margin-left: auto; }
.labo-nav-lien {
  padding: 3px 26px;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--fond);
  border-left: 1px solid rgba(247,240,228,.32);
}
.labo-nav-lien:first-child { border-left: 0; }
.labo-nav-lien:hover, .labo-nav-lien.actif { color: var(--ocre); text-decoration: none; }
.labo-recherche {
  display: flex;
  align-items: center;
  width: 265px;
  background: var(--fond);
  border-radius: 999px;
}
.labo-header-inner > .labo-recherche { margin-left: 8px; position: relative; }
.labo-header-inner > .labo-recherche::before {
  content: '';
  position: absolute;
  left: -30px;
  top: -5px;
  bottom: -5px;
  width: 1px;
  background: rgba(247,240,228,.32);
}
.labo-nav + .labo-recherche { margin-left: 56px; }
.labo-recherche input {
  flex: 1;
  min-width: 0;
  padding: 8px 0 8px 18px;
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 500;
  color: var(--foret);
  background: none;
  border: 0;
  outline: 0;
}
.labo-recherche input::placeholder { color: var(--texte-leger); opacity: 1; }
.labo-recherche input::-webkit-search-cancel-button { display: none; }
.labo-recherche button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 38px;
  color: var(--foret);
  background: none;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}
.labo-recherche:focus-within { box-shadow: 0 0 0 3px var(--ocre); }
.burger-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  padding: 8px;
  background: none;
  border: 0;
  cursor: pointer;
}
.burger-btn span { display: block; width: 24px; height: 2px; background: var(--fond); border-radius: 2px; }
.labo-nav-mobile { padding: 8px 0 14px; background: var(--foret); border-top: 1px solid rgba(247,240,228,.2); }
.labo-nav-mobile[hidden] { display: none; }
.labo-nav-mobile a { display: block; padding: 10px 24px; font-size: 1.05rem; font-weight: 600; color: var(--fond); }
.labo-nav-mobile .labo-recherche { width: auto; margin: 8px 24px 10px; }

/* ── FIL D'ARIANE ───────────────────────────────────────────── */
.fil-ariane { padding: 16px 0; font-family: var(--sans); font-size: .92rem; font-weight: 500; color: var(--texte-leger); }
.fil-ariane ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; list-style: none; }
.fil-ariane li + li::before { content: '›'; margin-right: 6px; }
.fil-ariane a { color: var(--vert); text-decoration: underline; text-underline-offset: 2px; }

/* ── BANDEAU À LA UNE ───────────────────────────────────────── */
.une {
  position: relative;
  max-width: 1760px;
  margin: 0 auto;
  min-height: 480px;
  display: flex;
  align-items: stretch;
}
.une-photo { position: absolute; top: 0; right: 0; bottom: 0; left: 41%; overflow: hidden; background: var(--fond-alt); }
.une-photo img { width: 100%; height: 100%; object-fit: cover; }
.une-carnet {
  position: relative;
  width: 48%;
  margin: -4px 0 -5px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 18px 0 18px 12px;
}
.une-titre {
  margin-top: 8px;
  font-size: clamp(2.6rem, 4.6vw, 4.25rem);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -.005em;
}
.une-titre a { color: var(--foret); }
.une-titre a:hover { color: var(--terre-sombre); text-decoration: none; }
.une-titre span { display: block; white-space: nowrap; }
.une-titre.long { font-size: clamp(1.8rem, 2.75vw, 2.55rem); line-height: 1.12; }
.une-titre.long span { white-space: normal; }
.une-carnet .souligne { width: 180px; margin: 6px 0 16px -4px; }
.une-texte { margin-bottom: 22px; font-size: 1.14rem; line-height: 1.5; color: var(--texte); }
.une-deco { position: absolute; right: 10px; bottom: 2px; width: 138px; }
.une-deco .une-rayons { position: absolute; width: 38px; right: -8px; top: -30px; }

/* ── THÉMATIQUES ────────────────────────────────────────────── */
.trio { padding: 44px 0 34px; }
.trio-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; grid-auto-columns: 1fr; margin-top: 26px; }
.trio-lien {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 4px 42px 4px 24px;
  color: var(--texte);
  border-left: 1px solid var(--filet);
}
.trio-lien:first-child { border-left: 0; padding-left: 0; }
.trio-lien:hover { text-decoration: none; }
.trio-nom { display: block; margin-bottom: 4px; font-size: 1.55rem; font-weight: 800; line-height: 1.15; color: var(--foret); }
.trio-accroche { display: block; font-size: 1rem; line-height: 1.42; }
.trio-lien .fleche-seule { position: absolute; right: 12px; bottom: 6px; color: var(--terre); font-size: 1.15rem; }
.trio-lien:hover .trio-nom { color: var(--terre-sombre); }
.trio-lien:hover .fleche-seule { transform: translateX(4px); }

/* ── DERNIERS GUIDES ────────────────────────────────────────── */
.derniers { position: relative; padding-top: 22px; padding-bottom: 44px; }
.derniers-entete { position: relative; padding-left: 128px; margin-bottom: 18px; min-height: 86px; }
.derniers-metre { position: absolute; left: -6px; top: -20px; width: 122px; }
.derniers-titre h2 { font-size: 2.1rem; font-weight: 800; }
.derniers-titre img { width: 124px; margin-top: 3px; }

.ligne-guide {
  position: relative;
  display: grid;
  grid-template-columns: 96px 262px minmax(0, 1fr) auto;
  gap: 0 28px;
  align-items: center;
  padding: 9px 0;
}
.ligne-guide.sans-numero { grid-template-columns: 262px minmax(0, 1fr) auto; }
.ligne-guide:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 414px;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(183,165,140,.65);
}
.ligne-guide.sans-numero:not(:last-child)::before { left: 290px; }
.numero-papier {
  display: grid;
  place-items: center;
  width: 86px;
  aspect-ratio: 170 / 161;
  font-family: 'Numeros main', var(--serif);
  font-size: 3.7rem;
  line-height: 1;
  color: var(--terre);
  background: url('/img/ui/papier-numero.webp') center / contain no-repeat;
}
.ligne-photo { aspect-ratio: 262 / 112; overflow: hidden; border-radius: var(--rayon); background: var(--fond-alt); }
.ligne-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.ligne-guide:hover .ligne-photo img { transform: scale(1.03); }
.ligne-texte { min-width: 0; padding: 4px 0; }
.ligne-titre { margin: 5px 0 3px; font-size: 1.32rem; font-weight: 700; line-height: 1.2; }
.ligne-titre a { color: var(--foret); }
.ligne-titre a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.ligne-guide:hover .ligne-titre a { color: var(--terre-sombre); }
.ligne-titre a:hover { text-decoration: none; }
.ligne-extrait {
  font-size: 1.02rem;
  line-height: 1.38;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ligne-guide .btn-contour { margin-left: 8px; }
.ligne-guide:hover .btn-contour { color: var(--fond); background: var(--terre); }
.derniers .liste-guides { padding-right: 96px; }
.derniers-pinceau { position: absolute; right: 22px; bottom: 34px; width: 84px; pointer-events: none; }
.pinceau-rayons { position: absolute; left: -32px; bottom: -12px; width: 38px; transform: rotate(180deg); }

/* ── À LA UNE PAR THÉMATIQUE ────────────────────────────────── */
.a-la-une { padding-bottom: 46px; }
.grille-cartes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; margin-top: 20px; }
.carte-guide {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--carte);
  border: 1px solid rgba(183,165,140,.55);
  border-radius: var(--rayon);
  box-shadow: 0 1px 4px var(--ombre);
  transition: box-shadow .18s, transform .18s;
}
.carte-guide:hover { box-shadow: 0 7px 20px var(--ombre); transform: translateY(-2px); }
.carte-photo { aspect-ratio: 16 / 7.4; overflow: hidden; background: var(--fond-alt); }
.carte-photo img { width: 100%; height: 100%; object-fit: cover; }
.carte-corps { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 12px 20px 16px; }
.carte-titre { margin: 6px 0 4px; font-size: 1.28rem; font-weight: 800; line-height: 1.2; }
.carte-titre a { color: var(--foret); }
.carte-titre a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.carte-titre a:hover { text-decoration: none; }
.carte-guide:hover .carte-titre a { color: var(--terre-sombre); }
.carte-corps .lien-fleche { margin-top: auto; }
.carte-extrait {
  margin-bottom: 10px;
  font-size: 1rem;
  line-height: 1.38;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── ENCORE PLUS DE GUIDES ──────────────────────────────────── */
.sommaire-rubriques { padding-bottom: 54px; }
.sommaire-rubriques-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; margin-top: 24px; }
.colonne-rubrique h3 { margin-bottom: 8px; font-size: 1.4rem; font-weight: 800; }
.colonne-rubrique h3 a { color: var(--foret); }
.colonne-rubrique ul { margin-bottom: 12px; list-style: none; }
.colonne-rubrique li { padding: 8px 0; font-size: 1.02rem; line-height: 1.32; border-bottom: 1px solid rgba(183,165,140,.55); }
.colonne-rubrique li a { color: var(--texte); }
.colonne-rubrique li a:hover { color: var(--terre-sombre); }

/* ── PAGE RUBRIQUE ──────────────────────────────────────────── */
.rubrique-entete { display: flex; align-items: center; gap: 30px; min-height: 280px; margin-bottom: 26px; padding: 16px 0 16px 28px; border-image: url('/img/ui/carnet-large.webp') 24 116 24 86 fill / 22px 64px 22px 62px stretch; }
.rubrique-entete h1 { margin: 4px 0 2px; font-size: clamp(2.5rem, 4.4vw, 3.6rem); font-weight: 800; }
.rubrique-entete .souligne { width: 150px; margin: 6px 0 12px; }
.rubrique-intro { font-size: 1.14rem; line-height: 1.5; }
.page-entete { padding: 8px 0 22px; }
.page-entete h1 { margin: 4px 0 4px; font-size: clamp(2.1rem, 3.6vw, 3rem); font-weight: 800; }
.page-entete .souligne { width: 150px; margin: 8px 0; }
.themes-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.themes-nav a {
  padding: .35em .95em;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--foret);
  background: var(--carte);
  border: 1px solid var(--filet);
  border-radius: 999px;
}
.themes-nav a:hover { color: var(--fond); background: var(--foret); border-color: var(--foret); text-decoration: none; }
.themes-nav span { margin-left: 2px; font-family: var(--sans); font-size: .88rem; font-weight: 700; color: var(--terre); }
.themes-nav a:hover span { color: var(--ocre); }
.theme-section { padding-bottom: 38px; }
.titre-theme { flex: none; font-size: 1.7rem; font-weight: 800; }
.theme-section .liste-guides { margin-top: 12px; }

/* ── PAGE ARTICLE ───────────────────────────────────────────── */
.article-labo { padding-bottom: 40px; }
.une-article { min-height: 400px; margin-bottom: 40px; }
.article-labo-h1 { margin: 10px 0 2px; font-size: clamp(1.8rem, 2.75vw, 2.55rem); font-weight: 800; line-height: 1.12; }
.une-carnet .meta-labo-ligne { font-size: 1.02rem; color: var(--texte); }
.meta-labo-ligne a { font-weight: 700; color: var(--terre); text-decoration: underline; }
.article-grille {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  grid-template-rows: auto 1fr;
  grid-template-areas: 'corps sommaire' 'corps renvois';
  gap: 28px 56px;
}
.article-corps { grid-area: corps; min-width: 0; }
.sommaire-labo { grid-area: sommaire; }
.renvois-labo { grid-area: renvois; align-self: start; position: sticky; top: 92px; }
.sommaire-labo, .renvois-labo {
  padding: 18px 22px 20px;
  background: var(--carte);
  border: 1px solid rgba(183,165,140,.55);
  border-radius: var(--rayon);
}
.sommaire-labo-titre { margin-bottom: 10px; font-size: 1.22rem; font-weight: 800; line-height: 1.2; color: var(--foret); }
.sommaire-labo ol { padding-left: 1.3em; }
.sommaire-labo li { padding: 5px 0; font-size: 1rem; line-height: 1.32; }
.sommaire-labo li::marker { color: var(--terre); font-weight: 700; }
.sommaire-labo a { color: var(--texte); }
.sommaire-labo a:hover { color: var(--terre-sombre); }
.renvois-labo ul { margin-bottom: 12px; list-style: none; }
.renvois-labo li { padding: 8px 0; font-size: 1rem; line-height: 1.32; border-bottom: 1px solid rgba(183,165,140,.55); }
.renvois-labo li a { color: var(--texte); }
.renvois-labo li a:hover { color: var(--terre-sombre); }
.renvois-labo .lien-fleche { display: flex; justify-content: space-between; margin-top: 6px; font-size: .98rem; }

.contenu-labo { font-size: 1.14rem; line-height: 1.72; color: var(--texte); }
.contenu-labo p { margin-bottom: 1.15em; }
.contenu-labo h2 { margin: 1.9em 0 .7em; padding-bottom: 20px; font-size: 1.85rem; font-weight: 800; background: url('/img/ui/soulignement.webp') left bottom / 118px auto no-repeat; }
.contenu-labo h2:first-child { margin-top: 0; }
.contenu-labo h3 { margin: 1.6em 0 .5em; font-size: 1.36rem; font-weight: 700; color: var(--foret); }
.contenu-labo h4 { margin: 1.3em 0 .4em; font-size: 1.14rem; font-weight: 700; }
.contenu-labo ul, .contenu-labo ol { margin-bottom: 1.2em; padding-left: 1.4em; }
.contenu-labo li { margin-bottom: .4em; }
.contenu-labo strong { font-weight: 700; color: var(--foret); }
.contenu-labo a { color: var(--terre); text-decoration: underline; text-underline-offset: 2px; }
.contenu-labo a:hover { color: var(--terre-sombre); }
.contenu-labo img { margin: 1.5em 0; border-radius: var(--rayon); }
.contenu-labo figure { margin: 1.5em 0; }
.contenu-labo figcaption { margin-top: 6px; font-size: .95rem; text-align: center; color: var(--texte-leger); }
.contenu-labo blockquote { margin: 1.5em 0; padding: 12px 20px; font-style: italic; color: var(--texte); background: var(--marron-pale); border-left: 4px solid var(--terre); border-radius: 0 var(--rayon) var(--rayon) 0; }
.contenu-labo table { width: 100%; margin: 1.5em 0; font-size: 1rem; line-height: 1.45; border-collapse: collapse; background: var(--carte); }
.contenu-labo table th { padding: 10px 14px; font-weight: 700; text-align: left; color: var(--fond); background: var(--foret); }
.contenu-labo table td { padding: 9px 14px; border-bottom: 1px solid var(--bordure); }
.contenu-labo table tr:nth-child(even) td { background: var(--fond-alt); }

.liens-associes { margin-top: 56px; }

.meta-labo-auteur { font-size: .95rem; color: var(--texte-leger); }
.auteur-labo { display: flex; gap: 18px; align-items: flex-start; margin-top: 44px; padding: 22px 24px; background: var(--marron-pale); border-radius: var(--rayon); }
.auteur-labo-avatar { flex: none; display: grid; place-items: center; width: 56px; height: 56px; font-size: 1.6rem; font-weight: 800; color: var(--fond); background: var(--foret); border-radius: 50%; }
.auteur-labo-nom { margin-bottom: 4px; font-size: 1.15rem; font-weight: 800; color: var(--foret); }
.auteur-labo-bio { margin-bottom: 8px; font-size: 1.02rem; line-height: 1.5; }
.auteur-labo-lien { font-size: 1rem; font-weight: 700; color: var(--terre); text-decoration: underline; }

.faq-labo { margin-top: 44px; }
.faq-labo-titre { margin-bottom: 16px; font-size: 1.85rem; font-weight: 800; }
.faq-item { margin-bottom: 10px; overflow: hidden; background: var(--carte); border: 1px solid rgba(183,165,140,.65); border-radius: var(--rayon); }
.faq-item[open] { border-color: var(--terre); }
.faq-item-q { position: relative; padding: 14px 48px 14px 20px; font-size: 1.14rem; font-weight: 700; line-height: 1.3; color: var(--foret); list-style: none; cursor: pointer; }
.faq-item-q::-webkit-details-marker { display: none; }
.faq-item-q:hover { background: var(--fond-alt); }
.faq-item-q::after { content: '+'; position: absolute; right: 18px; top: 50%; font-size: 1.6rem; font-weight: 400; line-height: 1; color: var(--terre); transform: translateY(-50%); }
.faq-item[open] .faq-item-q::after { content: '−'; }
.faq-item-a { padding: 0 20px 16px; font-size: 1.06rem; line-height: 1.6; }

/* ── PAGES SIMPLES ──────────────────────────────────────────── */
.page-simple { max-width: 900px; margin: 18px auto 60px; }
.page-simple h1 { margin-bottom: 22px; font-size: clamp(2.1rem, 3.6vw, 3rem); font-weight: 800; }
.page-simple h2 { margin: 1.8em 0 .55em; font-size: 1.6rem; font-weight: 800; }
.page-simple p { margin-bottom: 1em; font-size: 1.1rem; }
.page-simple li { font-size: 1.1rem; }
.page-simple a { color: var(--terre); text-decoration: underline; }
.apropos-intro { display: flex; gap: 18px; align-items: center; margin-bottom: 12px; }
.apropos-intro p { margin: 0; }
.apropos-avatar { flex: none; display: grid; place-items: center; width: 68px; height: 68px; font-size: 2rem; font-weight: 800; color: var(--fond); background: var(--foret); border-radius: 50%; }
.apropos-labo ul { margin: 0 0 1em 1.2em; }
.apropos-labo li { margin-bottom: .5em; }

.erreur-404 { padding: 50px 0 20px; text-align: center; }
.erreur-404-code { width: 150px; margin: 0 auto 14px; font-size: 4rem; }
.erreur-404 h1 { margin-bottom: 10px; font-size: 2.4rem; font-weight: 800; }
.erreur-404 p { margin-bottom: 24px; font-size: 1.14rem; }

/* ── PIED DE PAGE ───────────────────────────────────────────── */
.labo-footer { margin-top: 20px; color: var(--fond); background: var(--foret); }
.labo-footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 34px; min-height: 76px; padding-top: 14px; padding-bottom: 14px; }
.footer-logo img { width: 190px; height: auto; }
.footer-rubriques { display: flex; flex-wrap: wrap; gap: 4px 34px; padding-left: 34px; border-left: 1px solid rgba(247,240,228,.4); }
.footer-rubriques a { font-size: 1.02rem; font-weight: 600; color: var(--fond); }
.footer-legal { display: flex; flex-wrap: wrap; margin-left: auto; font-size: .96rem; }
.footer-legal a { color: var(--fond); }
.footer-legal a + a::before { content: '·'; display: inline-block; margin: 0 .7em; }
.labo-footer a:hover { color: var(--ocre); text-decoration: none; }

/* ── FORMULAIRE CONTACT ─────────────────────────────────────── */
.article-figure img { max-width: 100%; height: auto; }
.article-figure img[src$=".svg"] { max-height: none; object-fit: initial; }
.contact-form { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.contact-form label { display: block; margin-bottom: 4px; font-weight: 600; font-size: 1.02rem; }
.contact-form input, .contact-form textarea { width: 100%; padding: 10px 14px; font-family: var(--serif); font-size: 1.05rem; background: var(--carte); border: 1px solid var(--filet); border-radius: var(--rayon); }
.contact-form input:focus, .contact-form textarea:focus { outline: 0; border-color: var(--terre); box-shadow: 0 0 0 3px rgba(175,73,39,.2); }
.contact-form textarea { min-height: 140px; resize: vertical; }
.btn-labo { padding: .62em 1.3em; font-family: var(--serif); font-size: 1.08rem; font-weight: 600; color: var(--fond); background: var(--terre); border: 0; border-radius: 6px; cursor: pointer; }
.btn-labo:hover { background: var(--terre-sombre); }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .labo-nav-lien { padding: 3px 16px; }
  .labo-nav + .labo-recherche { margin-left: 32px; }
  .labo-header-inner > .labo-recherche::before { left: -16px; }
  .labo-recherche { width: 215px; }
  .labo-logo img { width: 190px; }
  .ligne-guide { grid-template-columns: 70px 200px minmax(0, 1fr) auto; gap: 0 20px; }
  .ligne-guide.sans-numero { grid-template-columns: 200px minmax(0, 1fr) auto; }
  .ligne-guide:not(:last-child)::before { left: 310px; }
  .ligne-guide.sans-numero:not(:last-child)::before { left: 220px; }
  .ligne-guide .btn-contour { margin-left: 0; font-size: .92rem; padding: .42em .75em; }
  .numero-papier { width: 68px; font-size: 3rem; }
  .ligne-titre { font-size: 1.2rem; }
  .ligne-extrait { font-size: .98rem; }
  .derniers .liste-guides { padding-right: 68px; }
  .derniers-pinceau { right: 12px; width: 62px; bottom: 40px; }
  .pinceau-rayons { width: 28px; left: -22px; }
  .visuel-rubrique { width: 84px; }
  .trio-nom { font-size: 1.36rem; }
  .trio-accroche { font-size: .96rem; }
  .trio-lien { gap: 10px; padding: 4px 36px 4px 16px; }
  .une-carnet { padding-left: 4px; }
  .labo-footer-inner { gap: 10px 22px; }
  .footer-logo img { width: 160px; }
  .footer-rubriques { gap: 4px 20px; padding-left: 22px; }
  .footer-rubriques a { font-size: .98rem; }
  .footer-legal { font-size: .92rem; }
  .footer-legal a + a::before { margin: 0 .45em; }
  .article-grille { grid-template-columns: minmax(0, 1fr) 280px; gap: 24px 36px; }
  .une-deco { width: 104px; }
}
@media (max-width: 900px) {
  .labo-nav, .labo-header-inner > .labo-recherche { display: none; }
  .burger-btn { display: flex; }
  .labo-header-inner { height: 62px; }
  .une, .une-article { display: block; min-height: 0; }
  .une-photo { position: static; aspect-ratio: 16 / 8; }
  .une-carnet { width: auto; margin: -34px 12px 0; padding: 14px 0 14px 4px; }
  .une-carnet.carnet { border-width: 18px 40px 18px 42px; border-image-width: 18px 40px 18px 42px; }
  .une-article { margin-bottom: 28px; }
  .une-deco { display: none; }
  .trio-grille { grid-auto-flow: row; grid-template-columns: 1fr; gap: 14px; }
  .trio-lien { flex-direction: row; align-items: center; padding: 0 44px 12px 0; border-left: 0; border-bottom: 1px solid var(--filet); }
  .trio-lien:last-child { border-bottom: 0; }
  .grille-cartes, .sommaire-rubriques-grille { grid-template-columns: 1fr; }
  .article-grille { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: 'sommaire' 'corps' 'renvois'; }
  .renvois-labo { position: static; }
  .rubrique-entete.carnet { border-image: url('/img/ui/carnet.webp') 24 104 24 72 fill / 18px 40px 18px 42px stretch; border-width: 18px 40px 18px 42px; gap: 14px; padding: 10px 0 10px 6px; }
  .visuel-rubrique.grand { width: 104px; }
  .footer-rubriques { padding-left: 0; border-left: 0; flex-basis: 100%; }
  .footer-legal { margin-left: 0; }
  .a-la-une-entete .filet, .derniers-entete .filet { display: none; }
  .ligne-guide { grid-template-columns: 70px 200px minmax(0, 1fr); }
  .ligne-guide.sans-numero { grid-template-columns: 200px minmax(0, 1fr); }
  .ligne-guide .btn-contour, .derniers-pinceau { display: none; }
  .derniers .liste-guides { padding-right: 0; }
  .derniers-entete { justify-content: space-between; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .titre-file { font-size: 1.55rem; gap: 14px; }
  .titre-file::before, .titre-file::after { min-width: 10px; }
  .une-titre { font-size: 2.5rem; }
  .une-texte, .rubrique-intro { font-size: 1.06rem; }
  .btn-plein { font-size: 1.04rem; }
  .derniers-entete { padding-left: 84px; min-height: 66px; gap: 10px; }
  .derniers-metre { width: 72px; top: -6px; left: 0; }
  .derniers-titre h2 { font-size: 1.55rem; }
  .derniers-titre img { width: 90px; }
  .lien-bandeau { padding: .6em 1em; font-size: .92rem; }
  .ligne-guide, .ligne-guide.sans-numero { grid-template-columns: 112px minmax(0, 1fr); gap: 0 14px; align-items: start; padding: 12px 0; }
  .ligne-guide .numero-papier { position: absolute; left: -6px; top: 4px; z-index: 2; width: 46px; font-size: 1.9rem; }
  .ligne-guide:not(:last-child)::before, .ligne-guide.sans-numero:not(:last-child)::before { left: 0; }
  .ligne-photo { aspect-ratio: 1 / .92; }
  .ligne-titre { font-size: 1.12rem; }
  .ligne-extrait { display: none; }
  .titre-bandeau { font-size: 1.14rem; padding: .55em 1.2em; }
  .titre-theme { flex: 1; font-size: 1.45rem; }
  .derniers-entete { flex-wrap: wrap; }
  .lien-bandeau { margin-left: -84px; }
  .rubrique-entete { min-height: 0; }
  .visuel-rubrique.grand { display: none; }
  .contenu-labo { font-size: 1.08rem; }
  .contenu-labo h2, .faq-labo-titre { font-size: 1.55rem; }
  .contenu-labo table { display: block; overflow-x: auto; }
  .auteur-labo { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ═══════════════════════════════════════════════════════════════
   COMPOSANTS ÉDITORIAUX — Bibliothèque LeBricoLab
   Spécifiques à la thématique maison / travaux / bricolage
   ═══════════════════════════════════════════════════════════════ */

/* ── FICHE TECHNIQUE (style étiquette atelier) ──────────────── */
.kit-technique {
  background: var(--vert-sombre);
  border-radius: var(--rayon);
  overflow: hidden;
  margin: 2em 0;
}
.kit-technique-titre {
  font-family: var(--serif);
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--marron);
  padding: 12px 20px 10px;
  border-bottom: 1px solid rgba(200,168,130,.2);
}
.kit-technique-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}
.kit-spec {
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.kit-spec:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.05); }
.kit-spec-label {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.4);
  margin-bottom: 4px;
}
.kit-spec-valeur {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: #fff;
  font-weight: 500;
}
@media (max-width: 600px) {
  .kit-technique-specs { grid-template-columns: 1fr; }
  .kit-spec:nth-child(odd) { border-right: none; }
}

/* ── ÉTAPES DE CHANTIER (timeline verticale) ────────────────── */
.etapes-chantier { margin: 2em 0; }
.etapes-chantier-titre {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--vert-sombre);
  margin-bottom: 20px;
}
.etape-ligne {
  display: flex;
  gap: 20px;
  position: relative;
  padding-bottom: 24px;
}
.etape-ligne:last-child { padding-bottom: 0; }
.etape-ligne::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 38px;
  bottom: 0;
  width: 2px;
  background: var(--vert-pale);
}
.etape-ligne:last-child::before { display: none; }
.etape-num {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--vert);
  color: #fff;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.etape-corps { flex: 1; padding-top: 8px; }
.etape-titre {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--vert-sombre);
  margin-bottom: 6px;
}
.etape-texte { font-size: .93rem; color: var(--texte); line-height: 1.7; }

/* ── BUDGET ESTIMATIF ───────────────────────────────────────── */
.budget-labo {
  background: var(--fond-alt);
  border-radius: var(--rayon);
  padding: 22px 24px;
  margin: 2em 0;
  border: 1px solid var(--bordure);
}
.budget-labo-titre {
  font-family: var(--serif);
  font-size: .85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--texte-leger);
  margin-bottom: 18px;
}
.budget-poste {
  display: grid;
  grid-template-columns: 180px 1fr 80px;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.budget-poste:last-child { margin-bottom: 0; }
.budget-poste-nom { font-size: .88rem; font-weight: 500; }
.budget-barre-fond {
  height: 8px;
  background: rgba(61,107,79,.12);
  border-radius: 4px;
  overflow: hidden;
}
.budget-barre-fill {
  height: 100%;
  background: var(--vert);
  border-radius: 4px;
  transition: width .4s ease;
}
.budget-barre-fill.marron { background: var(--marron); }
.budget-barre-fill.leger { background: var(--vert-pale); }
.budget-montant {
  font-family: var(--serif);
  font-size: .95rem;
  font-weight: 600;
  color: var(--vert-sombre);
  text-align: right;
}
@media (max-width: 600px) {
  .budget-poste { grid-template-columns: 1fr 60px; }
  .budget-barre-fond { display: none; }
}

/* ── ALERTE SÉCURITÉ / AVERTISSEMENT ───────────────────────── */
.alerte-labo {
  background: #fff8f0;
  border: 1px solid #f0a050;
  border-left: 5px solid #e07800;
  border-radius: 0 var(--rayon) var(--rayon) 0;
  padding: 16px 20px;
  margin: 2em 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.alerte-labo-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  line-height: 1.3;
  color: #e07800;
}
.alerte-labo-contenu { flex: 1; }
.alerte-labo-titre {
  font-family: var(--serif);
  font-size: .85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #c06000;
  margin-bottom: 6px;
}
.alerte-labo-texte { font-size: .88rem; color: #5c4010; line-height: 1.65; }

/* ── ASTUCE PRO ─────────────────────────────────────────────── */
.astuce-pro {
  background: var(--marron-pale);
  border-left: 4px solid var(--marron);
  padding: 15px 20px;
  border-radius: 0 var(--rayon) var(--rayon) 0;
  margin: 1.8em 0;
}
.astuce-pro-label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--marron-sombre);
  margin-bottom: 6px;
}
.astuce-pro p {
  font-size: .9rem;
  color: var(--texte);
  line-height: 1.65;
  margin: 0;
}

/* ── COMPARATIF MATÉRIAUX ───────────────────────────────────── */
.comparatif-mat {
  margin: 2em 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}
.mat-card {
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  overflow: hidden;
}
.mat-card-entete {
  background: var(--vert);
  padding: 10px 14px;
  font-family: var(--serif);
  font-size: .9rem;
  font-weight: 500;
  color: #fff;
}
.mat-card-corps { padding: 12px 14px; }
.mat-ligne {
  display: flex;
  justify-content: space-between;
  font-size: .82rem;
  padding: 4px 0;
  border-bottom: 1px solid var(--fondAlt, #f2ece4);
  color: var(--texte);
}
.mat-ligne:last-child { border-bottom: none; }
.mat-note {
  font-weight: 700;
  color: var(--vert);
}
.mat-note.moyen { color: var(--marron-sombre); }
.mat-note.faible { color: #888; }

/* ── TABLEAU OUTILS / MATÉRIEL ──────────────────────────────── */
.tableau-outils {
  margin: 2em 0;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  overflow: hidden;
}
.tableau-outils-entete {
  background: var(--fond-alt);
  padding: 12px 16px;
  font-family: var(--serif);
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--vert-sombre);
  border-bottom: 1px solid var(--bordure);
}
.outil-ligne {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--bordure);
  font-size: .88rem;
}
.outil-ligne:last-child { border-bottom: none; }
.outil-ligne:nth-child(even) { background: var(--fond-alt); }
.outil-check {
  width: 20px;
  height: 20px;
  border: 2px solid var(--vert);
  border-radius: 3px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  color: var(--vert);
}
.outil-nom { flex: 1; font-weight: 500; }
.outil-note { font-size: .78rem; color: var(--texte-leger); }

/* ── SÉLECTION PRODUITS ─────────────────────────────────────── */
.selection-labo {
  margin: 2em 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.produit-labo {
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  padding: 16px;
  background: #fff;
}
.produit-labo-rang {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--vert);
  margin-bottom: 8px;
}
.produit-labo-nom {
  font-family: var(--serif);
  font-size: .95rem;
  font-weight: 500;
  color: var(--vert-sombre);
  margin-bottom: 10px;
  line-height: 1.3;
}
.produit-labo-prix {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--vert);
  margin-bottom: 10px;
}
.produit-labo-points { list-style: none; padding: 0; }
.produit-labo-points li {
  font-size: .8rem;
  color: var(--texte);
  padding: 2px 0 2px 16px;
  position: relative;
}
.produit-labo-points li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--vert);
  font-size: .75rem;
}
@media (max-width: 700px) {
  .selection-labo { grid-template-columns: 1fr; }
  .comparatif-mat { grid-template-columns: 1fr 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   CORRECTIFS COMPOSANTS — classes HTML réelles dans les articles
   ═══════════════════════════════════════════════════════════════ */

/* ── LISTES EN CONTENU : chevrons › ────────────────────────────
   3 options rapides (changer le content dans li::before) :
   Option A (active) : '›' chevron vert
   Option B           : '▪' carré marron  →  color: var(--marron)
   Option C           : '–' tiret court   →  color: var(--texte-leger)  */
.contenu-labo ul {
  list-style: none;
  padding-left: 1.6em;
}
.contenu-labo ul > li {
  position: relative;
  margin-bottom: .5em;
}
.contenu-labo ul > li::before {
  content: '›';
  position: absolute;
  left: -1.3em;
  color: var(--vert);
  font-size: 1.1em;
  font-weight: 700;
  line-height: 1.85;
}
/* Empêche qu'un <p> dans un <li> crée un double saut */
.contenu-labo li p { margin: 0; }

/* ── KIT-TECHNIQUE — classes .kt-ligne / .kt-label / .kt-val ───
   Tableau de specs sur fond vert sombre                          */
.kit-technique .kt-ligne {
  display: grid;
  grid-template-columns: 160px 1fr;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.kit-technique .kt-ligne:last-child { border-bottom: none; }
.kit-technique .kt-label {
  padding: 10px 18px;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--marron);
  border-right: 1px solid rgba(255,255,255,.07);
  line-height: 1.4;
}
.kit-technique .kt-val {
  padding: 10px 18px;
  font-size: .87rem;
  color: rgba(255,255,255,.82);
  line-height: 1.6;
}
@media (max-width: 580px) {
  .kit-technique .kt-ligne { grid-template-columns: 1fr; }
  .kit-technique .kt-label {
    padding-bottom: 3px;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,.07);
  }
}

/* ── COMPARATIF-MAT — classes .comp-carte / .comp-en-tete / .comp-note
   Cartes côte à côte, liste compacte sans puces à l'intérieur   */
.comp-carte {
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.comp-en-tete {
  background: var(--vert-sombre);
  color: #fff;
  font-family: var(--serif);
  font-size: .88rem;
  font-weight: 500;
  padding: 9px 14px;
  line-height: 1.3;
  letter-spacing: .02em;
}
/* ul dans comp-carte : compact, coché, pas de puces héritées */
.comp-carte ul {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}
.comp-carte ul > li {
  padding: 6px 14px 6px 28px;
  font-size: .82rem;
  line-height: 1.5;
  color: var(--texte);
  border-bottom: 1px solid var(--bordure);
  margin: 0;
  position: relative;
}
.comp-carte ul > li:last-child { border-bottom: none; }
.comp-carte ul > li::before {
  content: '✓';
  position: absolute;
  left: 10px;
  font-size: .72rem;
  color: var(--vert);
  font-weight: 700;
  line-height: 1.9;
}
.comp-note {
  display: inline-block;
  margin: 8px 14px 10px;
  font-size: .67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--vert);
  background: var(--vert-pale);
  padding: 3px 8px;
  border-radius: 2px;
}
.comp-note.moyen { color: var(--marron-sombre); background: var(--marron-pale); }
.comp-note.faible { color: #777; background: var(--fond-alt); }

/* ── ÉTAPES-CHANTIER — classes .etape / .etape-contenu ─────────
   Badge carré marron + trait pointillé (atelier, pas les ronds génériques) */
.etape {
  display: flex;
  gap: 18px;
  position: relative;
  padding-bottom: 26px;
}
.etape:last-child { padding-bottom: 0; }
/* Connecteur pointillé entre les étapes */
.etape::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 36px;
  bottom: 4px;
  width: 2px;
  background: repeating-linear-gradient(
    to bottom,
    var(--marron-pale) 0,
    var(--marron-pale) 5px,
    transparent 5px,
    transparent 10px
  );
}
.etape:last-child::before { display: none; }
/* Badge carré marron (identité atelier — différent des ronds verts) */
.etape > .etape-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 3px;
  background: var(--marron-sombre);
  color: #fff;
  font-family: var(--serif);
  font-size: .95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.etape-contenu {
  flex: 1;
  padding-top: 3px;
  min-width: 0;
}
.etape-contenu > strong {
  display: block;
  font-family: var(--serif);
  font-size: .97rem;
  font-weight: 500;
  color: var(--vert-sombre);
  margin-bottom: 5px;
}
.etape-contenu > p {
  font-size: .88rem;
  color: var(--texte);
  line-height: 1.72;
  margin: 0;
}

/* ── ASTUCE-PRO — fix sans .astuce-pro-label ────────────────────
   HTML réel : <strong>Astuce de pro :</strong> + texte direct    */
.astuce-pro > strong:first-child {
  display: block;
  font-family: var(--serif);
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--marron-sombre);
  margin-bottom: 5px;
}
.astuce-pro {
  font-size: .9rem;
  line-height: 1.72;
  color: var(--texte);
}

/* ── BUDGET-LABO — classes .budget-ligne / .budget-label / .budget-barre ──
   HTML réel : ligne = label + barre + montant                     */
.budget-ligne {
  display: grid;
  grid-template-columns: 1fr 120px 80px;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.budget-ligne:last-child { margin-bottom: 0; }
.budget-label {
  font-size: .87rem;
  font-weight: 500;
  color: var(--texte);
}
.budget-barre {
  height: 8px;
  background: rgba(61,107,79,.12);
  border-radius: 4px;
  overflow: hidden;
}
.budget-montant {
  font-family: var(--serif);
  font-size: .92rem;
  font-weight: 600;
  color: var(--vert-sombre);
  text-align: right;
  white-space: nowrap;
}
/* Alias .budget-fill (sans -barre-) */
.budget-fill {
  height: 100%;
  background: var(--vert);
  border-radius: 4px;
  transition: width .4s ease;
}
.budget-fill.marron { background: var(--marron); }
.budget-fill.leger  { background: rgba(61,107,79,.2); }
@media (max-width: 580px) {
  .budget-ligne { grid-template-columns: 1fr 60px; }
  .budget-barre { display: none; }
}

/* ── SELECTION-LABO — classes .selection-carte / .selection-titre / .selection-prix
   Grille de sélection produits 3 colonnes                         */
.selection-carte {
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.selection-titre {
  background: var(--fond-alt);
  border-bottom: 2px solid var(--vert);
  padding: 10px 14px;
  font-family: var(--serif);
  font-size: .88rem;
  font-weight: 500;
  color: var(--vert-sombre);
  line-height: 1.3;
}
.selection-prix {
  padding: 8px 14px 4px;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--vert);
}
/* ul dans selection-carte : même style compact que comp-carte */
.selection-carte ul {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}
.selection-carte ul > li {
  padding: 5px 14px 5px 26px;
  font-size: .81rem;
  line-height: 1.5;
  color: var(--texte);
  border-bottom: 1px solid var(--bordure);
  margin: 0;
  position: relative;
}
.selection-carte ul > li:last-child { border-bottom: none; }
.selection-carte ul > li::before {
  content: '✓';
  position: absolute;
  left: 9px;
  font-size: .7rem;
  color: var(--vert);
  font-weight: 700;
  line-height: 1.9;
}

/* ── ALERTE-LABO — fix structure simple <strong> + texte ─────────
   HTML réel : <div class="alerte-labo"><strong>Titre :</strong> texte</div> */
.alerte-labo > strong:first-child {
  display: block;
  font-family: var(--serif);
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #c06000;
  margin-bottom: 5px;
}
.alerte-labo {
  font-size: .88rem;
  line-height: 1.65;
  color: #5c4010;
}

/* ── TABLEAU-OUTILS avec <table> ─────────────────────────────────
   Le tableau hérite des styles .contenu-labo table, on ajoute juste
   le cadre / entête coloré du wrapper                             */
.tableau-outils table {
  margin: 0;
  border-radius: 0;
}
.tableau-outils {
  border-radius: var(--rayon);
  overflow: hidden;
}

/* ── SIMULATEUR CONSOMMATION LED (conteneur JS) ─────────────── */
.simulateur-led {
  background: var(--vert-sombre);
  border-radius: var(--rayon);
  padding: 24px 28px;
  margin: 2em 0;
  color: #fff;
}
.simulateur-led h3 {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--marron);
  margin-bottom: 20px;
}
.sim-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.sim-label { font-size: .85rem; color: rgba(255,255,255,.7); min-width: 180px; }
.sim-input {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 3px;
  color: #fff;
  padding: 6px 12px;
  font-size: .95rem;
  width: 90px;
}
.sim-input:focus { outline: none; border-color: var(--marron); }
.sim-result {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.15);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  text-align: center;
}
.sim-val {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--marron);
}
.sim-val-label { font-size: .72rem; color: rgba(255,255,255,.55); margin-top: 4px; text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 600px) {
  .sim-result { grid-template-columns: 1fr 1fr; }
  .simulateur-led { padding: 18px 16px; }
}

/* ── TOGGLE NIVEAU (débutant / expert) ──────────────────────── */
.toggle-niveau {
  margin: 2em 0;
}
.toggle-niveau-btn {
  display: flex;
  background: var(--fond-alt);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  overflow: hidden;
  margin-bottom: 16px;
  width: fit-content;
}
.toggle-niveau-btn button {
  padding: 8px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--serif);
  font-size: .85rem;
  font-weight: 500;
  color: var(--texte-leger);
  transition: all .15s;
}
.toggle-niveau-btn button.actif {
  background: var(--vert);
  color: #fff;
}
.toggle-contenu { display: none; }
.toggle-contenu.visible { display: block; }

/* ═══════════════════════════════════════════════════════════════
   Mise au diapason « Carnet d'atelier » des composants éditoriaux
   ═══════════════════════════════════════════════════════════════ */
.kit-technique, .budget-labo, .alerte-labo, .astuce-pro, .tableau-outils, .comp-carte, .selection-carte, .mat-card, .produit-labo, .simulateur-led { border-radius: var(--rayon); }

.kit-technique-titre, .budget-labo-titre, .alerte-labo-titre, .tableau-outils-entete, .etapes-chantier-titre, .astuce-pro > strong:first-child, .alerte-labo > strong:first-child, .simulateur-led h3, .astuce-pro-label, .sim-val-label {
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .09em;
}
.kit-technique-titre { color: var(--ocre); }
.kit-technique .kt-label, .kit-spec-label { font-family: var(--sans); font-size: .82rem; color: var(--ocre); }
.kit-technique .kt-val { font-size: 1rem; color: var(--fond); }
.kit-spec-valeur { font-size: 1.12rem; }

.etape-contenu > strong, .etape-titre { font-size: 1.16rem; font-weight: 700; }
.etape-contenu > p, .etape-texte { font-size: 1.04rem; line-height: 1.6; }
.etape > .etape-num, .etape-num { color: var(--terre); font-size: 1.35rem; font-weight: 700; font-family: var(--serif); background: var(--marron-pale); border: 1px solid var(--peche); }
.etape::before { background: repeating-linear-gradient(to bottom, var(--filet) 0, var(--filet) 5px, transparent 5px, transparent 10px); }
.etape-ligne::before { background: var(--filet); }

.astuce-pro, .astuce-pro p { font-size: 1.04rem; line-height: 1.6; }
.astuce-pro { background: var(--marron-pale); border-left-color: var(--terre); }
.astuce-pro > strong:first-child, .astuce-pro-label { color: var(--terre); }

.alerte-labo, .alerte-labo-texte { font-size: 1.04rem; line-height: 1.6; color: #4f2412; }
.alerte-labo { background: #f7e0d2; border: 1px solid var(--peche); border-left: 5px solid var(--terre); }
.alerte-labo > strong:first-child, .alerte-labo-titre, .alerte-labo-icon { color: var(--terre-sombre); }

.budget-labo { background: var(--carte); }
.budget-labo-titre { color: var(--foret); }
.budget-label, .budget-poste-nom { font-size: 1rem; }
.budget-montant { font-family: var(--serif); font-size: 1.05rem; font-weight: 700; }
.budget-barre, .budget-barre-fond { background: rgba(25,53,38,.12); }
.budget-fill, .budget-barre-fill { background: var(--foret); }
.budget-fill.marron, .budget-barre-fill.marron { background: var(--terre); }
.budget-fill.leger, .budget-barre-fill.leger { background: var(--sauge); }

.comp-carte, .selection-carte, .mat-card, .produit-labo { background: var(--carte); }
.comp-en-tete, .mat-card-entete { font-size: 1.04rem; font-weight: 700; background: var(--foret); }
.selection-titre { font-size: 1.04rem; font-weight: 700; background: var(--fond-alt); border-bottom-color: var(--terre); }
.selection-prix, .produit-labo-prix { color: var(--terre); font-size: 1.14rem; }
.comp-carte ul > li, .selection-carte ul > li, .produit-labo-points li { font-size: .98rem; }
.comp-carte ul > li::before, .selection-carte ul > li::before { color: var(--terre); }
.comp-note { font-family: var(--sans); font-size: .8rem; }
.comp-note.moyen { color: #7a3a14; }
.comp-note.faible { color: var(--texte-leger); }
.mat-ligne { font-size: .98rem; }
.mat-note.faible { color: var(--texte-leger); }
.produit-labo-rang { font-family: var(--sans); font-size: .78rem; color: var(--terre); }
.produit-labo-nom { font-size: 1.04rem; font-weight: 700; }

.tableau-outils-entete { background: var(--fond-alt); }
.outil-ligne { font-size: 1rem; }
.outil-note { font-size: .92rem; }
.outil-check { color: var(--terre); border-color: var(--terre); }

.simulateur-led { background: var(--foret); }
.simulateur-led h3, .sim-val { color: var(--ocre); }
.sim-label { font-size: 1rem; color: var(--fond); }
.sim-val-label { color: var(--fond); }
.toggle-niveau-btn button { font-family: var(--serif); font-size: 1rem; font-weight: 600; color: var(--texte); }
.toggle-niveau-btn button.actif { background: var(--foret); color: var(--fond); }

/* Les composants peuvent contenir de longues tables : elles défilent plutôt que de déborder */
.contenu-labo .kit-technique, .contenu-labo .comparatif-mat, .contenu-labo .selection-labo { max-width: 100%; }
@media (max-width: 900px) {
  .budget-ligne { grid-template-columns: 1fr 80px 70px; }
}

/* ── Outils de calcul et schémas des guides ─────────────────── */
.outil-labo { margin: 2em 0; overflow: hidden; background: var(--carte); border: 1px solid var(--filet); border-radius: var(--rayon); }
.outil-labo-titre { margin: 0 !important; padding: 12px 20px; font-size: 1.16rem; font-weight: 700; line-height: 1.3; color: var(--fond); background: var(--foret); }
.outil-labo-champs { display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); gap: 14px 18px; padding: 18px 20px; }
.outil-labo label { display: flex; flex-direction: column; justify-content: space-between; gap: 5px; font-size: 1rem; font-weight: 600; line-height: 1.3; color: var(--foret); }
.outil-labo input, .outil-labo select { width: 100%; padding: 8px 10px; font-family: var(--serif); font-size: 1.05rem; color: var(--texte); background: #fff; border: 1px solid var(--filet); border-radius: 5px; }
.outil-labo input:focus, .outil-labo select:focus { outline: 2px solid var(--terre); outline-offset: 1px; }
.outil-labo-resultat { display: block; padding: 16px 20px 18px; font-size: 1.04rem; line-height: 1.5; background: var(--marron-pale); border-top: 1px solid var(--filet); }
.outil-labo-resultat table { margin: 0; background: none; font-size: 1.02rem; }
.outil-labo-resultat table td { padding: 6px 0; background: none !important; border-bottom: 1px solid rgba(140,118,88,.3); }
.outil-labo-resultat table td:last-child { padding-left: 14px; font-weight: 700; text-align: right; color: var(--foret); }
.outil-labo-resultat table tr:last-child td { border-bottom: 0; }
.outil-labo-verdict { margin: 0 0 .4em !important; font-size: 1.2rem; font-weight: 700; color: var(--foret); }
.outil-labo-resultat p { margin: .5em 0 0 !important; }
.outil-labo-resultat p:first-child { margin-top: 0 !important; }
.outil-plan { display: block; width: 100%; max-width: 100%; height: auto; margin-top: 12px; background: var(--carte); border: 1px solid var(--filet); border-radius: 5px; }
.article-figure { margin: 2em 0; }
.article-figure img { width: 100%; margin: 0 !important; background: var(--carte); border: 1px solid rgba(183,165,140,.55); border-radius: var(--rayon); }
.credit-photo { margin-top: 28px; font-family: var(--sans); font-size: .9rem; font-weight: 500; color: var(--texte-leger); }
.credit-photo a { color: inherit; text-decoration: underline; }
.apercu-planifie { padding: 10px 14px; font-family: var(--sans); font-size: .95rem; font-weight: 600; color: var(--foret); background: var(--or-pale); border: 1px solid var(--ocre); border-radius: 5px; }
