/* Thème « magazine » — polices auto-hébergées, aucune ressource externe. */
@font-face { font-family: "Bricolage"; src: url("bricolage-grotesque-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Source Serif"; src: url("source-serif-4-latin-wght-normal.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif"; src: url("source-serif-4-latin-wght-italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }

:root {
  --papier: #EFF3EC;
  --encre: #13302A;
  --encre-douce: #4B5F58;
  --trait: #C5D1C7;
  --feuille: #24694A;
  --soleil: #F1C232;

  --titres: "Bricolage", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --texte: "Source Serif", "Iowan Old Style", Georgia, serif;
  --mesure: 40rem;
  --large: 76rem;
  --marge: clamp(1rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--papier); color: var(--encre);
  font: 400 1.125rem/1.7 var(--texte);
  font-optical-sizing: auto; -webkit-font-smoothing: antialiased;
}
img, iframe { max-width: 100%; height: auto; display: block; }
a { color: var(--feuille); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--encre); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--soleil); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--titres); font-weight: 700; line-height: 1.12; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.evitement { position: absolute; left: -999px; top: 0; background: var(--encre); color: var(--papier); padding: 0.6rem 1rem; z-index: 10; }
.evitement:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- En-tête : le nom du site en très grand ---------- */
.entete { padding: clamp(1.25rem, 3vw, 2.25rem) var(--marge) 0; max-width: var(--large); margin: 0 auto; }
.entete-haut { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.marque { display: flex; align-items: baseline; gap: clamp(0.6rem, 2vw, 1.4rem); flex-wrap: wrap; color: var(--encre); text-decoration: none; }
.marque:hover { color: var(--encre); }
.marque-nom {
  font-family: var(--titres); font-weight: 800; letter-spacing: -0.055em; line-height: 0.8;
  font-size: clamp(3.6rem, 11vw, 8.5rem); position: relative; padding-right: 0.08em;
}
.entete .marque-nom::after {   /* le soleil : seul motif décoratif du site */
  content: ""; position: absolute; width: 0.22em; height: 0.22em; border-radius: 50%;
  background: var(--soleil); right: -0.12em; top: -0.12em;
}
.marque-baseline { font-style: italic; color: var(--encre-douce); font-size: clamp(1rem, 1.6vw, 1.25rem); max-width: 16em; line-height: 1.3; }

.rubriques { margin-top: clamp(1rem, 2.5vw, 1.75rem); border-top: 2px solid var(--encre); border-bottom: 1px solid var(--trait); }
.rubriques ul, .menu-mobile ul { list-style: none; margin: 0; padding: 0; }
.rubriques-plus a { color: var(--feuille); }
.rubriques ul { display: flex; flex-wrap: wrap; column-gap: 1.6rem; row-gap: 0.2rem; padding: 0.7rem 0; }
.rubriques a, .menu-mobile a { font-family: var(--titres); font-weight: 600; font-size: 1rem; color: var(--encre); text-decoration: none; padding: 0.15rem 0; display: inline-block; }
.rubriques a:hover, .rubriques a[aria-current] { box-shadow: inset 0 -0.45em 0 var(--soleil); }
.menu-mobile { display: none; }

@media (max-width: 760px) {
  .rubriques { display: none; }
  .menu-mobile { display: block; position: relative; }
  .menu-mobile summary { font-family: var(--titres); font-weight: 700; cursor: pointer; list-style: none; padding: 0.55rem 0.9rem; border: 2px solid var(--encre); border-radius: 999px; font-size: 0.95rem; }
  .menu-mobile summary::-webkit-details-marker { display: none; }
  .menu-mobile[open] summary { background: var(--encre); color: var(--papier); }
  .menu-mobile ul { position: absolute; right: 0; top: calc(100% + 0.5rem); background: var(--papier); border: 2px solid var(--encre); padding: 0.5rem 1rem; min-width: 14rem; z-index: 5; }
  .menu-mobile li + li { border-top: 1px solid var(--trait); }
  .menu-mobile a { display: block; padding: 0.6rem 0; }
  .entete { border-bottom: 2px solid var(--encre); padding-bottom: 1rem; }
}

main { max-width: var(--large); margin: 0 auto; padding: clamp(1.5rem, 4vw, 3rem) var(--marge) 4rem; }

/* ---------- Cartes d'articles ---------- */
.carte { display: flex; flex-direction: column; gap: 0.9rem; }
.carte-image { order: -1; }
.carte-rubrique { font-family: var(--titres); font-weight: 600; font-size: 0.9rem; color: var(--feuille); text-decoration: none; display: inline-block; margin-bottom: 0.35rem; }
.carte-titre { font-size: 1.35rem; font-weight: 650; }
.carte-titre a { color: var(--encre); text-decoration: none; }
.carte-titre a:hover { text-decoration: underline; text-decoration-color: var(--soleil); text-decoration-thickness: 0.18em; text-underline-offset: 0.12em; }
.carte-resume { margin: 0.5rem 0 0; color: var(--encre-douce); font-size: 1.02rem; line-height: 1.55; }
.carte-date { margin: 0.5rem 0 0; font-family: var(--titres); font-size: 0.85rem; color: var(--encre-douce); }
.carte-image { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--trait); }

.liste { display: grid; gap: 2.25rem 2.5rem; }
.liste > .carte { padding-top: 1.25rem; border-top: 1px solid var(--trait); }
@media (min-width: 700px) { .liste { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1050px) { .liste { grid-template-columns: repeat(3, 1fr); } }
.liste-compacte { grid-template-columns: 1fr !important; gap: 0; }
.liste-compacte > .carte { padding: 0.9rem 0; }
.carte-compact .carte-titre { font-size: 1.08rem; line-height: 1.25; }
.carte-compact .carte-date { margin-top: 0.3rem; }

/* ---------- Accueil ---------- */
.accueil-une { display: grid; gap: 2.5rem; padding-bottom: 3rem; }
@media (min-width: 960px) { .accueil-une { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 3.5rem; } }
.carte-une .carte-titre { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 750; line-height: 1.04; letter-spacing: -0.03em; }
.carte-une .carte-resume { font-size: 1.2rem; color: var(--encre); max-width: 36em; margin-top: 1rem; }
.carte-une .carte-image { aspect-ratio: 16 / 9; }
.accueil-suivants h2, .accueil-rubrique h2, .a-lire h2 { font-size: 1.05rem; font-weight: 700; padding-bottom: 0.6rem; border-bottom: 2px solid var(--encre); }
.accueil-rubrique { padding-top: 3rem; }
.accueil-rubrique h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.025em; margin-bottom: 0.5rem; }
.accueil-rubrique h2 a { color: var(--encre); text-decoration: none; }
.accueil-rubrique h2 a:hover { box-shadow: inset 0 -0.35em 0 var(--soleil); }
.liste-trois > .carte { border-top: 0; padding-top: 0.5rem; }
.a-lire-tout { margin: 1rem 0 0; font-family: var(--titres); font-weight: 600; font-size: 0.98rem; }

/* ---------- Pages de liste ---------- */
.liste-entete { padding-bottom: 2rem; }
.liste-entete h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); font-weight: 800; letter-spacing: -0.04em; }
.liste-intro { margin: 0.6rem 0 0; color: var(--encre-douce); font-family: var(--titres); }
.sous-rubriques { list-style: none; padding: 0; margin: 1.2rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.sous-rubriques a { display: inline-block; font-family: var(--titres); font-weight: 600; font-size: 0.95rem; text-decoration: none; color: var(--encre); border: 1.5px solid var(--encre); border-radius: 999px; padding: 0.3rem 0.9rem; }
.sous-rubriques a:hover { background: var(--soleil); }
.pagination ul { list-style: none; padding: 0; margin: 3rem 0 0; display: flex; gap: 1.5rem; align-items: center; justify-content: center; flex-wrap: wrap; font-family: var(--titres); }
.pagination a { font-weight: 700; color: var(--encre); padding: 0.55rem 1.1rem; border: 2px solid var(--encre); border-radius: 999px; text-decoration: none; }
.pagination a:hover { background: var(--soleil); }
.pagination-etat { color: var(--encre-douce); }

/* ---------- Fil d'Ariane ---------- */
.ariane ol { list-style: none; margin: 0 0 1.25rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; font-family: var(--titres); font-size: 0.9rem; color: var(--encre-douce); }
.ariane li + li::before { content: "/"; margin-right: 0.5rem; color: var(--trait); }
.ariane a { color: var(--encre-douce); }

/* ---------- Article ---------- */
.article { max-width: var(--mesure); margin: 0 auto; }
.article-entete h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 750; letter-spacing: -0.03em; line-height: 1.06; }
.article-meta { font-family: var(--titres); font-size: 0.95rem; color: var(--encre-douce); margin: 1rem 0 0; }
.article-maj { display: block; }
.article-image { margin: 2rem calc(-1 * min(4rem, var(--marge))) 0; }
.article-image img { width: 100%; max-height: 32rem; object-fit: cover; }
.article-corps { margin-top: 2rem; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.article-corps > * { margin: 0 0 1.15em; }
.article-corps h2 { font-size: 1.75rem; margin: 2.2em 0 0.6em; }
.article-corps h3 { font-size: 1.32rem; margin: 1.8em 0 0.5em; }
.article-corps h4 { font-size: 1.12rem; margin: 1.5em 0 0.4em; }
.article-corps ul, .article-corps ol { padding-left: 1.3em; }
.article-corps li { margin-bottom: 0.4em; }
.article-corps li::marker { color: var(--feuille); font-family: var(--titres); font-weight: 700; }
.article-corps blockquote { margin-left: 0; padding-left: 1.2rem; border-left: 4px solid var(--soleil); font-style: italic; }
.article-corps figure { margin: 2em 0; }
.article-corps figcaption { font-size: 0.92rem; color: var(--encre-douce); margin-top: 0.5rem; }
.article-corps table { width: 100%; border-collapse: collapse; font-size: 0.98rem; display: block; overflow-x: auto; }
.article-corps th, .article-corps td { text-align: left; padding: 0.55rem 0.8rem; border-bottom: 1px solid var(--trait); vertical-align: top; }
.article-corps th { font-family: var(--titres); border-bottom: 2px solid var(--encre); }
.article-corps pre { background: var(--encre); color: var(--papier); padding: 1rem; overflow-x: auto; font-size: 0.9rem; border-radius: 4px; }
.article-corps code { font-size: 0.9em; }
.article-corps hr { border: 0; border-top: 2px solid var(--trait); margin: 2.5em 0; }
.video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; background: var(--encre); }
.a-lire { max-width: var(--mesure); margin: 4rem auto 0; }

/* ---------- Pied de page ---------- */
.pied { background: var(--encre); color: var(--papier); padding: 3rem var(--marge); }
.pied-interieur { max-width: var(--large); margin: 0 auto; display: grid; gap: 1.5rem; }
.pied a { color: var(--papier); }
.pied a:hover { color: var(--soleil); }
.pied-marque { margin: 0; max-width: 30em; }
.pied-marque .marque-nom { font-size: 1.6rem; vertical-align: -0.1em; margin-right: 0.3rem; }
.pied-liens { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-family: var(--titres); font-size: 0.95rem; }
.pied-contact { margin: 0; font-family: var(--titres); font-size: 0.95rem; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media print { .entete nav, .menu-mobile, .a-lire, .pied { display: none; } body { background: #fff; } }
