/* =========================================================
   Flamme Diffusion — design system
   Direction : clair, éditorial, chaleureux — dans l'esprit Ember.
   Serif fine capitale (Cormorant) + sans humaniste (Public Sans).
   La couleur et la chaleur viennent des photos, pas de blocs teintés.
   ========================================================= */

:root {
  --paper: #fbfaf7;
  --paper-alt: #f3ede2;
  --white: #ffffff;

  --ink: #18140f;
  --ink-muted: #6c6255;
  --line: rgba(24, 20, 15, 0.13);

  --camel: #c6a877;
  --camel-dark: #a98a5c;

  --ember: #b5541f;

  --footer-bg: #1b1712;
  --footer-text: #eee4d2;
  --footer-text-muted: #a89880;

  --font-display: 'Cormorant', Georgia, serif;
  --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-pill: 999px;
  --radius-sm: 2px;
  --radius-md: 4px;
  --max-width: 1220px;

  /* Échelle typographique (voir revue typo) */
  --fs-hero: 44px;
  --fs-section: 38px;
  --fs-item: 32px;
  --fs-small-title: 26px;
  --fs-lg: 18px;
  --fs-body: 16.5px;
  --fs-sm: 14px;
  --fs-xs: 12.5px;
  --fs-note: 13.5px; /* petits textes gris : légendes, mentions */
  --caps-spacing: 0.06em;

  /* Échelle d'espacement (voir revue des espacements) */
  --sp-4: 4px;    /* légende → valeur, titre → ligne d'info */
  --sp-8: 8px;    /* libellé → champ, titre → slogan */
  --sp-16: 16px;  /* titre → texte */
  --sp-24: 24px;  /* texte → bloc suivant, lignes de formulaire */
  --sp-32: 32px;  /* filet entre deux modèles / marques */
  --sp-48: 48px;  /* titre de section → contenu, colonnes, image ↔ texte */
  --page-top: 64px; /* menu → titre des pages intérieures */
}
@media (max-width: 640px) {
  :root { --page-top: 48px; --fs-hero: 30px; --fs-section: 28px; --fs-item: 26px; --fs-small-title: 22px; --fs-lg: 17px; }
}
strong, b { font-weight: 600; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ===== Transition entre les pages =====
   Chrome/Edge : API View Transitions native (aucun JS), fondu enchaîné.
   Firefox et autres navigateurs sans support natif : repli en JS (voir
   main.js) qui applique le même fondu via ces classes avant de naviguer. */
@view-transition {
  navigation: auto;
}

@keyframes page-fade-out {
  to { opacity: 0; }
}
@keyframes page-fade-in {
  from { opacity: 0; }
}

::view-transition-old(root) {
  animation: 200ms ease-out both page-fade-out;
}
::view-transition-new(root) {
  animation: 220ms ease-in both page-fade-in;
}

/* Repli JS (navigateurs sans View Transitions) */
.js-page-fade-out { animation: 180ms ease-out both page-fade-out; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: var(--fs-body);
  /* Pied de page collé en bas de l'écran quand la page est courte (ex. page 404) */
  display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh;
}
main { flex: 1 0 auto; }

p { text-align: justify; }

h1, h2 {
  font-family: var(--font-display);
  line-height: 1.08;
  margin: 0 0 var(--sp-16);
  color: var(--ink);
}

h1 {
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.045em;
  font-size: var(--fs-section);
}

h2 {
  font-weight: 400;
  font-size: var(--fs-section);
}

h3 {
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--caps-spacing);
  font-size: var(--fs-sm);
  line-height: 1.4;
  margin: 0 0 0.6em;
  color: var(--ink);
}

p { margin: 0 0 1em; max-width: 68ch; color: var(--ink-muted); }
p:where(.hero__lead, .page-header__lead) { color: inherit; }

a { color: var(--ember); }
img, svg { max-width: 100%; height: auto; display: block; }

:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }

.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 28px; }
.wrap--narrow { max-width: 760px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ===== Boutons pilule ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--caps-spacing);
  font-size: var(--fs-xs);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn--primary { background: var(--camel); color: var(--ink); }
.btn--primary:hover { background: var(--camel-dark); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

.btn--small { padding: 10px 20px; font-size: var(--fs-xs); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

body.has-transparent-header .site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  background: transparent;
  border-bottom-color: transparent;
  color: #fff;
}
body.has-transparent-header .site-header.is-scrolled {
  position: fixed;
  background: rgba(251, 250, 247, 0.96);
  backdrop-filter: blur(6px);
  border-bottom-color: var(--line);
  color: var(--ink);
}

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 84px;
  gap: 20px;
}

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav--right { justify-content: flex-end; }

.site-nav a {
  color: inherit;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: var(--caps-spacing);
  font-size: var(--fs-xs);
  font-weight: 600;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  opacity: 0.92;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}
.site-nav a:hover, .site-nav a.is-active { opacity: 1; border-bottom-color: currentColor; }

