/* ============================================
   VARIABLES & RESET
   ============================================ */
:root {
  --color-bg: #FFFFFF;
  --color-surface: #F8F9FA;
  --color-surface-elevated: #FFFFFF;
  --color-text: #1A1A2E;
  --color-text-muted: #5A6478;
  --color-primary: #1A3B6B;
  --color-primary-mid: #2E7BB5;
  --color-primary-light: #5BA4D9;
  --color-accent: #FF6B00;
  --color-accent-hover: #FF8533;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  display: inline-block;
  padding: 16px 36px;
  background: var(--color-accent);
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 8px;
  border: 2px solid var(--color-accent);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), background 0.3s;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--color-accent-hover);
  box-shadow: 0 8px 30px rgba(255, 107, 0, 0.3);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.btn-outline {
  display: inline-block;
  padding: 16px 36px;
  background: transparent;
  color: inherit;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  transition: transform 0.3s var(--ease-out), border-color 0.3s, background 0.3s;
  cursor: pointer;
}

.btn-outline:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.1);
}

.btn-outline:focus-visible {
  outline: 2px solid var(--color-primary-light);
  outline-offset: 3px;
}

.btn-large {
  padding: 20px 48px;
  font-size: 1.1rem;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 12px 0;
  background: #FFFFFF;
  border-bottom: 1px solid rgba(26, 59, 107, 0.08);
  transition: background 0.3s, box-shadow 0.3s;
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.navbar.hero-visible {
  background: rgba(0, 0, 0, 0.3);
  border-bottom-color: transparent;
}

.navbar.hero-visible .nav-logo-text,
.navbar.hero-visible .nav-links a {
  color: white;
}

/* ============================================
   NAVBAR LAYOUT
   ============================================ */
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--color-primary);
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.navbar.hero-visible .nav-logo-text { color: white; }
.navbar.hero-visible .nav-logo-text span { color: #FF6B00; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 24px;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--color-primary-mid);
}

/* Groupe droite : badge + bouton */
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .nav-logo-img { width: 50px; height: 50px; }
  .nav-logo-text { font-size: 1.1rem; }
}

/* Status badge */
.status-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.status-badge.disponible {
  background: #22c55e;
  color: white;
  font-weight: 700;
}

.status-badge.en_intervention {
  background: #f59e0b;
  color: white;
  font-weight: 700;
}

.status-badge.prenez_rdv {
  background: #2E7BB5;
  color: white;
  font-weight: 700;
}

.navbar.hero-visible .status-badge.disponible { background: #22c55e; color: white; }
.navbar.hero-visible .status-badge.en_intervention { background: #f59e0b; color: white; }
.navbar.hero-visible .status-badge.prenez_rdv { background: #2E7BB5; color: white; }

.hero-status-badge {
  padding: 14px 28px;
  font-size: 1.1rem;
  border-radius: 10px;
  cursor: pointer;
}

.status-subtitle {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  opacity: 0.7;
  margin-top: 1px;
}

@media (max-width: 768px) {
  .status-subtitle { display: none; }
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@media (max-width: 768px) {
  .status-badge { font-size: 0.7rem; padding: 4px 10px; }
}

.nav-cta {
  padding: 10px 24px;
  font-size: 0.85rem;
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: white;
    padding: 24px;
    gap: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    color: var(--color-text) !important;
  }

  .nav-cta {
    display: none;
  }

  .nav-burger {
    display: flex;
  }
}

/* ============================================
   SECTION 1 : HERO
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary) url('images/site/poster-hero-deux-vehicules.jpg') center/cover no-repeat;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(4, 12, 28, 0.55) 0%,
    rgba(4, 12, 28, 0.42) 45%,
    rgba(4, 12, 28, 0.62) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  animation: fadeInUp 1s var(--ease-out) both;
}

.hero-logo {
  width: 100px;
  height: auto;
  margin-bottom: 24px;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5));
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  /* Titre en blanc : en bleu marine il disparaissait sur la foret sombre de la video */
  color: #FFFFFF;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45), 0 6px 34px rgba(0, 0, 0, 0.55);
}

.hero-title .accent {
  color: var(--color-accent);
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
  margin-bottom: 32px;
  font-weight: 400;
}

.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-hint span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  position: relative;
}

.scroll-hint span::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 2px;
  animation: scrollDown 1.5s ease-in-out infinite;
}

/* ============================================
   SECTION 2 : LA PROMESSE
   ============================================ */
.promesse {
  padding: 120px 0;
  background: var(--color-bg);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 64px;
}

