/* =====================================================
   TC CARS — Stylesheet
   ===================================================== */

:root {
  --bg: #0a0a0b;
  --bg-2: #111113;
  --bg-3: #17171a;
  --line: #232327;
  --line-2: #2e2e34;
  --text: #f4f4f5;
  --text-dim: #a1a1aa;
  --text-mute: #6b6b73;
  --accent: #f5d000;
  --accent-soft: #f5d00033;
  --accent-2: #ff6b00;
  --radius: 18px;
  --radius-sm: 10px;
  --maxw: 1280px;
  --pad: clamp(20px, 4vw, 64px);

  --font-display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --font-mono-disp: 'Syne', 'Bebas Neue', sans-serif;
  --font-body: 'Inter Tight', system-ui, sans-serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 16px; line-height: 1.55; font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--accent); color: #000; }

/* =====================================================
   SCROLLBARS — style custom dark + accent jaune
   ===================================================== */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}
*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
*::-webkit-scrollbar-track {
  background: var(--bg);
  border-left: 1px solid var(--line);
}
*::-webkit-scrollbar-thumb {
  background: var(--line-2);
  border-radius: 999px;
  border: 2px solid var(--bg);
  transition: background .25s var(--ease);
}
*::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}
*::-webkit-scrollbar-corner { background: var(--bg); }

/* Scrollbar plus discret dans le chat */
.ai-chat-messages::-webkit-scrollbar-track {
  background: transparent;
  border-left: none;
}
.ai-chat-messages::-webkit-scrollbar-thumb {
  border-color: transparent;
}
em { font-style: italic; font-family: var(--font-mono-disp); font-weight: 700; color: var(--accent); font-size: 0.9em; letter-spacing: -0.01em; }

/* =====================================================
   LOADER — animation éclair électrique
   ===================================================== */
.loader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .8s var(--ease), visibility .8s var(--ease);
  overflow: hidden;
}
.loader::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(245, 208, 0, 0.08) 0%, transparent 50%),
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 80px,
      rgba(255, 255, 255, 0.02) 80px,
      rgba(255, 255, 255, 0.02) 81px
    );
}
.loader.is-done { opacity: 0; visibility: hidden; }

.loader-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  z-index: 2;
}

.loader-logo-wrap {
  position: relative;
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Animation d'apparition douce */
  opacity: 0;
  transform: scale(0.92);
  animation: loaderLogoIn 0.9s var(--ease-out) 0.2s forwards;
}
@keyframes loaderLogoIn {
  to { opacity: 1; transform: scale(1); }
}

/* Logo central — au repos pas de glow, puis effet électrique */
.loader-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 2;
  /* Pulsations lumineuses jaunes qui suivent la SILHOUETTE des lettres */
  animation: loaderElectric 2.2s ease-in-out 1s forwards;
}
@keyframes loaderElectric {
  /* Phase 1 : flash blanc/jaune court (impact) */
  0% {
    filter:
      drop-shadow(0 0 0 rgba(245, 208, 0, 0))
      drop-shadow(0 0 0 rgba(255, 255, 255, 0));
  }
  8% {
    filter:
      drop-shadow(0 0 8px rgba(255, 255, 255, 0.9))
      drop-shadow(0 0 16px rgba(245, 208, 0, 0.8))
      drop-shadow(0 0 30px rgba(245, 208, 0, 0.6));
  }
  16% {
    filter:
      drop-shadow(0 0 2px rgba(255, 255, 255, 0.3))
      drop-shadow(0 0 6px rgba(245, 208, 0, 0.4));
  }
  /* Phase 2 : second flash plus fort */
  24% {
    filter:
      drop-shadow(0 0 12px rgba(255, 255, 255, 1))
      drop-shadow(0 0 24px rgba(245, 208, 0, 0.9))
      drop-shadow(0 0 48px rgba(245, 208, 0, 0.7));
  }
  32% {
    filter:
      drop-shadow(0 0 4px rgba(255, 255, 255, 0.4))
      drop-shadow(0 0 8px rgba(245, 208, 0, 0.5));
  }
  /* Phase 3 : flash final stable + halo */
  45% {
    filter:
      drop-shadow(0 0 16px rgba(255, 255, 255, 0.8))
      drop-shadow(0 0 32px rgba(245, 208, 0, 1))
      drop-shadow(0 0 64px rgba(245, 208, 0, 0.5));
  }
  100% {
    filter:
      drop-shadow(0 0 6px rgba(245, 208, 0, 0.6))
      drop-shadow(0 0 18px rgba(245, 208, 0, 0.4));
  }
}

.loader-tagline {
  display: flex;
  align-items: center;
  gap: 18px;
  opacity: 0;
  animation: loaderTaglineIn 0.7s var(--ease-out) 1.9s forwards;
}
@keyframes loaderTaglineIn {
  to { opacity: 1; }
}
.loader-tagline-text {
  font-family: var(--font-display);
  font-size: 30px;
  letter-spacing: 0.32em;
  color: var(--accent);
}
.loader-tagline-line {
  display: inline-block;
  width: 0;
  height: 1px;
  background: var(--accent);
  animation: loaderLineGrow 0.6s var(--ease-out) 2.1s forwards;
}
@keyframes loaderLineGrow {
  to { width: 50px; }
}

/* =====================================================
   TOPBAR
   ===================================================== */
.topbar {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}
.topbar-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 10px var(--pad);
  display: flex; align-items: center; justify-content: center; gap: 14px;
  flex-wrap: wrap;
}
.topbar-inner span { display: inline-flex; align-items: center; gap: 6px; }
.topbar-inner svg { color: var(--accent); }
.topbar-sep { color: var(--line-2); }
.topbar-cta { color: var(--accent); font-weight: 600; }