.brand { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.brand__logo { height: 64px; width: auto; display: block; }
@media (max-width: 880px) { .brand__logo { height: 52px; } }

/* Deux fichiers distincts (le mot "Diffusion" change de couleur selon le fond) plutôt
   qu'un filtre CSS, pour rester fidèle au vrai logo à deux couleurs. */
.brand__logo--on-dark { display: none; }
.brand__logo--on-light { display: block; }

body.has-transparent-header .site-header:not(.is-scrolled) .brand__logo--on-dark { display: block; }
body.has-transparent-header .site-header:not(.is-scrolled) .brand__logo--on-light { display: none; }

.menu-toggle {
  display: none;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 2px;
  color: inherit;
}
.menu-toggle__bars { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 24px; height: 18px; }
.menu-toggle__bars span { height: 1px; width: 100%; background: currentColor; display: block; transition: transform 0.25s ease, opacity 0.2s ease; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== Menu mobile (généré depuis data/nav.json) ===== */
.nav-overlay { position: fixed; inset: 0; z-index: 100; }
.nav-overlay[hidden] { display: none; }

.nav-overlay__backdrop {
  position: absolute; inset: 0;
  background: rgba(24, 20, 15, 0.4);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.nav-overlay.is-open .nav-overlay__backdrop { opacity: 1; }

.nav-overlay__panel {
  position: absolute;
  top: 0; left: 0; right: 0;
  max-height: 100%;
  background: var(--white);
  box-shadow: 0 30px 60px rgba(24, 20, 15, 0.18);
  display: flex;
  flex-direction: column;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto;
}
.nav-overlay.is-open .nav-overlay__panel { transform: translateY(0); }

/* Même grille et même hauteur que l'en-tête : logo et bouton restent exactement au même endroit. */
.nav-overlay__top {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
  width: 100%; height: 84px; flex-shrink: 0; border-bottom: 1px solid var(--line);
}
.nav-overlay__top .brand { grid-column: 2; }

/* Les 3 barres du bouton « menu » se transforment en croix à l'ouverture. */
.nav-overlay__close {
  grid-column: 3; justify-self: end;
  display: flex; align-items: center; background: none; border: none; padding: 8px 2px;
  color: var(--ink); cursor: pointer;
}
.nav-overlay.is-open .nav-overlay__close .menu-toggle__bars span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-overlay.is-open .nav-overlay__close .menu-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-overlay.is-open .nav-overlay__close .menu-toggle__bars span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-overlay__nav { padding: 30px 24px 44px; flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.nav-overlay__list { list-style: none; margin: 0; padding: 0; width: 100%; max-width: 480px; }

.nav-overlay__list li {
  border-top: 1px solid var(--line);
  opacity: 0; transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  transition-delay: calc(var(--i) * 55ms);
}
.nav-overlay__list li:first-child { border-top: none; }
.nav-overlay__list li:last-child { border-bottom: 1px solid var(--line); }
.nav-overlay.is-open .nav-overlay__list li { opacity: 1; transform: none; }

.nav-overlay__list a {
  display: block; padding: 18px 2px; text-decoration: none;
  color: var(--ink); font-family: var(--font-display);
  text-transform: uppercase; letter-spacing: 0.04em;
  font-size: var(--fs-small-title); transition: color 0.15s ease;
}
.nav-overlay__list a:hover, .nav-overlay__list a.is-active { color: var(--ember); }

/* ===== Hero plein écran (photo) ===== */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  padding: 150px 0 110px;
}

.hero__bg { position: absolute; inset: 0; z-index: 0; background: #2a1f16; }
.hero__bg picture { display: block; width: 100%; height: 100%; }
.hero__bg-img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }

.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to top, rgba(12, 8, 5, 0.78) 0%, rgba(12, 8, 5, 0.32) 42%, rgba(12, 8, 5, 0.05) 65%),
    linear-gradient(to bottom, rgba(10, 7, 4, 0.45) 0%, rgba(10, 7, 4, 0) 22%);
}

.hero__inner { position: relative; z-index: 2; width: 100%; }
.hero__content { text-align: center; }
.hero h1 { color: #fff; font-size: var(--fs-hero); }

.hero__lead {
  color: rgba(255, 255, 255, 0.88);
  font-size: var(--fs-lg);
  max-width: none;
  text-align: center;
  margin: 0 0 var(--sp-32);
}

.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.hero .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.hero .btn--ghost:hover { background: #fff; color: var(--ink); }

.hero__scroll-cue {
  position: absolute; z-index: 2; bottom: 32px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px; display: flex; justify-content: center; padding-top: 8px;
}
.hero__scroll-cue span { width: 4px; height: 4px; border-radius: 50%; background: #fff; animation: scrollCue 1.8s ease-in-out infinite; }

@keyframes scrollCue {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 0; transform: translateY(14px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__scroll-cue span { animation: none; }
  html { scroll-behavior: auto; }
  .nav-overlay, .nav-overlay__list li, .site-header { transition: none !important; }
}

/* ===== Sections génériques ===== */
.section { padding: 100px 0; }
.section--muted { background: var(--paper-alt); }

.page-header { padding: var(--page-top) 0 8px; background: var(--paper); }

/* ===== Rythme vertical : 88 px entre deux sections (72 px sur mobile) =====
   Chaque section porte l'espace sous elle ; la suivante démarre sans marge haute.
   Sélecteurs volontairement plus spécifiques que .section / .page-header / .cta-banner. */
:root { --section-gap: 88px; }
main > section:not(.hero) { padding-bottom: var(--section-gap); }
main > section:not(.hero) + section { padding-top: 0; }
main > .hero + section { padding-top: var(--section-gap); }
main > section.cta-banner { padding-bottom: 80px; }
.page-header .wrap > :last-child { margin-bottom: 0; }
.page-header__lead { color: var(--ink-muted); max-width: 60ch; font-size: var(--fs-lg); }
.page-header__lead--wide { max-width: none; text-align: center; }

/* Titre masqué et aucun texte d'intro : pas besoin de garder l'espace réservé au grand titre */
.page-header:has(h1.visually-hidden):not(:has(.page-header__lead)) { padding: 0; }

/* Pages légales : titre visible, centré, plus discret que le grand titre habituel */
.page-header--center { text-align: center; }
.page-header--center h1 { font-size: var(--fs-section); }

/* Titre conservé pour le SEO et les lecteurs d'écran, retiré de l'affichage */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section-heading {
  display: flex; justify-content: space-between; align-items: baseline;
  flex-wrap: wrap; gap: 16px; margin-bottom: 48px; padding-bottom: 22px; border-bottom: 1px solid var(--line);
}

.link-more {
  color: var(--ember); text-decoration: none; border-bottom: 1px solid currentColor;
  font-weight: 600; text-transform: uppercase; letter-spacing: var(--caps-spacing); font-size: var(--fs-xs); padding-bottom: 2px;
}
.link-more:hover { opacity: 0.75; }

/* ===== Nos 3 engagements (accueil) ===== */
.commitments { display: grid; grid-template-columns: repeat(3, 1fr); }
.commitment { padding: 8px 44px 0; text-align: center; border-left: 1px solid var(--line); }
.commitment:first-child { border-left: none; }
.commitment__title {
  font-family: var(--font-display); font-weight: 400; font-size: var(--fs-small-title);
  text-transform: none; letter-spacing: 0; line-height: 1.2; margin: 0 0 var(--sp-16);
}
.commitment__title::before { content: ''; display: block; width: 36px; height: 2px; margin: 0 auto var(--sp-24); background: var(--camel); }
.commitment p { margin: 0 auto; text-align: center; }
@media (max-width: 880px) {
  .commitments { grid-template-columns: 1fr; }
  .commitment { padding: var(--sp-16) 0; border-left: none; }
  .commitment__title::before { margin-bottom: var(--sp-16); }
  .commitment:first-child { padding-top: 0; }
  .commitment:first-child .commitment__title::before { display: none; }
  .commitment:last-child { padding-bottom: 0; }
}

/* ===== Intro "Qui sommes-nous" — plus large que le paragraphe standard (68ch) ===== */
.about-intro p { max-width: none; }

/* ===== Chiffres clés (page "Qui sommes-nous") ===== */
.stats-heading { text-align: center; margin-bottom: var(--sp-48); }
@media (max-width: 640px) { .stats-heading { margin-bottom: var(--sp-32); } }
.stats-heading__rule { position: relative; }
.stats-heading__rule::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--line); }
.stats-heading__rule h2 { position: relative; display: inline-block; margin: 0; padding: 0 28px; background: var(--paper); }
.stats-heading__subtitle { margin: var(--sp-16) auto 0; color: var(--ink-muted); font-size: var(--fs-sm); text-align: center; }

.stats-row { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-32) var(--sp-48); }
.stat { display: flex; flex-direction: column; align-items: center; gap: var(--sp-16); width: 200px; text-align: center; }
.stat__icon { flex-shrink: 0; height: 52px; display: flex; align-items: center; justify-content: center; }
.stat__icon img { height: 52px; width: auto; }
.stat__number { display: block; font-family: var(--font-body); font-variant-numeric: tabular-nums; font-size: var(--fs-hero); color: var(--ember); line-height: 1; }
.stat__label { display: block; font-size: var(--fs-note); color: var(--ink-muted); text-transform: uppercase; letter-spacing: var(--caps-spacing); text-align: center; }
/* Mobile et tablette : 2 chiffres par ligne (2 lignes de 2) */
@media (max-width: 960px) {
  .stats-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-32) var(--sp-24); max-width: 560px; margin: 0 auto; }
  .stat { width: auto; }
}
@media (max-width: 640px) {
  .stats-row { gap: var(--sp-32) var(--sp-16); }
  .stat { gap: var(--sp-8); }
  .stat__icon, .stat__icon img { height: 44px; }
  /* Légendes sur 2 lignes max : en majuscules, « D'expérience dans le domaine de la biomasse » ne tient pas */
  .stat__label { font-size: var(--fs-xs); text-transform: none; letter-spacing: 0; }
}