.stat-card {
  text-align: center;
  padding: 40px 24px;
  border-radius: 16px;
  background: var(--color-surface-elevated);
  border: 1px solid rgba(26, 59, 107, 0.1);
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.04),
    0 4px 16px rgba(26, 59, 107, 0.06);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 8px 30px rgba(26, 59, 107, 0.12),
    0 1px 3px rgba(0, 0, 0, 0.04);
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 800;
  color: var(--color-primary-light);
  letter-spacing: -0.04em;
}

.stat-unit {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-primary-mid);
}

.stat-label {
  margin-top: 8px;
  color: var(--color-text-muted);
  font-size: 1rem;
}

.promesse-tagline {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: -0.02em;
}

/* ============================================
   SECTION 3 : SCROLL-DRIVEN VIDEO
   ============================================ */
/* Le camion n'est plus pose sur un aplat noir : il apparait dans un studio
   bleu TQD. Le degrade est dessine dans le canvas (voir script.js), cette
   couleur ne sert que le temps que la page se charge. */
.scroll-video-container {
  position: relative;
  background: #071427;
  z-index: 1;
}

#video-canvas {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  display: block;
  z-index: 1;
}

/* Arrivee : la section bleue du dessus se prolonge dans le studio. */
.scroll-video-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 34vh;
  z-index: 3;
  pointer-events: none;
  /* Beaucoup de paliers : la couleur du dessus se retire en douceur, sans le
     petit trait qu'on voit quand un aplat rencontre un degrade. */
  background: linear-gradient(180deg,
    rgba(26, 59, 107, 1) 0%,
    rgba(26, 59, 107, 0.995) 7%,
    rgba(26, 59, 107, 0.96) 16%,
    rgba(26, 59, 107, 0.88) 26%,
    rgba(26, 59, 107, 0.74) 37%,
    rgba(26, 59, 107, 0.56) 49%,
    rgba(26, 59, 107, 0.38) 61%,
    rgba(26, 59, 107, 0.22) 73%,
    rgba(26, 59, 107, 0.09) 86%,
    rgba(26, 59, 107, 0) 100%);
}

/* Sortie : le studio se dissout dans la section claire qui suit. */
.scroll-video-container::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 38vh;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(248, 249, 250, 0) 0%,
    rgba(248, 249, 250, 0.06) 16%,
    rgba(248, 249, 250, 0.16) 30%,
    rgba(248, 249, 250, 0.32) 44%,
    rgba(248, 249, 250, 0.52) 58%,
    rgba(248, 249, 250, 0.72) 71%,
    rgba(248, 249, 250, 0.88) 83%,
    rgba(248, 249, 250, 0.97) 93%,
    rgba(248, 249, 250, 1) 100%);
}

/* Trait d'avancement : on voit d'un coup d'oeil ou on en est dans le tour. */
.scroll-progress {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 22vh;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.14);
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
  z-index: 9;
  pointer-events: none;
}

.scroll-progress.actif {
  opacity: 1;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--color-primary-light), var(--color-accent));
  transform-origin: top center;
  transform: scaleY(var(--avancee, 0));
}

/* Sections après le scroll video doivent passer au-dessus */
.scroll-video-container ~ section,
.scroll-video-container ~ footer {
  position: relative;
  z-index: 2;
}

.scroll-spacer {
  height: 500vh;
  pointer-events: none;
}

/* Les textes restent en bas de l'ecran pendant toute l'animation, sur un fond
   sombre : avant, ils etaient blancs au milieu, donc illisibles sur la caisse blanche. */
.scroll-overlay {
  position: fixed;
  bottom: 9vh;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  text-align: center;
  opacity: 0;
  visibility: hidden;
  /* Un texte s'efface vite et apparait doucement : sans ca, deux textes se
     superposent quand on fait defiler d'un coup. */
  transition: opacity 0.22s linear,
              transform 0.22s var(--ease-out),
              visibility 0.22s;
  pointer-events: none;
  z-index: 10;
  padding: 22px 44px 26px;
  border-radius: 18px;
  background: linear-gradient(180deg,
    rgba(10, 24, 46, 0.76) 0%,
    rgba(5, 13, 26, 0.86) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(91, 164, 217, 0.26);
  box-shadow: 0 26px 60px rgba(2, 8, 18, 0.5),
              inset 0 1px 0 rgba(255, 255, 255, 0.08);
  max-width: min(92vw, 780px);
}

/* Petit trait orange TQD au-dessus du titre. */
.scroll-overlay::before {
  content: '';
  display: block;
  width: 38px;
  height: 3px;
  border-radius: 2px;
  margin: 0 auto 14px;
  background: var(--color-accent);
  box-shadow: 0 0 18px rgba(255, 107, 0, 0.55);
}

.scroll-overlay.visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition: opacity 0.5s var(--ease-out),
              transform 0.5s var(--ease-out),
              visibility 0.5s;
}

.scroll-text {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-shadow: 0 2px 20px rgba(2, 8, 18, 0.95);
  color: #FFFFFF;
}

.scroll-subtext {
  font-size: clamp(0.98rem, 1.7vw, 1.2rem);
  color: rgba(226, 238, 250, 0.9);
  margin-top: 10px;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 14px rgba(2, 8, 18, 0.95);
}

@media (max-width: 768px) {
  .scroll-overlay {
    bottom: 7vh;
    padding: 16px 24px 20px;
  }

  .scroll-overlay::before {
    margin-bottom: 10px;
  }

  .scroll-progress {
    right: 12px;
    height: 16vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-overlay {
    transition: opacity 0.2s linear, visibility 0.2s;
    transform: translateX(-50%);
  }

  .scroll-overlay.visible {
    transform: translateX(-50%);
  }
}

/* ============================================
   SECTION 4 : SERVICES
   ============================================ */
.services {
  padding: 120px 0;
  background: var(--color-bg);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 64px;
  text-align: center;
}

.services-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  align-items: center;
}

.services-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.promo-video {
  width: 100%;
  border-radius: 16px;
  box-shadow:
    0 4px 20px rgba(26, 59, 107, 0.1),
    0 1px 3px rgba(0, 0, 0, 0.04);
}

@media (max-width: 768px) {
  .services-layout {
    grid-template-columns: 1fr;
  }
}

.service-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  padding: 20px 24px;
  background: var(--color-surface-elevated);
  border-radius: 16px;
  border: 1px solid rgba(26, 59, 107, 0.1);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(46, 123, 181, 0.3);
  box-shadow: 0 12px 40px rgba(26, 59, 107, 0.1);
}

.service-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  width: 40px;
  text-align: center;
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.service-card p {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ============================================
   SECTION 5 : IA — TERRY & TIMMY
   ============================================ */
.ia-section {
  padding: 120px 0;
  background: #1A1A2E;
  color: #F8F9FA;
}

.ia-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.ia-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 107, 0, 0.15);
  color: var(--color-accent);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 20px;
}

.ia-description {
  color: rgba(248, 249, 250, 0.7);
  font-size: 1.05rem;
  margin-bottom: 32px;
  line-height: 1.8;
}

.ia-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.chat-window {
  background: hsl(230, 25%, 15%);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.03);
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.chat-avatar {
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: white;
}

.chat-header strong {
  display: block;
  font-size: 0.9rem;
}

.chat-status {
  font-size: 0.75rem;
  color: #4ade80;
}

.chat-messages {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-msg {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.chat-msg.bot {
  background: rgba(46, 123, 181, 0.15);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}

.chat-msg.user {
  background: var(--color-accent);
  color: white;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

.chat-msg p {
  margin: 0;
}

/* ============================================
   SECTION 6 : CTA FINAL
   ============================================ */
.cta-section {
  padding: 120px 0;
  background: #1A3B6B;
  color: #FFFFFF;
  text-align: center;
}

.cta-logo {
  width: 80px;
  margin-bottom: 24px;
  opacity: 0.9;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.cta-subtitle {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.15rem;
  margin-bottom: 40px;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.cta-email {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  /* marge basse : laisse passer la bulle de chat, qui recouvrait le lien Mentions legales */
  padding: 64px 0 190px;
  background: #1A1A2E;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 12px;
}

.footer-slogan {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 8px;
  color: white;
}

.footer-description {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 16px;
  color: white;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col li {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-col a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s;
}

.footer-col a:hover {
  color: var(--color-primary-light);
}

.footer-highlight {
  color: var(--color-accent) !important;
  font-weight: 600;
}

.footer-ia {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.footer-ia p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.footer-bottom a:hover {
  color: #FFFFFF;
  border-bottom-color: #FFFFFF;
}

.footer-bottom p + p {
  margin-top: 4px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ============================================
   SECTION HELPERS
   ============================================ */
.section-white { padding: 96px 0; background: #FFFFFF; color: #1A1A2E; }
.section-light { padding: 96px 0; background: #F8F9FA; color: #1A1A2E; }
.section-dark {
  padding: 96px 0;
  background: var(--color-primary);
  color: white;
}

/* ============================================
   HERO BUTTONS
   ============================================ */
.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero-badge {
  display: inline-block;
  padding: 12px 28px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 24px;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* ============================================
   GRIDS
   ============================================ */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
}

/* ============================================
   FEATURE CARDS (Pourquoi TQD)
   ============================================ */
.feature-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--color-surface-elevated);
  border-radius: 16px;
  border: 1px solid rgba(26, 59, 107, 0.08);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(26, 59, 107, 0.08);
}

.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-primary);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ============================================
   STEPS (Comment ça marche)
   ============================================ */
.steps-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
}

.step {
  text-align: center;
  flex: 1;
  max-width: 280px;
}

.step-number {
  width: 56px;
  height: 56px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 auto 16px;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.step-arrow {
  font-size: 2rem;
  color: var(--color-primary-light);
  padding-top: 12px;
  font-weight: 700;
}

@media (max-width: 768px) {
  .steps-grid { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); }
}

/* ============================================
   STATS DARK
   ============================================ */
.stat-card-dark {
  text-align: center;
  padding: 32px 16px;
}

.stat-number-light {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: white;
  display: block;
}

.stat-label-light {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-top: 4px;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonial-card {
  padding: 32px;
  background: white;
  border-radius: 16px;
  border: 1px solid rgba(26, 59, 107, 0.08);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.testimonial-stars {
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.testimonial-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 16px;
  font-style: italic;
}

.testimonial-card strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-primary);
}

.testimonial-card span {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ============================================
   GALLERY
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 12px;
}

.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out);
}

.gallery-item:hover {
  transform: scale(1.03);
}

.gallery-item.large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 150px;
  }
  .gallery-item.large {
    grid-column: span 1;
    grid-row: span 1;
  }
}

/* ============================================
   WHATSAPP FLOAT
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollDown {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
  50% { opacity: 1; transform: translateX(-50%) translateY(8px); }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .ia-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .ia-buttons {
    flex-direction: column;
  }

  .ia-buttons .btn-primary,
  .ia-buttons .btn-outline {
    text-align: center;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .scroll-spacer {
    height: 300vh;
  }

  .hero-logo {
    width: 72px;
  }

  .btn-large {
    padding: 16px 36px;
    font-size: 1rem;
    width: 100%;
    text-align: center;
  }
}

/* Grain overlay removed for performance */

/* Accueil sur téléphone : le mot « Guadeloupe » débordait de l'écran,
   et la vidéo recadrée doit garder les deux véhicules à l'écran */
@media (max-width: 480px) {
  .hero-title { font-size: clamp(1.6rem, 7.6vw, 2.2rem); }
  .hero-video { object-position: 65% center; }
}

/* Bande des chiffres de l'accueil : 4 chiffres sur une seule ligne
   (en 3 colonnes, le 4e passait seul à la ligne) */
@media (min-width: 1025px) {
  .stats-grid:has(.stat-card-dark) { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .stat-number-light { font-size: clamp(2.2rem, 3.4vw, 3.1rem); white-space: nowrap; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .stats-grid:has(.stat-card-dark) { grid-template-columns: repeat(2, 1fr); }
}

/* TEMPORAIRE : bandeau « camion frigo bientôt », à retirer à l'achat de l'Iveco */
.bandeau-temporaire {
  margin: -12px 0 12px;
  padding: 8px 16px;
  background: #1A3B6B;
  color: #FFFFFF;
  font-size: 0.85rem;
  line-height: 1.4;
  text-align: center;
}
@media (max-width: 480px) {
  .bandeau-temporaire { font-size: 0.75rem; padding: 6px 12px; }
}
.bandeau-court { display: none; }
@media (max-width: 600px) {
  .bandeau-long { display: none; }
  .bandeau-court { display: inline; }
  /* le bandeau allonge la barre du haut : les titres des pages secondaires descendent d'autant */
  .page-hero { padding-top: 170px !important; }
}

/* Défilement fluide (Lenis) : réglages de la bibliothèque, sans bloquer la bulle de discussion */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }

/* Galerie : effet au survol plus visible (la photo zoome dans son cadre, le cadre se soulève) */
.gallery-item { transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out); }
.gallery-item img { transition: transform .8s var(--ease-out), filter .45s ease; }
.gallery-item:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(26, 59, 107, 0.22); }
.gallery-item:hover img { transform: scale(1.08); filter: brightness(1.06) saturate(1.08); }
@media (hover: none) { .gallery-item:hover, .gallery-item:hover img { transform: none; box-shadow: none; filter: none; } }
