/* ==========================================================================
   Gosset Bois de chauffage : feuille de style commune des templates
   Version 0 du 6 novembre 2026, Lionel Gabillon (Resamatic)

   Trois variantes visuelles, choisies par l'attribut data-variant sur <html> :
     data-variant="a"  Atelier  : en-tête sombre, fond crème, continuité avec le site actuel
     data-variant="b"  Lumière  : en-tête clair, fond blanc, plus aéré
     data-variant="c"  Système  : police système, en-tête translucide, principes Apple pour le web
   Tout le reste (structure, balises, contenu) est identique : la variante ne change
   que des jetons de couleur, de police et de rayon. Aucun JavaScript requis.
   ========================================================================== */

/* ---------- Polices auto-hébergées (variantes A et B) ----------
   Ajout du constructeur : Oswald et Open Sans en WOFF2 variable, sous-ensemble latin
   (accents, œ, €, apostrophe typographique), licence SIL OFL dans /assets/fonts/.
   Le navigateur ne télécharge que les polices réellement utilisées par la variante. */
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-display: swap;
  font-weight: 200 700;
  src: url("/assets/fonts/oswald-latin-wght.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 300 800;
  src: url("/assets/fonts/open-sans-latin-wght.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Jetons communs ---------- */
:root {
  --orange: #ff8703;          /* orange de la marque, boutons et accents sur fond sombre */
  --orange-deep: #c75f00;     /* orange lisible sur fond clair (contraste 4,9:1 sur blanc) */
  --orange-soft: #fff1e0;
  --brown: #2e2b26;           /* brun profond du site actuel */
  --brown-2: #4a443c;
  --beige: #c9c1a5;
  --cream: #f7f3ea;
  --white: #ffffff;
  --surface: #ffffff;         /* fond des cartes et panneaux ; devient sombre en mode nuit */
  --link: #c75f00;            /* liens, prix, accents textuels ; s'éclaircit en mode nuit */
  --input-bg: #ffffff;
  --ink: #1f1b17;             /* texte principal */
  --ink-2: #4b453d;           /* texte secondaire, contraste 7:1 sur blanc */
  --line: #e3ddd0;
  --ok: #2f7d4a;
  --focus: #1a73e8;

  --font-head: "Oswald", "Arial Narrow", Impact, sans-serif;
  --font-body: "Open Sans", "Segoe UI", Roboto, Arial, sans-serif;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 6px 24px rgba(31, 27, 23, 0.08);
  --max: 1160px;
  --gutter: 16px;

  --z-sticky: 20;
  --z-nav: 30;
  --z-skip: 50;

  /* Variante A par défaut */
  --bg: var(--cream);
  --bg-alt: var(--white);
  --header-bg: var(--brown);
  --header-ink: var(--white);
  --header-accent: var(--orange);
  --footer-bg: var(--brown);
  --footer-ink: #e8e2d6;
  --cta-bg: var(--orange);
  --cta-ink: var(--ink);
  --head-transform: uppercase;
  --head-spacing: 0.02em;
}

/* Variante C « Système » : construite sur les principes Apple traduits pour le web (skill apple-design d'Emil Kowalski) :
   police système à sizing optique, interlettrage négatif sur les grands titres, en-tête translucide avec contenu qui défile dessous,
   bord de défilement en dégradé plutôt qu'un trait, retour immédiat à l'appui, hiérarchie par graisse et taille, sobriété. */
html[data-variant="c"] {
  --bg: #fbfbfd;
  --bg-alt: #ffffff;
  --ink: #1d1d1f;
  --ink-2: #515154;
  --line: #e8e8ed;
  --header-bg: rgba(251, 251, 253, 0.72);
  --header-ink: #1d1d1f;
  --header-accent: var(--orange-deep);
  --footer-bg: #f5f5f7;
  --footer-ink: #515154;
  --cta-bg: var(--orange-deep);
  --cta-ink: #ffffff;
  --font-head: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --head-transform: none;
  --head-spacing: -0.022em;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.06), 0 12px 32px rgba(0, 0, 0, 0.05);
}

html[data-variant="b"] {
  --bg: var(--white);
  --bg-alt: var(--cream);
  --header-bg: var(--white);
  --header-ink: var(--ink);
  --header-accent: var(--orange-deep);
  --footer-bg: #f0ebe0;
  --footer-ink: var(--ink-2);
  --cta-bg: var(--orange-deep);
  --cta-ink: var(--white);
  --font-head: "Open Sans", "Segoe UI", Roboto, Arial, sans-serif;
  --head-transform: none;
  --head-spacing: -0.01em;
  --radius: 14px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;          /* 17 px : lisible sur mobile */
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 0.15em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  text-transform: var(--head-transform);
  letter-spacing: var(--head-spacing);
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-top: 0; }
h3 { font-size: 1.25rem; text-transform: none; letter-spacing: 0; }
p { margin: 0 0 1em; max-width: 70ch; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: 0.35em; }
strong { font-weight: 700; }
small, .muted { color: var(--ink-2); }
address { font-style: normal; }
table { border-collapse: collapse; width: 100%; font-size: 0.97rem; }
th, td { text-align: left; padding: 0.6rem 0.7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 700; background: var(--bg-alt); }
caption { text-align: left; font-weight: 700; padding: 0.5rem 0; caption-side: top; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- Mise en page ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section--alt { background: var(--bg-alt); }
.section--tight { padding: 1.5rem 0; }
.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.lead { font-size: 1.2rem; color: var(--ink-2); }
.answer {
  /* réponse directe en deux phrases : visible, citable, en tête de section */
  font-size: 1.1rem;
  max-width: 70ch;
  padding: 0 0 0 1rem;
  border-left: 3px solid var(--cta-bg);
  background: none;
  border-radius: 0;
}
.kicker { display: inline-block; font-weight: 700; color: var(--link); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; margin-bottom: 0.5rem; }

/* ---------- Lien d'évitement ---------- */
.skip { position: absolute; left: -999px; top: 8px; z-index: var(--z-skip); background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: var(--radius-sm); }
.skip:focus { left: 8px; }

/* ---------- En-tête ---------- */
.topbar { background: var(--header-bg); color: var(--header-ink); font-size: 0.9rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; align-items: center; min-height: 36px; }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.header { background: var(--header-bg); color: var(--header-ink); position: sticky; top: 0; z-index: var(--z-nav); border-bottom: 1px solid rgba(255,255,255,0.08); }
html[data-variant="b"] .header { border-bottom-color: var(--line); box-shadow: 0 2px 12px rgba(31,27,23,0.06); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 0.75rem; color: inherit; text-decoration: none; }
.brand img { height: 44px; width: auto; }
html[data-variant="a"] .brand img { filter: none; }
.brand span { font-family: var(--font-head); font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.04em; }
.nav { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem; }
.nav a { color: inherit; text-decoration: none; font-weight: 600; padding: 0.5rem 0; display: inline-block; min-height: 44px; line-height: 2; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--header-accent); }
.header .header-cta { display: none; }
@media (max-width: 899px) { .topbar { display: none; } }  /* sur mobile, le H1 et l'appel doivent tenir dans le premier écran */
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; padding: 0.6rem 0.9rem; border: 1px solid currentColor; border-radius: var(--radius-sm); font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; gap: 0.5rem; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--header-accent); color: var(--ink); border-color: var(--header-accent); }
.menu-panel { position: absolute; right: 0; top: calc(100% + 8px); background: var(--surface); color: var(--ink); min-width: 260px; border-radius: var(--radius); box-shadow: var(--shadow); padding: 0.5rem 0; border: 1px solid var(--line); }
.menu-panel ul { list-style: none; margin: 0; padding: 0; }
.menu-panel a { display: block; padding: 0.8rem 1.1rem; color: var(--ink); text-decoration: none; font-weight: 600; }
.menu-panel a:hover { background: var(--orange-soft); }
@media (min-width: 900px) { .header .header-cta { display: inline-flex; white-space: nowrap; } }
@media (min-width: 1200px) {
  .nav { display: block; }
  .nav a { white-space: nowrap; }
  .menu { display: none; }
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.7rem 1.3rem; border-radius: var(--radius-sm);
  font-weight: 700; text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: background-color 200ms, color 200ms, border-color 200ms;
  font-family: var(--font-body); font-size: 1rem;
}
/* Retour immédiat à l'appui (principe « Response ») : l'état pressé, pas seulement le relâchement */
.btn:active { transform: scale(0.97); transition: transform 100ms ease-out; }
.btn--primary { background: var(--cta-bg); color: var(--cta-ink); }
.btn--primary:hover { background: var(--ink); color: var(--white); }
.btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn--ghost:hover { background: var(--orange-soft); color: var(--ink); border-color: var(--orange-soft); }
.btn--phone::before { content: ""; width: 18px; height: 18px; background: currentColor; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25c1.1.37 2.3.57 3.6.57a1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1L6.6 10.8z'/></svg>") center / contain no-repeat; }
.btn svg { width: 20px; height: 20px; }

/* ---------- Héros ---------- */
.hero { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; gap: 2rem; padding: clamp(2rem, 5vw, 4rem) 0; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.15fr 1fr; } }
.hero h1 { margin-bottom: 0.6rem; }
.hero .lead { max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.25rem 0; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; padding: 0; margin: 0; list-style: none; font-size: 0.95rem; color: var(--ink-2); }
.hero-proof li { display: flex; align-items: center; gap: 0.4rem; }
.hero-proof svg { width: 18px; height: 18px; color: var(--link); flex: none; }
.hero figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: var(--beige); }
.hero figure img { width: 100%; height: 100%; object-fit: cover; }
/* Photo montrée en entier, sans recadrage (format large du site actuel) */
.hero figure.figure--entiere { aspect-ratio: auto; }
.hero figure.figure--entiere img { height: auto; }
.hero figcaption { font-size: 0.85rem; color: var(--ink-2); padding: 0.5rem 0.75rem; background: var(--surface); }

