/* ============================================================
   L'agence BLG Cars — style.css (commun à toutes les pages)
   Direction : fond clair papier, trame de points légère,
   accent rouge (pastille du logo), typographie serif premium.
   ============================================================ */

:root {
  /* Couleurs */
  --bg: #f6f4f0;            /* papier greige */
  --surface: #fdfcfa;       /* cartes */
  --surface-2: #f1ede6;     /* cartes alternées */
  --ink: #191a1e;           /* texte principal */
  --muted: #6c6963;         /* texte secondaire */
  --faint: #a39f97;
  --line: #e2ddd4;          /* filets */
  --red: #b31b1b;           /* pastille BLG */
  --red-dark: #8e1414;
  --deep: #1c1d21;          /* panneau sombre (enseigne) */
  --deep-ink: #f3f1ec;

  /* Typo */
  --font-display: 'Sentient', Georgia, 'Times New Roman', serif;
  --font-body: 'Satoshi', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --text-xs: clamp(.72rem, .68rem + .2vw, .8rem);
  --text-sm: clamp(.85rem, .8rem + .25vw, .95rem);
  --text-base: clamp(1rem, .96rem + .2vw, 1.08rem);
  --text-lg: clamp(1.15rem, 1.05rem + .6vw, 1.45rem);
  --text-xl: clamp(1.6rem, 1.3rem + 1.4vw, 2.4rem);
  --text-2xl: clamp(2.1rem, 1.5rem + 2.8vw, 3.6rem);

  /* Rythme */
  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.25rem;
  --s6: 1.5rem; --s8: 2rem; --s10: 2.5rem; --s12: 3rem; --s16: 4rem; --s20: 5rem;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(25, 22, 15, .07);
  --shadow-md: 0 14px 34px rgba(25, 22, 15, .09);
  --content: 1180px;

  /* Trame de points signature (halftone) */
  --dots: radial-gradient(rgba(25, 26, 30, .10) 1.1px, transparent 1.3px);
  --dots-red: radial-gradient(rgba(211, 30, 42, .16) 1.2px, transparent 1.4px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
input, select, textarea { outline: none; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.container { width: min(100% - 2.5rem, var(--content)); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: var(--s2); background: var(--deep); color: var(--deep-ink); padding: var(--s3) var(--s4); border-radius: var(--radius); z-index: 999; }
.skip-link:focus { left: var(--s3); }

/* ---------- Typographie ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -.015em; }
h1 { font-size: var(--text-2xl); }
h2 { font-size: var(--text-xl); margin-bottom: var(--s4); }
h3 { font-size: var(--text-lg); margin-bottom: var(--s2); }
.lead { font-size: var(--text-lg); color: var(--muted); line-height: 1.5; max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: var(--text-sm); }

/* Pastille rouge signature devant les titres de section */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: var(--text-xs); font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: var(--s3);
}
.eyebrow::before { content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--red); flex: 0 0 auto; }

/* ---------- Header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: #0a0a0a;
  border-bottom: 1px solid #222327;
}
.topbar .brand img { height: 46px; width: auto; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 76px; }
.brand { display: flex; align-items: center; }
.brand img { height: 44px; width: auto; }
.nav { display: none; align-items: center; gap: var(--s4); }
.nav > a, .nav-drop > button {
  font-size: var(--text-sm); font-weight: 600; color: #d8d5cd; padding: .5rem .25rem;
  border-bottom: 2px solid transparent; display: inline-flex; align-items: center; gap: .35rem;
  transition: color .15s ease, border-color .15s ease; background: none;
}
.nav > a:hover, .nav-drop > button:hover { color: #ffffff; }
.nav > a[aria-current="page"], .nav-drop.active > button { color: #ffffff; border-bottom-color: var(--red); }
.nav-drop { position: relative; display: inline-flex; align-items: center; }
.nav-drop > a { font-size: var(--text-sm); font-weight: 600; color: #d8d5cd; padding: .5rem 0 .5rem .25rem; border-bottom: 2px solid transparent; transition: color .15s ease, border-color .15s ease; }
.nav-drop > a:hover { color: #ffffff; }
.nav-drop.active > a, .nav-drop > a[aria-current="page"] { color: #ffffff; border-bottom-color: var(--red); }
.nav-drop > button::after {
  content: ""; width: 7px; height: 7px; border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor;
  transform: rotate(45deg) translateY(-2px); transition: transform .15s ease;
}
.nav-drop > .drop-arrow {
  width: 26px; height: 26px; display: grid; place-items: center; color: #d8d5cd;
  border-radius: 50%; margin-left: .1rem;
}
.nav-drop > .drop-arrow:hover { color: #ffffff; background: #23242a; }
.nav-drop > .drop-arrow::after { transform: rotate(45deg) translateY(-1px); }
.nav-drop[data-open] > button::after, .nav-drop[data-open] > .drop-arrow::after { transform: rotate(-135deg) translateY(-2px); }
.nav-drop-menu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  min-width: 240px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: .5rem; display: none; z-index: 200;
}
.nav-drop[data-open] .nav-drop-menu { display: grid; }
.nav-drop-menu a { display: block; padding: .65rem .8rem; border-radius: 9px; font-size: var(--text-sm); color: var(--ink); }
.nav-drop-menu a:hover { background: var(--surface-2); }
.nav-drop-menu a span { display: block; font-size: var(--text-xs); color: var(--muted); font-weight: 400; }
.nav-drop-menu a[aria-current="page"] { background: color-mix(in srgb, var(--red) 7%, var(--surface)); color: var(--red-dark); }
.header-actions { display: flex; align-items: center; gap: var(--s3); }
.menu-button { width: 44px; height: 44px; border: 1px solid #33343a; border-radius: 50%; background: transparent; color: #d8d5cd; display: grid; place-items: center; }
/* Panneau mobile : burger -> groupes en accordéon */
.mobile-nav { display: none; border-top: 1px solid #222327; background: #0a0a0a; }
.mobile-nav.open { display: block; }
.mobile-nav nav { display: grid; padding: var(--s3) 0 var(--s5); }
.m-group > button {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: .85rem 0; font-size: var(--text-sm); font-weight: 700; color: #f3f1ec;
  border-bottom: 1px solid #222327; background: none; text-align: left;
}
.m-group > button::after {
  content: ""; width: 8px; height: 8px; border-right: 2px solid #8b8880; border-bottom: 2px solid #8b8880;
  transform: rotate(45deg); transition: transform .15s ease;
}
.m-group[data-open] > button::after { transform: rotate(-135deg); }
.m-group > div { display: none; }
.m-group[data-open] > div { display: grid; }
.m-group > div a { padding: .7rem 0 .7rem 1.1rem; color: #b5b2aa; border-bottom: 1px solid #222327; font-size: var(--text-sm); }
.m-group > div a[aria-current="page"] { color: #ff6b6b; font-weight: 700; }
.mobile-nav > nav > a { padding: .85rem 0; color: #f3f1ec; font-weight: 700; border-bottom: 1px solid #222327; font-size: var(--text-sm); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .8rem 1.35rem; border-radius: 999px;
  font-size: var(--text-sm); font-weight: 700; letter-spacing: .01em;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--red-dark); }
.btn-dark { background: var(--deep); color: var(--deep-ink); }
.btn-dark:hover { background: #2b2c31; }
.btn-ghost { border: 1px solid var(--line); background: var(--surface); }
.btn-ghost:hover { border-color: var(--faint); }
.btn-sm { min-height: 40px; padding: .5rem 1rem; }
.btn-cta-alt { border: 1px solid #4a4b52; background: transparent; color: #f3f1ec; }
.btn-cta-alt:hover { border-color: #f3f1ec; }
.cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: flex; gap: .6rem; padding: .6rem .9rem calc(.6rem + env(safe-area-inset-bottom));
  background: rgba(10, 10, 10, .96); border-top: 1px solid #222327;
}
.cta-bar .btn { flex: 1; }

/* ---------- Sections ---------- */
section { padding: var(--s16) 0; }
section[id] { scroll-margin-top: 96px; }
.section-tight { padding: var(--s12) 0; }
.section-dotted { background-image: var(--dots); background-size: 22px 22px; }
.section-alt { background: var(--surface-2); border-block: 1px solid var(--line); }
.section-head { max-width: 68ch; margin-bottom: var(--s10); }
.section-head p { color: var(--muted); }

/* ---------- Hero (index) ---------- */
.hero {
  position: relative; isolation: isolate; padding: clamp(5rem, 12vw, 9rem) 0 clamp(4rem, 9vw, 7rem);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img, .hero-bg video { width: 100%; height: 100%; object-fit: cover; }
.hero-veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    var(--dots),
    linear-gradient(100deg, rgba(246, 244, 240, .96) 0%, rgba(246, 244, 240, .88) 44%, rgba(246, 244, 240, .55) 100%);
  background-size: 22px 22px, cover;
}
.hero-inner { max-width: 640px; }
.hero h1 { margin-bottom: var(--s5); }
.hero h1 em { font-style: normal; color: var(--red); }
.hero .lead { margin-bottom: var(--s8); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-bottom: var(--s8); }
.hero-proof { display: flex; flex-wrap: wrap; gap: var(--s6); border-top: 1px solid var(--line); padding-top: var(--s5); }
.hero-proof div strong { font-family: var(--font-display); font-size: 1.35rem; display: block; }
.hero-proof div span { font-size: var(--text-xs); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Cartes génériques ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: var(--s6);
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: var(--s3); }
.card p { color: var(--muted); font-size: var(--text-sm); }
.grid { display: grid; gap: var(--s5); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr 1fr; }

.step-num {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--deep); color: var(--deep-ink); font-family: var(--font-display);
  font-size: 1rem; margin-bottom: var(--s4);
}
.icon-chip {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--red) 9%, var(--surface)); color: var(--red); margin-bottom: var(--s4);
}

/* ---------- Médaillon directeur ---------- */
.split { display: grid; gap: var(--s8); align-items: center; }
.medallion-wrap { display: grid; justify-items: center; gap: var(--s4); }
.medallion {
  width: min(320px, 70vw); aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-md); position: relative;
}
.medallion::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 8px rgba(246, 244, 240, .55); }
.medallion img { width: 100%; height: 100%; object-fit: cover; }
.medallion-dot { position: relative; }
.medallion-dot::before {
  content: ""; position: absolute; right: 6%; top: 4%; width: 46px; height: 46px;
  border-radius: 50%; background: var(--red); z-index: 2; box-shadow: 0 6px 16px rgba(211, 30, 42, .35);
}
figure.photo { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-md); background: var(--surface-2); }
figure.photo img { width: 100%; height: 100%; object-fit: cover; }
figure.photo figcaption { padding: var(--s3) var(--s4); font-size: var(--text-xs); color: var(--muted); background: var(--surface); border-top: 1px solid var(--line); }

