/* ============================================================
   SB Transport — Stylesheet
   Light / Dark theme via CSS variables
   ============================================================ */

/* ===== VARIABLES — LIGHT ===== */
:root,
[data-theme="light"] {
  --color-primary: #0a1f3c;
  --color-primary-light: #1d4d96;
  --color-secondary: #2f6fd0;
  --color-accent: #c9a227;
  --color-accent-light: #e8c84a;
  --color-accent-dark: #b8941f;
  --color-accent-glow: rgba(201,162,39,0.15);
  --color-background: #ffffff;
  --color-surface: #f7f8fa;
  --color-surface-alt: #eef1f5;
  --color-text: #0a1f3c;
  --color-text-body: #3d4f6a;
  --color-muted: #6b7a90;
  --color-border: #e2e6ec;
  --color-white: #ffffff;
  --color-black: #0a0f1a;

  --header-bg: rgba(255,255,255,0.88);
  --shadow-sm: 0 1px 3px rgba(10,31,60,0.06), 0 1px 2px rgba(10,31,60,0.04);
  --shadow-md: 0 4px 20px rgba(10,31,60,0.08), 0 2px 6px rgba(10,31,60,0.04);
  --shadow-lg: 0 12px 40px rgba(10,31,60,0.10), 0 4px 12px rgba(10,31,60,0.06);
  --shadow-xl: 0 24px 60px rgba(10,31,60,0.14), 0 8px 24px rgba(10,31,60,0.08);
  --shadow-2xl: 0 40px 80px rgba(10,31,60,0.18), 0 12px 32px rgba(10,31,60,0.10);
  --shadow-gold: 0 6px 20px rgba(201,162,39,0.28), 0 2px 8px rgba(201,162,39,0.15);
  --shadow-gold-lg: 0 12px 40px rgba(201,162,39,0.35), 0 4px 16px rgba(201,162,39,0.20);

  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --maxw: 1280px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Archivo', var(--font);
}

/* ===== VARIABLES — DARK ===== */
[data-theme="dark"] {
  --color-primary: #d4af37;
  --color-primary-light: #e8c84a;
  --color-secondary: #4a8de6;
  --color-accent: #d4af37;
  --color-accent-light: #e8c84a;
  --color-accent-dark: #b8941f;
  --color-accent-glow: rgba(212,175,55,0.12);
  --color-background: #060a14;
  --color-surface: #0d1424;
  --color-surface-alt: #131c30;
  --color-text: #f0f3f8;
  --color-text-body: #b0bccc;
  --color-muted: #7a8599;
  --color-border: #1e2a42;
  --color-white: #f0f3f8;
  --color-black: #060a14;

  --header-bg: rgba(6,10,20,0.88);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.4), 0 2px 6px rgba(0,0,0,0.3);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.5), 0 4px 12px rgba(0,0,0,0.35);
  --shadow-xl: 0 24px 60px rgba(0,0,0,0.6), 0 8px 24px rgba(0,0,0,0.4);
  --shadow-2xl: 0 40px 80px rgba(0,0,0,0.7), 0 12px 32px rgba(0,0,0,0.5);
  --shadow-gold: 0 6px 20px rgba(201,162,39,0.22), 0 2px 8px rgba(201,162,39,0.12);
  --shadow-gold-lg: 0 12px 40px rgba(201,162,39,0.3), 0 4px 16px rgba(201,162,39,0.18);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--color-background);
  color: var(--color-text-body);
  line-height: 1.65; font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'kern' 1, 'liga' 1, 'cv11' 1;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
  overflow-x: hidden;
}
::selection { background: var(--color-accent); color: var(--color-primary); }
[data-theme="dark"] ::selection { color: #060a14; }

/* Scrollbar custom */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--color-surface); }
::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-accent); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: inherit; }

/* Typo : Archivo pour les titres, Inter pour le corps */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.025em;
  font-feature-settings: 'kern' 1, 'ss01' 1;
}
.brand-name, .stat-num, .step-num, .error-code, .team-avatar {
  font-family: var(--font-heading);
}

/* ===== UTILITIES ===== */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.gold { color: var(--color-accent); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 16px; color: var(--color-accent);
  font-family: var(--font-heading);
}
.eyebrow::before {
  content: ""; width: 28px; height: 2px; background: var(--color-accent);
  border-radius: 2px;
}
.section-head { text-align: center; margin-bottom: 72px; position: relative; }
.section-head h2 {
  font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800;
  color: var(--color-text); letter-spacing: -0.035em;
  line-height: 1.12;
}
.section-head-light h2 { color: #fff; }
.section-sub { margin-top: 18px; font-size: 1.05rem; color: var(--color-muted); max-width: 640px; margin-left: auto; margin-right: auto; line-height: 1.75; }
.section-head-light .section-sub { color: rgba(255,255,255,0.7); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 32px; border-radius: var(--radius);
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; transition: all 0.3s var(--ease);
  cursor: pointer; white-space: nowrap; position: relative; overflow: hidden;
  font-family: var(--font-heading);
}
.btn svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-gold {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
  color: #0a1f3c;
  box-shadow: var(--shadow-gold);
}
[data-theme="dark"] .btn-gold { color: #060a14; }
.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold-lg), 0 0 0 1px rgba(201,162,39,0.3);
}
.btn-gold::before {
  content: ""; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.6s var(--ease);
}
.btn-gold:hover::before { left: 100%; }
.btn-outline {
  background: transparent; color: var(--color-text);
  border: 2px solid var(--color-border);
}
.btn-outline:hover { border-color: var(--color-accent); color: var(--color-accent); transform: translateY(-2px); }
.btn-outline-light {
  background: rgba(255,255,255,0.05); color: #fff;
  border: 2px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.btn-outline-light:hover { border-color: var(--color-accent); color: var(--color-accent); background: rgba(212,175,55,0.1); transform: translateY(-2px); }
.btn-full { width: 100%; justify-content: center; }
.btn-header { padding: 11px 22px; font-size: 0.76rem; }

/* ===== TOPBAR (barre utilitaire) ===== */
.topbar {
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
  color: rgba(255,255,255,0.7);
  font-size: 0.76rem; font-weight: 500;
  padding: 8px 0; position: relative; z-index: 101;
  border-bottom: 1px solid rgba(212,175,55,0.2);
}
[data-theme="dark"] .topbar { background: linear-gradient(90deg, var(--color-black), #0d1424); border-bottom-color: rgba(212,175,55,0.15); }
.topbar-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 32px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.topbar a { color: var(--color-accent); transition: color 0.25s; }
.topbar a:hover { color: var(--color-accent-light); }
.topbar .sep { margin: 0 10px; opacity: 0.3; }
.topbar svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 5px; color: var(--color-accent); }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 4px; }

/* ===== HEADER ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  box-shadow: 0 1px 0 var(--color-border), 0 4px 30px rgba(0,0,0,0.04);
  transition: all 0.4s var(--ease);
}
.site-header.shrink {
  box-shadow: 0 2px 0 var(--color-border), 0 8px 40px rgba(0,0,0,0.08);
}
.site-header::after {
  content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent) 15%, var(--color-accent-light) 50%, var(--color-accent) 85%, transparent);
  opacity: 1;
}
.site-header.shrink::after { height: 3px; }

.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 32px;
  height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

/* Brand */
.brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.brand-logo {
  max-height: 46px; width: auto; max-width: 170px; object-fit: contain;
  transition: max-height 0.35s var(--ease), max-width 0.35s var(--ease);
  filter: drop-shadow(0 2px 8px rgba(10,31,60,0.1));
}
.brand-name {
  font-family: var(--font-heading);
  font-size: 1.2rem; font-weight: 700; letter-spacing: 0.02em;
  color: var(--color-text); line-height: 1.1;
  transition: font-size 0.35s var(--ease);
}
.brand-name span { color: var(--color-accent); font-weight: 800; }
.brand-tag {
  display: block; font-family: var(--font);
  font-size: 0.62rem; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--color-muted);
  margin-top: 2px;
}