/* =====================================================
   NAV
   ===================================================== */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad);
  transition: all .4s var(--ease);
  background: rgba(10, 10, 11, 0.7);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
}
.nav.is-scrolled {
  border-bottom: 1px solid var(--line);
  padding: 12px var(--pad);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  transition: transform .3s var(--ease);
}
.nav-logo:hover { transform: scale(1.03); }
.nav-logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  transition: filter .3s var(--ease);
}
.nav-logo:hover .nav-logo-img {
  filter: drop-shadow(0 0 10px rgba(245, 208, 0, 0.5));
}
.nav-logo-word {
  font-size: 22px;
  letter-spacing: 0.16em;
  color: var(--text);
  font-weight: 400;
}
.nav.is-scrolled .nav-logo-img { width: 42px; height: 42px; }
.nav.is-scrolled .nav-logo-word { font-size: 20px; }
.nav-links {
  display: flex; gap: 32px;
  font-size: 14px; font-weight: 500;
  letter-spacing: 0.02em;
}
.nav-links a {
  position: relative; color: var(--text-dim);
  transition: color .3s var(--ease);
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1px; background: var(--accent);
  transition: width .35s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  padding: 11px 22px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.02em;
  transition: all .3s var(--ease);
}
.nav-cta:hover { background: var(--accent); color: #000; border-color: var(--accent); }

.nav-burger { display: none; width: 32px; height: 32px; flex-direction: column; gap: 6px; align-items: center; justify-content: center; }
.nav-burger span { width: 22px; height: 1.5px; background: var(--text); transition: transform .3s var(--ease); }
.nav-burger.is-open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

.mobile-menu {
  position: fixed; top: 0; left: 0; right: 0;
  background: var(--bg-2);
  padding: 100px var(--pad) 40px;
  transform: translateY(-100%);
  transition: transform .5s var(--ease);
  z-index: 90;
  border-bottom: 1px solid var(--line);
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu a {
  display: block;
  padding: 18px 0;
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:last-child { border-bottom: none; }

/* =====================================================
   HERO
   ===================================================== */
.hero {
  position: relative; min-height: calc(100vh - 100px);
  display: flex; align-items: center;
  padding: 100px var(--pad) 80px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.glow {
  position: absolute; border-radius: 50%; filter: blur(120px);
  opacity: 0.5;
}
.glow-1 { width: 600px; height: 600px; background: var(--accent); top: -200px; right: -150px; opacity: 0.18; }
.glow-2 { width: 500px; height: 500px; background: var(--accent-2); bottom: -200px; left: -100px; opacity: 0.10; }
.glow-3 { width: 700px; height: 700px; background: var(--accent); top: 50%; left: 50%; transform: translate(-50%,-50%); opacity: 0.06; }

.hero-content {
  position: relative; z-index: 2;
  max-width: var(--maxw); width: 100%; margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

/* === HERO VISUAL === */
.hero-visual {
  position: relative;
  opacity: 0;
  transform: translateY(40px) scale(.96);
  animation: heroVisualIn 1.4s var(--ease-out) 2.8s forwards;
}
@keyframes heroVisualIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-visual-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
  background-size: cover;
  background-position: center;
  animation: heroFloat 6s ease-in-out infinite;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px var(--line),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Image révélée par animation de "wipe" jaune */
.hero-visual-frame::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--accent);
  transform-origin: bottom;
  animation: heroWipe 1.6s var(--ease-out) 2.9s forwards;
  z-index: 4;
  pointer-events: none;
}
@keyframes heroWipe {
  0% { transform: scaleY(1); }
  60% { transform: scaleY(1); }
  100% { transform: scaleY(0); }
}

.hero-visual-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px;
  color: var(--text-mute);
  text-align: center;
  padding: 24px;
  background:
    radial-gradient(ellipse at top right, rgba(245, 208, 0, 0.10) 0%, transparent 60%),
    var(--bg-3);
  z-index: 1;
}
.hero-visual-placeholder svg { width: 80px; height: 80px; opacity: 0.4; color: var(--accent); }
.hero-visual-placeholder span { font-size: 13px; line-height: 1.6; }
.hero-visual-placeholder code {
  background: var(--bg);
  padding: 4px 10px;
  border-radius: 6px;
  color: var(--accent);
  font-size: 12px;
}

/* Halo pulsant derrière l'image */
.hero-visual-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 60%);
  opacity: 0.15;
  filter: blur(40px);
  z-index: -1;
  animation: heroPulse 4s ease-in-out infinite;
  border-radius: 50%;
}
@keyframes heroPulse {
  0%, 100% { opacity: 0.12; transform: scale(1); }
  50% { opacity: 0.22; transform: scale(1.05); }
}

/* Coins décoratifs façon viseur appareil photo */
.hero-visual-frame-corner {
  position: absolute;
  width: 28px; height: 28px;
  border: 2px solid var(--accent);
  z-index: 5;
  opacity: 0;
  animation: cornerFadeIn 0.5s var(--ease-out) 4.2s forwards;
}
.hero-visual-frame-corner-tl { top: 14px; left: 14px; border-right: none; border-bottom: none; border-radius: 4px 0 0 0; }
.hero-visual-frame-corner-tr { top: 14px; right: 14px; border-left: none; border-bottom: none; border-radius: 0 4px 0 0; }
.hero-visual-frame-corner-bl { bottom: 14px; left: 14px; border-right: none; border-top: none; border-radius: 0 0 0 4px; }
.hero-visual-frame-corner-br { bottom: 14px; right: 14px; border-left: none; border-top: none; border-radius: 0 0 4px 0; }
@keyframes cornerFadeIn {
  to { opacity: 0.7; }
}

/* Badge floating "Atelier ouvert" */
.hero-visual-badge {
  position: absolute;
  bottom: -18px; left: -18px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  padding: 12px 20px;
  border-radius: 999px;
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.04em;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  z-index: 6;
  opacity: 0;
  animation: heroBadgeIn .8s var(--ease-out) 4.4s forwards;
}
@keyframes heroBadgeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 32px;
  opacity: 0; transform: translateY(20px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.hero-eyebrow.is-visible { opacity: 1; transform: translateY(0); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 8.5vw, 140px);
  line-height: 0.92;
  letter-spacing: -0.01em;
  margin-bottom: 36px;
  font-weight: 400;
}
.line { display: block; overflow: hidden; padding-bottom: 0.05em; }
.word { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease-out); }
.word.is-visible { transform: translateY(0); }
.word.accent { color: var(--accent); font-style: italic; font-family: var(--font-mono-disp); font-weight: 700; font-size: 0.9em; letter-spacing: -0.02em; }

.hero-sub {
  font-size: clamp(16px, 1.5vw, 20px);
  color: var(--text-dim);
  max-width: 580px;
  margin-bottom: 44px;
  font-weight: 400;
}

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 80px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-size: 15px; font-weight: 600;
  letter-spacing: 0.01em;
  transition: all .35s var(--ease);
  position: relative; overflow: hidden;
}
.btn svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.btn-primary { background: var(--accent); color: #000; box-shadow: 0 0 0 0 var(--accent-soft); }
.btn-primary:hover { box-shadow: 0 0 0 8px var(--accent-soft); transform: translateY(-1px); }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); background: var(--bg-3); }
.btn-block { width: 100%; justify-content: center; padding: 18px 28px; font-size: 16px; }

.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  max-width: 700px; padding-top: 32px;
  border-top: 1px solid var(--line);
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: 0.01em; line-height: 1;
  color: var(--accent); margin-bottom: 6px;
}
.stat-label {
  font-size: 12px; color: var(--text-dim);
  letter-spacing: 0.06em; text-transform: uppercase;
}

.hero-scroll {
  position: absolute; bottom: 32px; right: var(--pad);
  display: flex; align-items: center; gap: 12px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-mute); z-index: 2;
}
.hero-scroll-line {
  display: inline-block; width: 50px; height: 1px;
  background: linear-gradient(to right, var(--text-mute), transparent);
  position: relative; overflow: hidden;
}
.hero-scroll-line::after {
  content: ''; position: absolute; left: -50%; top: 0;
  width: 50%; height: 100%; background: var(--accent);
  animation: scrollLine 2.2s ease-in-out infinite;
}
@keyframes scrollLine { 0% { left: -50%; } 100% { left: 100%; } }

/* =====================================================
   MARQUEE
   ===================================================== */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden; padding: 24px 0;
}
.marquee-track {
  display: flex; gap: 36px; white-space: nowrap;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: 0.04em;
  animation: marquee 28s linear infinite;
}
.marquee-track span:nth-child(even) { color: var(--accent); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* =====================================================
   SECTIONS COMMUNES
   ===================================================== */
section { padding: clamp(80px, 12vw, 160px) var(--pad); position: relative; }

.section-head { max-width: var(--maxw); margin: 0 auto clamp(48px, 7vw, 96px); }
.section-head-center { text-align: center; }
.section-head-center .section-lead { margin-left: auto; margin-right: auto; }
.section-head-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.section-head-row .section-head-left { max-width: 600px; }

.section-tag {
  display: inline-block;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.005em;
  font-weight: 400;
  margin-bottom: 24px;
}
.section-lead {
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--text-dim);
  max-width: 540px; line-height: 1.6;
}

/* =====================================================
   SERVICES
   ===================================================== */
.services { background: var(--bg); }
.services-grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.service-card {
  background: var(--bg-2); padding: 44px 32px;
  position: relative; cursor: pointer;
  transition: background .4s var(--ease);
  display: flex; flex-direction: column; min-height: 280px;
}
.service-card::before {
  content: attr(data-num);
  position: absolute; top: 24px; right: 28px;
  font-family: var(--font-mono-disp);
  font-size: 11px; font-weight: 600;
  color: var(--text-mute); letter-spacing: 0.1em;
}
.service-card:hover { background: var(--bg-3); }
.service-icon {
  width: 56px; height: 56px;
  margin-bottom: 28px;
  color: var(--accent);
  transition: transform .5s var(--ease);
}
.service-card:hover .service-icon { transform: translateY(-4px) rotate(-3deg); }
.service-card h3 {
  font-family: var(--font-display);
  font-size: 28px; letter-spacing: 0.02em;
  margin-bottom: 12px; font-weight: 400;
}
.service-card p { color: var(--text-dim); font-size: 14px; line-height: 1.6; flex: 1; }
.service-arrow {
  display: inline-block; margin-top: 24px;
  font-size: 22px; color: var(--accent);
  transform: translateX(0);
  transition: transform .4s var(--ease);
}
.service-card:hover .service-arrow { transform: translateX(8px); }

/* =====================================================
   SHOWROOM 3D
   ===================================================== */
.showroom { background: var(--bg); position: relative; overflow: hidden; }

.showroom-hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.showroom-hint svg { color: var(--accent); flex-shrink: 0; }

.showroom-stage {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  align-items: stretch;
}

/* === CANVAS 3D === */
.showroom-canvas-wrap {
  position: relative;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-3) 50%, #050506 100%);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.showroom-canvas-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 80%, rgba(245, 208, 0, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 30%, rgba(245, 208, 0, 0.04) 0%, transparent 40%);
  pointer-events: none;
  z-index: 1;
}
.showroom-canvas-wrap::after {
  /* Vignette : assombrissement progressif des bords */
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 40%,
    rgba(0, 0, 0, 0.35) 85%,
    rgba(0, 0, 0, 0.6) 100%
  );
  pointer-events: none;
  z-index: 6;
}
.showroom-canvas {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: grab;
}
.showroom-canvas:active { cursor: grabbing; }
.showroom-canvas canvas {
  display: block;
  outline: none;
  width: 100% !important;
  height: 100% !important;
}

.showroom-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  z-index: 5;
  background: var(--bg-2);
  color: var(--text-dim);
  font-size: 13px;
  letter-spacing: 0.04em;
  transition: opacity .4s var(--ease);
}
.showroom-loading.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.showroom-loading-spinner {
  width: 36px;
  height: 36px;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spinnerRotate 0.8s linear infinite;
}
@keyframes spinnerRotate {
  to { transform: rotate(360deg); }
}

.showroom-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  z-index: 5;
  text-align: center;
  padding: 32px;
}
.showroom-empty svg { color: var(--accent); opacity: 0.5; }
.showroom-empty strong {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.02em;
  color: var(--text);
  font-weight: 400;
}
.showroom-empty span { color: var(--text-dim); font-size: 14px; max-width: 320px; line-height: 1.5; }
.showroom-empty code {
  background: var(--bg-3);
  padding: 3px 8px;
  border-radius: 5px;
  color: var(--accent);
  font-size: 12px;
}

/* Étiquette config */
.showroom-current {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 4;
  background: rgba(10, 10, 11, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}
.showroom-current-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
}
.showroom-current-label {
  color: var(--text-mute);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.showroom-current-value {
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
}

/* === PANNEAU DE CONTROLES === */
.showroom-controls {
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.showroom-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.showroom-block-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.showroom-block-num {
  font-family: var(--font-mono-disp);
  font-size: 11px;
  color: var(--accent);
  font-weight: 700;
}

/* === SÉLECTEUR MODÈLES (dropdown) === */
.showroom-select-wrap {
  position: relative;
  width: 100%;
}
.showroom-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  padding: 12px 38px 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all .25s var(--ease);
}
.showroom-select:hover { border-color: var(--text-mute); }
.showroom-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.showroom-select option {
  background: var(--bg-2);
  color: var(--text);
  padding: 8px;
}
.showroom-select-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-dim);
  pointer-events: none;
}

/* === COULEURS COMPACTES (carrosserie + jantes) === */
.showroom-colors,
.showroom-wheel-colors {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
}
.showroom-color {
  aspect-ratio: 1;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  position: relative;
  transition: transform .2s var(--ease), border-color .2s var(--ease);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
}
.showroom-color:hover { transform: scale(1.25); z-index: 5; }
.showroom-color.is-active {
  border-color: var(--accent);
  transform: scale(1.15);
  z-index: 4;
}
.showroom-color.is-active::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0.5;
}

/* === TOOLTIP au hover === */
.showroom-color::before {
  content: attr(data-name);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--bg);
  color: var(--text);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 6px 10px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
  z-index: 10;
}
.showroom-color:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* === FINITIONS COMPACTES (8 sur 2 lignes) === */
.showroom-finishes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.showroom-finish {
  padding: 9px 6px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  text-align: center;
  cursor: pointer;
  transition: all .2s var(--ease);
}
.showroom-finish:hover { border-color: var(--text-mute); }
.showroom-finish.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}
.showroom-finish-name {
  font-size: 12px;
  font-weight: 600;
  color: inherit;
}
.showroom-finish-hint { display: none; } /* on cache l'ancien hint */

/* === FINITIONS JANTES (4 boutons compacts, gardé) === */
.showroom-wheel-finishes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 12px;
}
.showroom-wheel-finish {
  padding: 8px 6px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s var(--ease);
  text-align: center;
}
.showroom-wheel-finish:hover { border-color: var(--text-mute); color: var(--text); }
.showroom-wheel-finish.is-active {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

/* Toggles */
.showroom-toggles {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.showroom-toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  font-size: 14px;
}
.showroom-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.showroom-toggle-track {
  position: relative;
  width: 42px;
  height: 22px;
  border-radius: 999px;
  background: var(--line-2);
  transition: background .25s var(--ease);
  flex-shrink: 0;
}
.showroom-toggle-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text-dim);
  transition: all .25s var(--ease);
}
.showroom-toggle input:checked + .showroom-toggle-track {
  background: var(--accent);
}
.showroom-toggle input:checked + .showroom-toggle-track .showroom-toggle-knob {
  left: 22px;
  background: #000;
}
.showroom-toggle-label {
  color: var(--text);
  font-weight: 500;
}

/* Actions */
.showroom-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.showroom-actions .btn {
  flex: 1;
  padding: 14px 18px;
  font-size: 13px;
  justify-content: center;
}
.showroom-actions .showroom-reset {
  flex: 0 0 auto;
  padding: 14px;
}

/* Responsive */
@media (max-width: 1100px) {
  .showroom-stage {
    grid-template-columns: 1fr;
    /* Permet au canvas en sticky de réellement "coller" :
       le parent ne doit pas forcer un alignement qui casse le sticky. */
    align-items: start;
  }

  /* === CANVAS STICKY SUR MOBILE / TABLETTE ===
     Le canvas reste accroché en haut de l'écran pendant que
     l'utilisateur scrolle dans les contrôles en dessous.
     Comme ça chaque modif (couleur, finition, toggle) se voit
     instantanément sans avoir à remonter.
     `top` est calé sur la hauteur approximative de la navbar (qui est elle-même
     sticky top:0, z-index 100) pour ne pas que la voiture soit cachée derrière. */
  .showroom-canvas-wrap {
    position: sticky;
    top: 70px;                /* ≈ hauteur de la navbar mobile */
    z-index: 5;
    min-height: 0;            /* on neutralise pour que la hauteur ci-dessous prenne le dessus */
    height: 55vh;             /* environ moitié haute de l'écran */
    max-height: 460px;        /* plafond pour les tablettes */
    /* Fond opaque pour bien cacher les contrôles qui glissent dessous */
    background:
      linear-gradient(180deg, var(--bg-2) 0%, var(--bg-3) 50%, #050506 100%);
    box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.5);
  }
  /* On laisse le swipe vertical scroller la page (pour atteindre les contrôles)
     tout en gardant la rotation horizontale 1-doigt + pinch-to-zoom 2-doigts.
     Sans ça, dès que l'utilisateur effleure le canvas, OrbitControls capture
     le geste et la page ne scrolle plus. */
  .showroom-canvas { touch-action: pan-y; }
  .showroom-canvas canvas { touch-action: pan-y; }
  /* On adoucit un poil la vignette pour le sticky */
  .showroom-canvas-wrap::after {
    background: radial-gradient(
      ellipse at center,
      transparent 40%,
      rgba(0, 0, 0, 0.25) 85%,
      rgba(0, 0, 0, 0.5) 100%
    );
  }

  .showroom-colors { grid-template-columns: repeat(12, 1fr); }
  .showroom-wheel-colors { grid-template-columns: repeat(10, 1fr); }
}
@media (max-width: 640px) {
  /* Sur petit écran on garde le sticky mais on ajuste la hauteur :
     45vh laisse plus de place visible aux contrôles dessous (couleurs, toggles…),
     pour voir le rendu ET la commande sans scroller à chaque fois. */
  .showroom-canvas-wrap {
    height: 45vh;
    max-height: none;
    min-height: 280px;
    border-radius: 0 0 var(--radius) var(--radius);
    /* On supprime la bordure du haut pour un effet "panneau collé en haut" plus propre */
    border-top: none;
  }
  .showroom-controls { padding: 22px; }
  .showroom-finishes { grid-template-columns: repeat(2, 1fr); }
  .showroom-colors { grid-template-columns: repeat(8, 1fr); }
  .showroom-wheel-colors { grid-template-columns: repeat(8, 1fr); }
  .showroom-wheel-finishes { grid-template-columns: repeat(2, 1fr); }
  .showroom-current { padding: 10px 14px; }
  .showroom-current-row { font-size: 12px; }
  .showroom-actions { flex-direction: column; }
  /* Sur mobile les tooltips deviennent moins utiles, on les cache pour éviter les chevauchements */
  .showroom-color::before { display: none; }
}
/* =====================================================
   AI HELPER — "Vous n'arrivez pas à vous décider ?"
   ===================================================== */
.aihelper {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-3) 50%, var(--bg-2) 100%);
  position: relative;
  overflow: hidden;
  padding-top: clamp(80px, 10vw, 130px);
  padding-bottom: clamp(80px, 10vw, 130px);
  border-top: 1px solid var(--line);
}
.aihelper-bg {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 0;
}
.aihelper-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(245, 208, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 208, 0, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 50%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 30%, transparent 75%);
}
.aihelper-glow {
  position: absolute;
  top: 50%; left: 50%;
  width: 720px; height: 720px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(245, 208, 0, 0.08) 0%, transparent 60%);
  filter: blur(60px);
}

.aihelper-inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.aihelper-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(245, 208, 0, 0.04);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 28px;
}
.aihelper-sparkle {
  display: inline-flex;
  width: 16px; height: 16px;
  color: var(--accent);
  animation: aiSparkle 2.4s var(--ease) infinite;
}
@keyframes aiSparkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
  50% { transform: scale(1.2) rotate(15deg); opacity: 0.7; }
}

.aihelper-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.005em;
  font-weight: 400;
  margin-bottom: 24px;
}

.aihelper-lead {
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--text-dim);
  max-width: 580px;
  line-height: 1.6;
  margin-bottom: 48px;
}

/* =====================================================
   CHAT IA INLINE — section aihelper
   ===================================================== */
.ai-chat {
  width: 100%;
  max-width: 640px;
  background: linear-gradient(180deg, var(--bg-3) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line-2);
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6),
              0 0 0 1px rgba(245, 208, 0, 0.04);
  position: relative;
}
.ai-chat::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-soft), transparent);
  opacity: 0.6;
}

.ai-chat-messages {
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 280px;
  max-height: 560px;
  overflow-y: auto;
  text-align: left;
}

@keyframes msgIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.ai-msg {
  display: flex;
  animation: msgIn 0.45s var(--ease-out) both;
}
.ai-msg-ai { justify-content: flex-start; }
.ai-msg-user { justify-content: flex-end; }

.ai-msg-bubble {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.55;
  max-width: 85%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ai-msg-ai .ai-msg-bubble {
  background: var(--bg);
  border-bottom-left-radius: 4px;
}
.ai-msg-user .ai-msg-bubble {
  background: var(--bg-3);
  border-bottom-right-radius: 4px;
}
.ai-msg-bubble p { color: var(--text); margin: 0; }
.ai-msg-bubble strong { color: var(--accent); font-weight: 600; }

.ai-msg-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--font-mono-disp);
  font-weight: 600;
}
.ai-msg-tag .aihelper-sparkle { width: 12px; height: 12px; }

.ai-msg-photo {
  width: 100%;
  max-width: 280px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.ai-msg-photo img {
  width: 100%;
  height: auto;
  display: block;
}

/* Typing indicator */
.ai-msg-typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.ai-msg-typing-dots span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  animation: typingDot 1.2s ease-in-out infinite;
}
.ai-msg-typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.ai-msg-typing-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}
.ai-msg-typing {
  flex-direction: row;
  align-items: center;
  gap: 14px;
}

/* Result image with reveal animation */
.ai-msg-result {
  padding: 14px;
  gap: 12px;
}
.ai-msg-result-img-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--accent-soft);
  background: var(--bg-3);
  box-shadow: 0 20px 50px -20px rgba(245, 208, 0, 0.3);
  animation: aiResultReveal 0.7s var(--ease-out) both;
}
@keyframes aiResultReveal {
  0%   { opacity: 0; transform: scale(0.94); filter: blur(14px); }
  100% { opacity: 1; transform: scale(1);    filter: blur(0); }
}
.ai-msg-result-img-wrap::after {
  content: '';
  position: absolute;
  left: -10%; right: -10%;
  top: 0;
  height: 6px;
  background: linear-gradient(180deg, var(--accent), transparent);
  box-shadow: 0 0 30px var(--accent), 0 0 60px var(--accent-soft);
  animation: aiScan 1.3s ease-out 0.1s both;
  pointer-events: none;
}
@keyframes aiScan {
  0%   { top: 0;    opacity: 1; }
  90%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
.ai-msg-result-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}
.ai-msg-result-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.ai-msg-result-actions .btn {
  padding: 11px 14px;
  font-size: 12px;
  justify-content: center;
}
.ai-msg-result-actions svg { width: 14px; height: 14px; }
.ai-msg-result-toast {
  display: block;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--accent);
  text-align: center;
  padding: 6px 10px;
  border: 1px solid var(--accent-soft);
  background: rgba(245, 208, 0, 0.08);
  border-radius: 8px;
  animation: msgIn 0.3s var(--ease) both;
}
.ai-msg-result-toast[hidden] { display: none; }

/* Error bubble */
.ai-msg-error .ai-msg-bubble {
  border-color: #c41e3a44;
  background: rgba(196, 30, 58, 0.06);
}
.ai-msg-error .ai-msg-bubble p { color: var(--text-dim); font-size: 12px; word-break: break-word; }
.ai-msg-error .ai-msg-bubble strong { color: var(--text); }

/* Composer */
.ai-chat-composer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-chat-attach-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 10px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 10px;
  animation: msgIn 0.3s var(--ease) both;
}
.ai-chat-attach-preview[hidden] { display: none; }
.ai-chat-attach-preview img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.ai-chat-attach-preview span {
  flex: 1;
  font-family: var(--font-mono-disp);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#aiChatAttachRemove {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--bg);
  color: var(--text-dim);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all .2s var(--ease);
}
#aiChatAttachRemove svg { width: 12px; height: 12px; }
#aiChatAttachRemove:hover {
  color: var(--text);
  border-color: #c41e3a;
}

.ai-chat-input-bar {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 6px;
  transition: border-color .2s var(--ease);
}
.ai-chat-input-bar:focus-within {
  border-color: var(--accent);
}

.ai-chat-attach-btn,
.ai-chat-send {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all .2s var(--ease);
}
.ai-chat-attach-btn {
  border: 1px solid var(--line-2);
  background: var(--bg-3);
  color: var(--text-dim);
}
.ai-chat-attach-btn svg { width: 18px; height: 18px; }
.ai-chat-attach-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(245, 208, 0, 0.08);
}
.ai-chat-attach-btn.has-file {
  color: var(--accent);
  border-color: var(--accent-soft);
  background: rgba(245, 208, 0, 0.06);
}

#aiChatInput {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  padding: 9px 4px;
  resize: none;
  outline: none;
  max-height: 120px;
  min-height: 38px;
}
#aiChatInput::placeholder { color: var(--text-mute); }

.ai-chat-send {
  background: var(--accent);
  color: #000;
  border: none;
}
.ai-chat-send svg { width: 18px; height: 18px; }
.ai-chat-send:hover:not(:disabled) {
  transform: scale(1.05);
  box-shadow: 0 6px 20px -6px rgba(245, 208, 0, 0.6);
}
.ai-chat-send:disabled {
  background: var(--line-2);
  color: var(--text-mute);
  cursor: not-allowed;
  opacity: 0.6;
}
.ai-chat-send.is-loading {
  background: var(--bg-3);
  color: var(--accent);
  cursor: wait;
}
.ai-chat-send.is-loading svg { display: none; }
.ai-chat-send.is-loading::after {
  content: '';
  width: 16px; height: 16px;
  border: 2px solid var(--accent-soft);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: aiSpin 0.7s linear infinite;
}
@keyframes aiSpin { to { transform: rotate(360deg); } }

@media (max-width: 720px) {
  .ai-msg-bubble { max-width: 92%; }
  .ai-chat-messages { padding: 18px 14px; max-height: 480px; }
  .ai-chat-composer { padding: 12px 12px 14px; }
}

/* =====================================================
   RÉALISATIONS — CARROUSEL
   ===================================================== */
.realisations { background: var(--bg-2); }

.carousel-controls {
  display: flex; gap: 12px; flex-shrink: 0;
}
.carousel-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--bg);
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
  transition: all .3s var(--ease);
}
.carousel-btn:hover:not(:disabled) {
  background: var(--accent); color: #000;
  border-color: var(--accent);
  transform: scale(1.05);
}
.carousel-btn:disabled {
  opacity: 0.3; cursor: not-allowed;
}
.carousel-btn svg { width: 20px; height: 20px; }

.carousel {
  max-width: 100%;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  padding: 0 var(--pad);
  margin: 0 calc(-1 * var(--pad));
}
.carousel.is-dragging { cursor: grabbing; }
.carousel-track {
  display: flex; gap: 24px;
  transition: transform .8s var(--ease);
  will-change: transform;
}
.carousel.is-dragging .carousel-track { transition: none; }

.carousel-item {
  flex: 0 0 calc((100% - 48px) / 3);
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  transition: transform .5s var(--ease), border-color .3s var(--ease);
}
.carousel-item:hover {
  border-color: var(--accent);
}
.carousel-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition: transform .8s var(--ease);
}
.carousel-item:hover img { transform: scale(1.05); }

.carousel-item-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,11,.92) 0%, rgba(10,10,11,.4) 40%, transparent 70%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 28px;
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.carousel-item:hover .carousel-item-overlay { opacity: 1; }
.carousel-item-tag {
  display: inline-block;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px;
}
.carousel-item-title {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.02em;
}

/* Placeholder quand pas d'image */
.carousel-placeholder {
  flex: 0 0 calc((100% - 48px) / 3);
  aspect-ratio: 4 / 5;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 14px;
  color: var(--text-mute);
  font-size: 13px;
  background: var(--bg);
  text-align: center;
  padding: 24px;
}
.carousel-placeholder svg { width: 36px; height: 36px; opacity: 0.5; }
.carousel-placeholder code {
  background: var(--bg-3);
  padding: 4px 10px;
  border-radius: 6px;
  color: var(--accent);
  font-size: 12px;
}

.carousel-progress {
  max-width: var(--maxw); margin: 32px auto 0;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.carousel-progress-bar {
  height: 100%;
  background: var(--accent);
  width: 30%;
  transition: width .8s var(--ease);
}

.realisations-cta {
  max-width: var(--maxw); margin: 64px auto 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}
.realisations-cta p {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: 0.02em;
}

/* =====================================================
   NUANCIER
   ===================================================== */
.nuancier { background: var(--bg); }

.finitions {
  max-width: var(--maxw); margin: 0 auto 80px;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px;
}
.finition { text-align: center; cursor: pointer; transition: transform .4s var(--ease); }
.finition:hover { transform: translateY(-6px); }
.finition-swatch {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  border: 1px solid var(--line-2);
  transition: box-shadow .4s var(--ease);
}
.finition:hover .finition-swatch { box-shadow: 0 12px 40px rgba(0,0,0,.5); }
.finition span { font-size: 13px; color: var(--text-dim); letter-spacing: 0.02em; }
.swatch-1 { background: linear-gradient(135deg, #1a1a1a 0%, #3a3a3a 50%, #0a0a0a 100%); }
.swatch-2 { background: #1c1c1c; }
.swatch-3 { background: linear-gradient(135deg, #232323 0%, #2c2c2c 100%); }
.swatch-4 { background: linear-gradient(135deg, #4a4a52 0%, #8a8a94 50%, #4a4a52 100%); }
.swatch-5 { background: linear-gradient(135deg, #4a148c 0%, #00bcd4 50%, #f5d000 100%); }
.swatch-6 { background: linear-gradient(135deg, #c0c0c0 0%, #ffffff 30%, #888 60%, #ffffff 100%); }

.palette { max-width: var(--maxw); margin: 0 auto; }
.palette-row {
  display: grid; grid-template-columns: repeat(12, 1fr);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.palette-swatch {
  aspect-ratio: 1 / 1.4;
  transition: transform .4s var(--ease);
}
.palette-swatch:hover { transform: scaleY(1.08); z-index: 2; }
.palette-note {
  text-align: center; margin-top: 24px;
  color: var(--text-mute); font-size: 13px;
  letter-spacing: 0.02em;
}

/* =====================================================
   HISTOIRE
   ===================================================== */
.histoire {
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}
.histoire-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.histoire-watermark {
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 480px;
  height: 480px;
  object-fit: contain;
  opacity: 0.04;
  transform: rotate(-12deg);
}

.histoire-grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  position: relative; z-index: 2;
}

.histoire-visual { position: relative; }
.histoire-img {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line);
  position: relative;
  background-size: cover;
  background-position: center;
}
.histoire-img-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px;
  color: var(--text-mute);
  text-align: center;
  padding: 24px;
  background:
    radial-gradient(ellipse at center, rgba(245, 208, 0, 0.08) 0%, transparent 60%),
    var(--bg-3);
}
.histoire-img-placeholder svg { width: 80px; height: 80px; opacity: 0.4; }
.histoire-img-placeholder span { font-size: 13px; line-height: 1.5; }
.histoire-img-placeholder code {
  background: var(--bg-2);
  padding: 4px 10px;
  border-radius: 6px;
  color: var(--accent);
  font-size: 12px;
}

.histoire-badge {
  position: absolute;
  bottom: -28px; right: -20px;
  background: var(--accent);
  color: #000;
  border-radius: var(--radius-sm);
  padding: 18px 24px;
  display: flex; align-items: center; gap: 16px;
  box-shadow: 0 20px 60px rgba(245, 208, 0, 0.25);
}
.histoire-badge-stars {
  font-size: 14px;
  letter-spacing: 1px;
  color: #000;
}
.histoire-badge-text { display: flex; flex-direction: column; line-height: 1.1; }
.histoire-badge-text strong {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.02em;
  font-weight: 400;
}
.histoire-badge-text span { font-size: 12px; font-weight: 500; }

.histoire-content .section-title { margin-bottom: 28px; }
.histoire-text {
  font-size: 15px;
  color: var(--text-dim);
  margin-bottom: 18px;
  line-height: 1.7;
  max-width: 560px;
}
.histoire-text-lead {
  font-size: 18px;
  color: var(--text);
  font-weight: 500;
}

.histoire-values {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin: 36px 0 36px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.histoire-value {
  display: flex; align-items: center; gap: 12px;
}
.histoire-value-icon {
  width: 36px; height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.histoire-value-icon svg { width: 18px; height: 18px; }
.histoire-value strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}
.histoire-value span {
  display: block;
  font-size: 12px;
  color: var(--text-mute);
  letter-spacing: 0.02em;
}

.histoire-cta { margin-top: 12px; }

/* =====================================================
   AVIS
   ===================================================== */
.avis { background: var(--bg); }

.avis-rating {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; flex-wrap: wrap;
  margin-top: 24px;
}
.avis-stars {
  color: var(--accent);
  font-size: 18px;
  letter-spacing: 2px;
}
.avis-rating-text {
  font-size: 14px;
  color: var(--text-dim);
}
.avis-rating-text strong {
  color: var(--text);
  font-weight: 700;
  font-size: 16px;
}

.avis-carousel {
  max-width: var(--maxw); margin: 0 auto;
  position: relative;
}
.avis-track {
  display: flex; gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.avis-track::-webkit-scrollbar { display: none; }

.avis-card {
  flex: 0 0 calc((100% - 48px) / 3);
  scroll-snap-align: start;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  display: flex; flex-direction: column;
  gap: 20px;
  transition: all .4s var(--ease);
  min-height: 280px;
}
.avis-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}
.avis-card-head {
  display: flex; align-items: center; justify-content: space-between;
}
.avis-google { width: 22px; height: 22px; }
.avis-text {
  flex: 1;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  font-weight: 500;
}
.avis-author {
  display: flex; align-items: center; gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.avis-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  flex-shrink: 0;
}
.avis-author strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}
.avis-author span {
  display: block;
  font-size: 12px;
  color: var(--text-mute);
  margin-top: 2px;
}

.avis-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
  z-index: 5;
  transition: all .3s var(--ease);
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.avis-btn:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}
.avis-btn-prev { left: -16px; }
.avis-btn-next { right: -16px; }
.avis-btn svg { width: 18px; height: 18px; }

/* =====================================================
   CONTACT
   ===================================================== */
.contact { background: var(--bg-2); }
.contact-grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.contact-info .section-title { margin-bottom: 24px; }
.contact-meta {
  margin-top: 48px;
  display: flex; flex-direction: column; gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.contact-item { display: flex; flex-direction: column; gap: 4px; }
.contact-label {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-mute);
}
.contact-value {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.02em;
}
a.contact-value:hover { color: var(--accent); }

.contact-form {
  background: var(--bg);
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
}
.contact-form-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 24px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.contact-form-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.contact-form-header span {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.06em;
  color: var(--text);
}
.form-row { margin-bottom: 22px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.field-label {
  display: block;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.field input, .field textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  transition: all .3s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-mute); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-3);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.field textarea { resize: vertical; min-height: 90px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 13px; font-weight: 500;
  color: var(--text-dim);
  transition: all .3s var(--ease);
}
.chip:hover span { color: var(--text); border-color: var(--text-mute); }
.chip input:checked + span {
  background: var(--accent); color: #000; border-color: var(--accent);
}

.form-note {
  text-align: center; margin-top: 18px;
  font-size: 12px; color: var(--text-mute);
  letter-spacing: 0.02em;
}
.form-success {
  display: none;
  align-items: center; gap: 12px;
  margin-top: 20px;
  padding: 14px 18px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  color: var(--accent);
  font-size: 14px; font-weight: 500;
}
.form-success.is-visible { display: flex; }
.form-success svg { width: 20px; height: 20px; flex-shrink: 0; }

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
}

/* === BANDE INFO RÉASSURANCE === */
.footer-info-strip {
  background: var(--accent);
  color: #000;
  padding: 22px var(--pad);
  position: relative;
  overflow: hidden;
}
.footer-info-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent 0,
    transparent 30px,
    rgba(0, 0, 0, 0.04) 30px,
    rgba(0, 0, 0, 0.04) 60px
  );
  pointer-events: none;
}
.footer-info-strip-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  position: relative;
}
.footer-info-item {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 220px;
  justify-content: center;
}
.footer-info-icon {
  flex-shrink: 0;
  color: #000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.footer-info-icon svg {
  width: 28px;
  height: 28px;
  display: block;
  flex-shrink: 0;
}
.footer-info-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.02em;
  font-weight: 400;
  line-height: 1;
  margin-bottom: 4px;
}
.footer-info-item span {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  opacity: 0.8;
}
.footer-info-divider {
  width: 1px;
  height: 40px;
  background: rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
}

.footer-cta-band {
  border-bottom: 1px solid var(--line);
  padding: clamp(60px, 8vw, 100px) var(--pad);
  background: var(--bg-2);
}
.footer-cta-grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
}
.footer-cta-block {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 3.5vw, 44px);
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
}
.footer-cta-block::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 200px; height: 200px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  opacity: 0.4;
  pointer-events: none;
}
.footer-cta-tag {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); font-weight: 600;
  margin-bottom: 16px;
  position: relative;
}
.footer-cta-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  letter-spacing: 0.01em;
  line-height: 1;
  font-weight: 400;
  margin-bottom: 28px;
  position: relative;
}
.footer-cta-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 18px;
  margin-bottom: 28px;
  flex: 1;
  position: relative;
}
.footer-cta-list li {
  display: flex; align-items: flex-start; gap: 14px;
  font-size: 15px;
  line-height: 1.5;
}
.footer-cta-list a {
  transition: color .3s var(--ease);
}
.footer-cta-list a:hover { color: var(--accent); }
.footer-cta-icon {
  width: 36px; height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.footer-cta-icon svg { width: 16px; height: 16px; }
.footer-hours {
  display: flex; flex-direction: column; gap: 4px;
}
.footer-hours div {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 13px;
}
.footer-hours strong {
  font-weight: 600;
  min-width: 130px;
}
.footer-hours span {
  color: var(--text-dim);
}
.footer-cta-btn { align-self: flex-start; position: relative; }

.footer-top {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  padding: clamp(40px, 6vw, 64px) var(--pad);
  border-bottom: 1px solid var(--line);
}
.footer-brand p { color: var(--text-dim); margin-top: 12px; max-width: 280px; }
.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-logo-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}
.footer-logo-text {
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: 0.16em;
  color: var(--text);
}
.footer-cols {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px;
}
.footer-cols > div { display: flex; flex-direction: column; gap: 10px; }
.footer-col-title {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-mute); margin-bottom: 12px;
}
.footer-cols a {
  font-size: 14px; color: var(--text-dim);
  transition: color .3s var(--ease);
}
.footer-cols a:hover { color: var(--accent); }

.footer-bottom {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; justify-content: space-between;
  padding: 24px var(--pad);
  font-size: 12px; color: var(--text-mute);
  letter-spacing: 0.04em;
}

/* =====================================================
   ANIMATIONS RÉVÉLATION SCROLL
   ===================================================== */
.reveal, .reveal-up { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible, .reveal-up.is-visible { opacity: 1; transform: translateY(0); }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1100px) {
  .carousel-item, .carousel-placeholder { flex: 0 0 calc((100% - 24px) / 2); }
  .avis-card { flex: 0 0 calc((100% - 24px) / 2); }
}

@media (max-width: 980px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }

  .topbar-inner { font-size: 11px; gap: 10px; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; margin: 20px auto 0; width: 100%; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .finitions { grid-template-columns: repeat(3, 1fr); }
  .palette-row { grid-template-columns: repeat(6, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-cta-grid { grid-template-columns: 1fr; }
  .hero-scroll { display: none; }

  .histoire-grid { grid-template-columns: 1fr; gap: 60px; }
  .histoire-visual { max-width: 480px; margin: 0 auto; }

  .section-head-row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
  .finitions { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .palette-row { grid-template-columns: repeat(6, 1fr); }
  .form-row-2 { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .footer-cols { grid-template-columns: 1fr; }
  .nav-logo-img { width: 38px !important; height: 38px !important; }
  .nav-logo-word { font-size: 18px; }

  .topbar { display: none; }

  .carousel-item, .carousel-placeholder { flex: 0 0 85%; }
  .avis-card { flex: 0 0 85%; }
  .avis-btn { display: none; }

  .histoire-values { grid-template-columns: 1fr; gap: 14px; }
  .histoire-badge { right: 0; bottom: -20px; padding: 14px 18px; }
  .histoire-badge-text strong { font-size: 22px; }

  .realisations-cta { flex-direction: column; text-align: center; }

  /* Footer info strip en colonne sur mobile */
  .footer-info-strip-inner { flex-direction: column; gap: 16px; }
  .footer-info-divider { width: 100%; height: 1px; }
  .footer-info-item { width: 100%; justify-content: flex-start; }

  .hero-visual-badge { left: 50%; transform: translateX(-50%); bottom: -16px; font-size: 11px; padding: 10px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}