/* ---------- Listing véhicules ---------- */
.filters {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--s5); box-shadow: var(--shadow-sm); display: grid; gap: var(--s4); margin-bottom: var(--s8);
}
.filters-grid { display: grid; gap: var(--s4); grid-template-columns: 1fr; }
.field { display: grid; gap: .4rem; }
.field label { font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.control {
  min-height: 48px; padding: .7rem .9rem; width: 100%;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--ink);
}
.control:focus { border-color: var(--faint); }
textarea.control { min-height: 130px; resize: vertical; }

.vehicle-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.vehicle-card .cover { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); position: relative; }
.vehicle-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.vehicle-card:hover .cover img { transform: scale(1.03); }
.vehicle-card .cover .badge {
  position: absolute; top: var(--s3); left: var(--s3);
  background: var(--deep); color: var(--deep-ink);
  padding: .35rem .7rem; border-radius: 999px; font-size: var(--text-xs); font-weight: 700;
}
.vehicle-card .body { padding: var(--s5); display: grid; gap: var(--s3); }
.vehicle-card .top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); }
.vehicle-card .price { font-family: var(--font-display); font-size: 1.45rem; white-space: nowrap; }
.vehicle-meta { display: flex; flex-wrap: wrap; gap: .45rem; }
.vehicle-meta span {
  font-size: var(--text-xs); font-weight: 600; color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--line);
  padding: .3rem .65rem; border-radius: 999px;
}
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); margin-bottom: var(--s5); flex-wrap: wrap; }