/* ---------- Fil d'Ariane ---------- */
.crumbs { font-size: 0.9rem; padding: 0.75rem 0; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.crumbs li + li::before { content: "›"; margin-right: 0.35rem; color: var(--ink-2); }
.crumbs a { color: var(--ink-2); }

/* ---------- Cartes ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 0.5rem; }
html[data-variant="b"] .card { box-shadow: none; }
.card h3, .card .h3 { margin: 0; }
.h3 { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; line-height: 1.15; margin: 0 0 0.5em; }
.card .price { font-family: var(--font-head); font-size: 1.6rem; color: var(--link); text-transform: none; letter-spacing: 0; }
.card .price small { font-family: var(--font-body); font-size: 0.85rem; color: var(--ink-2); font-weight: 400; }
.card img { border-radius: var(--radius-sm); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; background: var(--beige); }
.card .btn { align-self: flex-start; margin-top: auto; }
.card--dark { background: var(--brown); color: var(--white); border-color: var(--brown); }
.card--dark .price { color: var(--orange); }
.card--dark a { color: var(--orange); }

/* ---------- Avis ---------- */
.review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.review .stars { color: var(--link); font-size: 0.95rem; letter-spacing: 0.1em; }
.review blockquote { margin: 0.5rem 0; font-style: italic; }
.review footer { font-size: 0.9rem; color: var(--ink-2); }
.rating { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; }
.rating .stars { color: var(--link); }

/* ---------- Communes (page de tournée) ---------- */
.communes { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); list-style: none; padding: 0; margin: 0; }
.communes li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.9rem 1rem; }
.communes h3 { font-size: 1.05rem; margin: 0 0 0.25rem; }
.communes p { margin: 0; font-size: 0.95rem; }
.anchors { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0 0 1rem; }
.anchors a { display: inline-block; padding: 0.45rem 0.8rem; min-height: 40px; line-height: 1.6; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-size: 0.95rem; }
.anchors a:hover { border-color: var(--link); color: var(--link); }

