/* ═══════════════════════════════════════════════════════════
   MMG Nettoyage — v3
   Chaque thème définit ses couleurs, sa typo et ses arrondis.
   ═══════════════════════════════════════════════════════════ */

/* ── Thème MMG (couleurs du logo) — par défaut ───────── */
:root,
[data-theme="mmg"] {
  --hl: #e0a92b;
  --on-hl: #142019;
  --bg: #ffffff;
  --bg-alt: #f2f4ef;
  --surface: #ffffff;
  --ink: #142019;
  --muted: #5b665f;
  --line: #dde2da;
  --accent: #0b4d2c;
  --accent-hover: #0e5f37;
  --on-accent: #ffffff;
  --accent-2: #e0a92b;
  --dark: #0b3a22;
  --on-dark: #ffffff;
  --on-dark-muted: rgba(255, 255, 255, 0.7);
  --dark-line: rgba(255, 255, 255, 0.16);
  --font-head: "Montserrat", Arial, sans-serif;
  --font-body: "Source Sans 3", Arial, sans-serif;
  --head-weight: 800;
  --head-case: none;
  --head-track: -0.025em;
  --head-lh: 1.08;
  --h1: clamp(2.3rem, 4.8vw, 3.9rem);
  --radius: 6px;
  --btn-radius: 6px;
  color-scheme: light;
}

[data-theme="atelier"] {
  --hl: #d9a441;
  --on-hl: #1d1c19;
  --bg: #f3efe6;
  --bg-alt: #e9e3d6;
  --surface: #faf8f3;
  --ink: #1d1c19;
  --muted: #69645a;
  --line: #d6cdbb;
  --accent: #2f4a3a;
  --accent-hover: #3b5d49;
  --on-accent: #f7f3ea;
  --accent-2: #c08a2c;
  --dark: #23231f;
  --on-dark: #f3efe6;
  --on-dark-muted: rgba(243, 239, 230, 0.68);
  --dark-line: rgba(243, 239, 230, 0.16);
  --font-head: "Archivo", Arial, sans-serif;
  --font-body: "IBM Plex Sans", Arial, sans-serif;
  --head-weight: 800;
  --head-case: none;
  --head-track: -0.03em;
  --head-lh: 1.02;
  --h1: clamp(2.4rem, 5vw, 4.2rem);
  --radius: 0px;
  --btn-radius: 0px;
}

[data-theme="terracotta"] {
  --hl: #e08a5e;
  --on-hl: #2b1e16;
  --bg: #f2e9de;
  --bg-alt: #e8dccd;
  --surface: #f8f2ea;
  --ink: #2b1e16;
  --muted: #6e5c4f;
  --line: #d9c8b4;
  --accent: #b4532a;
  --accent-hover: #c46236;
  --on-accent: #fff8f1;
  --accent-2: #2b1e16;
  --dark: #2b1e16;
  --on-dark: #f2e9de;
  --on-dark-muted: rgba(242, 233, 222, 0.7);
  --dark-line: rgba(242, 233, 222, 0.16);
  --font-head: "DM Serif Display", Georgia, serif;
  --font-body: "Work Sans", Arial, sans-serif;
  --head-weight: 400;
  --head-case: none;
  --head-track: -0.01em;
  --head-lh: 1.06;
  --h1: clamp(2.5rem, 5.2vw, 4.4rem);
  --radius: 3px;
  --btn-radius: 999px;
}

[data-theme="pro"] {
  --hl: #ffb400;
  --on-hl: #0f1b2d;
  --bg: #ffffff;
  --bg-alt: #eef2f7;
  --surface: #ffffff;
  --ink: #0f1b2d;
  --muted: #56627a;
  --line: #d9e0ea;
  --accent: #1f5fbf;
  --accent-hover: #2a6fd6;
  --on-accent: #ffffff;
  --accent-2: #ffb400;
  --dark: #0f1b2d;
  --on-dark: #ffffff;
  --on-dark-muted: rgba(255, 255, 255, 0.68);
  --dark-line: rgba(255, 255, 255, 0.15);
  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", Arial, sans-serif;
  --head-weight: 700;
  --head-case: uppercase;
  --head-track: 0;
  --head-lh: 1;
  --h1: clamp(2.6rem, 5.6vw, 4.6rem);
  --radius: 4px;
  --btn-radius: 4px;
}

[data-theme="nuit"] {
  --hl: #f2c200;
  --on-hl: #111111;
  --bg: #111111;
  --bg-alt: #191919;
  --surface: #1c1c1c;
  --ink: #f1efe8;
  --muted: #a39f95;
  --line: #2f2f2f;
  --accent: #f2c200;
  --accent-hover: #ffd21f;
  --on-accent: #111111;
  --accent-2: #f2c200;
  --dark: #1c1c1c;
  --on-dark: #f1efe8;
  --on-dark-muted: rgba(241, 239, 232, 0.65);
  --dark-line: #333333;
  --font-head: "Anton", Impact, sans-serif;
  --font-body: "Karla", Arial, sans-serif;
  --head-weight: 400;
  --head-case: uppercase;
  --head-track: 0.005em;
  --head-lh: 1.12;
  --h1: clamp(2.6rem, 5.8vw, 4.8rem);
  --radius: 0px;
  --btn-radius: 0px;
  color-scheme: dark;
}

[data-theme="menthe"] {
  --hl: #ff8a5b;
  --on-hl: #0f2a26;
  --bg: #f6fbf9;
  --bg-alt: #e3f1ec;
  --surface: #ffffff;
  --ink: #0f2a26;
  --muted: #557069;
  --line: #d3e6df;
  --accent: #0d7a6f;
  --accent-hover: #10907f;
  --on-accent: #ffffff;
  --accent-2: #ff8a5b;
  --dark: #0f2a26;
  --on-dark: #ffffff;
  --on-dark-muted: rgba(255, 255, 255, 0.7);
  --dark-line: rgba(255, 255, 255, 0.15);
  --font-head: "Lexend", Arial, sans-serif;
  --font-body: "Lexend", Arial, sans-serif;
  --head-weight: 600;
  --head-case: none;
  --head-track: -0.03em;
  --head-lh: 1.1;
  --h1: clamp(2.2rem, 4.6vw, 3.6rem);
  --radius: 16px;
  --btn-radius: 999px;
}

/* ── Base ───────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }

h1, h2, h3, .brand-txt, .footer-brand, .promise-n, .citation blockquote, .methode-cta > p {
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  text-transform: var(--head-case);
  letter-spacing: var(--head-track);
  line-height: var(--head-lh);
}
h1 { font-size: var(--h1); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.3rem; line-height: 1.2; }

.overline {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

/* ── Boutons ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: var(--btn-radius);
  border: 2px solid transparent;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--bg); }
.btn-full { width: 100%; }

/* ── Bandeau haut ───────────────────────────────────── */
.topbar { background: var(--dark); color: var(--on-dark-muted); font-size: 0.85rem; }
.topbar-in { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; }
.topbar-links { display: flex; gap: 24px; }
.topbar a { color: var(--on-dark); text-decoration: none; }
.topbar a:hover { text-decoration: underline; }

/* ── En-tête ────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.header-in { display: flex; align-items: center; gap: 32px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 36px; height: 36px; }
.bm-house { fill: var(--accent); }
.bm-spark { fill: var(--accent-2); }
[data-theme="nuit"] .bm-house { fill: #f1efe8; }
[data-theme="nuit"] .brand-mark path[stroke] { stroke: #111; }
[data-theme="terracotta"] .bm-spark { fill: #e08a5e; }
.brand-txt { font-size: 1.25rem; line-height: 1; }
.brand-txt span { color: var(--accent); }

.menu { display: flex; gap: 28px; margin-left: auto; }
.menu a { text-decoration: none; font-weight: 500; color: var(--ink); padding: 6px 0; border-bottom: 2px solid transparent; }
.menu a:hover, .menu a.active { border-bottom-color: var(--accent); }
.menu-devis { display: none; }

.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer; margin-left: auto; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); transition: transform 0.2s, opacity 0.2s; }
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 20px; }
.burger span:nth-child(3) { top: 26px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── Héro ───────────────────────────────────────────── */
.hero { padding: clamp(48px, 7vw, 88px) 0 0; }
.hero-in {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero-p { margin-top: 22px; max-width: 540px; font-size: 1.15rem; color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-img { aspect-ratio: 5 / 4; border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(48px, 6vw, 72px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.facts li { padding: 22px 20px; }
.facts li:first-child { padding-left: 0; }
.facts li + li { border-left: 1px solid var(--line); }
.facts strong { display: block; font-size: 1.05rem; }
.facts span { display: block; font-size: 0.93rem; color: var(--muted); }

/* ── Sections ───────────────────────────────────────── */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.band { background: var(--bg-alt); }
.band-dark { background: var(--dark); color: var(--on-dark); }
.band-dark .overline, .band-dark .head-p { color: var(--on-dark-muted); }
.head { max-width: 640px; margin-bottom: 44px; }
.head-p { margin-top: 16px; color: var(--muted); font-size: 1.1rem; }
.head-p a { color: var(--accent); font-weight: 600; }

/* engagements */
.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.promise { border-top: 3px solid var(--accent); padding-top: 22px; }
.promise-n { display: block; font-size: 2.6rem; color: var(--accent-2); margin-bottom: 12px; }
[data-theme="terracotta"] .promise-n { color: var(--accent); }
.promise p { margin-top: 10px; color: var(--muted); }

/* faq */
.faq-in { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-weight: 600;
  font-size: 1.1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 20px; color: var(--muted); max-width: 600px; }

/* contact */
.contact-in { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
.contact-in .head { margin-bottom: 0; }
.coords { margin-top: 32px; border-top: 1px solid var(--line); }
.coords div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.coords dt { color: var(--muted); font-size: 0.93rem; }
.coords dd { font-weight: 600; overflow-wrap: anywhere; }
.coords a { text-decoration: none; }
.coords a:hover { color: var(--accent); }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); display: grid; gap: 18px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field span { font-size: 0.92rem; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: min(var(--radius), 10px);
  background: var(--bg);
  font-size: 1rem;
  resize: vertical;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.field .invalid { border-color: #c8412b; }
.form-err { color: #c8412b; font-weight: 600; font-size: 0.93rem; }
.form-err:empty { display: none; }
[data-theme="nuit"] .form-err { color: #ff7a5c; }
[data-theme="nuit"] .field .invalid { border-color: #ff7a5c; }
.form-note { font-size: 0.88rem; color: var(--muted); text-align: center; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 48px 0 24px; font-size: 0.95rem; }
.footer-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-brand { font-size: 1.3rem; }
.footer-muted { color: var(--muted); margin-top: 6px; }
.footer li { margin-bottom: 8px; overflow-wrap: anywhere; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--accent); }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.88rem; }

/* ── Sélecteur de thèmes ────────────────────────────── */
.themes { position: fixed; left: 20px; bottom: 20px; z-index: 80; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
.themes-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}
.themes-dots { display: flex; }
.themes-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; margin-left: -5px; }
.themes-dots i:first-child { margin-left: 0; background: var(--accent); }
.themes-dots i:nth-child(2) { background: var(--accent-2); }
.themes-dots i:nth-child(3) { background: var(--bg-alt); }
.themes-panel {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  width: 320px;
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  color: #111;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}
.themes-title { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: #666; margin: 2px 4px 10px; }
.themes-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.themes-list button {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  align-items: center;
  text-align: left;
  padding: 10px;
  border: 1.5px solid #e5e5e5;
  border-radius: 10px;
  background: #fff;
  color: #111;
  cursor: pointer;
}
.themes-list button:hover { border-color: #bbb; }
.themes-list button[aria-pressed="true"] { border-color: #111; background: #f6f6f6; }
.themes-list .sw {
  grid-row: span 2;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: conic-gradient(var(--a) 0 50%, var(--b) 50% 75%, var(--c) 75%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.themes-list .tn { font-size: 0.98rem; line-height: 1.2; }
.themes-list small { font-size: 0.74rem; color: #777; line-height: 1.2; }

.mobile-bar { display: none; }

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 1000px) {
  .header-cta { display: none; }
  .burger { display: block; }
  .menu {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 16px 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .menu.open { display: flex; }
  .menu a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .menu a:hover, .menu a.active { border-bottom-color: var(--line); color: var(--accent); }
  .menu-devis { display: block; color: var(--accent) !important; font-weight: 700 !important; }

  .hero-in, .faq-in, .contact-in { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts li:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .promises { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  .topbar-in > span:first-child { display: none; }
  .topbar-links { width: 100%; justify-content: space-between; gap: 12px; }
  .topbar-links a:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .header-in { height: 64px; }
  .brand-txt { font-size: 1.1rem; }
  .hero-cta .btn { width: 100%; }
  .facts li { padding: 16px 12px 16px 0; }
  .facts li + li { padding-left: 12px; }
  .facts li:nth-child(3) { padding-left: 0; }
  .row { grid-template-columns: 1fr; }
  .coords div { grid-template-columns: 1fr; gap: 2px; }
  .footer-in { grid-template-columns: 1fr; }
  body { padding-bottom: 72px; }

  .themes { left: 12px; bottom: 80px; }
  .themes-btn { padding: 8px 12px 8px 10px; font-size: 0.82rem; }
  .themes-panel { width: calc(100vw - 24px); }

  .mobile-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 70;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: var(--bg);
    border-top: 1px solid var(--line);
  }
  .mobile-bar a {
    display: flex; align-items: center; justify-content: center;
    min-height: 46px;
    border-radius: var(--btn-radius);
    border: 2px solid var(--ink);
    font-weight: 600;
    text-decoration: none;
  }
  .mobile-bar .mobile-bar-devis { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
.nowrap { white-space: nowrap; }

/* ── Accents ────────────────────────────────────────── */
.hl { color: var(--accent); }
.on-dark .hl, .resultat .hl, .methode .hl, .citation .hl { color: var(--hl); }
:root { --ease: cubic-bezier(0.22, 1, 0.36, 1); --r-lg: max(var(--radius), 4px); }
[data-theme="mmg"], :root:not([data-theme]) { --r-lg: 22px; }
[data-theme="menthe"] { --r-lg: 28px; }
[data-theme="terracotta"] { --r-lg: 18px; }
[data-theme="pro"] { --r-lg: 10px; }
[data-theme="atelier"], [data-theme="nuit"] { --r-lg: 0px; }

.btn-hl { background: var(--hl); color: var(--on-hl); }
.btn-hl:hover { filter: brightness(1.08); }

/* ── Héro animé ─────────────────────────────────────── */
.hero-checks { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 30px; }
.hero-checks li { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.hero-checks svg { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--hl); color: var(--on-hl); }
.hero-art { position: relative; padding: 0 0 24px 24px; }
.hero-block {
  position: absolute;
  left: 0; bottom: 0;
  width: 78%; height: 82%;
  background: var(--accent);
  border-radius: var(--r-lg);
}
.hero-art .hero-img { position: relative; border-radius: var(--r-lg); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.45); }
.stamp {
  position: absolute;
  right: -18px; top: -26px;
  width: 124px; height: 124px;
  border-radius: 50%;
  background: var(--hl);
  color: var(--on-hl);
  display: grid; place-items: center;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.45);
}
.stamp > svg:first-child { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 16s linear infinite; }
.stamp text { font-family: var(--font-body); font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; fill: currentColor; }
.stamp-spark { width: 30px; height: 30px; }
@keyframes spin { to { transform: rotate(360deg); } }
.spark { position: absolute; color: var(--hl); animation: twinkle 3s ease-in-out infinite; }
.sp1 { width: 28px; height: 28px; left: -6px; top: 18%; }
.sp2 { width: 18px; height: 18px; right: 12%; bottom: -4px; animation-delay: -1.5s; color: var(--accent); }
@keyframes twinkle { 50% { transform: scale(0.5) rotate(45deg); opacity: 0.5; } }

/* ── Bandeau défilant ───────────────────────────────── */
.ticker { overflow: hidden; padding: 22px 0; background: var(--accent); color: var(--on-accent); }
.ticker-track { display: flex; align-items: center; gap: 32px; width: max-content; animation: ticker 36s linear infinite; }
.ticker span {
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  text-transform: var(--head-case);
  letter-spacing: var(--head-track);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  white-space: nowrap;
}
.ticker svg { width: 20px; height: 20px; color: var(--hl); flex: none; }
[data-theme="nuit"] .ticker svg, [data-theme="terracotta"] .ticker svg { color: var(--on-accent); }
@keyframes ticker { to { transform: translateX(calc(-50% - 16px)); } }

/* ── Services (bento) ───────────────────────────────── */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(300px, auto); gap: 16px; }
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  padding: 30px;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.35); }
.card-xl { grid-column: span 2; min-height: 460px; }
.card-num { font-family: var(--font-head); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em; opacity: 0.65; margin-bottom: auto; }
.card h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); margin-top: 24px; }
.card p { margin-top: 10px; font-size: 0.98rem; opacity: 0.85; max-width: 460px; }
.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 22px;
  font-weight: 700; font-size: 0.95rem;
  align-self: flex-start;
  text-decoration: none;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 2px;
}
.card-link svg { width: 16px; height: 16px; transition: transform 0.35s var(--ease); }
.card-link:hover svg { transform: translate(2px, -2px); }

.card-photo { color: #fff; justify-content: flex-end; }
.card-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.card-photo:hover img { transform: scale(1.05); }
.card-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.3) 40%, rgba(0, 0, 0, 0.85) 100%); }
.card-photo .card-body { display: flex; flex-direction: column; height: 100%; }
.card-photo .card-num { align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.18); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 1; }
.card-photo .card-link { color: var(--hl); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tags li { padding: 6px 12px; border-radius: 999px; font-size: 0.84rem; font-weight: 600; background: rgba(255, 255, 255, 0.12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); }

.card-ico { position: absolute; right: 26px; top: 26px; width: 64px; height: 64px; display: grid; place-items: center; border-radius: max(var(--radius), 0px); border-radius: calc(var(--r-lg) * 0.7); }
.card-ico svg { width: 34px; height: 34px; }
.card-plain { background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.card-plain .card-ico { background: var(--bg-alt); color: var(--accent); }
.card-plain .card-link { color: var(--accent); }
.card-accent { background: var(--accent); color: var(--on-accent); }
.card-accent .card-ico { background: rgba(255, 255, 255, 0.12); }
.card-accent .card-link { color: var(--hl); }
[data-theme="nuit"] .card-accent .card-ico { background: rgba(0, 0, 0, 0.1); }
[data-theme="nuit"] .card-accent .card-link, [data-theme="terracotta"] .card-accent .card-link { color: var(--on-accent); }
.card-hl { background: var(--hl); color: var(--on-hl); }
.card-hl .card-ico { background: rgba(0, 0, 0, 0.08); }
[data-theme="nuit"] .card-hl { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--accent); }
[data-theme="nuit"] .card-hl .card-ico { color: var(--accent); background: var(--bg-alt); }

/* ── Avant / Après + Méthode + Citation : blocs sombres ─ */
.resultat, .methode, .citation { background: var(--dark); color: var(--on-dark); }
.resultat .overline, .methode .overline { color: var(--hl); }
.resultat {
  border-radius: clamp(24px, 4vw, 48px);
  border-radius: max(var(--r-lg), 0px);
  margin-inline: clamp(0px, 1.5vw, 20px);
  overflow: hidden;
}
.resultat-in { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.resultat-txt > p { margin-top: 20px; color: var(--on-dark-muted); font-size: 1.08rem; }
.checklist { margin-top: 28px; display: grid; gap: 12px; }
.checklist li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.checklist svg { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--hl); color: var(--on-hl); flex: none; }

.ba { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.6); user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-before .ba-img { filter: sepia(0.7) saturate(0.45) brightness(0.6) contrast(0.82) blur(0.8px); }
.ba-dirt {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 22% 14% at 22% 78%, rgba(70, 50, 20, 0.7), transparent 70%),
    radial-gradient(ellipse 16% 10% at 62% 86%, rgba(60, 42, 18, 0.65), transparent 70%),
    radial-gradient(ellipse 10% 7% at 45% 70%, rgba(50, 35, 15, 0.6), transparent 70%),
    radial-gradient(ellipse 8% 12% at 12% 40%, rgba(80, 60, 30, 0.45), transparent 70%),
    radial-gradient(ellipse 12% 18% at 84% 30%, rgba(90, 70, 40, 0.3), transparent 70%),
    radial-gradient(ellipse 30% 20% at 40% 20%, rgba(120, 100, 70, 0.25), transparent 70%),
    linear-gradient(180deg, rgba(120, 98, 60, 0.18), rgba(60, 45, 20, 0.3));
  mix-blend-mode: multiply;
}
.ba-dirt::after {
  content: "";
  position: absolute; inset: 0;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
.ba-label { position: absolute; top: 18px; padding: 6px 14px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; background: rgba(0, 0, 0, 0.55); color: #fff; pointer-events: none; }
.ba-label-l { left: 18px; }
.ba-label-r { right: 18px; background: var(--hl); color: var(--on-hl); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; pointer-events: none; box-shadow: 0 0 20px rgba(0, 0, 0, 0.3); }
.ba-handle span { position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; transform: translate(-50%, -50%); border-radius: 50%; background: #fff; color: #111; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); transition: transform 0.3s var(--ease); }
.ba-handle svg { width: 22px; height: 22px; }
.ba:hover .ba-handle span { transform: translate(-50%, -50%) scale(1.08); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; -webkit-appearance: none; appearance: none; }
.ba:has(.ba-range:focus-visible) { outline: 2.5px solid var(--hl); outline-offset: 4px; }
.ba-note { position: absolute; right: 14px; bottom: 12px; font-size: 0.72rem; color: rgba(255, 255, 255, 0.75); pointer-events: none; }

/* engagements : un peu plus de vie */
.promise { transition: transform 0.4s var(--ease); }
.promise:hover { transform: translateY(-4px); }
.promise-n { font-size: 3.4rem; }

/* ── Méthode (version d'origine, animée) ────────────── */
.methode { border-radius: max(var(--r-lg), 0px) max(var(--r-lg), 0px) 0 0; }
.methode-head { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 50px; align-items: end; margin-bottom: 60px; }
.methode-intro { color: var(--on-dark-muted); padding-bottom: 6px; }
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; align-items: stretch; }
.steps::before, .steps::after { content: "→"; position: absolute; top: 50%; transform: translate(-50%, -50%); font-size: 1.5rem; color: var(--hl); z-index: 2; }
.steps::before { left: calc(33.333% - 8px); }
.steps::after { left: calc(66.666% + 8px); }
.step {
  position: relative;
  background: color-mix(in srgb, var(--on-dark) 5%, transparent);
  border: 1.5px dashed color-mix(in srgb, var(--on-dark) 28%, transparent);
  border-radius: var(--r-lg);
  padding: 28px 26px 30px;
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.35s, background-color 0.35s;
}
.step:hover { transform: translateY(-8px); border-color: var(--hl); background: color-mix(in srgb, var(--on-dark) 8%, transparent); }
.step-filigrane {
  position: absolute; top: -22px; right: 12px;
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  font-size: 8rem; line-height: 1;
  color: color-mix(in srgb, var(--on-dark) 7%, transparent);
  pointer-events: none;
}
.step-badge {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--hl);
  border: 1.5px solid color-mix(in srgb, var(--hl) 55%, transparent);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 20px;
}
.step h3 { font-size: 1.35rem; margin-bottom: 10px; }
.step p { color: var(--on-dark-muted); font-size: 0.97rem; margin-bottom: 18px; }
.step-link {
  display: inline-block;
  color: var(--hl);
  text-decoration: none;
  font-weight: 600; font-size: 0.93rem;
  border-bottom: 1.5px dashed color-mix(in srgb, var(--hl) 55%, transparent);
  padding-bottom: 2px;
}
a.step-link:hover { border-bottom-style: solid; border-color: var(--hl); }

.methode-cta {
  margin-top: 64px;
  border: 1.5px dashed color-mix(in srgb, var(--on-dark) 30%, transparent);
  border-radius: max(var(--btn-radius), 0px);
  padding: 22px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap;
}
[data-theme="mmg"] .methode-cta, :root:not([data-theme]) .methode-cta { border-radius: 999px; }
.methode-cta > p { font-size: clamp(1.25rem, 2.4vw, 1.7rem); }
.methode-cta-r { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.methode-note { font-size: 0.88rem; color: var(--on-dark-muted); }

/* vignettes animées */
.step-anim {
  height: 132px;
  margin-bottom: 22px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.22);
  border-radius: calc(var(--r-lg) * 0.7);
  overflow: hidden;
  color: var(--hl);
}
.step-anim svg { height: 86%; width: auto; overflow: visible; }
.trait { stroke: var(--on-dark); stroke-width: 2.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.trait.doc { fill: color-mix(in srgb, var(--on-dark) 6%, transparent); }
.accent { stroke: var(--hl); }

.anim-tel { transform-box: fill-box; transform-origin: center; animation: sonner 3s ease-in-out infinite; }
@keyframes sonner {
  0%, 50%, 100% { transform: rotate(0deg); }
  56% { transform: rotate(-11deg); }
  62% { transform: rotate(9deg); }
  68% { transform: rotate(-7deg); }
  74% { transform: rotate(5deg); }
  80% { transform: rotate(0deg); }
}
.onde { opacity: 0; animation: onduler 3s ease-out infinite; }
.o2 { animation-delay: 0.15s; }
.o3 { animation-delay: 0.3s; }
@keyframes onduler { 0%, 48% { opacity: 0; } 58% { opacity: 1; } 85%, 100% { opacity: 0; } }

.ligne { stroke-dasharray: 36; stroke-dashoffset: 36; animation: ecrire 4.2s ease-in-out infinite; }
.l2 { animation-delay: 0.45s; }
.l3 { animation-delay: 0.9s; }
@keyframes ecrire { 0% { stroke-dashoffset: 36; } 30%, 88% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 36; } }
.coche { transform-box: fill-box; transform-origin: center; transform: scale(0); animation: valider 4.2s cubic-bezier(0.34, 1.56, 0.64, 1) infinite; }
@keyframes valider { 0%, 42% { transform: scale(0); } 52% { transform: scale(1.15); } 58%, 88% { transform: scale(1); } 96%, 100% { transform: scale(0); } }
.coche-fond { fill: var(--hl); }
.coche-trait { stroke: var(--on-hl); }

.raclette { animation: essuyer 3.8s ease-in-out infinite; }
@keyframes essuyer { 0%, 12% { transform: translateX(0); } 55%, 100% { transform: translateX(64px); } }
.bande { fill: color-mix(in srgb, var(--on-dark) 30%, transparent); animation: reflet 3.8s ease-in-out infinite; }
@keyframes reflet { 0%, 12% { transform: skewX(-14deg) translateX(0); } 55%, 100% { transform: skewX(-14deg) translateX(120px); } }
.etincelle { transform-box: fill-box; transform-origin: center; transform: scale(0); animation: petiller 3.8s ease-out infinite; }
.etincelle.e1, .etincelle.e3 { fill: var(--on-dark); }
.etincelle.e2 { fill: var(--hl); }
.e2 { animation-delay: 0.25s; }
.e3 { animation-delay: 0.5s; }
@keyframes petiller {
  0%, 45% { transform: scale(0) rotate(0deg); }
  58% { transform: scale(1.25) rotate(20deg); }
  66%, 85% { transform: scale(1) rotate(20deg); }
  100% { transform: scale(0) rotate(40deg); }
}

/* citation */
.citation { padding: 0 0 clamp(80px, 10vw, 120px); margin-top: -1px; text-align: center; }
.citation-spark { width: 36px; height: 36px; margin: 0 auto 24px; color: var(--hl); animation: twinkle 3.4s ease-in-out infinite; }
.citation blockquote { font-size: clamp(2rem, 5vw, 3.8rem); line-height: 1.1; }
.citation-sign { margin-top: 18px; color: var(--on-dark-muted); }

/* ── Zone ───────────────────────────────────────────── */
.zone-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.zone-groups { margin-top: 28px; display: grid; gap: 4px; margin-inline: -20px; }
.zg { padding: 18px 20px; border-radius: calc(var(--r-lg) * 0.8); transition: background-color 0.3s; }
.zg:hover, .zg.on { background: var(--bg-alt); }
.zg > p { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 8px 8px 16px; border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); font-weight: 600; font-size: 0.95rem; }
.chip b { font-family: var(--font-head); font-size: 0.8rem; padding: 2px 9px; border-radius: 999px; background: var(--accent); color: var(--on-accent); }
[data-theme="atelier"] .chip, [data-theme="atelier"] .chip b, [data-theme="nuit"] .chip, [data-theme="nuit"] .chip b { border-radius: 0; }

.radar { position: relative; max-width: 480px; width: 100%; margin-inline: auto; }
.radar svg { width: 100%; height: auto; overflow: visible; }
.ring { fill: none; stroke: var(--line); stroke-width: 1.5; transition: fill 0.4s, stroke 0.4s; }
.ring.r2 { fill: color-mix(in srgb, var(--accent) 6%, transparent); }
.ring.r1 { fill: color-mix(in srgb, var(--accent) 9%, transparent); stroke-dasharray: 5 6; }
.ring.r0 { fill: color-mix(in srgb, var(--accent) 15%, transparent); }
.radar[data-on="0"] .r0, .radar[data-on="1"] .r1, .radar[data-on="2"] .r2 { fill: color-mix(in srgb, var(--hl) 28%, transparent); stroke: var(--hl); }
.radar-sweep { transform-origin: 200px 200px; animation: spin 7s linear infinite; }
.radar-sweep path { fill: color-mix(in srgb, var(--accent) 10%, transparent); }
.dep circle { fill: var(--accent); stroke: var(--bg); stroke-width: 3; transition: r 0.3s, fill 0.3s; }
.dep text { font-family: var(--font-head); font-weight: var(--head-weight); font-size: 15px; text-anchor: middle; fill: var(--ink); }
.paris circle { fill: var(--hl); }
.radar[data-on="0"] .d0 circle, .radar[data-on="1"] .d1 circle, .radar[data-on="2"] .d2 circle { fill: var(--hl); r: 8; }

/* ── Apparitions ────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease) var(--d, 0s), transform 0.8s var(--ease) var(--d, 0s); }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  .hero-art { max-width: 520px; margin: 20px auto 0; width: 100%; }
  .bento { grid-template-columns: 1fr 1fr; }
  .card-hl { grid-column: span 2; }
  .resultat-in, .zone-in { grid-template-columns: 1fr; }
  .methode-head { grid-template-columns: 1fr; gap: 18px; margin-bottom: 44px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps::before, .steps::after { display: none; }
  .methode-cta { justify-content: center; text-align: center; border-radius: max(var(--r-lg), 0px) !important; }
}
@media (max-width: 640px) {
  .stamp { width: 96px; height: 96px; right: -4px; top: -20px; }
  .stamp-spark { width: 22px; height: 22px; }
  .hero-art { padding: 0 0 16px 16px; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .card-xl, .card-hl { grid-column: auto; }
  .card { padding: 24px; min-height: 0; }
  .card-photo { min-height: 400px; }
  .card-plain, .card-accent, .card-hl { padding-top: 100px; }
  .card-ico { left: 24px; right: auto; top: 24px; width: 56px; height: 56px; }
  .card-plain .card-num, .card-accent .card-num, .card-hl .card-num { position: absolute; right: 24px; top: 30px; }
  .resultat { margin-inline: 0; }
  .zone-groups { margin-inline: -12px; }
  .zg { padding: 14px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
}

.hero { overflow-x: clip; }