/* ---------- Fiche véhicule / diaporama ---------- */
.slideshow { display: grid; gap: var(--s3); }
.slideshow-main {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface-2); aspect-ratio: 4 / 3;
}
.slideshow-main img { width: 100%; height: 100%; object-fit: cover; }
.slideshow-nav {
  position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: center; padding: 0 var(--s3);
  pointer-events: none;
}
.slideshow-nav button {
  pointer-events: auto; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(253, 252, 250, .92); border: 1px solid var(--line); display: grid; place-items: center;
  box-shadow: var(--shadow-sm); transition: transform .15s ease;
}
.slideshow-nav button:hover { transform: scale(1.06); }
.slideshow-count {
  position: absolute; bottom: var(--s3); right: var(--s3);
  background: rgba(28, 29, 33, .82); color: var(--deep-ink);
  padding: .3rem .7rem; border-radius: 999px; font-size: var(--text-xs); font-weight: 700;
}
.slideshow-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s2); }
.slideshow-thumbs button {
  border-radius: var(--radius); overflow: hidden; border: 2px solid transparent; aspect-ratio: 4 / 3; background: var(--surface-2);
}
.slideshow-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.slideshow-thumbs button[aria-current="true"] { border-color: var(--red); }
.spec-list { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3) var(--s5); list-style: none; }
.spec-list li { border-bottom: 1px solid var(--line); padding-bottom: var(--s2); }
.spec-list span { display: block; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.spec-list strong { font-weight: 700; }
.detail-aside { position: sticky; top: 100px; display: grid; gap: var(--s5); align-self: start; }
.price-panel { text-align: left; }
.price-panel .price { font-family: var(--font-display); font-size: 2.2rem; line-height: 1; }

/* ---------- Timeline (dépôt-vente, espace client) ---------- */
.timeline { list-style: none; display: grid; gap: var(--s5); position: relative; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 10px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: -30px; top: 6px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--faint);
}
.timeline li.done::before { background: var(--red); border-color: var(--red); }
.timeline li.current::before { border-color: var(--red); background: var(--surface); box-shadow: 0 0 0 5px color-mix(in srgb, var(--red) 15%, transparent); }
.timeline strong { display: block; }
.timeline p { color: var(--muted); font-size: var(--text-sm); }