/* ===== Produits phares — accueil : une ligne par marque, défilement si plusieurs modèles ===== */
/* clip : l'animation d'entrée décale les lignes horizontalement, sans créer de défilement de page */
.product-showcase-list { overflow-x: clip; }

.product-group { padding: var(--sp-32) 0; border-bottom: 1px solid var(--line); }
.product-group:first-child { padding-top: 0; }
.product-group:last-child { padding-bottom: 0; border-bottom: none; }

.product-group__track {
  display: flex; gap: 48px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.product-group__track::-webkit-scrollbar { display: none; }
.product-group__track > .product-showcase { flex: 0 0 100%; scroll-snap-align: start; }

/* Sur mobile, la liste des marques devient un carrousel (une marque par diapositive) */
.product-group__controls.product-showcase-list__controls { display: none; }
@media (max-width: 640px) {
  .product-showcase-list {
    display: flex; gap: var(--sp-24); align-items: flex-start;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
    scrollbar-width: none; overscroll-behavior-x: contain;
  }
  .product-showcase-list::-webkit-scrollbar { display: none; }
  .product-showcase-list > .product-group,
  .product-showcase-list > .product-group:first-child,
  .product-showcase-list > .product-group:last-child { flex: 0 0 100%; scroll-snap-align: start; padding: 0; border-bottom: none; }
  .product-group__controls.product-showcase-list__controls { display: flex; }
  /* Carrousel mobile : fiches allégées, sans la description */
  .product-showcase__content > p { display: none; }
  /* Logo et nom centrés ; nom sur une seule ligne, même taille pour tous (calée sur le nom le plus long) */
  .product-showcase-list .product-showcase__content .product-showcase__logo { margin-left: auto; margin-right: auto; }
  .product-showcase-list .product-showcase__content .product-showcase__brand { text-align: center; }
  .product-showcase-list .product-showcase__content h3 { text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: min(18px, calc((100vw - 56px) / 19)); }

  /* Caractéristiques posées sur le bas de la photo (fait en CSS, photos non retouchées).
     La fiche devient une grille d'une colonne ; le bloc texte est « dissous » (display: contents)
     pour que ses éléments se placent dans cette grille : photo et caractéristiques partagent la ligne 1. */
  .product-showcase-list .product-showcase { row-gap: 0; }
  .product-showcase-list .product-showcase__content { display: contents; }
  .product-showcase-list .product-showcase__visual { grid-row: 1; grid-column: 1; position: relative; margin-bottom: var(--sp-24); }
  /* Dégradé noir : 80 % en bas de la photo, 0 au tiers de sa hauteur (en partant du bas) */
  .product-showcase-list .product-showcase__visual::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 33.333%);
  }
  .product-showcase-list .product-specs {
    grid-row: 1; grid-column: 1; align-self: end; position: relative; z-index: 1;
    margin: 0 0 var(--sp-24); padding: 0 var(--sp-8) 10px; border: 0;
    gap: 0 var(--sp-8); text-align: center; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
  }
  .product-showcase-list .product-specs__icon { margin: 0 auto 2px; width: 20px; height: 20px; color: var(--camel); filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.6)); }
  .product-showcase-list .product-specs dt { color: rgba(255, 255, 255, 0.92); font-size: var(--fs-xs); }
  .product-showcase-list .product-specs dd { margin-top: 2px; color: #fff; font-size: 15px; line-height: 1.2; }
}

.product-group__controls { display: flex; align-items: center; justify-content: center; gap: var(--sp-16); margin-top: var(--sp-32); }
.product-group__arrow {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--ink); background: transparent; color: var(--ink);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.product-group__arrow:hover { background: var(--ink); color: var(--paper); }
/* Points : zone tactile de 24 px, point visible de 9 px */
.product-group__dots { display: flex; gap: 0; }
.product-group__dot { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.product-group__dot::before { content: ''; width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--camel-dark); box-sizing: border-box; }
.product-group__dot[aria-current="true"]::before { background: var(--camel-dark); }
@media (max-width: 360px) {
  .product-group__controls { gap: 6px; }
  .product-group__counter { min-width: 0; }
}
.product-group__counter { min-width: 3.2em; text-align: center; font-size: var(--fs-sm); color: var(--ink-muted); font-variant-numeric: tabular-nums; }

.product-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.product-showcase--reverse .product-showcase__visual { order: 2; }
.product-showcase--reverse .product-showcase__content { order: 1; }

.product-showcase__visual {
  aspect-ratio: 4 / 3;
  background: var(--paper-alt);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--ink-muted);
}
.product-showcase__visual span { font-size: var(--fs-note); }
.product-showcase__visual picture { display: block; width: 100%; height: 100%; }
.product-showcase__img { width: 100%; height: 100%; object-fit: cover; }

.product-showcase__brand { display: block; font-size: var(--fs-xs); color: var(--ember); font-weight: 600; text-transform: uppercase; letter-spacing: var(--caps-spacing); margin-bottom: 8px; }
.product-showcase__logo { height: 44px; width: auto; margin-bottom: var(--sp-16); }
/* Hauteurs ajustées pour que chaque logo occupe une surface visible comparable,
   malgré des proportions (de 1,7:1 à 11:1) et des marges internes très différentes. */
.product-showcase__logo--morso { height: 66px; }
.product-showcase__logo--becafire { height: 30px; }
.product-showcase__logo--jacobus { height: 26px; }
.product-showcase__logo--fireplace { height: 64px; }
.product-showcase__logo--fogo-vivo { height: 42px; }
.product-showcase__content h3 { font-family: var(--font-body); font-weight: 400; font-size: var(--fs-small-title); line-height: 1.15; letter-spacing: 0; text-transform: none; margin-bottom: var(--sp-16); }
.product-showcase__content p { margin: 0; max-width: 52ch; }
.product-specs { display: grid; grid-template-columns: repeat(2, max-content); gap: var(--sp-24) var(--sp-48); margin: var(--sp-24) 0 0; padding-top: var(--sp-24); border-top: 1px solid var(--line); }
.product-specs__item { position: relative; padding-left: 42px; }
.product-specs dt { font-size: var(--fs-note); color: var(--ink-muted); }
.product-specs__icon { position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; color: var(--camel-dark); }
@media (max-width: 640px) {
  .product-specs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-16) 12px; margin-top: var(--sp-24); padding-top: 0; border-top: none; }
  .product-specs__item { padding-left: 0; }
  .product-specs__icon { position: static; transform: none; display: block; width: 22px; height: 22px; margin-bottom: 6px; }
}
.product-specs dd { margin: var(--sp-4) 0 0; font-family: var(--font-body); font-size: var(--fs-lg); line-height: 1.1; color: var(--ink); }
.product-showcase__links { display: flex; flex-wrap: wrap; gap: var(--sp-8) var(--sp-24); margin-top: var(--sp-24); }

.brand-card__pending { display: inline-block; font-size: var(--fs-sm); font-style: italic; color: var(--ink-muted); }

/* ===== Marques — page dédiée : plaques alternées ===== */

.brand-row { display: grid; grid-template-columns: 230px 1fr; gap: var(--sp-48); align-items: start; padding: var(--sp-32) 0; border-top: 1px solid var(--line); }
.brand-row:first-child { border-top: none; padding-top: 0; }
.brand-row:last-child { padding-bottom: 0; }
.brand-row__content > .link-more { display: block; width: fit-content; }

.brand-row__mark { position: relative; width: 100%; height: 132px; background: var(--white); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; padding: 20px; }
.brand-row__mark::before, .brand-row__mark::after { content: ''; position: absolute; top: 0; left: 0; background: var(--camel); }
.brand-row__mark::before { width: 22px; height: 2px; }
.brand-row__mark::after { width: 2px; height: 22px; }

.brand-row__logo-img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
/* Logo Jacobus très allongé : marges latérales réduites pour qu'il ne paraisse pas minuscule */
.brand-row__mark--jacobus { padding-left: 8px; padding-right: 8px; }
.brand-row__initials { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 2.3rem; color: #fff; }

.brand-row__content h2 { margin-bottom: var(--sp-8); text-transform: none; font-size: var(--fs-item); }
.brand-row__tagline { color: var(--ember); font-weight: 600; text-transform: uppercase; letter-spacing: var(--caps-spacing); font-size: var(--fs-xs); margin-bottom: var(--sp-16); }
.brand-row__history { max-width: none; margin-bottom: var(--sp-24); }

/* Apparition au scroll : gérée entièrement en JS (styles injectés en ligne), voir main.js */

/* ===== Timeline (parcours) ===== */
.section-intro { color: var(--ink-muted); margin-bottom: 40px; max-width: 60ch; }

/* ===== Catalogues ===== */
.catalog-list { list-style: none; margin: 0; padding: 0; }
/* Un bloc par marque : logo à gauche, ses catalogues empilés à droite */
.catalog-item { display: flex; align-items: flex-start; gap: var(--sp-24); padding: var(--sp-24) 0; border-top: 1px solid var(--line); }
.catalog-item:first-child { border-top: none; padding-top: 0; }
.catalog-item:last-child { padding-bottom: 0; }

.catalog-item__mark { position: relative; flex-shrink: 0; width: 104px; height: 76px; background: var(--white); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; padding: 10px; }
.catalog-item__mark::before, .catalog-item__mark::after { content: ''; position: absolute; top: 0; left: 0; background: var(--camel); }
.catalog-item__mark::before { width: 14px; height: 2px; }
.catalog-item__mark::after { width: 2px; height: 14px; }

.catalog-item__logo-img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.catalog-item__mark--jacobus { padding-left: 4px; padding-right: 4px; }
.catalog-item__initials { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 1.3rem; color: #fff; }

.catalog-item__entries { flex: 1; min-width: 0; list-style: none; margin: 0; padding: 0; }
/* Chaque catalogue : même hauteur que le logo, pour que le premier soit centré face à lui */
.catalog-entry { display: flex; align-items: center; gap: var(--sp-24); min-height: 76px; }
.catalog-entry + .catalog-entry { margin-top: var(--sp-16); padding-top: var(--sp-16); border-top: 1px dashed var(--line); }

.catalog-item__info { flex: 1; min-width: 0; }
/* Titre de niveau 2 pour la structure de la page, au rendu identique aux petits titres (h3) */
.catalog-item__title {
  font-family: var(--font-body); font-weight: 600; text-transform: uppercase; letter-spacing: var(--caps-spacing);
  font-size: var(--fs-sm); line-height: 1.4; color: var(--ink); margin: 0 0 var(--sp-4);
}
.catalog-item__info p { margin: 0; color: var(--ink-muted); font-size: var(--fs-sm); }

.catalog-item__actions { display: flex; gap: var(--sp-8); flex-shrink: 0; }

@media (max-width: 640px) {
  /* Mobile : logo au-dessus, puis chaque catalogue (titre puis boutons) sur toute la largeur */
  .catalog-item { flex-direction: column; gap: var(--sp-16); }
  .catalog-item__entries { width: 100%; }
  .catalog-entry { flex-wrap: wrap; row-gap: var(--sp-16); min-height: 0; }
  .catalog-item__actions { width: 100%; }
  .catalog-item__actions .btn { flex: 1; justify-content: center; min-width: 0; }
  .catalog-item__mark { width: 88px; }
}
@media (max-width: 360px) {
  .catalog-item__actions .btn { padding-left: 10px; padding-right: 10px; }
}

/* ===== Contact ===== */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-48); align-items: start; }
.contact-form { display: flex; flex-direction: column; gap: var(--sp-24); }
.form-row { display: flex; flex-direction: column; gap: var(--sp-8); position: relative; }
.form-row[hidden] { display: none; }
.form-row label { font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: var(--caps-spacing); }
.form-row .optional { font-size: var(--fs-note); font-weight: 400; text-transform: none; letter-spacing: normal; color: var(--ink-muted); }

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row input[type="url"],
.form-row select,
.form-row textarea {
  font-family: var(--font-body); font-size: var(--fs-body); padding: 12px 14px; border: none;
  border-bottom: 1px solid var(--line); background: var(--white); color: var(--ink); border-radius: var(--radius-sm);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-bottom-color: var(--ember); }
.form-row select { appearance: none; cursor: pointer; }
.form-row select:invalid { color: var(--ink-muted); }

.form-row input[type="file"] {
  font-family: var(--font-body); font-size: var(--fs-sm); color: var(--ink-muted);
  padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--white); border-radius: var(--radius-sm);
}
.form-hint { font-size: var(--fs-note); color: var(--ink-muted); font-weight: 400; text-transform: none; letter-spacing: normal; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-24); }

/* Bascule Particulier / Professionnel */
.profile-toggle { display: flex; gap: 10px; flex-wrap: wrap; }
.profile-toggle__option {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: 10px 18px; cursor: pointer; font-size: var(--fs-xs); color: var(--ink-muted);
  text-transform: none; letter-spacing: normal; font-weight: 400;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.profile-toggle__option input { accent-color: var(--ember); margin: 0; }
.profile-toggle__option:has(input:checked) {
  background: var(--ink); border-color: var(--ink); color: var(--paper);
}
.profile-toggle__option:has(input:checked) input { accent-color: var(--paper); }

/* Marques : pastilles à cocher */
.brand-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.brand-pill {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: 9px 16px; cursor: pointer; font-size: var(--fs-xs); color: var(--ink-muted);
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.brand-pill input { accent-color: var(--ember); margin: 0; }
.brand-pill:hover { border-color: var(--ember); color: var(--ink); }
.brand-pill:has(input:checked) { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.brand-pill:has(input:checked) input { accent-color: var(--paper); }

/* Suggestions de ville (auto-complétion code postal) */
.city-suggestions {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 5; margin: 4px 0 0; padding: 0;
  list-style: none; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-sm); box-shadow: 0 12px 28px rgba(24, 20, 15, 0.14);
  max-height: 220px; overflow-y: auto;
}
.city-suggestions li { border-top: 1px solid var(--line); }
.city-suggestions li:first-child { border-top: none; }
.city-suggestions button {
  display: block; width: 100%; text-align: left; background: none; border: none;
  padding: 10px 14px; font-family: var(--font-body); font-size: var(--fs-sm); color: var(--ink); cursor: pointer;
}
.city-suggestions button:hover { background: var(--paper-alt); }

/* Case RGPD */
.form-row .consent-row {
  display: flex; align-items: flex-start; gap: 10px; cursor: pointer;
  text-transform: none; letter-spacing: normal; font-weight: 400;
}
.consent-row input { accent-color: var(--ember); margin-top: 3px; flex-shrink: 0; }
.consent-row span { font-size: var(--fs-sm); color: var(--ink-muted); }

.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-info { position: relative; overflow: hidden; width: max-content; max-width: 100%; background: var(--paper-alt); color: var(--ink-muted); padding: 32px 40px; border-radius: var(--radius-sm); border-top: 2px solid var(--camel); }
.contact-info::after { content: ''; position: absolute; right: -60px; bottom: -70px; width: 320px; height: 320px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none'%3E%3Cpath d='M24 6c4 6-4 8-4 14a8 8 0 1 0 16 0c0-3-2-5-3-7 1 5-2 6-3 4-1-3 1-5-1-9-1 3-3 4-5-2Z' stroke='%23a98a5c' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain; opacity: 0.08; pointer-events: none; }
.contact-info > :not(.visually-hidden) { position: relative; z-index: 1; }
.contact-info__logo { display: block; width: auto; height: 56px; margin: 0 auto var(--sp-16); }
.contact-info__social { display: flex; justify-content: center; gap: 12px; margin-bottom: var(--sp-48); }
.contact-info__social-link { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--paper); color: var(--ember); box-shadow: 0 0 0 1px var(--line); transition: background-color 0.15s ease, color 0.15s ease; }
.contact-info__social-link:hover, .contact-info__social-link:focus-visible { background: var(--ember); color: #fff; }
.contact-info__list { list-style: none; margin: 0; padding: 0; }
.contact-info__item { display: flex; gap: var(--sp-16); padding: var(--sp-24) 0; border-top: 1px solid var(--line); }
.contact-info__item:first-child { padding-top: 0; border-top: none; }
.contact-info__item:last-child { padding-bottom: 0; }
.contact-info__icon { flex-shrink: 0; width: 26px; height: 26px; margin-top: 2px; color: var(--camel-dark); }
.contact-info__label { margin: 0 0 var(--sp-4); font-family: var(--font-body); font-size: var(--fs-lg); font-weight: 600; line-height: 1.4; letter-spacing: 0; text-transform: none; color: var(--ink); }
.contact-info p { margin: 0; color: var(--ink-muted); text-align: left; }
.contact-info__map-link { color: inherit; text-decoration: none; }
.contact-info__map-link:hover, .contact-info__map-link:focus-visible { color: var(--ember); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) { .contact-layout .contact-info { width: auto; justify-self: stretch; padding: 28px 24px; } }

.alert { padding: 16px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: var(--fs-sm); }
.alert ul { margin: 0; padding-left: 20px; }
.alert--success { background: #e4ead9; color: #33431f; border: 1px solid #c1cfa8; }
.alert--error { background: #f3ded0; color: #7a3612; border: 1px solid #e0b494; }

/* ===== Bandeau CTA ===== */
/* Même signature que « Nos 3 engagements » : titre centré entre deux filets. */
.cta-banner { position: relative; background: var(--paper); text-align: center; }
.cta-banner h2 { display: flex; align-items: center; gap: 28px; margin: 0 0 32px; text-transform: none; }
.cta-banner h2::before, .cta-banner h2::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.cta-banner p { max-width: none; margin: 0 auto var(--sp-24); text-align: center; }
@media (max-width: 640px) {
  main > section.cta-banner { padding-bottom: 64px; }
  .cta-banner h2 { gap: 12px; font-size: clamp(1rem, calc((100vw - 136px) / 13), 1.5rem); white-space: nowrap; }
  .cta-banner h2::before, .cta-banner h2::after { min-width: 16px; }
}

/* ===== Footer ===== */
.site-footer { background: var(--footer-bg); color: var(--footer-text-muted); padding: 64px 0 0; }
.site-footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; padding-bottom: 40px; }
.site-footer__logo { height: 48px; width: auto; display: block; margin-bottom: 16px; opacity: 0.95; }
.site-footer__text { font-size: var(--fs-sm); color: var(--footer-text-muted); text-align: left; }

.site-footer__heading { display: block; font-size: var(--fs-xs); color: var(--footer-text); text-transform: uppercase; letter-spacing: var(--caps-spacing); font-weight: 600; margin-bottom: 16px; }
.site-footer__social { display: flex; gap: 14px; }
.site-footer__col--social { display: flex; flex-direction: column; align-items: center; }
.site-footer__social-link {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(238, 228, 210, 0.25);
  color: var(--footer-text-muted); transition: border-color 0.15s ease, color 0.15s ease;
}
.site-footer__social-link:hover { color: var(--footer-text); border-color: var(--camel); }

.site-footer__bottom { border-top: 1px solid rgba(238, 228, 210, 0.12); padding: 20px 0; }
.site-footer__bottom .site-footer__text { margin: 0; font-size: var(--fs-note); }
.site-footer__bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 24px; }

.site-footer__legal-nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer__legal-nav a { color: var(--footer-text-muted); text-decoration: none; font-size: var(--fs-note); }
.site-footer__legal-nav a:hover { color: var(--footer-text); }

.error-page { text-align: center; padding: 130px 0; }
.error-page p { margin-left: auto; margin-right: auto; text-align: center; }
/* Message centré verticalement entre le menu et le pied de page */
main:has(> .error-page) { display: flex; flex-direction: column; justify-content: center; }

.legal-content h2 {
  text-transform: none;
  font-size: var(--fs-small-title);
  margin-top: 2.2em;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { margin-top: 1.8em; color: var(--ember); }
.legal-content ul { margin: 0 0 1em; padding-left: 1.3em; }
.legal-content li { margin-bottom: 0.4em; }

/* ===== Accordéon (pages légales) ===== */
.accordion { border-top: 1px solid var(--line); }
.accordion__item { border-bottom: 1px solid var(--line); }

.accordion__summary {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px 4px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-lg);
  color: var(--ink);
}
.accordion__summary::-webkit-details-marker { display: none; }

.accordion__summary::before {
  content: '+';
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  line-height: 1;
}
.accordion__item[open] > .accordion__summary::before { content: '−'; }
.accordion__item[open] > .accordion__summary { border-bottom: 1px solid var(--line); }

.accordion__panel { padding: 8px 4px 32px 48px; }
.accordion__panel > *:first-child { margin-top: 0; }
body.no-scroll { overflow: hidden; }

/* ===== Feuilletage en ligne des catalogues (Heyzine, en iframe) ===== */
.viewer-modal { position: fixed; inset: 0; z-index: 210; display: flex; align-items: center; justify-content: center; padding: 0; }
.viewer-modal[hidden] { display: none; }
.viewer-modal__backdrop { position: absolute; inset: 0; background: rgba(24, 20, 15, 0.8); }
.viewer-modal__panel { position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; height: 100dvh; overflow: hidden; background: var(--paper); border-top: 2px solid var(--camel); border-radius: 0; box-shadow: 0 30px 70px rgba(24, 20, 15, 0.4); }
.viewer-modal__header { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-16); padding: 6px var(--sp-24); border-bottom: 1px solid var(--line); flex-shrink: 0; }
.viewer-modal__header h2 { margin: 0; font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 600; text-transform: uppercase; letter-spacing: var(--caps-spacing); }
.viewer-modal__close { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.viewer-modal__close:hover, .viewer-modal__close:focus-visible { background: var(--paper-alt); }
.viewer-modal__body { flex: 1; min-height: 0; }
.viewer-modal__iframe { display: block; width: 100%; height: 100%; border: 0; background: var(--paper-alt); }
@media (max-width: 640px) {
  .viewer-modal__header { padding: 4px var(--sp-16); }
}

/* ===== Actualités ===== */
.news-list { list-style: none; margin: 0; padding: 0; }
.news-item { padding: 40px 0; border-top: 1px solid var(--line); }
.news-item:first-child { border-top: none; padding-top: 0; }
.news-item__date { display: block; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: var(--caps-spacing); color: var(--ember); font-weight: 600; margin-bottom: 10px; }
.news-item__title { margin-bottom: 10px; text-transform: none; }
.news-item__excerpt { margin: 0; max-width: 64ch; }

/* ===== Installations ===== */
.install-cta-text { max-width: 56ch; margin: 0; color: var(--ink-muted); }

/* ===== Formulaire modal : proposer une installation ===== */
.submit-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; }
.submit-modal[hidden] { display: none; }
.submit-modal__backdrop { position: absolute; inset: 0; background: rgba(24, 20, 15, 0.6); }

.submit-modal__panel {
  position: relative; background: var(--paper); border-top: 3px solid var(--camel);
  border-radius: var(--radius-md); width: min(680px, 100%); max-height: min(90vh, 900px);
  overflow-y: auto; box-shadow: 0 30px 70px rgba(24, 20, 15, 0.3); display: flex; flex-direction: column;
}

.submit-modal__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 28px 32px 0; flex-shrink: 0; }
.submit-modal__header h2 { margin-bottom: 8px; font-size: clamp(1.3rem, 2vw, 1.6rem); text-transform: none; }
.submit-modal__intro { max-width: 56ch; margin: 0; font-size: var(--fs-sm); color: var(--ink-muted); }

.submit-modal__close {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; color: var(--ink);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.submit-modal__close:hover { background: var(--paper-alt); }

.submit-modal__body { padding: 22px 32px 32px; }
.submit-modal__body .contact-form { gap: 22px; }

.install-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 44px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.install-filters__chip {
  background: transparent; border: 1px solid var(--line); color: var(--ink-muted);
  padding: 9px 18px; border-radius: var(--radius-pill); font-size: var(--fs-xs); text-transform: uppercase;
  letter-spacing: var(--caps-spacing); font-family: var(--font-body); cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}
.install-filters__chip:hover { border-color: var(--ember); color: var(--ink); }
.install-filters__chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.install-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }

.install-card { background: var(--white); border: 1px solid var(--line); overflow: hidden; }

.install-card__visual-btn {
  display: flex; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: none; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: var(--paper-alt); color: var(--ink-muted);
}
.install-card__visual-btn span { font-size: var(--fs-xs); }
.install-card__img { width: 100%; height: 100%; object-fit: cover; display: block; }

.install-card__thumbs { display: flex; gap: 6px; flex-wrap: wrap; padding: 8px; background: var(--paper-alt); border-top: 1px solid var(--line); }
.install-card__thumb { width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); background: var(--white); cursor: pointer; overflow: hidden; }
.install-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.install-card__thumb:hover { border-color: var(--ember); }

