/* ==========================================================================
   MieeBati — feuille de style commune
   Mobile-first · variables CSS · aucune dépendance
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 600 800;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  /* Couleurs issues du logo */
  --ardoise: #344a5e;
  --ardoise-700: #2a3d4f;
  --nuit: #1e2b38;
  --brique: #822215;
  --brique-700: #6b1c11;
  --brique-vif: #e04a35;      /* uniquement sur fond sombre */
  --brique-clair: #f4e7e3;
  --ceramique: #f6f3ef;
  --blanc: #ffffff;

  --texte: #1e2b38;
  --texte-2: #4a5866;         /* 7:1 sur blanc, 6.5:1 sur céramique */
  --texte-inverse: #c9d2db;
  --bord: #e6e1db;

  --font-titre: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-texte: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 10px;
  --radius-lg: 18px;
  --ombre: 0 1px 2px rgba(30, 43, 56, .06), 0 8px 24px rgba(30, 43, 56, .07);
  --ombre-forte: 0 2px 4px rgba(30, 43, 56, .08), 0 18px 40px rgba(30, 43, 56, .14);

  --container: 1200px;
  --gutter: 20px;
  --header-h: 68px;
  --section-y: clamp(56px, 9vw, 112px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font-texte);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--texte);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brique); text-underline-offset: 3px; }
a:hover { color: var(--brique-700); }
h1, h2, h3, h4 {
  font-family: var(--font-titre);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--nuit);
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.35rem); font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--brique); outline-offset: 3px; border-radius: 4px; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--nuit); color: #fff; padding: 10px 16px; border-radius: var(--radius);
  font-weight: 600; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--ceramique { background: var(--ceramique); }
.section--nuit { background: var(--nuit); color: var(--texte-inverse); }
.section--nuit h2, .section--nuit h3 { color: #fff; }

/* En-tête de section */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brique); margin-bottom: 14px;
}
.eyebrow img { width: 12px; height: auto; }
.section--nuit .eyebrow { color: var(--brique-vif); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { font-size: 1.075rem; color: var(--texte-2); margin: 0; }
.section--nuit .section-head p { color: var(--texte-inverse); }

/* ---------- Boutons ---------- */
.btn {
  --btn-bg: var(--brique); --btn-fg: #fff; --btn-bd: var(--brique);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  font-weight: 600; font-size: .98rem; line-height: 1.2; text-decoration: none;
  color: var(--btn-fg); background: var(--btn-bg); border: 2px solid var(--btn-bd);
  border-radius: var(--radius); cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .2s var(--ease); }
.btn:hover { color: var(--btn-fg); background: var(--brique-700); border-color: var(--brique-700); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(130, 34, 21, .25); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--ardoise); --btn-bd: var(--ardoise); }
.btn--outline:hover { --btn-fg: #fff; background: var(--ardoise); border-color: var(--ardoise); box-shadow: 0 8px 20px rgba(52, 74, 94, .22); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--nuit); --btn-bd: #fff; }
.btn--light:hover { --btn-fg: var(--nuit); background: var(--ceramique); border-color: var(--ceramique); }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.45); }
.btn--ghost-light:hover { --btn-fg: var(--nuit); background: #fff; border-color: #fff; box-shadow: none; }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: .92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; text-decoration: none; color: var(--brique);
}
.link-arrow svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  /* fond plein : un backdrop-filter piégerait le menu mobile (position: fixed) dans l'en-tête */
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--bord); box-shadow: 0 6px 24px rgba(30, 43, 56, .06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--header-h); }
.brand { display: block; flex: none; }
.brand img { width: 150px; height: auto; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; margin-right: -10px;
  background: none; border: 0; border-radius: var(--radius); cursor: pointer; color: var(--nuit);
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 24px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Menu mobile : panneau sous l'en-tête */
.main-nav {
  position: fixed; inset: var(--header-h) 0 0 0;
  background: #fff; padding: 12px var(--gutter) 32px;
  overflow-y: auto;
  /* fermé : décalé verticalement (un décalage horizontal créerait un scroll latéral) */
  opacity: 0; transform: translateY(-12px); visibility: hidden;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
}
.main-nav.is-open { opacity: 1; transform: none; visibility: visible; transition: opacity .25s var(--ease), transform .25s var(--ease); }
.nav-list { list-style: none; }
.nav-list > li { border-bottom: 1px solid var(--bord); }
.nav-link, .nav-sub-toggle {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 16px 4px; min-height: 56px;
  font-family: var(--font-titre); font-weight: 700; font-size: 1.2rem; color: var(--nuit);
  text-decoration: none; background: none; border: 0; cursor: pointer; text-align: left;
}
.nav-link[aria-current="page"], .nav-sub-toggle.is-current { color: var(--brique); }
.nav-sub-toggle svg { width: 20px; height: 20px; transition: transform .2s var(--ease); }
.nav-sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-sub { list-style: none; padding: 0 0 12px; display: none; }
.nav-sub.is-open { display: block; }
.nav-sub a {
  display: flex; gap: 12px; align-items: center; padding: 10px 4px;
  color: var(--texte); text-decoration: none; font-weight: 500;
}
.nav-sub a[aria-current="page"] { color: var(--brique); }
.nav-sub a:hover { color: var(--brique); }
.nav-sub img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; background: var(--ceramique); flex: none; }
.nav-sub small { display: block; color: var(--texte-2); font-weight: 400; font-size: .85rem; }
.nav-cta { margin-top: 24px; width: 100%; }
.header-cta { display: none; }
body.nav-open { overflow: hidden; }