/* ---------- Formulaires ---------- */
.form-grid { display: grid; gap: var(--s4); }
.form-note { font-size: var(--text-xs); color: var(--faint); }
.form-feedback { display: none; border-radius: var(--radius); padding: var(--s4) var(--s5); font-size: var(--text-sm); font-weight: 600; }
.form-feedback.ok { display: block; background: color-mix(in srgb, #3d6f1e 10%, var(--surface)); color: #3d6f1e; border: 1px solid color-mix(in srgb, #3d6f1e 30%, var(--line)); }
.form-feedback.err { display: block; background: color-mix(in srgb, var(--red) 8%, var(--surface)); color: var(--red-dark); border: 1px solid color-mix(in srgb, var(--red) 30%, var(--line)); }

.estimate-result { display: none; text-align: center; padding: var(--s8); }
.estimate-result.show { display: block; }
.estimate-result .range { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--red); margin: var(--s3) 0; }

/* ---------- Panneau sombre (façon enseigne) ---------- */
.deep-panel {
  background: var(--deep); color: var(--deep-ink);
  border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.5rem);
  position: relative; overflow: hidden;
}
.deep-panel::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--dots-red); background-size: 20px 20px; opacity: .5;
}
.deep-panel > * { position: relative; }
.deep-panel h2 { color: #fff; }
.deep-panel p { color: #b9b6ae; }
.deep-panel .redline { height: 3px; width: 72px; background: var(--red); border-radius: 2px; margin: var(--s4) 0 var(--s5); }

/* ---------- Bandeau services (enseigne) ---------- */
.services-strip { display: grid; gap: var(--s3); grid-template-columns: 1fr 1fr; }
.services-strip div {
  display: flex; align-items: center; gap: .7rem; font-size: var(--text-sm); font-weight: 600;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s3) var(--s4);
}
.services-strip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); flex: 0 0 auto; }

/* ---------- Tableaux / documents (garanties) ---------- */
.doc-list { list-style: none; display: grid; gap: var(--s3); }
.doc-list li { display: flex; gap: .75rem; align-items: flex-start; color: var(--muted); font-size: var(--text-sm); }
.doc-list li::before { content: ""; margin-top: .5em; width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex: 0 0 auto; }

/* ---------- Contact / carte ---------- */
.choix-dest { border: 0; padding: 0; margin: 0; display: grid; gap: var(--s3); }
.choix-dest legend { font-size: var(--text-sm); font-weight: 700; color: var(--ink); padding: 0; margin-bottom: var(--s2); }
.choix { display: flex; align-items: flex-start; gap: .65rem; border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem .9rem; cursor: pointer; transition: border-color .15s, background .15s; }
.choix:hover { border-color: var(--red); }
.choix input { margin-top: .2rem; accent-color: var(--red); flex: 0 0 auto; }
.choix span { display: block; font-size: var(--text-sm); color: var(--muted); line-height: 1.35; }
.choix span strong { display: block; color: var(--ink); font-size: var(--text-base); }
.choix:has(input:checked) { border-color: var(--red); background: rgba(179, 27, 27, .05); }
.choix:has(input:focus-visible) { outline: 2px solid var(--red); outline-offset: 2px; }
@media (min-width: 560px) { .choix-dest { grid-template-columns: 1fr 1fr; } .choix-dest legend { grid-column: 1 / -1; } }