.install-card__body { padding: 20px 22px 22px; }
.install-card__reseller { margin-bottom: 0.25em; text-transform: none; }
.install-card__address, .install-card__contact { display: block; color: var(--ink-muted); font-size: var(--fs-sm); line-height: 1.5; }
.install-card__contact a { color: var(--ink-muted); }
.install-card__contact a:hover { color: var(--ember); }
.install-card__contact-sep { margin: 0 6px; }

.install-card__product {
  display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: var(--fs-sm);
}
.install-card__product-label { color: var(--ink-muted); }

/* ===== Visionneuse photo (lightbox) ===== */
.lightbox { position: fixed; inset: 0; z-index: 210; display: flex; align-items: center; justify-content: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(24, 20, 15, 0.7); }

.lightbox__panel { position: relative; background: var(--paper-alt); width: min(900px, 100%); max-height: 90vh; border-top: 3px solid var(--camel); border-radius: var(--radius-md); overflow: hidden; }
.lightbox__close { position: absolute; top: 16px; right: 16px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.lightbox__close:hover { background: var(--paper-alt); }

.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.lightbox__nav:hover { background: var(--paper-alt); }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }
.lightbox__nav[hidden] { display: none; }

.lightbox__visual { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; aspect-ratio: 4 / 3; max-height: 90vh; background: var(--paper-alt); color: var(--ink-muted); }
.lightbox__visual span { font-size: var(--fs-sm); }
.lightbox__img { width: 100%; height: 100%; object-fit: contain; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-info { justify-self: center; }
}