/* ---------- FAQ (texte visible, jamais chargé au clic) ---------- */
.faq { display: grid; gap: 1rem; }
.faq article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; }
.faq h3 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.faq p { max-width: none; }
.faq p:last-child { margin-bottom: 0; }

/* ---------- Encadrés ---------- */
.note { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; background: var(--surface); }
.note--warn { border-color: #e6b86a; background: #fff8ea; }
.keyfacts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.keyfacts li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.75rem 1rem; }
.keyfacts b { display: block; font-family: var(--font-head); font-size: 1.4rem; color: var(--link); text-transform: none; }
.toc { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; }
.toc ol { margin: 0.25rem 0 0; }

/* ---------- Où nous trouver (carte statique + NAP identique à la fiche Google) ---------- */
.map { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 900px) { .map { grid-template-columns: 1.3fr 1fr; } }
.map-figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--beige); }
.map-figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.map-figure figcaption { font-size: 0.85rem; color: var(--ink-2); padding: 0.5rem 0.75rem; background: var(--surface); }
.map-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.map-card h3 { margin-bottom: 0.4rem; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 1rem; margin: 0.75rem 0; font-size: 0.95rem; }
.hours dt { font-weight: 600; } .hours dd { margin: 0; }
.gbp-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.btn--map::before { content: ""; width: 18px; height: 18px; background: currentColor; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5z'/></svg>") center / contain no-repeat; }

/* ---------- Formulaire ---------- */
.form { display: grid; gap: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.form label { font-weight: 600; display: block; margin-bottom: 0.3rem; }
.form input, .form select, .form textarea { width: 100%; font: inherit; padding: 0.7rem 0.8rem; border: 1px solid #b9b2a3; border-radius: var(--radius-sm); min-height: 48px; background: var(--input-bg); color: var(--ink); }
.form textarea { min-height: 110px; }
.form .row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.form .hint { font-size: 0.9rem; color: var(--ink-2); margin: 0; }

/* ---------- Bandeau d'appel mobile ---------- */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky); display: flex; gap: 0.5rem; padding: 0.6rem var(--gutter); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(31,27,23,0.08); }
.callbar .btn { flex: 1; }
body { padding-bottom: 76px; }
@media (min-width: 900px) { .callbar { display: none; } body { padding-bottom: 0; } }

/* ---------- Pied de page ---------- */
.footer { background: var(--footer-bg); color: var(--footer-ink); padding: 3rem 0 2rem; font-size: 0.95rem; }
.footer a { color: inherit; }
.footer .footer-title { font-family: var(--font-head); font-weight: 700; text-transform: var(--head-transform); letter-spacing: var(--head-spacing); font-size: 1rem; color: inherit; margin: 0 0 0.6rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 0.3rem; }
.footer .legal { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.15); font-size: 0.85rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
html[data-variant="b"] .footer .legal { border-top-color: var(--line); }

/* ---------- Variante C : matière, typographie et préférences d'accessibilité ---------- */
html[data-variant="c"] body { font-size: 1.0625rem; line-height: 1.55; font-optical-sizing: auto; -webkit-font-smoothing: antialiased; }
html[data-variant="c"] h1 { font-size: clamp(2.1rem, 4.8vw, 3.4rem); line-height: 1.05; letter-spacing: -0.028em; font-weight: 700; }
html[data-variant="c"] h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; }
html[data-variant="c"] h3 { font-size: 1.2rem; line-height: 1.25; letter-spacing: -0.01em; font-weight: 600; }
html[data-variant="c"] .kicker { letter-spacing: 0.04em; font-size: 0.78rem; }
html[data-variant="c"] .lead { font-size: 1.25rem; line-height: 1.45; letter-spacing: -0.01em; }
html[data-variant="c"] .topbar { background: var(--bg-alt); color: var(--ink-2); }
html[data-variant="c"] .header {
  /* Matière translucide : le contenu défile dessous ; pas de trait dur mais un bord de défilement en dégradé */
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 0;
  box-shadow: none;
}
html[data-variant="c"] .header::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; pointer-events: none; background: linear-gradient(to bottom, rgba(29, 29, 31, 0.06), rgba(29, 29, 31, 0)); }
html[data-variant="c"] .header { position: sticky; }
html[data-variant="c"] .menu summary { border-color: var(--line); border-radius: 999px; }
html[data-variant="c"] .menu-panel { background: rgba(255,255,255,0.86); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-radius: var(--radius); }
html[data-variant="c"] .btn { border-radius: 999px; padding: 0.75rem 1.4rem; font-weight: 600; }
html[data-variant="c"] .btn--ghost { border-color: var(--line); background: var(--surface); color: var(--ink); }
html[data-variant="c"] .btn--ghost:hover { border-color: var(--ink); background: var(--surface); }
html[data-variant="c"] .card { box-shadow: var(--shadow); border-color: transparent; }
html[data-variant="c"] .card--dark { background: #1d1d1f; border-color: #1d1d1f; }
html[data-variant="c"] .hero { border-bottom: 0; }
html[data-variant="c"] .hero figure { box-shadow: var(--shadow); }
html[data-variant="c"] .answer { background: #f5f5f7; border-left-color: var(--link); border-radius: var(--radius-sm); }
html[data-variant="c"] .section--alt { background: var(--bg-alt); }
html[data-variant="c"] .review, html[data-variant="c"] .faq article, html[data-variant="c"] .note, html[data-variant="c"] .map-card, html[data-variant="c"] .communes li, html[data-variant="c"] .keyfacts li, html[data-variant="c"] .form, html[data-variant="c"] .toc { border-color: var(--line); border-radius: var(--radius); }
html[data-variant="c"] .anchors a { border-radius: 999px; }
html[data-variant="c"] th { background: #f5f5f7; }
html[data-variant="c"] .callbar { background: rgba(251, 251, 253, 0.8); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); border-top: 1px solid rgba(29,29,31,0.08); box-shadow: none; }
html[data-variant="c"] .footer { border-top: 1px solid var(--line); }
html[data-variant="c"] .footer .legal { border-top-color: var(--line); }
html[data-variant="c"] .price { font-weight: 700; letter-spacing: -0.02em; }
html[data-variant="c"] .keyfacts b { letter-spacing: -0.02em; }

/* Préférences du visiteur (principe « reduced motion & accessibility ») : le translucide redevient opaque, le contraste monte */
@media (prefers-reduced-transparency: reduce) {
  html[data-variant="c"] .header, html[data-variant="c"] .menu-panel, html[data-variant="c"] .callbar { background: #ffffff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .card, .review, .faq article, .note, .map-card, .communes li, .keyfacts li { border-color: var(--ink); }
  html[data-variant="c"] .header { background: #ffffff; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 1px solid var(--ink); }
}

/* ---------- Mode jour / nuit ----------
   Par défaut la page suit le réglage du système (prefers-color-scheme). Le bouton de l'en-tête force
   data-theme="dark" ou "light" sur <html>, mémorisé par un script de douze lignes ; sans JavaScript, le
   réglage du système s'applique. Chaque variante garde son caractère : seuls les jetons changent. */
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px; border: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer; padding: 0; transition: background-color 200ms, color 200ms; }
.theme-toggle:hover { background: rgba(127, 127, 127, 0.15); }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
html { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }
html[data-theme="light"] { color-scheme: light; }

/* Jetons sombres communs, puis par variante. Le même bloc est écrit deux fois : pour la préférence système et pour le forçage. */
html[data-theme="dark"] { --bg: #171412; --bg-alt: #1e1b18; --surface: #2c2824; --input-bg: #1f1c18; --ink: #f2ede4; --ink-2: #c6bfb2; --line: #474037; --link: #f0a868; --orange-soft: rgba(255, 135, 3, 0.14); --beige: #4a4238; --header-bg: #14120f; --header-ink: #f2ede4; --header-accent: #ff8703; --footer-bg: #14120f; --footer-ink: #c6bfb2; --cta-bg: #ff8703; --cta-ink: #1b1815; --shadow: 0 6px 24px rgba(0, 0, 0, 0.35); --focus: #8ab4f8; }
html[data-theme="dark"][data-variant="b"] { --bg: #171717; --bg-alt: #1f1f1f; --surface: #262626; --input-bg: #1c1c1c; --line: #3a3a3a; --header-bg: #1f1f1f; --footer-bg: #1f1f1f; }
html[data-theme="dark"][data-variant="c"] { --bg: #000000; --bg-alt: #1d1d1f; --surface: #1d1d1f; --input-bg: #161617; --ink: #f5f5f7; --ink-2: #a1a1a6; --line: #2c2c2e; --link: #ffa33a; --header-bg: rgba(29, 29, 31, 0.72); --header-ink: #f5f5f7; --footer-bg: #1d1d1f; --footer-ink: #a1a1a6; --cta-bg: #ff8703; --cta-ink: #1d1d1f; --shadow: 0 2px 12px rgba(0, 0, 0, 0.5), 0 12px 32px rgba(0, 0, 0, 0.4); }
html[data-theme="dark"] .note--warn { background: #3a2e14; border-color: #7a5a1a; }
html[data-theme="dark"] .card--dark { background: #0f0d0b; border-color: #0f0d0b; }
html[data-theme="dark"] .form input, html[data-theme="dark"] .form select, html[data-theme="dark"] .form textarea { border-color: #5a5248; }
html[data-theme="dark"] .topbar { background: var(--header-bg); color: var(--header-ink); }
html[data-theme="dark"][data-variant="c"] .header::after { background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0)); }
html[data-theme="dark"][data-variant="c"] .menu-panel { background: rgba(29, 29, 31, 0.86); }
html[data-theme="dark"][data-variant="c"] .callbar { background: rgba(29, 29, 31, 0.8); border-top-color: rgba(255, 255, 255, 0.1); }
html[data-theme="dark"][data-variant="c"] .btn--ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
/* Les photos gardent leur lumière ; seule la figure vide (emplacement) s'assombrit avec --beige. Transition douce entre les deux modes. */
body, .header, .footer, .card, .review, .note, .map-card, .faq article { transition: background-color 250ms ease, color 250ms ease, border-color 250ms ease; }
@media (prefers-reduced-motion: reduce) { body, .header, .footer, .card, .review, .note, .map-card, .faq article { transition: none; } }

/* ---------- Utilitaires ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.badge { display: inline-block; background: var(--orange-soft); color: var(--link); font-weight: 700; font-size: 0.8rem; padding: 0.2rem 0.6rem; border-radius: 999px; }
.updated { font-size: 0.85rem; color: var(--ink-2); }
/* Ajout du constructeur : dans le pied de page, la date suit la couleur du pied (le gris foncé était illisible sur le brun) */
.footer .updated { color: inherit; }
/* Ajout du constructeur : la légende du prix passe sous le prix (avec quatre cartes, elle s'étalait sur trois lignes très espacées) */
.card .price small { display: block; line-height: 1.4; margin-top: 0.25rem; }

/* Ajout constructeur : grille des 8 produits de l'accueil, 2 par ligne sur tablette, 4 par ligne sur grand écran (lignes complètes) */
@media (min-width: 600px) { .grid--produits { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--produits { grid-template-columns: repeat(4, 1fr); } }
/* Ajout constructeur : prix livré en seconde ligne, sous le prix au dépôt (décision de Jones du 2026-11-07) */
.card .price .livre { display: block; font-size: 1.15rem; margin-top: 0.4rem; }
/* Ajout constructeur : photos des cartes produits de l'accueil plus grandes (bord à bord de la carte)
   et qui grossissent au passage de la souris (demande de Jones du 2026-11-07, comme sur le site actuel) */
.grid--produits .card picture { display: block; margin: -1.25rem -1.25rem 0.5rem; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.grid--produits .card picture img { display: block; border-radius: 0; aspect-ratio: 1 / 1; transition: transform 0.4s ease; }
.grid--produits .card picture:hover img { transform: scale(1.08); }
@media (prefers-reduced-motion: reduce) { .grid--produits .card picture img { transition: none; } .grid--produits .card picture:hover img { transform: none; } }
/* Ajout constructeur : mention "Majoration du tarif livraison selon secteur" bien visible sous les cartes produits (demande de Jones) */
.majoration { width: fit-content; max-width: 100%; background: var(--surface); border: 2px solid var(--orange); border-left-width: 6px; border-radius: var(--radius-sm); padding: 0.75rem 1.1rem; font-size: 1.05rem; box-shadow: var(--shadow); }
.majoration strong { color: var(--link); font-family: var(--font-head); font-size: 1.2rem; letter-spacing: 0.01em; }
/* Ajout constructeur : colonne plan + schéma d'accès + phrase d'accès dans "Où nous trouver" */
.map-col { display: grid; gap: 1rem; }
.map-col .mt-1 { margin-top: 0; }
.map-figure img[src$=".svg"] { object-fit: contain; background: #f7f3ea; }
.acces { margin: 0; background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--orange); border-radius: var(--radius-sm); padding: 0.75rem 1rem; }
/* Ajout constructeur : alignement des cartes produits d'une même ligne (titres, textes, prix et boutons à la même hauteur), demande de Jones */
@supports (grid-template-rows: subgrid) {
  .grid--produits > .card { display: grid; grid-template-rows: subgrid; grid-row: span 5; row-gap: 0.5rem; align-content: start; }
  .grid--produits > .card .price { align-self: start; }
  .grid--produits > .card .btn { align-self: end; justify-self: start; margin-top: 0; }
}

/* ---------- Page bûches compressées : les trois produits dès l'ouverture (demande de Jones, 2026-11-08) ---------- */
.hero-trois { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.5rem; }
.hero-trois a { display: block; padding: 0.55rem 0.8rem; border-left: 4px solid var(--orange, #ff8703); background: var(--surface); border-radius: 6px; color: var(--ink); text-decoration: none; }
.hero-trois a:hover { background: var(--orange-soft); }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; align-self: center; }
.trio a { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--surface); color: var(--ink); text-decoration: none; text-align: center; }
.trio picture, .trio img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform 0.4s ease; }
.trio a:hover img { transform: scale(1.06); }
.trio span { display: block; padding: 0.5rem 0.3rem; font-weight: 700; font-size: 0.95rem; line-height: 1.2; }
@media (prefers-reduced-motion: reduce) { .trio img { transition: none; } .trio a:hover img { transform: none; } }
.hero-pleine { grid-column: 1 / -1; }
.hero-pleine .answer { max-width: none; margin: 0; }
.hero-pleine .hero-actions { margin-bottom: 0; }

/* ---------- Pages produits : galerie de photos réelles (2026-11-08) ---------- */
/* 2026-11-09 : cadres tous identiques (4/3, comme au départ), photo montrée entière dans son cadre,
   sans zoom ni coupe, et plus d'espace entre les cadres. Mots de Jones : "cadre egaux comme au départ.......
   mais les photo misent dans ces cadres, ce sont elles que tu ne dois pas zoomer par exemple" */
.galerie { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
/* 2026-11-11 : une galerie d'une ou deux photos garde la taille des galeries de trois photos (Jones : "un peu plus petites") au lieu de s'étirer sur toute la largeur */
.galerie--fixe { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.galerie figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--surface); }
/* Photo en hauteur ou plus étroite que le cadre : les marges sont remplies par la même photo floutée (Jones : "tous comme celle du milieu, c'est plus pro") */
.galerie .cadre { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--fond) center / cover no-repeat var(--surface); }
.galerie .cadre::before { content: ""; position: absolute; inset: -24px; background: inherit; filter: blur(20px) brightness(0.8); }
.galerie .cadre picture { display: block; position: relative; height: 100%; }
.galerie .cadre img { display: block; position: relative; width: 100%; height: 100%; object-fit: contain; }

/* ---------- Pages produits : logos des labels sous les caractéristiques (2026-11-08) ---------- */
.logos { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
.logos img, .logos picture { display: block; height: 80px; width: auto; border-radius: 6px; }
.logos img[src*="bois-de-france"], .logos img[src*="plantons"] { border-radius: 50%; }
.logos a { display: block; }
.galerie figcaption { padding: 0.55rem 0.75rem 0.65rem; font-size: 0.9rem; line-height: 1.35; color: var(--ink-2); }
.logos img[src*="label-fab2"] { background: #fff; padding: 6px 10px; border-radius: 10px; }
.atouts { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.atouts li { padding-left: 1.8rem; position: relative; }
.atouts li::before { content: "✓"; position: absolute; left: 0.2rem; color: var(--link); font-weight: 700; }

/* Section "Pourquoi" en deux colonnes : texte a gauche, points forts a droite (modele demande par Jones, 2026-11-09) */
.pourquoi { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 900px) { .pourquoi { grid-template-columns: 2fr 1fr; gap: 3rem; } }
.pourquoi p { margin: 0 0 1rem; }
.points-forts h3 { margin-top: 0; }
.points-forts .btn { margin-top: 1.25rem; }

/* ---------- Pages produits : vidéos hébergées sur le site, rien n'est chargé avant la lecture (2026-11-09) ---------- */
.section--suite { padding-top: 0; }
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 340px)); gap: 2rem; align-items: start; }
.video { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--surface); }
.video video { display: block; width: 100%; height: auto; background: #000; }
.video figcaption { padding: 0.55rem 0.75rem 0.65rem; font-size: 0.9rem; line-height: 1.35; color: var(--ink-2); }

/* Encadrés "lequel choisir" (Nos bois) : lecture d'un coup d'oeil, repères alignés, prix en bas */
.choix { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.choix h3 { margin: 0; padding: 0.9rem 1.25rem; background: var(--brown); color: var(--white); font-size: 1.3rem; }
.choix-pour { margin: 0; padding: 0.85rem 1.25rem; background: color-mix(in srgb, var(--orange) 12%, var(--surface)); font-size: 1.02rem; line-height: 1.5; }
.choix-pour strong { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--link); margin-bottom: 0.15rem; }
.choix dl { margin: 0; padding: 0.4rem 1.25rem; flex: 1; }
.choix dl > div { display: grid; grid-template-columns: 7rem 1fr; gap: 0.75rem; padding: 0.7rem 0; align-items: baseline; border-bottom: 1px solid var(--line); }
.choix dl > div:last-child { border-bottom: 0; }
.choix dt { font-weight: 400; color: var(--ink-2); font-size: 0.95rem; }
.choix dd { margin: 0; font-size: 1.05rem; font-weight: 700; line-height: 1.4; }
.choix-prix { margin: 0; padding: 1rem 1.25rem; border-top: 1px solid var(--line); }
.choix-prix .montant { font-family: var(--font-head); font-size: 1.6rem; color: var(--link); }
.choix-prix small { display: block; color: var(--ink-2); font-size: 0.85rem; }
.choix .btn { margin: 0 1.25rem 1.25rem; justify-content: center; }
@media (max-width: 420px) { .choix dl > div { grid-template-columns: 1fr; gap: 0.1rem; } }

/* Carte de livraison (gabarits/carte-livraison.svg, écrite par carte-secteurs.py) : couleurs fixes, lisibles en jour comme en nuit */
.carte-livraison{width:100%;max-width:1000px;height:auto;background:#eaf0f2;border-radius:10px}
.carte-livraison .voisin{fill:#e4d6c6;stroke:#fff;stroke-width:2}
.carte-livraison .dept path{fill:#d9784d;stroke:#d9784d;stroke-width:1.2}
.carte-livraison .emeraude path{fill:#efbc9f;stroke:#efbc9f;stroke-width:1.2}
.carte-livraison .num{font:700 34px Oswald,"Arial Narrow",sans-serif;fill:#b9a58f}
.carte-livraison .num--22{fill:#fff;opacity:.55;font-size:44px}
.carte-livraison .trajet{fill:none;stroke:#2e2b26;stroke-width:3;stroke-dasharray:8 6;opacity:.75}
.carte-livraison .pointe{fill:#2e2b26}
.carte-livraison .commune circle{fill:#2e2b26}
.carte-livraison .commune text{font:600 15px "Open Sans",sans-serif;fill:#2e2b26}
.carte-livraison .ville circle{fill:#2e2b26;stroke:#fff;stroke-width:2}
.carte-livraison .ville text{font:700 22px "Open Sans",sans-serif;fill:#2e2b26}
.carte-livraison .ville--emeraude circle{fill:#fff;stroke:#2e2b26;stroke-width:2.5}
.carte-livraison .depot circle{fill:#2e2b26;stroke:#fff;stroke-width:2.5}
.carte-livraison .depot .coeur{fill:#ff8703;stroke:none}
.carte-livraison .depot text{font:700 19px Oswald,"Arial Narrow",sans-serif;fill:#2e2b26;text-transform:uppercase;letter-spacing:.02em}
.carte-livraison .depot .sous{font:600 13px "Open Sans",sans-serif;text-transform:none}

/* Accueil : la carte prend un peu plus de place que la liste des secteurs (Jones, 2026-11-11) */
@media (min-width: 900px) { .grid--carte { grid-template-columns: 2fr 3fr; align-items: start; } .grid--carte figure.carte { margin: 0; } }

/* ---------- Réglages de lisibilité du 13 novembre 2026 (Lionel) ---------- */
html[data-theme="dark"] main img, html[data-theme="dark"] main video { filter: brightness(0.9); }
html[data-theme="dark"] .carte, html[data-theme="dark"] .map-figure { filter: brightness(0.8); }
html[data-theme="dark"] .carte img, html[data-theme="dark"] .map-figure img { filter: none; }
.wrap > p, .wrap > ul:not([class]), .wrap > ol:not([class]) { max-width: 72ch; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--link); text-decoration: underline; }
.card .price small { font-size: 0.9rem; }
@media (max-width: 600px) {
  .grid--produits { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .grid--produits > .card { padding: 0.75rem; grid-row: span 3; }
  .grid--produits .card picture { margin: -0.75rem -0.75rem 0.5rem; }
  .grid--produits .card picture img { aspect-ratio: 4 / 3; }
  .grid--produits .card > p:not(.price) { display: none; }
  .grid--produits .card > .btn { display: none; }
  .grid--produits .card .price { font-size: 1.25rem; }
  .grid--produits .card .price .livre { font-size: 1rem; }
}