@media (min-width: 1000px) {
  .nav-toggle { display: none; }
  .brand img { width: 168px; }
  .main-nav {
    position: static; transform: none; visibility: visible; opacity: 1; padding: 0; overflow: visible; background: none;
    display: flex; align-items: center; gap: 28px; transition: none;
  }
  .nav-list { display: flex; gap: 4px; }
  .nav-list > li { border: 0; position: relative; }
  .nav-link, .nav-sub-toggle {
    min-height: 44px; padding: 8px 14px; gap: 6px;
    font-family: var(--font-texte); font-weight: 500; font-size: .98rem; color: var(--texte);
    border-radius: 8px; transition: color .2s, background .2s;
  }
  .nav-link:hover, .nav-sub-toggle:hover { color: var(--brique); background: var(--ceramique); }
  .nav-sub-toggle svg { width: 16px; height: 16px; }
  .nav-sub {
    position: absolute; top: calc(100% + 10px); left: 50%; width: 340px; padding: 10px;
    background: #fff; border: 1px solid var(--bord); border-radius: 14px; box-shadow: var(--ombre-forte);
    display: block; opacity: 0; visibility: hidden; transform: translate(-50%, 6px);
    transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s linear .18s;
  }
  .nav-sub::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
  .nav-sub.is-open,
  .has-sub:hover .nav-sub,
  .has-sub:focus-within .nav-sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .18s var(--ease), transform .18s var(--ease); }
  .nav-sub a { padding: 10px; border-radius: 10px; }
  .nav-sub a:hover { background: var(--ceramique); }
  .nav-sub li.nav-sub-all a { justify-content: center; font-weight: 600; color: var(--brique); font-size: .92rem; border-top: 1px solid var(--bord); border-radius: 0 0 10px 10px; margin-top: 6px; }
  .nav-cta { display: none; }
  .header-cta { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ceramique);
  padding-block: clamp(40px, 7vw, 96px) clamp(48px, 8vw, 104px);
}
.hero::before {
  /* motif de joints de boisseaux, très discret */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(52, 74, 94, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(52, 74, 94, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 75% 40%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 75% 40%, #000 0%, transparent 70%);
}
.hero-grid { position: relative; display: grid; gap: 40px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--brique); }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--texte-2); max-width: 560px; margin-bottom: 28px; }
.hero .btn-row .btn { flex: 1 1 auto; }
.hero-note {
  display: flex; align-items: center; gap: 10px; margin-top: 24px;
  font-size: .9rem; color: var(--texte-2);
}
.hero-note svg { width: 18px; height: 18px; color: var(--ardoise); flex: none; }

.hero-visual { position: relative; max-width: 520px; margin-inline: auto; width: 100%; }
.hero-frame {
  position: relative; background: #fff; border-radius: 24px; box-shadow: var(--ombre-forte);
  aspect-ratio: 4 / 4.4; overflow: hidden;
  display: grid; place-items: center;
}
.hero-frame img { position: absolute; inset: 4% 0 6%; width: 100%; height: 90%; object-fit: contain; }
.hero-frame::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--brique);
}
.hero-chip {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: 14px; padding: 12px 16px 12px 12px;
  box-shadow: var(--ombre-forte); font-size: .85rem; line-height: 1.3; color: var(--texte-2);
}
.hero-chip strong { display: block; font-family: var(--font-titre); font-size: 1.05rem; color: var(--nuit); }
.hero-chip img { width: 44px; height: 44px; object-fit: contain; flex: none; }
.hero-chip--a { left: -8px; top: 12%; }
.hero-chip--b { right: -8px; bottom: 14%; }
.hero-chip .chip-icon {
  width: 44px; height: 44px; border-radius: 10px; background: var(--brique-clair); color: var(--brique);
  display: grid; place-items: center; flex: none;
}
.hero-chip .chip-icon svg { width: 24px; height: 24px; }

@media (min-width: 600px) {
  .hero .btn-row .btn { flex: 0 0 auto; }
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.15fr 1fr; gap: 56px; }
  .hero-chip--a { left: -40px; }
  .hero-chip--b { right: -28px; }
}