/* Navigation */
.main-nav ul { display: flex; gap: 4px; }
.nav-link {
  font-family: var(--font-heading);
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--color-text-body);
  padding: 8px 16px; position: relative; transition: color 0.25s;
  border-radius: var(--radius);
}
.nav-link::before {
  content: ""; position: absolute; left: 50%; bottom: 4px;
  width: 0; height: 2px; background: var(--color-accent);
  transform: translateX(-50%); transition: width 0.3s var(--ease);
  border-radius: 1px;
}
.nav-link:hover { color: var(--color-text); background: var(--color-surface-alt); }
.nav-link.actif { color: var(--color-accent); }
.nav-link:hover::before { width: 50%; }
.nav-link.actif::before { width: 50%; }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle {
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-body); transition: all 0.3s;
  border: 1px solid var(--color-border); background: var(--color-surface);
}
.theme-toggle svg { width: 20px; height: 20px; transition: transform 0.3s; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* CTA header */
.btn-header {
  padding: 11px 24px; font-size: 0.74rem; border-radius: 12px;
  font-family: var(--font-heading); letter-spacing: 0.04em;
}

/* Menu toggle */
.menu-toggle { display: none; width: 40px; height: 40px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; border-radius: 10px; }
.menu-toggle span { width: 24px; height: 2px; background: var(--color-text); border-radius: 2px; transition: all 0.3s; }
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Header shrink */
.site-header.shrink .header-inner { height: 62px; }
.site-header.shrink .brand-logo { max-height: 36px; max-width: 140px; }
.site-header.shrink .brand-name { font-size: 1.05rem; }
.site-header.shrink { box-shadow: 0 4px 30px rgba(10,31,60,0.1); }
[data-theme="dark"] .site-header.shrink { box-shadow: 0 4px 30px rgba(0,0,0,0.4); }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding-top: 72px; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: -30% 0 -30% 0; z-index: 0;
  background: url('../img/camions-garage.png') center/cover no-repeat;
  will-change: transform;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(10,31,60,0.92) 0%, rgba(15,45,87,0.85) 50%, rgba(29,77,150,0.72) 100%);
}
[data-theme="dark"] .hero-overlay {
  background: linear-gradient(135deg, rgba(6,10,20,0.94) 0%, rgba(10,20,40,0.86) 50%, rgba(20,40,80,0.68) 100%);
}
.hero-container {
  position: relative; z-index: 2; display: grid;
  grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: center;
  width: 100%; padding-top: 40px; padding-bottom: 40px;
}
.hero-content { color: #fff; position: relative; padding-left: 18px; }
.hero-content::before {
  content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px;
  background: linear-gradient(180deg, var(--color-accent), var(--color-accent-light), transparent);
  border-radius: 3px;
  box-shadow: 0 0 12px rgba(201,162,39,0.3);
}
.hero-content h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 900;
  line-height: 1.08; letter-spacing: -0.03em; color: #fff; margin-bottom: 24px;
  text-shadow: 0 4px 40px rgba(0,0,0,0.35), 0 1px 3px rgba(0,0,0,0.2);
  position: relative;
}

/* "Transport" — gradient doré animé qui se déplace comme une route */
.hero-content h1 .gold {
  background: linear-gradient(90deg,
    var(--color-accent) 0%,
    var(--color-accent-light) 40%,
    #fff 50%,
    var(--color-accent-light) 60%,
    var(--color-accent) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: goldSweep 4s linear infinite;
}
@keyframes goldSweep {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}

/* Reflet lumineux qui balaie "SB Transport" comme des phares */
.hero-title {
  position: relative;
  overflow: hidden;
}
.hero-title::after {
  content: ""; position: absolute; top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  animation: headlightSweep 5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes headlightSweep {
  0% { left: -60%; }
  40% { left: 100%; }
  100% { left: 100%; }
}
.hero-lead {
  font-size: 1.1rem; line-height: 1.75; max-width: 540px;
  color: rgba(255,255,255,0.85); margin-bottom: 36px;
  font-weight: 400;
}
.hero-features { display: flex; flex-wrap: wrap; gap: 24px 32px; margin-bottom: 40px; }
.hero-feature {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255,255,255,0.9);
}
.hero-feature svg { width: 22px; height: 22px; color: var(--color-accent); }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-visual {
  position: relative; will-change: transform;
}

/* ============================================================
   SCÈNE ANIMÉE — Camion de nuit avec traînées dorées
   ============================================================ */
.hero-scene {
  position: relative; width: 100%; height: 620px;
  border-radius: var(--radius-2xl); overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.5), 0 16px 40px rgba(0,0,0,0.3), inset 0 0 0 1px rgba(255,255,255,0.05);
}
.hero-scene-svg {
  width: 100%; height: 100%; display: block;
}

/* Étoiles scintillantes */
.star {
  animation: twinkle 3s ease-in-out infinite;
  animation-delay: var(--d);
}
@keyframes twinkle {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}

/* Lumières de ville qui clignotent */
.clight {
  animation: cityBlink 4s ease-in-out infinite;
  animation-delay: var(--d);
}
@keyframes cityBlink {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* Scène hero — défilement et cycles gérés par JS (app.js) */
.city-skyline, .layer-mountains, .layer-hills, .layer-desert,
.mood-sunset, .mood-fresh, .mood-dawn, .weather-rain {
  transition: opacity 0.3s ease;
}

/* Pluie — gérée par JS, mais les gouttes tombent en CSS */
.raindrop {
  animation: rainFall 0.6s linear infinite;
  animation-delay: var(--d);
}
@keyframes rainFall {
  0% { transform: translateY(-20px); opacity: 0; }
  10% { opacity: 0.5; }
  90% { opacity: 0.5; }
  100% { transform: translateY(340px); opacity: 0; }
}

/* Indicateur de lieu/température */
.loc-badge {
  animation: locPulse 3s ease-in-out infinite;
}
@keyframes locPulse {
  0%, 100% { fill: rgba(0,0,0,0.4); }
  50% { fill: rgba(0,0,0,0.55); }
}
.loc-dot {
  animation: locBlink 1.5s ease-in-out infinite;
}
@keyframes locBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Lumières ville — défilement géré par JS */

/* Lignes de route qui défilent vite (camion fixe, route défile) */
.rline {
  animation: roadMove 1.2s linear infinite;
  animation-delay: var(--d);
}
@keyframes roadMove {
  0% { transform: translateX(0); }
  100% { transform: translateX(-750px); }
}

/* Camion et roues — animés via SVG <animateTransform> (natif, fiable) */
/* Les animations truckDrive, truckBounce et wheelSpin sont gérées en SVG natif */

/* Poussière soulevée par les roues */
.dust {
  animation: dustRise 0.8s ease-out infinite;
  animation-delay: var(--d);
}
@keyframes dustRise {
  0% { transform: translate(0, 0); opacity: 0.15; }
  100% { transform: translate(-30px, -10px); opacity: 0; }
}

/* Phares qui pulsent */
.headlight-dot {
  animation: headlightPulse 2s ease-in-out infinite;
}
@keyframes headlightPulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}
.headlight-beam {
  animation: beamPulse 3s ease-in-out infinite;
  transform-origin: center;
}
@keyframes beamPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.9; }
}

/* Traînées dorées qui se déplacent */
.trail {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: trailDash 2s linear infinite;
}
@keyframes trailDash {
  0% { stroke-dashoffset: 200; }
  100% { stroke-dashoffset: -200; }
}
.trail2 {
  stroke-dasharray: 150;
  stroke-dashoffset: 150;
  animation: trailDash 2.5s linear infinite;
}

/* Fumée d'échappement */
.smoke {
  animation: smokeRise 2s ease-out infinite;
  animation-delay: var(--d);
}
@keyframes smokeRise {
  0% { opacity: 0.1; transform: translate(0, 0) scale(0.5); }
  50% { opacity: 0.06; }
  100% { opacity: 0; transform: translate(-30px, -20px) scale(2); }
}

/* Particules dorées qui flottent vers le haut */
.particle {
  animation: particleFloat 3s ease-out infinite;
  animation-delay: var(--d);
}
@keyframes particleFloat {
  0% { opacity: 0; transform: translateY(0) scale(0.5); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translateY(var(--y, -40px)) scale(1.5); }
}

/* Badge "En mission" */
.hero-scene-overlay {
  position: absolute; top: 24px; right: 24px; z-index: 2;
}
.hero-scene-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(6,10,20,0.7); backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(212,175,55,0.3);
  padding: 8px 16px; border-radius: 50px;
  font-size: 0.75rem; font-weight: 700; color: #fff;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ade80;
  animation: pulseDot 1.5s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0.6); }
  50% { box-shadow: 0 0 0 8px rgba(74,222,128,0); }
}
.hero-visual-badge {
  position: absolute; bottom: 24px; left: 24px;
  background: rgba(255,255,255,0.97); color: #0a1f3c;
  padding: 14px 24px; border-radius: 50px;
  display: flex; align-items: center; gap: 10px;
  font-size: 0.88rem; font-weight: 700; box-shadow: var(--shadow-xl);
  backdrop-filter: blur(10px);
}
.hero-visual-badge svg { width: 20px; height: 20px; color: var(--color-accent); }

.hero-scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 2; color: rgba(255,255,255,0.7); animation: bounce 2s infinite;
  width: 32px; height: 32px;
}
.hero-scroll svg { width: 32px; height: 32px; }
.hero-scroll svg { width: 28px; height: 28px; }
@keyframes bounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

/* ===== STATS BAND ===== */
.stats-band {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  padding: 64px 0; position: relative;
}
.stats-band::before {
  content: ""; position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1580674681294-4091a6d05c15?fm=jpg&q=60&w=1600&auto=format&fit=crop') center/cover;
  opacity: 0.06;
}
[data-theme="dark"] .stats-band { background: linear-gradient(135deg, var(--color-surface), var(--color-surface-alt)); border-bottom: 1px solid var(--color-border); }
.stats-band .container { position: relative; z-index: 1; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center;
}
.stat-item { position: relative; }
.stat-ico {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(201,162,39,0.15); display: flex;
  align-items: center; justify-content: center; margin: 0 auto 16px;
  border: 1px solid rgba(201,162,39,0.3);
}
.stat-ico svg { width: 24px; height: 24px; color: var(--color-accent); }
.stat-num {
  font-size: clamp(2.4rem, 4.5vw, 3.4rem); font-weight: 900;
  color: #fff; line-height: 1; margin-bottom: 10px;
}
[data-theme="dark"] .stat-num { color: var(--color-accent); }
.stat-lbl {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: rgba(255,255,255,0.65);
}
[data-theme="dark"] .stat-lbl { color: var(--color-text-body); }
.stats-band { border-bottom: 3px solid var(--color-accent); }

/* Avis intégrés au hero */
.hero-reviews {
  margin-top: 36px; padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.hero-reviews-rating {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 20px;
}
.hero-reviews-stars { display: flex; gap: 2px; }
.hero-reviews-stars svg { width: 18px; height: 18px; color: var(--color-accent); filter: drop-shadow(0 0 4px rgba(201,162,39,0.4)); }
.hero-reviews-score { font-family: var(--font-heading); font-size: 1rem; font-weight: 800; color: #fff; }
.hero-reviews-count { font-size: 0.82rem; color: rgba(255,255,255,0.6); }
.hero-reviews-list {
  display: flex; gap: 16px; overflow: hidden;
  mask-image: linear-gradient(90deg, #000 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent 100%);
}
.hero-review-item {
  flex: 1 1 0; min-width: 0;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius); padding: 16px 18px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.hero-review-item:hover {
  transform: translateY(-3px);
  border-color: rgba(201,162,39,0.3);
}
.hero-review-item p {
  font-size: 0.82rem; line-height: 1.55; color: rgba(255,255,255,0.88);
  margin-bottom: 8px; font-style: italic;
}
.hero-review-author {
  font-size: 0.74rem; font-weight: 700; color: var(--color-accent);
  letter-spacing: 0.02em;
}
@media (max-width: 1100px) {
  .hero-reviews-list { flex-direction: column; }
  .hero-review-item { flex: none; }
}
@media (max-width: 600px) {
  .hero-reviews { margin-top: 28px; padding-top: 20px; }
  .hero-reviews-rating { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ===== SECTIONS ===== */
.about, .services, .why-us, .team { padding: 110px 0; }
.about { background: var(--color-surface); position: relative; overflow: hidden; }
.about-bg {
  position: absolute; inset: -20% 0 -20% 0; z-index: 0;
  background: url('https://images.unsplash.com/photo-1580674688950-eb8855f5f7b1?fm=jpg&q=80&w=1920&auto=format&fit=crop') center/cover;
  opacity: 0.12;
  z-index: 0;
}
[data-theme="dark"] .about-bg { opacity: 0.07; }
.about-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, var(--color-surface) 0%, transparent 30%, transparent 70%, var(--color-surface) 100%);
}
.about .container { position: relative; z-index: 2; }
.services { background: var(--color-background); }
.why-us { background: var(--color-surface); }
.team { background: var(--color-background); position: relative; overflow: hidden; }
.team-bg {
  position: absolute; inset: -30% 0 -30% 0; z-index: 0;
  background: url('assets/img/camions-garage.png') center/cover no-repeat;
  opacity: 0.15;
  will-change: transform;
}
[data-theme="dark"] .team-bg { opacity: 0.10; }
.team-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, var(--color-background) 0%, rgba(0,0,0,0) 15%, rgba(0,0,0,0) 85%, var(--color-background) 100%);
  pointer-events: none;
}
[data-theme="dark"] .team-overlay {
  background: linear-gradient(180deg, var(--color-background) 0%, rgba(0,0,0,0) 20%, rgba(0,0,0,0) 80%, var(--color-background) 100%);
}
.team .container { position: relative; z-index: 2; }

/* Particules animées en arrière-plan */
.team-particles {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden;
}
.team-particles span {
  position: absolute; bottom: -10px;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--color-accent);
  opacity: 0;
  animation: teamParticleRise 8s linear infinite;
}
.team-particles span:nth-child(1) { left: 5%; animation-delay: 0s; animation-duration: 7s; }
.team-particles span:nth-child(2) { left: 15%; animation-delay: 1s; animation-duration: 9s; }
.team-particles span:nth-child(3) { left: 28%; animation-delay: 2s; animation-duration: 8s; }
.team-particles span:nth-child(4) { left: 38%; animation-delay: 0.5s; animation-duration: 10s; }
.team-particles span:nth-child(5) { left: 50%; animation-delay: 1.5s; animation-duration: 7.5s; }
.team-particles span:nth-child(6) { left: 62%; animation-delay: 2.5s; animation-duration: 9.5s; }
.team-particles span:nth-child(7) { left: 72%; animation-delay: 3s; animation-duration: 8.5s; }
.team-particles span:nth-child(8) { left: 82%; animation-delay: 1.8s; animation-duration: 10.5s; }
.team-particles span:nth-child(9) { left: 90%; animation-delay: 0.8s; animation-duration: 7.8s; }
.team-particles span:nth-child(10) { left: 95%; animation-delay: 2.2s; animation-duration: 9.2s; }
@keyframes teamParticleRise {
  0% { opacity: 0; transform: translateY(0) scale(0.5); }
  10% { opacity: 0.4; }
  90% { opacity: 0.2; }
  100% { opacity: 0; transform: translateY(-100vh) scale(1.2); }
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 50px; align-items: start;
}
.about-visual-col { display: flex; flex-direction: column; gap: 20px; }
.about-img-main {
  width: 100%; height: auto; max-height: 320px; object-fit: contain;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--color-surface-alt), var(--color-surface));
  border: 1px solid var(--color-border);
}
.about-badge {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: #fff; padding: 32px 30px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.about-badge::before {
  content: ""; position: absolute; top: 0; left: 0; width: 4px; height: 100%;
  background: var(--color-accent);
}
.about-badge::after {
  content: ""; position: absolute; top: -50%; right: -30%; width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(212,175,55,0.15), transparent 70%);
  pointer-events: none;
}
[data-theme="dark"] .about-badge { background: var(--color-surface-alt); border: 1px solid rgba(212,175,55,0.3); }
.about-badge-head { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.about-badge-ico {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: var(--color-accent);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(212,175,55,0.3);
}
.about-badge-ico svg { width: 24px; height: 24px; color: #0a1f3c; }
.about-badge h4 { font-size: 1.05rem; font-weight: 800; color: #fff; line-height: 1.3; text-shadow: 0 1px 4px rgba(0,0,0,0.3); }
[data-theme="dark"] .about-badge h4 { color: #f0f3f8; }
.about-badge-roles { display: flex; flex-direction: column; gap: 14px; }
.about-role {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: var(--radius);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s var(--ease);
}
[data-theme="dark"] .about-role { background: rgba(212,175,55,0.05); border-color: rgba(212,175,55,0.1); }
.about-role:hover {
  background: rgba(212,175,55,0.12);
  border-color: rgba(212,175,55,0.3);
  transform: translateX(4px);
}
.about-role-num {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-size: 1.1rem; font-weight: 900;
  color: #0a1f3c;
  box-shadow: 0 3px 10px rgba(212,175,55,0.25);
}
.about-role-info { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.about-role-title { font-size: 0.92rem; font-weight: 700; color: #fff; }
[data-theme="dark"] .about-role-title { color: #f0f3f8; }
.about-role-desc { font-size: 0.78rem; color: rgba(255,255,255,0.65); }
[data-theme="dark"] .about-role-desc { color: #b0bccc; }
.about-role-ico { width: 22px; height: 22px; color: var(--color-accent); opacity: 0.8; flex-shrink: 0; }
.about-img-photo {
  width: 100%; height: 260px; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}

.about-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800;
  color: var(--color-text); margin-bottom: 18px; letter-spacing: -0.02em;
}
.about-text h3 {
  font-size: 1.4rem; font-weight: 800; color: var(--color-text);
  margin-bottom: 16px; letter-spacing: -0.02em;
}
.about-text p { margin-bottom: 16px; font-size: 0.96rem; line-height: 1.75; }
.about-text .btn { margin-top: 12px; }

.about-blocks { display: flex; flex-direction: column; gap: 24px; }
.about-block {
  background: var(--color-background); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 28px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.about-block:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.about-block-ico {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--color-surface-alt); display: flex;
  align-items: center; justify-content: center; margin-bottom: 16px;
}
.about-block-ico svg { width: 26px; height: 26px; color: var(--color-accent); }
.about-block h3 { font-size: 1.05rem; font-weight: 700; color: var(--color-text); margin-bottom: 8px; }
.about-block p { font-size: 0.88rem; line-height: 1.65; }

/* ===== SERVICES ===== */
.services { position: relative; padding: 110px 0; overflow: hidden; }
.services-bg {
  position: absolute; inset: -40% 0 -40% 0; z-index: 0;
  background: url('https://images.unsplash.com/photo-1494412651409-8963ce7935a7?fm=jpg&q=80&w=1920&auto=format&fit=crop') center/cover;
  will-change: transform;
}
.services-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(255,255,255,0.82) 0%, rgba(247,248,250,0.78) 100%);
}
[data-theme="dark"] .services-overlay {
  background: linear-gradient(180deg, rgba(6,10,20,0.97) 0%, rgba(13,20,36,0.95) 100%);
}
.services .container { position: relative; z-index: 2; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card {
  background: var(--color-background); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
  position: relative;
}
.service-card:hover {
  transform: translateY(-12px); box-shadow: var(--shadow-2xl);
  border-color: var(--color-accent);
}
.service-img {
  width: 100%; height: 240px; object-fit: cover; display: block;
  transition: transform 0.7s var(--ease);
}
.service-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 240px;
  background: linear-gradient(180deg, transparent 50%, rgba(10,31,60,0.5));
  z-index: 1; opacity: 0; transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover .service-img { transform: scale(1.1); }
.service-body { padding: 32px 28px; position: relative; }
.service-body::before {
  content: ""; position: absolute; top: 0; left: 28px; right: 28px; height: 2px;
  background: linear-gradient(90deg, var(--color-accent), transparent);
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.service-card:hover .service-body::before { opacity: 1; }
.service-ico {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--color-surface-alt); display: flex;
  align-items: center; justify-content: center; margin-bottom: 22px;
  transition: transform 0.4s var(--ease), background 0.3s, box-shadow 0.3s;
}
.service-ico svg { width: 30px; height: 30px; color: var(--color-accent); transition: color 0.3s; }
.service-card:hover .service-ico { background: var(--color-accent); box-shadow: var(--shadow-gold); }
.service-card:hover .service-ico svg { color: #0a1f3c; }
[data-theme="dark"] .service-card:hover .service-ico svg { color: #060a14; }
.service-card h3 { font-size: 1.12rem; font-weight: 700; color: var(--color-text); margin-bottom: 10px; letter-spacing: -0.01em; }
.service-card p { font-size: 0.9rem; line-height: 1.7; }
.service-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 18px; font-size: 0.78rem; font-weight: 700;
  color: var(--color-accent); text-transform: uppercase; letter-spacing: 0.06em;
  transition: gap 0.3s var(--ease);
}
.service-link svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.service-card:hover .service-link { gap: 10px; }
.service-card:hover .service-link svg { transform: translateX(2px); }

/* ===== CAPACITIES (avec image de fond) ===== */
.capabilities {
  position: relative; padding: 110px 0; overflow: hidden;
}
.cap-bg {
  position: absolute; inset: -40% 0 -40% 0; z-index: 0;
  background: url('https://images.unsplash.com/photo-1745956983820-6e960f7e8472?fm=jpg&q=80&w=1920&auto=format&fit=crop') center/cover;
  will-change: transform;
}
.cap-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(10,31,60,0.96), rgba(15,45,87,0.92));
}
[data-theme="dark"] .cap-overlay {
  background: linear-gradient(135deg, rgba(6,10,20,0.97), rgba(10,20,40,0.93));
}
.capabilities .container { position: relative; z-index: 2; }
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.cap-card {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(201,162,39,0.25);
  border-radius: var(--radius-xl); padding: 48px 36px; text-align: center;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  transition: transform 0.4s var(--ease), border-color 0.4s, background 0.4s, box-shadow 0.4s;
  position: relative; overflow: hidden;
}
.cap-card::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius-xl);
  background: radial-gradient(circle at 50% 0%, rgba(201,162,39,0.2), transparent 60%);
  opacity: 0; transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.cap-card:hover {
  transform: translateY(-14px); border-color: var(--color-accent);
  background: rgba(255,255,255,0.13);
  box-shadow: 0 24px 60px rgba(201,162,39,0.25), 0 8px 24px rgba(0,0,0,0.2);
}
.cap-card:hover::before { opacity: 1; }
.cap-ico {
  width: 68px; height: 68px; border-radius: 50%;
  background: rgba(201,162,39,0.15); display: flex;
  align-items: center; justify-content: center; margin: 0 auto 24px;
  border: 1px solid rgba(201,162,39,0.3);
  transition: transform 0.4s var(--ease);
}
.cap-ico svg { width: 34px; height: 34px; color: var(--color-accent); transition: transform 0.5s var(--ease); }
.cap-card h3 { font-size: 1.12rem; font-weight: 700; color: #fff; margin-bottom: 10px; letter-spacing: -0.01em; }
.cap-card p { font-size: 0.9rem; line-height: 1.7; color: rgba(255,255,255,0.75); }

/* ===== WHY US ===== */
.why-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.why-item {
  text-align: center; padding: 40px 24px;
  border-radius: var(--radius-lg);
  transition: transform 0.35s var(--ease), background 0.35s, box-shadow 0.35s;
  position: relative;
}
.why-item:hover {
  transform: translateY(-8px);
  background: var(--color-background);
  box-shadow: var(--shadow-lg);
}
.why-item:not(:last-child)::before {
  content: ""; position: absolute; right: -12px; top: 20%; bottom: 20%;
  width: 1px; background: var(--color-border);
}
.why-ico {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--color-surface-alt); display: flex;
  align-items: center; justify-content: center; margin: 0 auto 20px;
  transition: all 0.35s var(--ease);
  position: relative;
}
.why-ico svg { width: 28px; height: 28px; color: var(--color-accent); transition: color 0.3s; }
.why-item:hover .why-ico { background: var(--color-accent); box-shadow: var(--shadow-gold); }
.why-item:hover .why-ico svg { color: #0a1f3c; }
[data-theme="dark"] .why-item:hover .why-ico svg { color: #060a14; }
.why-item h3 { font-size: 0.96rem; font-weight: 700; color: var(--color-text); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.04em; }
.why-item p { font-size: 0.84rem; line-height: 1.65; }

/* ===== TEAM ===== */
.team-feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-xl); margin-bottom: 56px;
  position: relative;
}
.team-feature img { width: 100%; height: 100%; min-height: 380px; object-fit: cover; transition: transform 0.8s var(--ease); }
.team-feature:hover img { transform: scale(1.06); }
.team-feature-text {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: #fff; padding: 56px 48px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.team-feature-text::before {
  content: ""; position: absolute; top: 0; left: 0; width: 4px; height: 100%;
  background: var(--color-accent);
}
.team-feature-text::after {
  content: ""; position: absolute; bottom: -60px; right: -60px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,0.15), transparent 70%);
  pointer-events: none;
}
[data-theme="dark"] .team-feature-text { background: var(--color-surface-alt); border: 1px solid rgba(212,175,55,0.2); }
.team-feature-ico {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--color-accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  box-shadow: 0 6px 20px rgba(212,175,55,0.3);
}
.team-feature-ico svg { width: 30px; height: 30px; color: #0a1f3c; }
.team-feature-text h3 { font-size: 1.6rem; font-weight: 800; margin-bottom: 18px; color: #fff; letter-spacing: -0.02em; }
[data-theme="dark"] .team-feature-text h3 { color: #f0f3f8; }
.team-feature-text p { font-size: 0.98rem; line-height: 1.8; color: rgba(255,255,255,0.85); }
[data-theme="dark"] .team-feature-text p { color: var(--color-text-body); }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.team-card {
  background: var(--color-background); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 44px 30px; text-align: center;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  position: relative; overflow: hidden;
}
.team-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light), var(--color-accent));
  transform: scaleX(0); transform-origin: center;
  transition: transform 0.5s var(--ease);
}
.team-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(201,162,39,0.4);
}
.team-card:hover::before { transform: scaleX(1); }
.team-avatar {
  width: 84px; height: 84px; border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px;
  position: relative;
  border: 3px solid var(--color-accent);
  box-shadow: 0 0 0 5px var(--color-background), 0 8px 24px rgba(10,31,60,0.2);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.team-avatar svg { width: 36px; height: 36px; color: var(--color-accent); }
.team-avatar::after {
  content: ""; position: absolute; inset: -8px; border-radius: 50%;
  border: 2px solid var(--color-accent); transform: rotate(0) scale(0);
  opacity: 0; transition: transform 0.5s var(--ease), opacity 0.4s;
}
.team-card:hover .team-avatar {
  transform: scale(1.08) rotate(5deg);
  box-shadow: 0 0 0 5px var(--color-background), 0 12px 30px rgba(212,175,55,0.3);
}
.team-card:hover .team-avatar::after { transform: rotate(360deg) scale(1); opacity: 0.5; }
[data-theme="dark"] .team-avatar {
  background: linear-gradient(135deg, #0d1424, #131c30);
  border-color: var(--color-accent);
  box-shadow: 0 0 0 5px var(--color-surface), 0 8px 24px rgba(0,0,0,0.4);
}
[data-theme="dark"] .team-card:hover .team-avatar {
  box-shadow: 0 0 0 5px var(--color-surface), 0 12px 30px rgba(212,175,55,0.25);
}
.team-card h3 { font-size: 1.15rem; font-weight: 800; color: var(--color-text); margin-bottom: 4px; letter-spacing: -0.02em; }
.team-role {
  font-size: 0.76rem; font-weight: 700; color: var(--color-accent);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px;
}
.team-card p:last-of-type { font-size: 0.9rem; line-height: 1.7; color: var(--color-text-body); }

/* ===== QUOTE (avec image de fond) ===== */
.quote-section { position: relative; padding: 110px 0; overflow: hidden; }
.quote-bg {
  position: absolute; inset: -40% 0 -40% 0; z-index: 0;
  background: url('https://images.unsplash.com/photo-1739204618173-3e89def7140f?fm=jpg&q=80&w=1920&auto=format&fit=crop') center/cover;
  will-change: transform;
}
.quote-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(10,31,60,0.95), rgba(15,45,87,0.9));
}
[data-theme="dark"] .quote-overlay {
  background: linear-gradient(135deg, rgba(6,10,20,0.96), rgba(10,20,40,0.92));
}
.quote-section .container { position: relative; z-index: 2; }
.quote-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
.quote-info h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: #fff; margin-bottom: 18px; letter-spacing: -0.02em; }
.quote-info > p { font-size: 0.96rem; line-height: 1.75; margin-bottom: 28px; color: rgba(255,255,255,0.8); }
.quote-checks { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.quote-checks li { display: flex; align-items: center; gap: 12px; font-size: 0.92rem; color: rgba(255,255,255,0.85); }
.tick { width: 24px; height: 24px; border-radius: 50%; background: var(--color-accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tick svg { width: 14px; height: 14px; color: var(--color-primary); }
[data-theme="dark"] .tick svg { color: #060a14; }
.quote-contact-mini {
  display: flex; align-items: center; gap: 12px;
  color: var(--color-accent); font-size: 0.9rem; font-weight: 600;
}
.quote-contact-mini svg { width: 20px; height: 20px; }
.quote-contact-mini a:hover { text-decoration: underline; }

.quote-form {
  background: var(--color-background); border: 1px solid var(--color-border);
  border-radius: var(--radius-xl); padding: 44px;
  box-shadow: var(--shadow-2xl);
  position: relative; overflow: hidden;
}
.quote-form::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light), var(--color-accent));
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block; font-size: 0.76rem; font-weight: 600;
  color: var(--color-text); margin-bottom: 7px;
  text-transform: uppercase; letter-spacing: 0.06em;
  font-family: var(--font-heading);
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 13px 16px; border-radius: var(--radius);
  border: 1px solid var(--color-border); background: var(--color-surface);
  color: var(--color-text); transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  font-size: 0.92rem;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--color-accent);
  box-shadow: 0 4px 20px rgba(201,162,39,0.15), 0 0 0 3px rgba(201,162,39,0.1);
  transform: translateY(-2px);
}
.form-field textarea { resize: vertical; }

/* ===== FOOTER ===== */
.site-footer {
  background: linear-gradient(180deg, var(--color-primary), #061528);
  color: rgba(255,255,255,0.7);
  padding: 88px 0 0; position: relative;
}
[data-theme="dark"] .site-footer { background: linear-gradient(180deg, var(--color-black), #03060d); border-top: 1px solid var(--color-border); }
.site-footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-accent) 20%, var(--color-accent-light) 50%, var(--color-accent) 80%, transparent);
}
.footer-top {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-cta-block h2 { font-size: 1.55rem; font-weight: 800; color: #fff; margin-bottom: 10px; letter-spacing: -0.02em; }
.footer-cta-block p { margin-bottom: 24px; font-size: 0.92rem; line-height: 1.7; }
.footer-brand-block h3, .footer-contact-block h3 {
  font-size: 1.02rem; font-weight: 700; color: var(--color-accent);
  margin-bottom: 18px; text-transform: uppercase; letter-spacing: 0.08em;
}
.footer-brand-block p { margin-bottom: 4px; font-size: 0.9rem; line-height: 1.7; }
.footer-contact-block ul { display: flex; flex-direction: column; gap: 14px; }
.footer-contact-block li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.9rem; line-height: 1.6; }
.footer-contact-block svg { width: 20px; height: 20px; color: var(--color-accent); flex-shrink: 0; margin-top: 2px; }
.footer-contact-block a { color: rgba(255,255,255,0.7); transition: color 0.25s; }
.footer-contact-block a:hover { color: var(--color-accent); }
.footer-logo-block { text-align: center; }
.footer-logo { max-width: 200px; max-height: 120px; width: auto; height: auto; object-fit: contain; margin: 0 auto 16px; filter: drop-shadow(0 4px 20px rgba(0,0,0,0.3)); }
.footer-tagline { font-size: 0.82rem; line-height: 1.7; color: rgba(255,255,255,0.6); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 26px 0; font-size: 0.82rem; color: rgba(255,255,255,0.5);
  border-top: 1px solid rgba(201,162,39,0.15);
}

/* ===== BACK TO TOP ===== */
.back-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 90;
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
  color: #0a1f3c;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-gold-lg); opacity: 0; pointer-events: none;
  transition: all 0.4s var(--ease);
}
[data-theme="dark"] .back-top { color: #060a14; }
.back-top.show { opacity: 1; pointer-events: auto; }
.back-top:hover { transform: translateY(-6px) scale(1.05); box-shadow: 0 16px 50px rgba(212,175,55,0.5); }
.back-top svg { width: 24px; height: 24px; }

/* ===== REVEAL — Fade + slide subtil fluide ===== */
.reveal, .reveal-left, .reveal-right, .reveal-scale {
  opacity: 0;
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal { transform: translateY(24px); }
.reveal-left { transform: translateX(-24px); }
.reveal-right { transform: translateX(24px); }
.reveal-scale { transform: scale(0.96); }
.reveal.in, .reveal-left.in, .reveal-right.in, .reveal-scale.in {
  opacity: 1; transform: none;
}

/* ===== ANIMATIONS PROFESSIONNELLES ===== */

/* Keyframes */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes pulseRing {
  0% { transform: scale(0.8); opacity: 0.6; }
  100% { transform: scale(2); opacity: 0; }
}
@keyframes drawLine {
  from { width: 0; }
  to { width: 100%; }
}
@keyframes countUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-100%); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero — fade global en un seul bloc */
.hero-content {
  animation: fadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}
.hero-visual {
  animation: fadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
  will-change: transform, opacity;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Topbar — slide au chargement */
.topbar { animation: slideDown 0.5s var(--ease) both; }
.site-header { animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both; }

/* Stats — compteur animé */
.stat-item { transition: transform 0.3s var(--ease); }
.stat-item:hover { transform: translateY(-4px); }
.stat-num.counting { animation: countUp 0.4s var(--ease); }

/* Cartes de service — overlay au survol */
.service-card .service-img { transition: transform 0.6s var(--ease); }

/* Capabilities — pulse sur les icônes */
.cap-card:hover .cap-ico {
  animation: float 2s var(--ease) infinite;
}

/* Why-us — ligne de séparation animée */
.why-item::after {
  content: ""; position: absolute; bottom: 0; left: 50%;
  width: 0; height: 2px; background: var(--color-accent);
  transform: translateX(-50%); transition: width 0.4s var(--ease);
}
.why-item:hover::after { width: 60%; }

/* Section headings — underline décoratif animé */
.section-head h2::after {
  content: ""; display: block; width: 60px; height: 3px;
  background: var(--color-accent); margin: 16px auto 0;
  border-radius: 2px; transform: scaleX(0); transform-origin: center;
  transition: transform 0.5s var(--ease) 0.2s;
}
.section-head.reveal.in h2::after { transform: scaleX(1); }

/* Eyebrow — ligne décorative animée */
.eyebrow::after {
  content: ""; display: inline-block; width: 0; height: 2px;
  background: var(--color-accent); margin-left: 6px;
  vertical-align: middle; transition: width 0.5s var(--ease) 0.3s;
}
.reveal.in .eyebrow::after, .hero-content .eyebrow::after { width: 24px; }
.hero-content .eyebrow::after { animation: drawLine 0.5s var(--ease) 0.5s both; }

/* Quote checks — fade simple */
.quote-checks li {
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.quote-info.reveal.in .quote-checks li { opacity: 1; }

/* Footer blocks — fade simple */
.footer-top > div { transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1); }
.footer-top > div.reveal { opacity: 0; }
.footer-top > div.reveal.in { opacity: 1; }

/* About blocks — fade simple */
.about-blocks .about-block { transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1); }
.about-blocks.reveal .about-block { opacity: 0; }
.about-blocks.reveal.in .about-block { opacity: 1; }

/* Form fields — fade simple */
.quote-form.reveal .form-field,
.quote-form.reveal .form-row {
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.quote-form.reveal.in .form-field,
.quote-form.reveal.in .form-row { opacity: 1; }

/* Hero scroll indicator */
.hero-scroll { animation: bounce 2s var(--ease) infinite 1.5s; }

/* ============================================================
   ANIMATIONS PROFESSIONNELLES — HOVER & INTERACTIONS
   ============================================================ */

/* --- Boutons : flèche qui glisse + halo doré --- */
.btn-outline, .btn-outline-light { position: relative; overflow: hidden; }
.btn-outline::after, .btn-outline-light::after {
  content: ""; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
  background: var(--color-accent); transition: width 0.3s var(--ease);
}
.btn-outline:hover::after, .btn-outline-light:hover::after { width: 100%; }

/* --- Navigation : pastille de fond au survol --- */
.nav-link { position: relative; overflow: hidden; }
.nav-link::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius);
  background: var(--color-surface-alt); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease); z-index: -1;
}
.nav-link:hover::before { transform: scaleX(1); }

/* --- Theme toggle : rotation fluide --- */
.theme-toggle:hover { transform: rotate(180deg); border-color: var(--color-accent); color: var(--color-accent); }

/* --- Scroll progress : halo pulsé --- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 4px; width: 0;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light), var(--color-accent));
  background-size: 200% 100%;
  z-index: 200; transition: width 0.05s linear;
  box-shadow: 0 0 16px rgba(212,175,55,0.7), 0 2px 8px rgba(212,175,55,0.4);
  animation: progressShimmer 2s linear infinite;
}
@keyframes progressShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* --- Icônes de service : rotation au survol --- */
.service-card:hover .service-ico { transform: rotate(-8deg) scale(1.1); }

/* --- About blocks : bordure dorée progressive --- */
.about-block::before {
  content: ""; position: absolute; top: 0; left: 0; width: 3px; height: 0;
  background: var(--color-accent); border-radius: 3px 0 0 3px;
  transition: height 0.4s var(--ease);
}
.about-block:hover::before { height: 100%; }
.about-block:hover .about-block-ico { transform: scale(1.1) rotate(-5deg); background: var(--color-accent); }
.about-block:hover .about-block-ico svg { color: #0a1f3c; }
[data-theme="dark"] .about-block:hover .about-block-ico svg { color: #060a14; }

/* --- Capacités : halo lumineux + icône animée --- */
.cap-card:hover .cap-ico { transform: scale(1.15); }
.cap-card:hover .cap-ico svg { transform: rotate(10deg); }

/* --- Why-us : cercle doré qui s'étend --- */
.why-ico::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--color-accent); transform: scale(0); opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.why-item:hover .why-ico::after { transform: scale(1.3); opacity: 0.5; }
.why-item:hover .why-ico { transform: translateY(-4px); }

/* --- Team feature image : zoom au survol --- */

/* --- Stats : halo au survol --- */
.stat-item::after {
  content: ""; position: absolute; bottom: -8px; left: 50%; width: 0; height: 2px;
  background: var(--color-accent); transform: translateX(-50%);
  transition: width 0.3s var(--ease);
}
.stat-item:hover::after { width: 40px; }

/* --- Formulaire : champs qui montent au focus --- */
.form-field input:focus + label, .form-field:focus-within label { color: var(--color-accent); }

/* --- Hero features : halo au survol --- */
.hero-feature { transition: transform 0.3s var(--ease); }
.hero-feature:hover { transform: translateY(-3px); }
.hero-feature svg { transition: transform 0.3s var(--ease), color 0.3s; }
.hero-feature:hover svg { transform: scale(1.2); color: var(--color-accent-light); }

/* --- Hero visual badge : pulsation douce --- */
.hero-visual-badge { animation: badgePulse 3s var(--ease) infinite; }
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(201,162,39,0.3); }
  50% { box-shadow: 0 4px 30px rgba(201,162,39,0.5); }
}

/* --- Quote checks : tick qui scale au survol --- */
.quote-checks li { transition: transform 0.25s var(--ease); }
.quote-checks li:hover { transform: translateX(4px); }
.quote-checks li:hover .tick { transform: scale(1.2); box-shadow: 0 0 12px rgba(212,175,55,0.4); }

/* --- About images : zoom doux au survol --- */
.about-img-main:hover, .about-img-photo:hover { transform: scale(1.03); }

/* --- Logo : brillance au survol --- */
.brand { transition: opacity 0.3s; }
.brand:hover { opacity: 0.85; }
.brand:hover .brand-logo { transform: scale(1.05); }

/* ============================================================
   TOUCHES FINALES — POLISH MAXIMUM
   ============================================================ */

/* Séparateur subtil entre sections */
.about::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border) 20%, var(--color-border) 80%, transparent);
}

/* Grain texture subtil sur le hero */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.5;
}

/* Glow doré ambiant sur les sections sombres */
.capabilities .container::before,
.quote-section .container::before {
  content: ""; position: absolute; top: 10%; left: 50%; width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(212,175,55,0.08), transparent 70%);
  transform: translateX(-50%); pointer-events: none; z-index: -1;
}

/* Cartes — bordure gradient au survol */
.service-card::after, .team-card::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light), var(--color-accent));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease); z-index: 3;
}
.service-card:hover::after, .team-card:hover::after { transform: scaleX(1); }

