/* ============================================================
   L'ATELIER PEINTURE — Design system (main.css)
   ------------------------------------------------------------
   Contenu : tokens, base, typographie, utilitaires, boutons,
   formulaires, header/footer, dock contact, chatbot, CTA scroll.
   Organisé en sections numérotées pour rester maintenable.
   ============================================================ */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Palette — tons chauds évoquant la peinture */
  --c-bg:        #FBF7F0;   /* papier chaud */
  --c-surface:   #FFFFFF;
  --c-surface-2: #F4EDE2;   /* nuance sable */
  --c-ink:       #272118;   /* noir chaud */
  --c-ink-soft:  #443B2F;
  --c-muted:     #6F6657;
  --c-line:      #E9E0D0;

  --c-brand:     #C25A2C;   /* terracotta — CTA principal */
  --c-brand-2:   #A5461E;
  --c-brand-soft:#F6E3D8;
  --c-eco:       #3F7A58;   /* vert — peinture écologique */
  --c-eco-soft:  #E3EFE7;
  --c-gold:      #D9A13B;   /* ocre — accents nuancier */
  --c-gold-soft: #F7ECD7;
  --c-danger:    #B3362A;
  --c-whatsapp:  #25D366;

  /* Nuancier décoratif (accents visuels) */
  --sw-1:#C25A2C; --sw-2:#D9A13B; --sw-3:#3F7A58;
  --sw-4:#2F5E8F; --sw-5:#8A5AA4; --sw-6:#C94F4F;

  /* Typo & espacement */
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 26px;
  --radius-full: 999px;
  --shadow-sm: 0 2px 10px rgba(39,33,24,.06);
  --shadow-md: 0 10px 30px rgba(39,33,24,.10);
  --shadow-lg: 0 24px 60px rgba(39,33,24,.18);
  --gutter: clamp(20px, 4.5vw, 64px);
  --header-h: 72px;

  /* Animation */
  --ease: cubic-bezier(.22,.61,.36,1);
  --dur: .5s;
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--c-ink);
  background: var(--c-bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--c-brand); text-decoration: none; }
a:hover { color: var(--c-brand-2); }
ul { padding-left: 0; margin: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
h1,h2,h3,h4,h5 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; color: var(--c-ink); margin: 0 0 .4em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--c-brand); outline-offset: 2px; border-radius: 4px; }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--c-ink); color: #fff;
  padding: 10px 16px; z-index: 2000; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- 3. Typographie utilitaires ---------- */
.h-display { font-size: clamp(2.2rem, 5.4vw, 3.9rem); }
.h-xl       { font-size: clamp(1.9rem, 4.2vw, 3rem); }
.h-lg       { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.h-md       { font-size: clamp(1.2rem, 2.2vw, 1.6rem); }
.lead       { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--c-ink-soft); }
.text-muted { color: var(--c-muted); }
.text-small { font-size: .88rem; }
.text-center{ text-align: center; }

/* ---------- 4. Layout & conteneurs ---------- */
.container { width: min(1180px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: clamp(64px, 9vw, 110px); }
.section-tight { padding-block: clamp(40px, 5vw, 64px); }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--c-brand); border: 1px solid var(--c-line); background: var(--c-surface);
  padding: 6px 14px; border-radius: var(--radius-full); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c-brand); }