/* Hero haut de gamme (accueil) : fond nuit, lueur chaude, produit mis en vitrine */
.hero--premium { background: var(--nuit); color: var(--texte-inverse); }
.hero--premium::before {
  background-image: radial-gradient(ellipse 60% 70% at 78% 45%, rgba(224, 74, 53, .22) 0%, rgba(130, 34, 21, .08) 45%, transparent 75%);
  background-size: auto; mask-image: none; -webkit-mask-image: none;
}
.hero--premium .eyebrow { color: #e9b9ae; letter-spacing: .18em; }
.hero--premium h1 { color: #fff; font-size: clamp(2.2rem, 5.6vw, 3.9rem); }
.hero--premium h1 em { color: #f08a78; }
.hero--premium .hero-lead { color: #d5dde4; }
.hero--premium .hero-note { color: var(--texte-inverse); }
.hero--premium .hero-note svg { color: #e9b9ae; }
.hero--premium .hero-frame { background: linear-gradient(180deg, #fff 0%, #f3efea 100%); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.hero--premium .hero-chip { box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.hero-signature { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .9rem; color: var(--texte-inverse); }
.hero-signature li { display: flex; align-items: center; gap: 8px; }
.hero-signature li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brique-vif); flex: none; }

/* ---------- Bandeau de réassurance ---------- */
.trust { background: var(--nuit); color: #fff; border-top: 1px solid rgba(255, 255, 255, .1); }
.trust-list {
  list-style: none; display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: rgba(255, 255, 255, .08);
}
.trust-item {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 10px; padding: 22px 10px; background: var(--nuit);
}
@media (min-width: 560px) { .trust-item { flex-direction: row; text-align: left; gap: 14px; padding: 22px 16px; } }
.trust-item svg { width: 34px; height: 34px; color: var(--brique-vif); flex: none; }
.trust-item strong { display: block; font-family: var(--font-titre); font-size: 1.2rem; line-height: 1.15; color: #fff; }
.trust-item span { font-size: .86rem; color: var(--texte-inverse); line-height: 1.35; display: block; }
@media (min-width: 900px) {
  .trust-list { grid-template-columns: repeat(4, 1fr); }
  .trust-item { padding: 28px 24px; justify-content: center; }
  .trust-item strong { font-size: 1.35rem; }
}

/* ---------- Cartes gammes ---------- */
.card-grid { display: grid; gap: 24px; }
@media (min-width: 720px) { .card-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .card-grid--3 { grid-template-columns: repeat(3, 1fr); } }

.product-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--bord); border-radius: var(--radius-lg);
  overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--ombre-forte); border-color: transparent; }
.product-card-media { aspect-ratio: 16 / 9; background: #f0f0f0; overflow: hidden; }
.product-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.product-card:hover .product-card-media img { transform: scale(1.04); }
.product-card-body { display: flex; flex-direction: column; gap: 12px; padding: 24px; flex: 1; }
.product-card-body h3 { margin: 0; }
.product-card-body h3 a { color: inherit; text-decoration: none; }
.product-card-body h3 a::after { content: ""; position: absolute; inset: 0; } /* carte entièrement cliquable */
.product-card-body p { color: var(--texte-2); margin: 0; font-size: .97rem; }
.product-card .link-arrow { margin-top: auto; padding-top: 8px; }
.product-tag {
  align-self: flex-start; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ardoise); background: var(--ceramique); padding: 5px 10px; border-radius: 6px;
}

/* Puces flamme */
.flame-list { list-style: none; display: grid; gap: 14px; }
.flame-list li { position: relative; padding-left: 26px; }
.flame-list li::before {
  content: ""; position: absolute; left: 0; top: .28em; width: 13px; height: 19px;
  background: url("../img/flamme-rouge.webp") center / contain no-repeat;
}
.flame-list--sm li::before { width: 11px; height: 16px; top: .32em; }
.flame-list--sm { gap: 8px; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: .82rem; font-weight: 600; color: var(--brique-700); background: var(--brique-clair); padding: 5px 11px; border-radius: 99px; }

/* ---------- Pourquoi MieeBati ---------- */
.why-grid { display: grid; gap: 40px; align-items: center; }
.why-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--ombre); }
.why-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.why-media figcaption {
  position: absolute; left: 12px; bottom: 12px; right: 12px;
  background: rgba(30, 43, 56, .86); color: #fff; font-size: .85rem; padding: 10px 14px; border-radius: 10px;
}
.why-badges { display: flex; gap: 12px; margin-top: 28px; }
.why-badges img { width: 76px; height: 76px; border-radius: 12px; border: 1px solid var(--bord); background: #fff; }
.feature-list { list-style: none; display: grid; gap: 4px; margin-top: 24px; }
.feature {
  display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--bord);
}
.feature:last-child { border-bottom: 0; }
.feature-icon {
  width: 44px; height: 44px; flex: none; border-radius: 12px;
  display: grid; place-items: center; background: #fff; border: 1px solid var(--bord);
}
.feature-icon img { width: 16px; }
.feature-icon--pic { width: 52px; height: 52px; padding: 6px; }
.feature-icon--pic img { width: 100%; height: 100%; object-fit: contain; }
.feature h3 { font-size: 1.08rem; margin: 0 0 2px; }
.feature p { margin: 0; color: var(--texte-2); font-size: .95rem; }
@media (min-width: 900px) {
  .why-grid { grid-template-columns: 1fr 1fr; gap: 72px; }
}

/* ---------- Professionnels ---------- */
.audience-grid { list-style: none; display: grid; gap: 16px; margin-bottom: clamp(40px, 6vw, 64px); }
.audience {
  padding: 24px; border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1);
  transition: background .25s, border-color .25s;
}
.audience:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .2); }
.audience svg { width: 32px; height: 32px; color: var(--brique-vif); margin-bottom: 14px; }
.audience h3 { margin-bottom: 6px; }
.audience p { margin: 0; font-size: .95rem; }
@media (min-width: 760px) { .audience-grid { grid-template-columns: repeat(3, 1fr); } }

.pro-panel {
  display: grid; gap: 32px; padding: clamp(24px, 4vw, 48px);
  background: #fff; color: var(--texte); border-radius: var(--radius-lg);
}
.pro-panel h3 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); color: var(--nuit); }
.pro-benefits { list-style: none; display: grid; gap: 20px; }
.pro-benefits li { display: flex; gap: 14px; }
.pro-benefits svg { width: 24px; height: 24px; flex: none; color: var(--brique); margin-top: 2px; }
.pro-benefits strong { display: block; color: var(--nuit); }
.pro-benefits span { color: var(--texte-2); font-size: .95rem; }
.pro-aside {
  background: var(--ceramique); border-radius: var(--radius); padding: 24px;
  display: flex; flex-direction: column; gap: 14px; align-self: start;
}
.pro-aside p { margin: 0; color: var(--texte-2); }
@media (min-width: 640px) { .pro-benefits { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .pro-panel { grid-template-columns: 1.8fr 1fr; gap: 48px; } }

/* ---------- Partenaires ---------- */
.partners { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.partners li {
  display: grid; place-items: center; padding: 16px; aspect-ratio: 3 / 2;
  background: #fff; border: 1px solid var(--bord); border-radius: var(--radius);
}
.partners img { max-height: 84px; width: auto; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.partners li:hover img { filter: none; opacity: 1; }
@media (min-width: 760px) { .partners { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
@media (hover: none) { .partners img { filter: none; opacity: 1; } }

/* ---------- CTA devis ---------- */
.cta-band {
  position: relative; overflow: hidden;
  display: grid; gap: 28px; align-items: center;
  padding: clamp(32px, 5vw, 64px); border-radius: 24px;
  background: var(--brique); color: #f6dcd6;
}
.cta-band::after {
  content: ""; position: absolute; right: -40px; bottom: -60px; width: 260px; height: 380px;
  background: url("../img/flamme-rouge.webp") center / contain no-repeat;
  filter: brightness(0) invert(1); opacity: .07; pointer-events: none;
}
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { margin: 0; font-size: 1.05rem; }
.cta-band .btn-row { position: relative; z-index: 1; }
.cta-phones { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 16px; }
.cta-phones a { color: #fff; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.cta-phones a:hover { text-decoration: underline; color: #fff; }
.cta-phones svg { width: 18px; height: 18px; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.5fr auto; } }

/* ==========================================================================
   Pages intérieures
   ========================================================================== */

/* En-tête de page */
.page-hero { position: relative; overflow: hidden; background: var(--ceramique); padding-block: clamp(28px, 5vw, 64px) clamp(40px, 6vw, 80px); }
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(52, 74, 94, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(52, 74, 94, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 80% 30%, #000 0%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 80% 30%, #000 0%, transparent 65%);
}
.page-hero .container { position: relative; }
.page-hero-grid { display: grid; gap: 36px; align-items: center; }
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); margin-bottom: 16px; }
.page-hero .hero-lead { margin-bottom: 24px; }
.page-hero-media {
  position: relative; background: #fff; border-radius: 20px; box-shadow: var(--ombre-forte);
  overflow: hidden; max-width: 560px; width: 100%; margin-inline: auto;
}
.page-hero-media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--brique); }
.page-hero-media img { width: 100%; height: auto; }
.page-hero-media--tall { aspect-ratio: 4 / 4.2; }
.page-hero-media--tall img { position: absolute; inset: 4% 0 6%; height: 90%; object-fit: contain; }
@media (min-width: 900px) { .page-hero-grid { grid-template-columns: 1.15fr 1fr; gap: 56px; } }

.breadcrumb { margin-bottom: 20px; font-size: .88rem; color: var(--texte-2); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: #9aa5af; }
.breadcrumb a { color: var(--texte-2); text-decoration: none; }
.breadcrumb a:hover { color: var(--brique); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--nuit); font-weight: 500; }

/* Bloc texte + visuel */
.split { display: grid; gap: 40px; align-items: start; }
.split > * { min-width: 0; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split--wide-left { grid-template-columns: 1.3fr 1fr; }
  .split--center { align-items: center; }
}
.prose p { color: var(--texte-2); font-size: 1.04rem; }
.prose h2 { margin-bottom: 16px; }
.box {
  background: #fff; border: 1px solid var(--bord); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 32px);
}
.section--ceramique .box { border-color: transparent; box-shadow: var(--ombre); }
.box h3 { margin-bottom: 14px; }
.box + .box { margin-top: 20px; }
.media-frame { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--bord); overflow: hidden; }
.media-frame img { width: 100%; height: auto; }
.media-frame figcaption { padding: 12px 16px; font-size: .88rem; color: var(--texte-2); border-top: 1px solid var(--bord); }
figure { margin: 0; }

/* Pastilles de diamètres */
.diametres { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.diametres li {
  display: grid; place-items: center; min-width: 64px; height: 64px; padding: 0 14px; border-radius: 99px;
  background: #fff; border: 2px solid var(--ardoise); color: var(--nuit);
  font-family: var(--font-titre); font-weight: 800; font-size: 1.1rem; line-height: 1;
  transition: background .2s, color .2s, transform .2s var(--ease);
}
.diametres li small { display: block; font-family: var(--font-texte); font-weight: 500; font-size: .66rem; color: var(--texte-2); margin-top: 3px; }
.diametres li:hover { background: var(--ardoise); color: #fff; transform: translateY(-2px); }
.diametres li:hover small { color: var(--texte-inverse); }
.diametres li.is-double { border-color: var(--brique); }
.note { font-size: .9rem; color: var(--texte-2); margin-top: 14px; }

/* Grille de composants (kits) */
.kit-grid { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 560px) { .kit-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .kit-grid--4 { grid-template-columns: repeat(4, 1fr); } .kit-grid--6 { grid-template-columns: repeat(6, 1fr); } }
.kit-item {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
  padding: 14px 10px 16px; background: #fff; border: 1px solid var(--bord); border-radius: 14px;
  font-size: .9rem; font-weight: 500; line-height: 1.3; color: var(--nuit);
  transition: border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.kit-item:hover { border-color: transparent; box-shadow: var(--ombre); transform: translateY(-2px); }
.kit-item img { width: 88px; height: 88px; object-fit: contain; border-radius: 8px; mix-blend-mode: multiply; }
.kit-item small { display: block; font-weight: 400; color: var(--texte-2); font-size: .8rem; }
.kit-cols { display: grid; gap: 24px; }
@media (min-width: 1000px) { .kit-cols { grid-template-columns: 1fr 1fr; } }
.kit-cols .kit-grid { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 560px) { .kit-cols .kit-grid { grid-template-columns: repeat(3, 1fr); } }
.kit-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 16px; }
.kit-head h3 { margin: 0; }
.kit-head p { margin: 0; font-size: .9rem; color: var(--texte-2); }

/* Cartes de configuration / accessoires */
.config-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .config-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .config-grid--4 { grid-template-columns: repeat(4, 1fr); } .config-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.config-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--bord);
  border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .25s, transform .25s var(--ease);
}
.config-card:hover { box-shadow: var(--ombre-forte); transform: translateY(-3px); }
.config-card-media { aspect-ratio: 16 / 9; background: #f2f2f2; overflow: hidden; }
.config-card-media img { width: 100%; height: 100%; object-fit: cover; }
.config-card-media--contain img { object-fit: contain; background: #fff; }
.config-card-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.config-card-body h3 { margin: 0; font-size: 1.12rem; }
.config-card-body p { margin: 0; font-size: .95rem; color: var(--texte-2); }
.config-card-body .link-arrow { margin-top: auto; padding-top: 6px; font-size: .92rem; }
.config-num {
  align-self: flex-start; font-family: var(--font-titre); font-weight: 800; font-size: .8rem;
  color: var(--brique); background: var(--brique-clair); border-radius: 6px; padding: 3px 8px;
}

/* Avantages (icônes) */
.benefit-grid { list-style: none; display: grid; gap: 16px; }
@media (min-width: 600px) { .benefit-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .benefit-grid { grid-template-columns: repeat(3, 1fr); } }
.benefit { display: flex; gap: 16px; padding: 22px; background: #fff; border: 1px solid var(--bord); border-radius: var(--radius-lg); }
.section--ceramique .benefit { border-color: transparent; box-shadow: var(--ombre); }
.benefit-icon { width: 48px; height: 48px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--brique-clair); color: var(--brique); }
.benefit-icon svg { width: 24px; height: 24px; }
.benefit h3 { font-size: 1.08rem; margin: 0 0 4px; }
.benefit p { margin: 0; color: var(--texte-2); font-size: .95rem; }

/* Tableaux */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--bord); border-radius: var(--radius-lg); background: #fff; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--bord); }
.table tr:last-child > * { border-bottom: 0; }
.table thead th { background: var(--nuit); color: #fff; font-family: var(--font-titre); font-weight: 700; font-size: 1rem; white-space: nowrap; }
.table thead th small { display: block; font-family: var(--font-texte); font-weight: 400; font-size: .8rem; color: var(--texte-inverse); }
.table tbody th { font-weight: 600; color: var(--nuit); background: var(--ceramique); white-space: nowrap; }
.table td { color: var(--texte-2); }
.table code { font-family: var(--font-titre); font-weight: 700; font-size: 1.02rem; color: var(--nuit); letter-spacing: .02em; }
.table--compare { min-width: 760px; }
.table--dim thead th { white-space: normal; }
.table--dim td, .table--dim th { padding: 12px 14px; }
.table--compare tbody th { width: 170px; }
.table--compare td a { font-weight: 600; }
.table-hint { display: none; font-size: .85rem; color: var(--texte-2); margin: 0 0 10px; }
@media (max-width: 820px) { .table-hint { display: block; } }
.spec-legend { list-style: none; display: grid; gap: 6px; margin-top: 16px; font-size: .9rem; color: var(--texte-2); }
.spec-legend code { font-family: var(--font-titre); font-weight: 700; color: var(--nuit); }

/* Téléchargements */
.downloads { list-style: none; display: grid; gap: 14px; }
@media (min-width: 720px) { .downloads { grid-template-columns: repeat(2, 1fr); } }
.download {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px;
  background: #fff; border: 1px solid var(--bord); border-radius: 14px; text-decoration: none; color: var(--nuit);
  transition: border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.download:hover { color: var(--nuit); border-color: transparent; box-shadow: var(--ombre); transform: translateY(-2px); }
.download-icon { width: 48px; height: 56px; flex: none; border-radius: 6px; background: var(--brique); color: #fff; display: grid; place-items: center; font-size: .72rem; font-weight: 800; letter-spacing: .06em; position: relative; }
.download-icon::before { content: ""; position: absolute; top: 0; right: 0; border-style: solid; border-width: 0 12px 12px 0; border-color: transparent var(--ceramique) rgba(0,0,0,.18) transparent; }
.download strong { display: block; font-size: 1rem; }
.download span { font-size: .85rem; color: var(--texte-2); }
.download svg { width: 22px; height: 22px; margin-left: auto; color: var(--brique); flex: none; transition: transform .2s var(--ease); }
.download:hover svg { transform: translateY(2px); }
.download--sm { padding: 12px 14px; }
.download--sm .download-icon { width: 36px; height: 42px; font-size: .62rem; }

/* Mini-liste accessoires (pages gammes) */
.acc-strip { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 900px) { .acc-strip { grid-template-columns: repeat(4, 1fr); } }
.acc-strip a {
  display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 10px 10px 14px;
  background: #fff; border: 1px solid var(--bord); border-radius: 14px; text-decoration: none; color: var(--nuit);
  font-weight: 600; font-size: .92rem; line-height: 1.3; transition: box-shadow .2s, transform .2s var(--ease), border-color .2s;
}
.acc-strip a:hover { color: var(--brique); box-shadow: var(--ombre); transform: translateY(-2px); border-color: transparent; }
.acc-strip img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }

/* Chiffres clés sur fond nuit */
.perf-list { list-style: none; display: grid; gap: 14px; margin-top: 24px; }
@media (min-width: 640px) { .perf-list { grid-template-columns: 1fr 1fr; } }
.perf-list li {
  display: flex; flex-direction: column; gap: 4px; padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; background: rgba(255, 255, 255, .03);
}
.perf-list strong { font-family: var(--font-titre); font-size: 1.6rem; line-height: 1.1; color: #fff; }
.perf-list span { font-size: .92rem; color: var(--texte-inverse); line-height: 1.45; }
.section--nuit .media-frame { border-color: transparent; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }

/* Combustibles compatibles */
.fuel-list { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 10px; }
.fuel-list li { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: .82rem; font-weight: 600; color: var(--nuit); line-height: 1.25; }
.fuel-list img { width: 52px; height: 52px; }

/* Photo pleine largeur */
.photo-band { margin: 0; background: var(--nuit); }
.photo-band img { width: 100%; height: clamp(240px, 42vw, 520px); object-fit: cover; }
.photo-band figcaption { padding-block: 12px; font-size: .88rem; color: var(--texte-inverse); }

/* Dimensions */
.dim-visuals { display: grid; grid-template-columns: 1fr 1.75fr; gap: 14px; align-items: end; }
.dim-visuals figcaption { text-align: center; }
.kit-doc { margin-top: 16px; font-size: .94rem; }
@media (min-width: 900px) { .gallery li:nth-child(4):last-child { grid-column: span 2; } }

/* Vidéo chargée au clic */
.video-lite { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: var(--nuit); box-shadow: var(--ombre-forte); }
.video-lite img { width: 100%; height: 100%; object-fit: cover; opacity: .72; transition: opacity .3s, transform .5s var(--ease); }
.video-lite button {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  width: 100%; border: 0; background: linear-gradient(to top, rgba(30, 43, 56, .7), rgba(30, 43, 56, .1)); color: #fff; cursor: pointer;
  font-weight: 600; font-size: 1rem;
}
.video-lite .play {
  width: 76px; height: 76px; border-radius: 50%; background: var(--brique); display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: transform .25s var(--ease), background .2s;
}
.video-lite .play svg { width: 30px; height: 30px; margin-left: 4px; }
.video-lite button:hover .play { transform: scale(1.08); background: var(--brique-700); }
.video-lite button:hover ~ img, .video-lite:hover img { opacity: .85; transform: scale(1.02); }
.video-lite small { font-weight: 400; font-size: .8rem; color: #dfe5ea; max-width: 320px; text-align: center; padding: 0 16px; }
.video-lite iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Galerie */
.gallery { list-style: none; display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
.gallery li:first-child { grid-column: 1 / -1; }
@media (min-width: 900px) { .gallery { grid-template-columns: 2fr 1fr 1fr; } .gallery li:first-child { grid-column: auto; grid-row: span 2; } }
.gallery figure { height: 100%; background: #fff; border: 1px solid var(--bord); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.gallery img { width: 100%; flex: 1; min-height: 0; object-fit: contain; background: #fff; }
.gallery figcaption { padding: 10px 14px; font-size: .85rem; color: var(--texte-2); border-top: 1px solid var(--bord); }

/* Navigation entre gammes */
.range-nav { display: grid; gap: 14px; }
@media (min-width: 720px) { .range-nav { grid-template-columns: 1fr 1fr; } }
.range-nav a {
  display: flex; align-items: center; gap: 16px; padding: 14px; background: #fff; border: 1px solid var(--bord);
  border-radius: 14px; text-decoration: none; color: var(--nuit); transition: box-shadow .2s, border-color .2s;
}
.range-nav a:hover { box-shadow: var(--ombre); border-color: transparent; color: var(--brique); }
.range-nav img { width: 96px; height: 60px; object-fit: cover; border-radius: 8px; flex: none; }
.range-nav small { display: block; color: var(--texte-2); font-size: .8rem; }
.range-nav strong { font-family: var(--font-titre); font-size: 1.05rem; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; gap: 32px; align-items: start; }
@media (min-width: 1000px) { .contact-layout { grid-template-columns: 1.55fr 1fr; gap: 48px; } }
.contact-aside { display: grid; gap: 20px; }
@media (min-width: 1000px) { .contact-aside { position: sticky; top: calc(var(--header-h) + 24px); } }

.form-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--ombre); padding: clamp(22px, 4vw, 40px); }
.form-card > h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); margin-bottom: 6px; }
.form-intro { color: var(--texte-2); margin-bottom: 24px; }
.form-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .field--full, .form-grid fieldset { grid-column: 1 / -1; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .form-grid legend { font-weight: 600; font-size: .94rem; color: var(--nuit); }
.field .opt { font-weight: 400; color: var(--texte-2); font-size: .85rem; }
.req { color: var(--brique); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--texte); background: #fff;
  border: 1.5px solid #c3cbd3; border-radius: var(--radius); padding: 12px 14px; min-height: 48px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23344a5e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ardoise); box-shadow: 0 0 0 3px rgba(52, 74, 94, .2); }
.field [aria-invalid="true"] { border-color: var(--brique); background: #fffafa; }
.field-error { color: var(--brique); font-size: .86rem; font-weight: 500; margin: 0; }
.field-error:empty { display: none; }
.field-hint { color: var(--texte-2); font-size: .85rem; margin: 0; }

.form-grid fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.form-grid legend { padding: 0; margin-bottom: 8px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; flex: 1 1 160px; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 16px; cursor: pointer;
  border: 1.5px solid #c3cbd3; border-radius: var(--radius); font-weight: 500; transition: border-color .15s, background .15s;
}
.choice span::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #8796a4; flex: none; transition: border .15s;
}
.choice input:checked + span { border-color: var(--brique); background: var(--brique-clair); color: var(--nuit); }
.choice input:checked + span::before { border: 6px solid var(--brique); }
.choice input:focus-visible + span { outline: 3px solid var(--brique); outline-offset: 2px; }
.choice-row[aria-invalid="true"] .choice span { border-color: var(--brique); }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--texte-2); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--brique); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 8px; }
.form-actions .btn[disabled] { opacity: .65; cursor: progress; }
.form-legal { font-size: .82rem; color: var(--texte-2); margin: 18px 0 0; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { border-radius: var(--radius); padding: 14px 16px; margin-bottom: 20px; font-weight: 500; }
.form-status:empty { display: none; }
.form-status--error { background: #fdecea; color: #7a1f12; border: 1px solid #f2c4bc; }
.form-success { text-align: center; padding: clamp(16px, 4vw, 40px) 0; }
.form-success svg { width: 56px; height: 56px; margin: 0 auto 16px; color: #2f7a4b; }
.form-success h2 { margin-bottom: 10px; }
.form-success p { color: var(--texte-2); max-width: 460px; margin-inline: auto; }

.contact-list { list-style: none; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ic {
  width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 12px;
  background: var(--brique-clair); color: var(--brique);
}
.contact-list .ic svg { width: 20px; height: 20px; }
.contact-list small { display: block; color: var(--texte-2); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.contact-list a { font-weight: 600; color: var(--nuit); text-decoration: none; font-size: 1.05rem; }
.contact-list a:hover { color: var(--brique); text-decoration: underline; }
.contact-list address { font-style: normal; font-weight: 500; }

.map-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--bord); background: #e9e5df; }
.map-frame iframe { width: 100%; height: 280px; border: 0; }
.map-frame p { margin: 0; padding: 10px 16px; font-size: .86rem; border-top: 1px solid var(--bord); background: #fff; display: flex; flex-wrap: wrap; gap: 4px 16px; }

/* ---------- Pages légales ---------- */
.legal { max-width: 780px; }
.legal h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin-top: 2.2em; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--texte-2); }
.legal ul { padding-left: 1.2em; margin-bottom: 1em; }
.legal li + li { margin-top: 4px; }
.legal dl { display: grid; gap: 4px 20px; margin: 0 0 1em; }
@media (min-width: 640px) { .legal dl { grid-template-columns: 220px 1fr; } }
.legal dt { font-weight: 600; color: var(--nuit); }
.legal dd { margin: 0 0 8px; color: var(--texte-2); }
.todo { background: #fff4d6; color: #6a4a00; padding: 1px 6px; border-radius: 4px; font-weight: 600; font-size: .92em; }
.legal-updated { font-size: .9rem; color: var(--texte-2); }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding-block: clamp(64px, 12vw, 140px); }
.notfound .code { font-family: var(--font-titre); font-weight: 800; font-size: clamp(4.5rem, 16vw, 9rem); line-height: 1; color: var(--brique); margin-bottom: 8px; }
.notfound p { color: var(--texte-2); max-width: 520px; margin-inline: auto; }
.notfound .btn-row { justify-content: center; margin-top: 28px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--nuit); color: var(--texte-inverse); padding-block: 64px 0; font-size: .95rem; }
.footer-grid { display: grid; gap: 40px; padding-bottom: 48px; }
.footer-brand img { width: 170px; margin-bottom: 16px; }
.footer-brand p { max-width: 340px; }
.site-footer h2 {
  font-family: var(--font-texte); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: #fff; margin-bottom: 16px;
}
.footer-links { list-style: none; display: grid; gap: 10px; }
.site-footer a { color: var(--texte-inverse); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-contact { list-style: none; display: grid; gap: 12px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--brique-vif); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 20px;
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .85rem;
}
.footer-bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }

/* ---------- Bouton d'appel flottant (mobile) ---------- */
.call-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 90;
  display: inline-flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 20px 0 16px; border-radius: 99px;
  background: var(--brique); color: #fff; font-weight: 600; text-decoration: none;
  box-shadow: 0 10px 28px rgba(130, 34, 21, .4);
  transition: transform .25s var(--ease), opacity .25s;
}
.call-fab:hover { color: #fff; background: var(--brique-700); }
.call-fab svg { width: 22px; height: 22px; }
.call-fab.is-hidden { transform: translateY(90px); opacity: 0; }
@media (min-width: 1000px) { .call-fab { display: none; } }
body.nav-open .call-fab { display: none; }

/* ---------- Apparition au scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-d1 { transition-delay: .08s; }
.js .reveal-d2 { transition-delay: .16s; }
.js .reveal-d3 { transition-delay: .24s; }

/* Hero : animation CSS pure (ne dépend pas du JS, ne retarde pas l'affichage) */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.fade-up { animation: fadeUp .8s var(--ease) both; }
.fade-up.d1 { animation-delay: .08s; }
.fade-up.d2 { animation-delay: .16s; }
.fade-up.d3 { animation-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