/* Respecter les préférences d'accessibilité */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
    filter: none !important;
  }
  .reveal, .reveal-left, .reveal-right, .reveal-scale { opacity: 1 !important; transform: none !important; filter: none !important; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
  .about-visual-col { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .about-img-main, .about-img-photo { flex: 1 1 300px; }
  .about-badge { flex: 1 1 100%; }
  .about-blocks { grid-column: 1 / -1; flex-direction: row; gap: 20px; }
  .about-block { flex: 1; }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .why-item:nth-child(3)::before { display: none; }
  .why-item:nth-child(4), .why-item:nth-child(5) { padding-top: 32px; margin-top: 16px; }
  .team-feature { grid-template-columns: 1fr; }
  .team-feature img { min-height: 240px; }
}

@media (max-width: 1100px) {
  .main-nav {
    position: fixed; top: 76px; left: 0; right: 0;
    background: var(--header-bg); backdrop-filter: blur(16px);
    padding: 24px 32px; box-shadow: var(--shadow-md);
    transform: translateY(-120%); transition: transform 0.35s var(--ease);
    z-index: 99;
  }
  .main-nav.ouvert { transform: translateY(0); }
  .main-nav ul { flex-direction: column; gap: 18px; }
  .menu-toggle { display: flex; }
  .btn-header { display: none; }
  .brand-tag { display: none; }
  .brand-logo { max-width: 70px; max-height: 44px; }
  .header-actions a[title="Espace administration"] { display: none !important; }
  .hero { padding-top: 84px; }

  .hero-container { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: 0; max-width: 100%; }
  .hero-scene { height: 400px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .cap-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .why-item { border-right: none; border-bottom: 1px solid var(--color-border); padding-bottom: 24px; }
  .why-item:last-child { border-bottom: none; }
  .team-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .quote-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .header-inner { padding: 0 14px; height: 60px; gap: 8px; }
  .brand-name { font-size: 0.9rem; }
  .brand-logo { max-width: 56px; max-height: 38px; }
  .main-nav { top: 60px; }
  .header-actions a[title="Espace administration"] { display: none !important; }
  .brand-logo { max-height: 40px; max-width: 140px; }
  .theme-toggle { width: 36px; height: 36px; }

  .hero { min-height: auto; padding-top: 64px; padding-bottom: 60px; }
  .hero-content h1 { font-size: 2rem; }
  .hero-lead { font-size: 0.96rem; }
  .hero-features { gap: 16px 20px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-scene { height: 320px; }
  .hero-scroll { display: none; }

  .stats-band { padding: 32px 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 20px; }

  .about, .services, .why-us, .team, .capabilities, .quote-section { padding: 60px 0; }
  .section-head { margin-bottom: 36px; }

  .about-visual-col { flex-direction: column; }
  .about-img-main, .about-img-photo { max-height: 200px; }
  .about-img-photo { height: 180px; }
  .about-blocks { flex-direction: column; }

  .services-grid { grid-template-columns: 1fr; }
  .service-img { height: 180px; }

  .why-grid { grid-template-columns: 1fr; }
  .why-item { border-bottom: 1px solid var(--color-border); padding: 24px 0; }
  .why-item:last-child { border-bottom: none; }

  .team-feature-text { padding: 32px 24px; }
  .team-feature-text h3 { font-size: 1.2rem; }

  .form-row { grid-template-columns: 1fr; gap: 0; }
  .quote-form { padding: 24px; }

  .footer-top { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .footer-contact-block ul { align-items: center; }
  .footer-contact-block li { justify-content: center; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }

  .back-top { bottom: 18px; right: 18px; width: 44px; height: 44px; }
}

@media print {
  .site-header, .back-top, .hero-scroll, .menu-toggle, .theme-toggle, .btn, .hero-bg, .hero-overlay, .cap-bg, .cap-overlay, .quote-bg, .quote-overlay { display: none !important; }
  .hero, .capabilities, .quote-section { background: #fff !important; }
  .hero-content, .hero-content h1, .hero-lead { color: #000 !important; }
  .stat-num, .stat-lbl { color: #000 !important; }
  .cap-card, .quote-info h2, .quote-info p, .quote-checks li { color: #000 !important; background: #fff !important; border-color: #ccc !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   LEGACY STYLES — Pages secondaires (services, a-propos, contact, 404)
   Ces styles couvrent les classes utilisées par les pages
   qui n'ont pas encore été migrées vers la nouvelle structure.
   ============================================================ */

/* Scroll progress */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: var(--color-accent); z-index: 200;
  transition: width 0.1s linear;
}

/* Topbar */
.topbar {
  background: #0a1f3c; color: rgba(255,255,255,0.7);
  font-size: 0.8rem; padding: 8px 0; position: relative; z-index: 50;
}
.topbar-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 32px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.topbar a { color: var(--color-accent); }
.topbar .sep { margin: 0 8px; opacity: 0.4; }

/* ============================================================
   SCÈNE HERO — Jour / Nuit selon le thème
   ============================================================ */
/* Par défaut (dark) : nuit */
.sky-day, .road-day, .cloud-day, .sun-element { opacity: 0; transition: opacity 0.6s var(--ease); }
.sky-night, .road-night, .cloud-night, .scene-night, .moon-element { opacity: 1; transition: opacity 0.6s var(--ease); }

/* Mode clair : jour */
[data-theme="light"] .sky-day, [data-theme="light"] .road-day, [data-theme="light"] .cloud-day, [data-theme="light"] .sun-element { opacity: 1; }
[data-theme="light"] .sky-night, [data-theme="light"] .road-night, [data-theme="light"] .cloud-night,
[data-theme="light"] .scene-night, [data-theme="light"] .moon-element { opacity: 0; }
[data-theme="light"] .stars { opacity: 0; transition: opacity 0.6s var(--ease); }
[data-theme="light"] .city-skyline rect { fill: #4a6a8a; }
[data-theme="light"] .particles { opacity: 0.3; }
[data-theme="light"] .headlight-beam { opacity: 0.3; }
[data-theme="light"] .exhaust-smoke { opacity: 0.5; }

/* ============================================================
   iPHONE FLOTTANT — Aperçu mobile réaliste
   ============================================================ */
.iphone-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 95;
  display: flex; flex-direction: column; align-items: flex-end; gap: 14px;
}

/* Bouton toggle (visible quand l'iPhone est fermé) */
.iphone-toggle {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
  color: #0a1f3c; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(212,175,55,0.4), 0 2px 8px rgba(0,0,0,0.15);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  position: relative; z-index: 2;
}
.iphone-toggle svg { width: 26px; height: 26px; }
.iphone-toggle:hover {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 8px 30px rgba(212,175,55,0.5), 0 4px 12px rgba(0,0,0,0.2);
}
.iphone-toggle::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--color-accent); opacity: 0;
  transform: scale(0.8); transition: all 0.4s var(--ease);
}
.iphone-toggle:hover::after { opacity: 0.5; transform: scale(1.15); }

/* Container de l'appareil */
.iphone-device {
  position: relative;
  transform: scale(0) translateY(40px);
  opacity: 0; pointer-events: none;
  transition: transform 0.5s var(--ease), opacity 0.4s var(--ease);
  transform-origin: bottom right;
}
.iphone-device.show {
  transform: scale(1) translateY(0);
  opacity: 1; pointer-events: auto;
}

/* Cadre de l'iPhone */
.iphone-frame {
  width: 300px; height: 620px;
  background: linear-gradient(145deg, #2a2a2c, #1a1a1c 40%, #0d0d0f 60%, #1c1c1e);
  border-radius: 50px;
  padding: 9px;
  position: relative;
  box-shadow:
    0 0 0 2px #3a3a3c,
    0 16px 50px rgba(0,0,0,0.4),
    0 6px 16px rgba(0,0,0,0.25),
    inset 0 0 2px rgba(255,255,255,0.08);
}

/* Boutons latéraux */
.iphone-side-btn {
  position: absolute; background: linear-gradient(90deg, #1a1a1c, #2a2a2c, #1a1a1c);
  border-radius: 2px;
}
.iphone-silent {
  left: -3px; top: 130px; width: 4px; height: 28px;
  box-shadow: inset 1px 0 1px rgba(255,255,255,0.05);
}
.iphone-vol-up {
  left: -3px; top: 178px; width: 4px; height: 48px;
  box-shadow: inset 1px 0 1px rgba(255,255,255,0.05);
}
.iphone-vol-down {
  left: -3px; top: 240px; width: 4px; height: 48px;
  box-shadow: inset 1px 0 1px rgba(255,255,255,0.05);
}
.iphone-power {
  right: -3px; top: 190px; width: 4px; height: 75px;
  box-shadow: inset -1px 0 1px rgba(255,255,255,0.05);
}

/* Écran */
.iphone-screen-wrap {
  width: 100%; height: 100%;
  background: #000;
  border-radius: 42px;
  overflow: hidden;
  position: relative;
}

/* Dynamic Island / Notch */
.iphone-notch {
  position: absolute; top: 11px; left: 50%; transform: translateX(-50%);
  width: 105px; height: 30px;
  background: #000;
  border-radius: 18px;
  z-index: 10;
  box-shadow: inset 0 0 2px rgba(255,255,255,0.05);
}
.iphone-notch::after {
  content: ""; position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #1a3a5c, #0a1a2c);
  box-shadow: inset 0 0 1px rgba(255,255,255,0.1);
}

/* Iframe — scrollable */
.iphone-screen {
  width: 100%; height: 100%;
  border-radius: 42px;
  overflow: hidden;
  background: #000;
  position: relative;
  padding-top: 44px;
  box-sizing: border-box;
}
.iphone-screen iframe {
  width: 390px; height: 800px;
  border: none; display: block;
  transform: scale(0.72);
  transform-origin: top left;
}

/* Home indicator */
.iphone-home-indicator {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 5px; border-radius: 3px;
  background: rgba(255,255,255,0.25);
  z-index: 10;
}

/* Bouton fermer */
.iphone-close {
  position: absolute; top: -14px; right: -14px;
  width: 34px; height: 34px; border-radius: 50%;
  background: #1a1a1c; border: 2px solid #3a3a3c;
  color: #888; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.25s var(--ease);
  z-index: 11;
}
.iphone-close svg { width: 18px; height: 18px; }
.iphone-close:hover {
  background: #2a2a2c; color: #fff;
  transform: rotate(90deg) scale(1.1);
  border-color: var(--color-accent);
}

/* Responsive — cacher sur mobile */
@media (max-width: 1100px) {
  .iphone-float { display: none; }
}

/* (Anciens styles legacy supprimés — header.site, hero.has-bg, .bloc, .carte, .process, .zones, .cta-band, .formulaire, footer.site, .error-page, etc.) */

/* ===== PARTENAIRES ===== */
.partners-section {
  padding: 5rem 0 4rem;
  background: var(--color-bg);
}

[data-theme="dark"] .partners-section {
  background: #0a0f1e;
}

.partners-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.partner-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  padding: 1.8rem 2.5rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  max-width: 600px;
  width: 100%;
}

.partner-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.partner-logo {
  width: 160px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
  filter: none;
}

[data-theme="dark"] .partner-logo {
  filter: brightness(0) invert(1);
}

.partner-info {
  border-left: 2px solid var(--color-accent);
  padding-left: 1.2rem;
}

.partner-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-heading);
  margin: 0 0 0.3rem;
}

.partner-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0;
}

@media (max-width: 600px) {
  .partner-card { flex-direction: column; text-align: center; }
  .partner-info { border-left: none; border-top: 2px solid var(--color-accent); padding-left: 0; padding-top: 0.8rem; }
  .partner-logo { width: 130px; }
}

/* ===== SÉCURITÉ MOBILE : jamais de débordement horizontal ===== */
html, body { overflow-x: clip; }
