/* ==========================================================================
   Pergola Blog — design system
   Direction : "lames orientables" — éditorial home-improvement alpin.
   Palette : pin profond (ancre) · sable chaud (fond) · soleil filtré (accent)
   Type    : Fraunces (display, optique, caractère) + Inter (corps, humaniste)
   Signature : motif de lames horizontales (louvres) en filets & dans le hero
   ========================================================================== */

:root {
  --ink:        #1b2530;   /* texte principal, presque noir végétal        */
  --ink-soft:   #47535e;   /* texte secondaire                             */
  --pine:       #21414a;   /* pin profond — ancre de marque                */
  --pine-deep:  #142a30;   /* pin très foncé — fonds                       */
  --sand:       #eef2f0;   /* sable chaud — fond de page                   */
  --sand-2:     #e2e8e6;   /* sable un ton plus soutenu                    */
  --sun:        #6f9a5a;   /* soleil filtré — accent / CTA                 */
  --sun-deep:   #5b833f;   /* accent survol                                */
  --line:       #cfd8d5;   /* filets                                       */
  --paper:      #ffffff;   /* cartes                                       */

  --maxw: 760px;
  --radius: 4px;

  --shadow: 0 1px 2px rgba(28,36,31,.05), 0 8px 28px rgba(28,36,31,.06);
}

@font-face { font-display: swap; }

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* --- Louvre motif : filet de lames ---------------------------------------- */
.louvres {
  height: 14px;
  background-image: repeating-linear-gradient(
    to bottom,
    var(--line) 0, var(--line) 2px,
    transparent 2px, transparent 6px
  );
  border: 0;
  margin: 0;
}

/* --- En-tête -------------------------------------------------------------- */
.site-header {
  background: var(--pine-deep);
  color: var(--sand);
}
.site-header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: .2px;
  color: var(--sand);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand__mark {
  display: inline-block;
  width: 22px; height: 22px;
  background-image: repeating-linear-gradient(
    to bottom, var(--sun) 0, var(--sun) 2px, transparent 2px, transparent 5px);
  border-radius: 3px;
}
.site-header nav a {
  color: #cdd6cf;
  text-decoration: none;
  font-size: 14px;
  margin-left: 18px;
}
.site-header nav a:hover { color: var(--sun); }
@media (max-width: 560px) { .site-header nav { display: none; } }

/* --- Hero ----------------------------------------------------------------- */
.hero {
  background:
    linear-gradient(rgba(22,38,30,.78), rgba(22,38,30,.86)),
    repeating-linear-gradient(
      to bottom,
      rgba(224,165,58,.10) 0, rgba(224,165,58,.10) 3px,
      transparent 3px, transparent 22px),
    var(--pine);
  color: var(--sand);
  padding: 64px 24px 56px;
}
.hero__inner { max-width: var(--maxw); margin: 0 auto; }
.eyebrow {
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sun);
  font-weight: 600;
  margin: 0 0 16px;
}
.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: clamp(30px, 5.2vw, 46px);
  line-height: 1.12;
  letter-spacing: -.01em;
  margin: 0 0 18px;
}
.hero__lede {
  font-size: 19px;
  color: #e4ded1;
  margin: 0;
  max-width: 60ch;
}
.hero__meta {
  margin-top: 26px;
  font-size: 14px;
  color: #b9c3bb;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.hero__meta strong { color: var(--sand); font-weight: 600; }

/* --- Corps d'article ------------------------------------------------------ */
.article {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px 24px 24px;
}
.article > p:first-of-type { font-size: 19.5px; }

.article h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: clamp(23px, 3.6vw, 30px);
  line-height: 1.2;
  letter-spacing: -.01em;
  margin: 48px 0 4px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.article h2::before {
  content: "";
  display: block;
  width: 34px; height: 8px;
  margin-bottom: 16px;
  background-image: repeating-linear-gradient(
    to bottom, var(--sun) 0, var(--sun) 2px, transparent 2px, transparent 4px);
}
.article h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: 21px;
  margin: 30px 0 6px;
  color: var(--pine);
}
.article p { margin: 14px 0; }
.article a { color: var(--pine); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--sun); }
.article a:hover { color: var(--sun-deep); }
.article ul, .article ol { margin: 14px 0; padding-left: 22px; }
.article li { margin: 8px 0; }
.article strong { color: var(--ink); }

/* --- Encadré chiffre-clé / à retenir -------------------------------------- */
.keybox {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--sun);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 26px 0;
  box-shadow: var(--shadow);
}
.keybox p { margin: 8px 0; }
.keybox .keybox__label {
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--sun-deep); font-weight: 700; margin: 0 0 6px;
}

/* --- Tableau -------------------------------------------------------------- */
.table-wrap { overflow-x: auto; margin: 24px 0; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
thead th {
  background: var(--pine);
  color: var(--sand);
  text-align: left;
  padding: 12px 14px;
  font-weight: 600;
  font-size: 14px;
}
tbody td { padding: 11px 14px; border-top: 1px solid var(--line); }
tbody tr:nth-child(even) { background: var(--sand-2); }

/* --- FAQ ------------------------------------------------------------------ */
.faq { margin: 34px auto; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  margin: 10px 0;
  padding: 0 18px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 15px 0;
  list-style: none;
  color: var(--pine);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--sun-deep); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details[open] { padding-bottom: 6px; }
.faq details p { margin-top: 0; }

/* --- CTA lead ------------------------------------------------------------- */
.cta {
  background: var(--pine);
  color: var(--sand);
  border-radius: 6px;
  padding: 34px 28px;
  margin: 46px auto;
  max-width: var(--maxw);
  text-align: center;
  background-image: repeating-linear-gradient(
    to bottom, rgba(224,165,58,.08) 0, rgba(224,165,58,.08) 3px, transparent 3px, transparent 20px);
}
.cta h2 { font-family: Georgia, "Times New Roman", serif; font-size: 26px; margin: 0 0 10px; border: 0; padding: 0; }
.cta h2::before { display: none; }
.cta p { color: #dcd6c8; margin: 0 auto 22px; max-width: 52ch; }
.btn {
  display: inline-block;
  background: var(--sun);
  color: #2a1e05;
  font-weight: 700;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 4px;
  font-size: 16px;
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--sun-deep); transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--sand); outline-offset: 2px; }
.cta__fineprint { font-size: 12.5px; color: #aeb8b0; margin-top: 14px; }

/* --- Maillage interne ----------------------------------------------------- */
.related {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 8px 24px 20px;
}
.related h2 {
  font-family: Georgia, "Times New Roman", serif; font-size: 20px; margin: 0 0 14px;
  border: 0; padding: 0;
}
.related h2::before { display: none; }
.related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.related a {
  display: block; text-decoration: none; color: var(--pine);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 13px 16px; font-weight: 500;
}
.related a:hover { border-color: var(--sun); color: var(--sun-deep); }

/* --- Pied ----------------------------------------------------------------- */
.site-footer {
  background: var(--pine-deep);
  color: #aab4ac;
  font-size: 13.5px;
  padding: 30px 24px;
  text-align: center;
  margin-top: 40px;
}
.site-footer a { color: #cdd6cf; }

/* --- Fil d'ariane --------------------------------------------------------- */
.crumbs {
  max-width: var(--maxw); margin: 0 auto; padding: 18px 24px 0;
  font-size: 13px; color: var(--ink-soft);
}
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--sun-deep); }

/* --- terrasse : alias & helpers ------------------------------------------- */
.deck { height:3px; border:0; margin:0; background:var(--sun); }
.wrap { max-width:var(--maxw); margin:0 auto; padding:16px 24px;
  display:flex; align-items:center; justify-content:space-between; gap:16px; }
.hero .wrap, .article { display:block; }
.hero .wrap { padding:0 24px; max-width:var(--maxw); margin:0 auto; }
.brand__geo { color:#b9c3bb; font-size:13px; }
@media (max-width:560px){ .brand__geo{ display:none; } }

/* Bloc "Sur le même sujet" (maillage interne) */
.related{max-width:var(--maxw);margin:34px auto 8px;padding:20px 22px;background:rgba(0,0,0,.03);border:1px solid rgba(0,0,0,.08);border-radius:14px}
.related h2{margin:0 0 12px;font-size:1.15rem}
.related ul{margin:0;padding:0;list-style:none;display:grid;gap:8px}
.related li a{text-decoration:none;font-weight:600}
.related li a:hover{text-decoration:underline}