.map-placeholder {
  border-radius: var(--radius-lg); border: 1px solid var(--line); overflow: hidden;
  aspect-ratio: 16 / 9; background-image: var(--dots); background-size: 22px 22px; background-color: var(--surface-2);
  display: grid; place-items: center; color: var(--muted); font-size: var(--text-sm); text-align: center; padding: var(--s5);
}
.map-embed { border-radius: var(--radius-lg); border: 1px solid var(--line); overflow: hidden; aspect-ratio: 16 / 9; position: relative; }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-embed .map-link { position: absolute; right: var(--s3); bottom: var(--s3); background: #fff; color: var(--ink); font-size: var(--text-xs); font-weight: 700; padding: .4rem .75rem; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,.18); text-decoration: none; }
.info-rows { display: grid; gap: var(--s4); }
.info-rows > div { display: grid; gap: .15rem; border-bottom: 1px solid var(--line); padding-bottom: var(--s3); }
.info-rows span { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--deep); color: #b9b6ae; margin-top: var(--s16); padding: var(--s12) 0 var(--s8); }
.footer-duo {
  display: grid; gap: var(--s5) var(--s8);
  grid-template-columns: 1fr;
  grid-template-areas: "logoA" "linkA" "metaA" "logoT" "linkT" "metaT" "tag";
}
.fa-logoA { grid-area: logoA; } .fa-linkA { grid-area: linkA; } .fa-metaA { grid-area: metaA; }
.fa-logoT { grid-area: logoT; } .fa-linkT { grid-area: linkT; } .fa-metaT { grid-area: metaT; }
.footer-tagline { grid-area: tag; font-size: var(--text-sm); color: #b9b6ae; }
.footer-logo { height: 44px; width: auto; display: block; }
.footer-col h4 { color: #fff; font-size: var(--text-sm); text-transform: uppercase; letter-spacing: .1em; margin-bottom: var(--s3); }
.footer-col a, .footer-col p { display: block; font-size: var(--text-sm); color: #b9b6ae; padding: .25rem 0; }
.footer-col a:hover { color: #fff; }
.footer-meta { border-top: 1px solid #33343a; margin-top: var(--s4); padding-top: var(--s3); }
.footer-meta p { padding: .35rem 0 0; }
.footer-meta p:first-child { padding-top: 0; }
.footer-meta strong { display: block; color: #fff; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .2rem; }
.footer-meta a { display: inline; padding: 0; text-decoration: none; }
.footer-meta a:hover { color: #fff; text-decoration: underline; }
.footer-note { border-top: 1px solid #33343a; margin-top: var(--s8); padding-top: var(--s5); font-size: var(--text-xs); color: #83817b; display: flex; flex-wrap: wrap; gap: var(--s4); justify-content: space-between; }
.footer-note a { color: inherit; text-decoration: underline; }
.footer-note a:hover { color: #b9b6ae; }
.footer-addresses { margin-top: var(--s3); font-size: var(--text-xs); color: #83817b; display: flex; flex-wrap: wrap; gap: .35rem var(--s6); }
.footer-addresses strong { color: #b9b6ae; font-weight: 700; margin-right: .35rem; }

/* ---------- Révélation au scroll ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Pages légales ---------- */
.legal { max-width: 76ch; }
.legal h2 { font-size: var(--text-lg); margin-top: var(--s8); }
.legal p, .legal li { color: var(--muted); font-size: var(--text-sm); }
.legal ul { padding-left: 1.2rem; display: grid; gap: .4rem; }

/* ---------- Responsive ---------- */
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .filters-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr 1fr; }
  .split.split-wide { grid-template-columns: 1.15fr .85fr; }
  .services-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-duo {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "logoA logoA" "linkA metaA" "logoT logoT" "linkT metaT" "tag tag";
  }
}
@media (min-width: 1020px) {
  .footer-duo {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-areas:
      "logoA logoA logoT logoT"
      "tag   tag   tag   tag"
      "linkA metaA linkT metaT";
    row-gap: var(--s6);
  }
  .footer-tagline { text-align: center; max-width: 84ch; margin: 0 auto; text-wrap: balance; }
  .fa-logoT { justify-self: end; }
  .fa-linkT, .fa-metaT { text-align: right; }
  .fa-linkT { border-left: 1px solid #33343a; padding-left: var(--s8); }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filters-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .detail-layout { display: grid; grid-template-columns: 1.25fr .75fr; gap: var(--s8); align-items: start; }
}
@media (max-width: 1019px) {
  .detail-aside { position: static; }
}

@media (min-width: 1240px) {
  .nav { display: flex; }
  .menu-button { display: none; }
  .cta-bar { display: none; }
}
@media (max-width: 1239px) {
  .header-actions .btn { display: none; }
  body { padding-bottom: 74px; }
  footer.site-footer { padding-bottom: calc(var(--s8) + 74px); }
}