@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 880px) {
  .hero { padding: 110px 0 80px; }
  .site-footer__inner { flex-direction: column; align-items: center; text-align: center; gap: 28px; }
  .site-footer__inner .site-footer__text { text-align: center; margin-left: auto; margin-right: auto; }
  .site-footer__logo { margin-left: auto; margin-right: auto; }
  .site-footer__bottom-inner { flex-direction: column; align-items: center; text-align: center; }
  .site-footer__legal-nav { justify-content: center; }

  .brand-row { grid-template-columns: 1fr; gap: var(--sp-24); }
  .brand-row__mark { width: 160px; height: 92px; }
}

/* Menu « 3 barres » dès 1060 px : en dessous, les liens du menu passaient sur deux lignes */
@media (max-width: 1060px) {
  .site-nav { display: none; }
  .menu-toggle { display: flex; }
  /* nav-left et nav-right sont masqués : on fixe la position du logo et du bouton
     plutôt que de compter sur le placement automatique des 2 éléments restants. */
  .site-header__inner { grid-template-columns: 1fr auto 1fr; }
  .brand { grid-column: 2; }
  .menu-toggle { grid-column: 3; justify-self: end; }
}

@media (max-width: 640px) {
  .section { padding: 72px 0; }
  :root { --section-gap: 72px; }
  .hero__lead { max-width: none; }
  /* Sur téléphone le texte couvre la partie chargée de la photo : dégradé plus haut et plus dense */
  .hero__scrim {
    background:
      linear-gradient(to top, rgba(12, 8, 5, 0.9) 0%, rgba(12, 8, 5, 0.78) 45%, rgba(12, 8, 5, 0.35) 72%, rgba(12, 8, 5, 0.1) 100%),
      linear-gradient(to bottom, rgba(10, 7, 4, 0.5) 0%, rgba(10, 7, 4, 0) 18%);
  }
  .hero h1, .hero__lead { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55); }

  .product-showcase, .product-showcase--reverse { grid-template-columns: 1fr; gap: var(--sp-24); }
  .product-showcase--reverse .product-showcase__visual,
  .product-showcase--reverse .product-showcase__content { order: 0; }

  .submit-modal { padding: 0; }
  .submit-modal__panel { width: 100%; max-height: 100%; height: 100%; border-radius: 0; }
  .submit-modal__header { padding: 22px 20px 0; }
  .submit-modal__body { padding: 18px 20px 24px; }
  .submit-modal__body .form-grid,
  .submit-modal__body .form-grid--postal { grid-template-columns: 1fr; }

  .install-grid { grid-template-columns: 1fr; }
  .lightbox__nav { display: none; }

  .accordion__summary { gap: 12px; }
  .accordion__summary::before { width: 26px; height: 26px; font-size: 1.05rem; }
  .accordion__panel { padding-left: 4px; }
}