.eyebrow.gold::before { background: var(--c-gold); } .eyebrow.gold { color: #9a7118; }
.eyebrow.eco::before { background: var(--c-eco); } .eyebrow.eco { color: var(--c-eco); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px,3vw,40px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px,3vw,40px); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px,2.5vw,28px); }
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- 5. Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 15px 26px; border-radius: var(--radius-full); border: 2px solid transparent;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s, border-color .18s, color .18s;
  text-decoration: none; white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.btn-primary { background: var(--c-brand); color: #fff; box-shadow: 0 8px 22px rgba(194,90,44,.32); }
.btn-primary:hover { background: var(--c-brand-2); color: #fff; box-shadow: 0 12px 28px rgba(194,90,44,.4); transform: translateY(-2px); }
.btn-dark { background: var(--c-ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--c-ink); border-color: var(--c-line); }
.btn-ghost:hover { border-color: var(--c-ink); color: var(--c-ink); }
.btn-light { background: #fff; color: var(--c-ink); box-shadow: var(--shadow-md); }
.btn-light:hover { color: var(--c-brand); transform: translateY(-2px); }
.btn-eco { background: var(--c-eco); color: #fff; }
.btn-eco:hover { background: #2f5c42; color: #fff; }
.btn-whatsapp { background: var(--c-whatsapp); color: #fff; }
.btn-whatsapp:hover { background: #1eb354; color: #fff; }
.btn-lg { padding: 18px 34px; font-size: 1.06rem; }
.btn-sm { padding: 11px 18px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }

/* ---------- 6. Animations reveal au scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 7. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(251,247,240,.86);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s, background .3s;
}
.site-header.scrolled { border-color: var(--c-line); box-shadow: var(--shadow-sm); background: rgba(251,247,240,.94); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 700; font-size: 1.28rem; color: var(--c-ink); }
.brand:hover { color: var(--c-ink); }
.brand-mark {
  width: 42px; height: 42px; position: relative; border-radius: 12px;
  background: conic-gradient(from 210deg, var(--sw-1), var(--sw-2), var(--sw-4), var(--sw-3), var(--sw-1));
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.55), var(--shadow-sm);
}
.brand-mark::after {
  content: ""; position: absolute; inset: 9px; border-radius: 8px;
  background: rgba(251,247,240,.9);
}
.brand-name b { display: block; line-height: 1.1; }
.brand-name span { display: block; font-family: var(--font-body); font-weight: 500; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--c-muted); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: var(--c-ink-soft); font-weight: 500; font-size: .95rem;
  padding: 9px 14px; border-radius: var(--radius-full); transition: background .2s, color .2s;
}
.nav-links a:hover { background: var(--c-surface-2); color: var(--c-ink); }
.nav-links a.active { background: var(--c-ink); color: #fff; }
.nav-devis-mobile { display: none; }
.nav-links .nav-devis-mobile.btn { justify-content: center; margin-top: 14px; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-burger { display: none; background: none; border: 0; width: 44px; height: 44px; border-radius: 10px; position: relative; }
.nav-burger span {
  position: absolute; left: 11px; right: 11px; height: 2.4px; background: var(--c-ink);
  border-radius: 2px; transition: transform .3s var(--ease), opacity .3s;
}
.nav-burger span:nth-child(1) { top: 15px; }
.nav-burger span:nth-child(2) { top: 22px; }
.nav-burger span:nth-child(3) { top: 29px; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1000px) {
  .nav-burger { display: block; }
  .nav-links {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 899;
    flex-direction: column; align-items: stretch; gap: 6px;
    background: var(--c-surface); padding: 20px var(--gutter) 28px;
    border-bottom: 1px solid var(--c-line); box-shadow: var(--shadow-lg);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .3s var(--ease), opacity .3s;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 14px 16px; border-radius: 12px; font-size: 1.05rem; }
  .nav-links .nav-devis-mobile.btn { display: flex; }
  .nav-cta .btn { display: none; }
  .nav-cta .btn.keep-mobile { display: inline-flex; }
}

/* ---------- 8. Footer ---------- */
.site-footer { background: var(--c-ink); color: #C8BFB0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: clamp(24px,3vw,48px); padding-block: clamp(48px,6vw,80px); }
.footer-brand .brand { color: #fff; }
.footer-brand .brand span { color: #A79B8A; }
.footer-brand p { color: #B5A995; max-width: 30ch; }
.footer-col h4 { color: #fff; font-family: var(--font-body); font-weight: 600; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #B5A995; font-size: .95rem; }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; margin-top: 3px; color: var(--c-gold); flex: 0 0 auto; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .85rem; color: #8F8575; }
.footer-bottom a { color: #B5A995; }
.footer-swatches { display: flex; gap: 6px; margin-top: 16px; }
.footer-swatches i { width: 26px; height: 26px; border-radius: 50%; display: block; box-shadow: inset 0 0 0 2px rgba(255,255,255,.18); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- 9. Dock contact permanent (toute page) ---------- */
.contact-dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 940;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 10px var(--gutter); background: rgba(251,247,240,.92);
  backdrop-filter: blur(10px); border-top: 1px solid var(--c-line);
  box-shadow: 0 -8px 24px rgba(39,33,24,.08);
  transition: transform .35s var(--ease), opacity .35s;
}
.dock-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: .98rem; padding: 13px 10px; border-radius: var(--radius-m);
  text-decoration: none; color: #fff;
}
.dock-btn svg { width: 20px; height: 20px; }
.dock-call { background: var(--c-ink); }
.dock-call:hover { background: #000; color: #fff; }
.dock-wa { background: var(--c-whatsapp); }
.dock-wa:hover { background: #1eb354; color: #fff; }
.contact-dock.is-hidden { transform: translateY(105%); opacity: 0; pointer-events: none; }

/* Sur desktop : dock compact (rond) empilé à droite */
@media (min-width: 1024px) {
  .contact-dock {
    left: auto; right: 22px; bottom: 22px; width: auto;
    grid-template-columns: 1fr; gap: 10px; padding: 0; background: none;
    border: 0; box-shadow: none; backdrop-filter: none;
  }
  .dock-btn { border-radius: 50%; width: 58px; height: 58px; padding: 0; font-size: 0; justify-content: center; box-shadow: var(--shadow-md); }
  .dock-btn svg { width: 26px; height: 26px; }
}

/* ---------- 10. CTA contextuel au scroll (mobile) ---------- */
.context-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 945;
  display: flex; align-items: center; gap: 12px; justify-content: space-between;
  padding: 14px var(--gutter);
  background: var(--c-ink); color: #fff;
  transform: translateY(110%); transition: transform .4s var(--ease);
}
.context-cta.show { transform: none; }
.context-cta p { margin: 0; font-weight: 600; font-size: .98rem; line-height: 1.3; }
.context-cta .btn { flex: 0 0 auto; }
@media (min-width: 1024px) { .context-cta { display: none; } }

/* ---------- 11. Chatbot ---------- */
.chat-fab {
  position: fixed; right: 18px; bottom: 150px; z-index: 960;
  width: 62px; height: 62px; border-radius: 50%; border: 0;
  background: var(--c-ink); color: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow-lg); transition: transform .25s var(--ease);
}
.chat-fab:hover { transform: scale(1.06); color: #fff; }
.chat-fab svg { width: 28px; height: 28px; }
.chat-fab .ring {
  position: absolute; inset: -6px; border-radius: 50%;
  border: 3px solid var(--c-brand); opacity: .7;
  animation: fabPulse 2.2s ease-out infinite;
}
@keyframes fabPulse {
  0% { transform: scale(.85); opacity: .9; }
  70% { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}
.chat-badge {
  position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px;
  background: var(--c-danger); color: #fff; font-size: .78rem; font-weight: 700;
  border-radius: var(--radius-full); display: grid; place-items: center; padding: 0 6px;
  border: 2px solid #fff;
}
.chat-badge.hide { display: none; }
@media (min-width: 1024px) { .chat-fab { bottom: 22px; right: 22px; } }

/* Message d'accroche automatique */
.chat-teaser {
  position: fixed; right: 16px; bottom: 224px; z-index: 955;
  max-width: 280px; background: var(--c-surface); color: var(--c-ink);
  padding: 14px 16px; border-radius: 18px 18px 4px 18px; box-shadow: var(--shadow-lg);
  font-size: .95rem; font-weight: 500; cursor: pointer; line-height: 1.4;
  border: 1px solid var(--c-line);
  animation: teaserIn .5s var(--ease);
}
.chat-teaser .tt-close {
  position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--c-ink); color: #fff; border: 0; font-size: .8rem; line-height: 1;
}
.chat-teaser b { display: block; font-family: var(--font-head); margin-bottom: 2px; }
@keyframes teaserIn { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
.chat-teaser.out { animation: teaserOut .35s var(--ease) forwards; }
@keyframes teaserOut { to { opacity: 0; transform: translateY(10px) scale(.96); } }
@media (min-width: 1024px) { .chat-teaser { bottom: 96px; right: 24px; } }

/* Fenêtre de chat */
.chat-window {
  position: fixed; z-index: 950; display: flex; flex-direction: column;
  right: 14px; bottom: 14px; left: 14px; max-height: min(680px, 82vh);
  background: var(--c-surface); border-radius: var(--radius-l);
  box-shadow: var(--shadow-lg); border: 1px solid var(--c-line);
  transform: translateY(24px) scale(.97); transform-origin: bottom;
  opacity: 0; pointer-events: none; transition: transform .32s var(--ease), opacity .3s;
}
.chat-window.open { transform: none; opacity: 1; pointer-events: auto; }
.chat-head {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: linear-gradient(120deg, #272118, #453a2c);
  color: #fff; border-radius: var(--radius-l) var(--radius-l) 0 0;
}
.chat-head .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: conic-gradient(from 200deg, var(--sw-1), var(--sw-2), var(--sw-4), var(--sw-3));
  display: grid; place-items: center; flex: 0 0 auto; font-size: 1.35rem;
}
.chat-head h3 { color: #fff; margin: 0; font-size: 1.05rem; }
.chat-head p { margin: 0; font-size: .82rem; color: #C9BFAF; }
.chat-head .online { display: inline-flex; align-items: center; gap: 6px; }
.chat-head .online::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #4ade80; }
.chat-close { margin-left: auto; background: rgba(255,255,255,.14); border: 0; color: #fff; width: 34px; height: 34px; border-radius: 50%; font-size: 1rem; }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; min-height: 260px; }
.msg { max-width: 84%; padding: 11px 14px; border-radius: 16px; font-size: .94rem; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.msg.bot { background: var(--c-surface-2); border-radius: 16px 16px 16px 4px; align-self: flex-start; }
.msg.user { background: var(--c-brand); color: #fff; border-radius: 16px 16px 4px 16px; align-self: flex-end; }
.msg .mtime { display: block; margin-top: 4px; font-size: .7rem; opacity: .6; }
.chat-quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 10px; }
.chat-quick button {
  background: var(--c-brand-soft); color: var(--c-brand-2); border: 1px solid transparent;
  border-radius: var(--radius-full); padding: 9px 15px; font-size: .88rem; font-weight: 600;
  transition: background .2s, border-color .2s, color .2s;
}
.chat-quick button:hover { background: var(--c-brand); color: #fff; }
.chat-input { display: flex; gap: 8px; padding: 12px 16px 16px; border-top: 1px solid var(--c-line); }
.chat-input input {
  flex: 1; border: 1.5px solid var(--c-line); border-radius: var(--radius-full);
  padding: 12px 16px; font-size: .95rem; font-family: inherit; background: var(--c-surface);
}
.chat-input input:focus { outline: none; border-color: var(--c-brand); }
.chat-input button {
  width: 48px; height: 48px; border-radius: 50%; background: var(--c-brand); border: 0; color: #fff;
  display: grid; place-items: center; flex: 0 0 auto;
}
.chat-input button svg { width: 20px; height: 20px; }
.chat-typing { display: inline-flex; gap: 5px; padding: 12px 16px; background: var(--c-surface-2); border-radius: 16px 16px 16px 4px; align-self: flex-start; }
.chat-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--c-muted); animation: typ 1.2s infinite; }
.chat-typing i:nth-child(2) { animation-delay: .15s; }
.chat-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typ { 0%,60%,100% { transform: translateY(0); opacity:.4; } 30% { transform: translateY(-5px); opacity:1; } }
@media (min-width: 560px) { .chat-window { width: 400px; left: auto; } }

/* ---------- 12. Composants génériques ---------- */
.swatch-strip { display: flex; gap: 0; border-radius: var(--radius-m); overflow: hidden; box-shadow: var(--shadow-sm); }
.swatch-strip i { height: 56px; flex: 1; }

.card {
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--radius-m); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card-pad { padding: clamp(20px, 2.5vw, 30px); }

.stat { text-align: center; }
.stat b { display: block; font-family: var(--font-head); font-size: clamp(2rem,4vw,2.8rem); color: var(--c-brand); }
.stat span { color: var(--c-muted); font-size: .94rem; }

.before-after { position: relative; overflow: hidden; border-radius: var(--radius-m); box-shadow: var(--shadow-md); }
.before-after .ba-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; pointer-events: none; }
.before-after .ba-top { position: absolute; inset: 0; width: 50%; overflow: hidden; }
.before-after .ba-top img { width: 100%; height: 100%; object-fit: cover; filter: brightness(1.02); }
.before-after .ba-divider {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: #fff; transform: translateX(-50%);
  box-shadow: 0 0 12px rgba(0,0,0,.35); cursor: ew-resize; z-index: 3;
}
.before-after .ba-handle {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--c-ink);
  display: grid; place-items: center; box-shadow: var(--shadow-md); z-index: 4; font-size: .8rem;
  border: 2px solid var(--c-ink);
}
.before-after .ba-label {
  position: absolute; top: 12px; font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: 5px 12px; border-radius: var(--radius-full); color: #fff; z-index: 3;
}
.before-after .ba-label.avant { left: 12px; background: rgba(39,33,24,.72); }
.before-after .ba-label.apres { right: 12px; background: rgba(194,90,44,.88); }

.avantage { display: flex; gap: 16px; align-items: flex-start; }
.avantage .ico {
  flex: 0 0 auto; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--c-brand-soft); color: var(--c-brand);
}
.avantage .ico svg { width: 24px; height: 24px; }
.avantage.eco .ico { background: var(--c-eco-soft); color: var(--c-eco); }
.avantage.gold .ico { background: var(--c-gold-soft); color: #9a7118; }

/* ---------- 13. Formulaires ---------- */
.field { margin-bottom: 18px; }
.field label, .field .flabel { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 8px; }
.field .hint { display: block; font-size: .82rem; color: var(--c-muted); margin-top: 6px; font-weight: 400; }
.input, .select, .textarea {
  width: 100%; border: 1.5px solid var(--c-line); border-radius: 12px;
  padding: 13px 15px; font-size: 1rem; font-family: inherit; color: var(--c-ink);
  background: var(--c-surface); transition: border-color .2s, box-shadow .2s;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--c-brand); box-shadow: 0 0 0 4px rgba(194,90,44,.12); }
.textarea { min-height: 130px; resize: vertical; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 640px) { .form-grid-2 { grid-template-columns: 1fr; } }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--c-ink-soft); }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--c-brand); flex: 0 0 auto; }

.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.choice {
  display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center;
  border: 2px solid var(--c-line); background: var(--c-surface); border-radius: var(--radius-m);
  padding: 16px 12px; cursor: pointer; transition: all .2s; position: relative;
}
.choice:hover { border-color: var(--c-brand); }
.choice input { position: absolute; opacity: 0; }
.choice .ch-ico { font-size: 1.7rem; filter: grayscale(.2); transition: transform .2s; }
.choice .ch-lbl { font-weight: 600; font-size: .9rem; line-height: 1.3; }
.choice .ch-sub { font-size: .78rem; color: var(--c-muted); }
.choice:has(input:checked) { border-color: var(--c-brand); background: var(--c-brand-soft); box-shadow: 0 4px 14px rgba(194,90,44,.18); }
.choice:has(input:checked) .ch-ico { transform: scale(1.12); }

.error-summary { background: #FDEDEA; border: 1px solid #F5C6BC; color: var(--c-danger); border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; font-size: .9rem; }
.error-summary ul { list-style: disc; padding-left: 20px; margin: 8px 0 0; }
.form-note { font-size: .84rem; color: var(--c-muted); display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; }
.form-note svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 2px; }

/* ---------- 14. Espace de respiration pour le dock fixe ---------- */
@media (max-width: 1023px) {
  .site-footer { margin-bottom: 76px; }
}

/* ---------- 15. Inline SVG ---------- */
svg.ico { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }