/* ==========================================================================
   MJ SERVICES — Feuille de style principale
   Nettoyage automobile - Particuliers & Professionnels
   ========================================================================== */

:root {
  --color-primary: #0f1f3d;       /* bleu nuit - en-tête, footer */
  --color-primary-light: #1d3a6e;
  --color-accent: #0ea5e9;        /* bleu "propre / eau" */
  --color-accent-dark: #0284c7;
  --color-highlight: #facc15;     /* jaune "brillance / cire" */
  --color-bg: #ffffff;
  --color-bg-alt: #f4f7fb;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 31, 61, 0.08);
  --shadow-hover: 0 16px 40px rgba(15, 31, 61, 0.14);
  --container: 1140px;
  --transition: 0.25s ease;
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* évite la barre horizontale due aux apparitions latérales */
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-primary);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h3 { font-size: 1.25rem; }

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  background: rgba(14, 165, 233, 0.1);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head p {
  color: var(--color-text-muted);
  margin-top: 12px;
}

/* ===================== SVG MASK REVEAL (effet "spotlight" au survol, façon Aceternity) ===================== */
@property --mask-size {
  syntax: '<length>';
  initial-value: 8px;
  inherits: true;
}

.svg-mask-reveal {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  cursor: pointer;
  padding: 64px 0;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  --mask-x: 50%;
  --mask-y: 50%;
  --mask-size: 8px;
}

.svg-mask-reveal .svg-mask-base {
  position: relative;
  z-index: 1;
}

#particuliers {
  padding-top: 0;
}

.svg-mask-reveal .svg-mask-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-primary-light));
  pointer-events: none;
  -webkit-mask-image: radial-gradient(circle var(--mask-size) at var(--mask-x) var(--mask-y), #000 99%, transparent 100%);
  mask-image: radial-gradient(circle var(--mask-size) at var(--mask-x) var(--mask-y), #000 99%, transparent 100%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  transition: --mask-size 0.35s ease-in-out;
}

.svg-mask-reveal .svg-mask-overlay p {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.4;
  text-align: center;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 6px rgba(15, 31, 61, 0.35);
}

.svg-mask-reveal:hover {
  --mask-size: 90px;
}

/* Bulles de savon dans le cercle de révélation */
.mask-bubbles {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.bubble {
  position: absolute;
  left: var(--bx);
  top: var(--by);
  width: var(--bsize);
  height: var(--bsize);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.18) 45%, rgba(255, 255, 255, 0.05) 70%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.4), 0 2px 6px rgba(15, 31, 61, 0.12);
  animation: bubble-float 4s ease-in-out infinite;
  animation-delay: var(--bdelay);
}

@keyframes bubble-float {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-12px) scale(1.06);
  }
}

section {
  padding: 80px 0;
}

.bg-alt {
  background: var(--color-bg-alt);
}

/* ==========================================================================
   Boutons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease,
    transform 0.35s var(--ease-spring);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  --mx: 0px;
  --my: 0px;
  transform: translate(var(--mx), var(--my));
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: -1;
}

.btn-primary {
  background: var(--color-accent);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.35);
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  transform: translate(var(--mx), var(--my)) translateY(-2px) scale(1.03);
  box-shadow: 0 12px 26px rgba(14, 165, 233, 0.4);
}

.btn-primary:hover::before {
  transform: translateX(100%);
}

.btn-light {
  background: #ffffff;
  color: var(--color-primary);
}

.btn-light:hover {
  transform: translate(var(--mx), var(--my)) translateY(-2px) scale(1.03);
  box-shadow: var(--shadow-hover);
}

.btn-light:hover::before {
  transform: translateX(100%);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #ffffff;
}

.btn-outline-dark {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-outline-dark:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn-block { width: 100%; }

/* ==========================================================================
   Header / Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  animation: headerSlideDown 0.4s ease;
  box-shadow: 0 0 0 rgba(15, 31, 61, 0);
  transition: box-shadow 0.35s ease;
}

.site-header.scrolled {
  box-shadow: 0 8px 24px rgba(15, 31, 61, 0.08);
}

.site-header.scrolled .navbar {
  padding: 8px 0;
}

.site-header.scrolled .logo-img {
  transform: scale(0.88);
}

.navbar,
.logo-img {
  transition: padding 0.3s var(--ease-spring), transform 0.3s var(--ease-spring);
}

@keyframes headerSlideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--color-primary);
  letter-spacing: 0.02em;
  flex-shrink: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.logo > span {
  white-space: nowrap;
}

.logo .logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-primary-light));
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
}

.logo-img {
  height: 38px;
  width: auto;
  display: block;
}

.footer-logo .logo-img {
  height: 30px;
}

.logo span.tagline {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-shrink: 0;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text);
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
  transition: color var(--transition);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-accent-dark);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  margin-left: auto;
  padding-right: 4px;
}

.nav-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  flex-shrink: 0;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.nav-call:hover {
  background: var(--color-accent-dark);
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.5);
}

/* --- Toast de partage --- */
.share-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--color-primary);
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 999;
}

.share-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  transition: opacity 0.3s ease;
}

.nav-toggle:hover {
  opacity: 0.7;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 60%, var(--color-accent-dark) 130%);
  color: #fff;
  overflow: hidden;
  padding: 40px 0 110px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(250, 204, 21, 0.18), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(14, 165, 233, 0.35), transparent 50%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: stretch;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero-eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-highlight);
}

.hero h1 {
  color: #fff;
  margin-bottom: 20px;
}

.text-hover-effect {
  position: relative;
  cursor: pointer;
  transition: text-shadow 0.3s ease;
}

.text-hover-effect:hover {
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.4),
    0 0 20px rgba(255, 255, 255, 0.2);
}

.hero h1 .highlight {
  color: var(--color-highlight);
}

.hero p.lead {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
  max-width: 600px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

.hero-stats .stat strong {
  display: block;
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
}

.hero-stats .stat span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.hero-share {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: center;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 10px 18px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.hero-share:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.hero-visual {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
}

.hero-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-spring);
}

/* Entrée en cascade façon Framer au chargement de la page */
@keyframes hero-fade-up {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-eyebrow,
.hero h1,
.hero p.lead,
.hero .hero-actions,
.hero .hero-stats {
  animation: hero-fade-up 0.8s var(--ease-spring) both;
}

.hero-eyebrow { animation-delay: 0.05s; }
.hero h1 { animation-delay: 0.15s; }
.hero p.lead { animation-delay: 0.25s; }
.hero .hero-actions { animation-delay: 0.35s; }
.hero .hero-stats { animation-delay: 0.45s; }

.hero-visual {
  animation: hero-fade-up 1s var(--ease-spring) 0.3s both;
}

.hero-visual .placeholder-text {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  line-height: 1.7;
}

.hero-visual .placeholder-text strong {
  display: block;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 6px;
}

/* ==========================================================================
   Page header (sous-pages)
   ========================================================================== */

.page-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: #fff;
  padding: 70px 0;
  text-align: center;
}

.page-header h1 { color: #fff; margin-bottom: 12px; }
.page-header p { color: rgba(255, 255, 255, 0.8); max-width: 600px; margin: 0 auto; }

.breadcrumb {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 14px;
}
.breadcrumb a { color: var(--color-highlight); font-weight: 600; }

/* ==========================================================================
   Cards génériques
   ========================================================================== */

.grid {
  display: grid;
  gap: 28px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.45s var(--ease-spring), box-shadow 0.45s var(--ease-spring), border-color 0.45s var(--ease-spring);
}

.card:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-accent);
}

.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(14, 165, 233, 0.1);
  color: var(--color-accent-dark);
  display: flex;
  align-items: center;
  transition: transform 0.45s var(--ease-spring), background 0.45s ease;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.4rem;
}

.card:hover .icon {
  transform: scale(1.12) rotate(-6deg);
  background: rgba(14, 165, 233, 0.18);
}

.card h3 { margin-bottom: 10px; }
.card p { color: var(--color-text-muted); font-size: 0.95rem; }

.card ul {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card ul li {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.card ul li::before {
  content: "✓";
  color: var(--color-accent);
  font-weight: 700;
  flex-shrink: 0;
}

/* ==========================================================================
   Tilt 3D au survol (cartes "Pourquoi" / "Prestations")
   ========================================================================== */

.tilt-card {
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(0);
  transition: transform 0.25s var(--ease-spring), box-shadow 0.45s var(--ease-spring), border-color 0.45s var(--ease-spring);
}

.tilt-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--color-accent);
}

@media (prefers-reduced-motion: reduce) {
  .tilt-card { transform: none !important; }
}

/* ==========================================================================
   Transformation au scroll (effet "Apple product page")
   ========================================================================== */

.scroll-showcase {
  background: var(--color-primary);
  padding: 80px 0 0;
}

.scroll-showcase-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
  padding: 0 24px;
}

.scroll-showcase-head h2 { color: #fff; }
.scroll-showcase-head .section-tag { background: rgba(255, 255, 255, 0.12); color: #fff; }

.scroll-showcase-spacer {
  position: relative;
  height: 280vh;
}

.scroll-showcase-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-showcase-frame {
  position: relative;
  width: min(880px, 88vw);
  aspect-ratio: 4 / 3;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.scroll-showcase-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scroll-showcase-after {
  clip-path: inset(0 100% 0 0);
  will-change: clip-path;
}

.scroll-showcase-caption {
  position: absolute;
  top: 18px;
  left: 18px;
  display: flex;
  gap: 10px;
  z-index: 2;
}

.scroll-showcase-tag {
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  background: rgba(15, 31, 61, 0.55);
  color: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(6px);
  transition: background 0.3s ease, color 0.3s ease;
}

.scroll-showcase-tag-before.is-active,
.scroll-showcase-tag-after.is-active {
  background: var(--color-accent);
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-showcase-spacer { height: auto; }
  .scroll-showcase-sticky { position: relative; height: auto; padding: 0 0 60px; }
  .scroll-showcase-after { clip-path: inset(0 0 0 0); }
  .scroll-showcase-tag-after { background: var(--color-accent); color: #fff; }
}

@media (max-width: 768px) {
  .scroll-showcase-spacer { height: 200vh; }
}

.testimonial-card { text-align: center; }
.testimonial-card .stars {
  color: #f5a623;
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.testimonial-card .testimonial-quote {
  font-style: italic;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}
.testimonial-card .testimonial-author {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-primary);
}

/* ==========================================================================
   Bandeau CTA
   ========================================================================== */

.cta-band {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent-dark) 100%);
  color: #fff;
  border-radius: 24px;
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: rgba(255, 255, 255, 0.85); }

/* ==========================================================================
   Tableaux de tarifs
   ========================================================================== */

.pricing-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.45s var(--ease-spring), box-shadow 0.45s var(--ease-spring);
}

.pricing-card:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: var(--shadow-hover);
}

.pricing-card.featured {
  border: 2px solid var(--color-accent);
  position: relative;
}

.pricing-card.featured::before {
  content: "Le plus demandé";
  position: absolute;
  top: 18px;
  right: -34px;
  background: var(--color-highlight);
  color: var(--color-primary);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 40px;
  transform: rotate(35deg);
}

.pricing-head {
  padding: 28px;
  border-bottom: 1px solid var(--color-border);
}

.pricing-head h3 { margin-bottom: 6px; }
.pricing-head p { color: var(--color-text-muted); font-size: 0.9rem; }

.price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 14px;
}

.price .amount {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-primary);
}

.price .from {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.pricing-body {
  padding: 24px 28px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pricing-body ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.pricing-body ul li {
  font-size: 0.92rem;
  color: var(--color-text);
  display: flex;
  gap: 8px;
}

.pricing-body ul li::before {
  content: "✓";
  color: var(--color-accent);
  font-weight: 700;
}

table.compare {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

table.compare th, table.compare td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.92rem;
}

table.compare thead th {
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
}

table.compare tbody tr:nth-child(even) {
  background: var(--color-bg-alt);
}

table.compare tbody tr:hover {
  background: rgba(14, 165, 233, 0.06);
}

.note-tarif {
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  background: var(--color-bg-alt);
  border-left: 3px solid var(--color-accent);
  padding: 14px 18px;
  border-radius: 8px;
}

/* ==========================================================================
   Options à la carte (déroulant)
   ========================================================================== */

.options-toggle {
  text-align: center;
}

.options-toggle > summary {
  list-style: none;
  display: inline-flex;
  width: fit-content;
  margin: 0 auto;
}

.options-toggle > summary::-webkit-details-marker,
.options-toggle > summary::marker {
  display: none;
  content: "";
}

.options-toggle > summary .toggle-icon {
  display: inline-block;
  font-weight: 700;
  transition: transform 0.3s ease;
}

.options-toggle[open] > summary .toggle-icon {
  transform: rotate(45deg);
}

.options-toggle[open] > summary {
  background: var(--color-primary);
  color: #fff;
}

.options-toggle .grid {
  text-align: left;
}

/* ==========================================================================
   Galerie / avant-après
   ========================================================================== */

.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.gallery-filters button {
  border: 1px solid var(--color-border);
  background: #fff;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--color-text);
}

.gallery-filters button.active,
.gallery-filters button:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

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

.gallery-item {
  display: none;
}
.gallery-item.show {
  display: block;
}

.ba-slider {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
  user-select: none;
  background: var(--color-bg-alt);
}

.ba-slider .ba-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-slider .ba-after { z-index: 1; }

.ba-slider .ba-before-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  overflow: hidden;
  z-index: 2;
  clip-path: inset(0 50% 0 0);
}

.ba-slider .ba-before-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.ba-slider .ba-before-wrap,
.ba-slider .ba-after {
  --w: 50%;
}

.ba-slider .ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 44px;
  margin-left: -22px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: ew-resize;
  pointer-events: none;
}

.ba-slider .ba-handle::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 3px;
  margin-left: -1.5px;
  background: #fff;
  box-shadow: 0 0 6px rgba(0,0,0,0.25);
  pointer-events: none;
}

.ba-slider .ba-handle .grip {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  pointer-events: none;
}

.ba-slider input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 4;
}

.ba-label {
  position: absolute;
  top: 14px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(15, 31, 61, 0.65);
  color: #fff;
  z-index: 3;
}

.ba-label.before-label { left: 14px; }
.ba-label.after-label { right: 14px; }

.gallery-caption {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  text-align: center;
}

.placeholder-photo {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-bg-alt), #e8eef6);
  color: var(--color-text-muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 16px;
  border-radius: var(--radius);
}

/* ==========================================================================
   Steps / process
   ========================================================================== */

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

.step {
  text-align: center;
}

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

.step h3 { margin-bottom: 8px; font-size: 1.05rem; }
.step p { font-size: 0.88rem; color: var(--color-text-muted); }

/* ==========================================================================
   Témoignages
   ========================================================================== */

.testimonial {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
}

.testimonial .stars { color: var(--color-highlight); margin-bottom: 12px; letter-spacing: 2px; }
.testimonial p.quote { font-style: italic; color: var(--color-text); margin-bottom: 16px; }
.testimonial .author { font-weight: 700; font-size: 0.9rem; }
.testimonial .role { font-size: 0.8rem; color: var(--color-text-muted); }

/* ==========================================================================
   Formulaire de contact
   ========================================================================== */

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full { grid-column: 1 / -1; }

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
  background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.form-note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.form-status {
  margin-top: 14px;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 0.9rem;
  display: none;
}

.form-status.show { display: block; }
.form-status.success {
  background: rgba(34, 197, 94, 0.1);
  color: #15803d;
  border: 1px solid rgba(34, 197, 94, 0.3);
}
.form-status.error {
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.review-form-wrap {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}

.star-rating {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 4px;
}

.star-rating input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.star-rating label {
  font-size: 2.2rem;
  line-height: 1;
  color: var(--color-border);
  cursor: pointer;
  transition: color var(--transition);
}

.star-rating input:checked ~ label,
.star-rating input:checked ~ label ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
  color: var(--color-highlight);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--color-accent);
  cursor: pointer;
}

.badge-recommended {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: var(--color-highlight);
  padding: 3px 10px;
  border-radius: 999px;
  margin-left: 8px;
  vertical-align: middle;
}

.file-upload-zone {
  border: 2px dashed var(--color-accent);
  border-radius: 12px;
  padding: 32px 24px;
  background: rgba(14, 165, 233, 0.05);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.file-upload-zone:hover {
  border-color: var(--color-accent-dark);
  background: rgba(14, 165, 233, 0.08);
}

.file-upload-zone.drag-over {
  border-color: var(--color-accent-dark);
  background: rgba(14, 165, 233, 0.12);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* Motif quadrillé en fond (effet Aceternity) */
.upload-grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(15, 31, 61, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 31, 61, 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 78%);
          mask-image: radial-gradient(ellipse at center, black 30%, transparent 78%);
  pointer-events: none;
}

.upload-inner {
  position: relative;
  z-index: 1;
}

/* Carte flottante centrale */
.upload-card-stack {
  position: relative;
  width: 140px;
  height: 92px;
  margin: 20px auto 0;
}

.upload-card-ghost {
  position: absolute;
  inset: 0;
  border: 2px dashed var(--color-accent);
  border-radius: 12px;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.upload-card {
  position: absolute;
  inset: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15, 31, 61, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
}

.file-upload-zone:hover .upload-card {
  transform: translate(10px, -10px) rotate(2deg);
  box-shadow: 0 14px 32px rgba(15, 31, 61, 0.18);
}

.file-upload-zone:hover .upload-card-ghost {
  opacity: 1;
  transform: scale(1);
}

.file-upload-zone.drag-over .upload-card {
  transform: translate(16px, -16px) rotate(3deg);
  box-shadow: 0 18px 38px rgba(15, 31, 61, 0.22);
}

.file-upload-zone.drag-over .upload-card-ghost {
  opacity: 1;
  transform: scale(1.06);
}

.upload-card-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.upload-card-label.label-drop {
  display: none;
  color: var(--color-accent-dark);
}

.file-upload-zone.drag-over .label-idle { display: none; }
.file-upload-zone.drag-over .label-drop { display: inline; }

/* La carte d'invite disparaît quand des fichiers sont ajoutés */
.file-upload-zone.has-files .upload-card-stack { display: none; }

.upload-icon {
  color: var(--color-accent);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-4px); }
}

.upload-text {
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.upload-hint {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Cartes de fichiers (effet Aceternity) */
.file-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.file-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: 0 4px 14px rgba(15, 31, 61, 0.06);
  animation: filePop 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes filePop {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.file-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.file-card-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-card-size {
  flex-shrink: 0;
  background: var(--color-bg-alt);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.file-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.file-card-type {
  background: var(--color-bg-alt);
  padding: 2px 8px;
  border-radius: 6px;
}

.file-card-remove {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 2px 6px;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
}

.file-card-remove:hover {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.08);
}

/* ==========================================================================
   Logo cloud — « Ils nous font confiance » (effet Aceternity)
   ========================================================================== */

/* Marquee : défilement infini (effet Aceternity "Logo Cloud Marquee") */
.logo-marquee {
  overflow: hidden;
  max-width: 1040px;
  margin: 0 auto;
  padding: 10px 0;
  -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
          mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}

.logo-marquee-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: logo-scroll 28s linear infinite;
  will-change: transform;
}

.logo-marquee:hover .logo-marquee-track {
  animation-play-state: paused;
}

@keyframes logo-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - 12px)); }
}

@media (prefers-reduced-motion: reduce) {
  .logo-marquee-track { animation: none; }

  .reveal,
  .hero-eyebrow,
  .hero h1,
  .hero p.lead,
  .hero .hero-actions,
  .hero .hero-stats,
  .hero-visual {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
  }

  .card,
  .pricing-card,
  .card .icon,
  .btn,
  .hero-visual img {
    transition: none;
  }
}

.logo-cloud-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 230px;
  min-height: 170px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  filter: grayscale(1);
  opacity: 0.75;
  transition: filter 0.35s ease, opacity 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.logo-cloud-item:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.logo-cloud-item img {
  max-height: 64px;
  width: auto;
  object-fit: contain;
}

/* Logo partenaire : écusson Peugeot + nom + ville */
.logo-partner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1.05;
}

.logo-badge {
  height: 62px;
  width: auto;
}

/* Logo image plein cadre (ex. Top Performer) : remplit la case avec coins arrondis */
.logo-cloud-item.logo-fill {
  padding: 0;
  overflow: hidden;
}

.logo-cloud-item.logo-fill .logo-img-fill {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  border-radius: var(--radius);
}

/* Weynants : écriture script (fidèle au logo officiel du garage) */
.logo-script {
  font-family: "Yellowtail", "Brush Script MT", cursive;
  font-size: 2.1rem;
  font-weight: 400;
  color: #1b1b1b;
  margin-top: 8px;
}

/* Auto-Lys : capitales grasses espacées */
.logo-name {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1b1b1b;
  margin-top: 14px;
  margin-bottom: 4px;
}

.logo-city {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 3px;
}

/* Emplacements libres pour futurs partenaires */
.logo-cloud-placeholder {
  border-style: dashed;
  background: transparent;
  filter: none;
  opacity: 0.55;
}

.logo-cloud-placeholder span {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.rdv-card {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  color: #fff;
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  box-shadow: var(--shadow);
}

.rdv-card .icon-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}

.rdv-card h3 { color: #fff; margin-bottom: 4px; }
.rdv-card p { color: rgba(255, 255, 255, 0.85); font-size: 0.92rem; }

.rdv-card .btn-primary {
  background: #fff;
  color: var(--color-accent-dark);
  box-shadow: none;
}

.rdv-card .btn-primary:hover {
  background: var(--color-bg-alt);
  color: var(--color-accent-dark);
}

.contact-info-card {
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact-info-card h3 { color: #fff; }

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-row .icon-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-highlight);
}

.contact-row strong { display: block; font-size: 0.95rem; }
.contact-row span, .contact-row a { font-size: 0.88rem; color: rgba(255, 255, 255, 0.75); }

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  aspect-ratio: 16 / 9;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.75);
  padding: 60px 0 24px;
}

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

.footer-grid h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 18px;
}

.footer-grid ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-grid li {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-grid a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
}

.footer-grid a:hover { color: var(--color-highlight); }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 14px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
}

.footer-legal-links {
  color: rgba(255, 255, 255, 0.45);
}

.footer-legal-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
}

.footer-legal-links a:hover { color: var(--color-highlight); }

/* --- Easter egg : copyright cliquable + voiture --- */
.copyright-egg {
  cursor: pointer;
  user-select: none;
  transition: color var(--transition);
}
.copyright-egg:hover { color: var(--color-highlight); }

.egg-car {
  position: fixed;
  bottom: 24px;
  left: -160px;
  z-index: 9999;
  pointer-events: none;
  will-change: transform;
}
.egg-car svg { display: block; filter: drop-shadow(0 6px 10px rgba(0,0,0,0.25)); }

@keyframes egg-wheel-spin {
  to { transform: rotate(360deg); }
}
.egg-car .egg-wheel { transform-box: fill-box; transform-origin: center; animation: egg-wheel-spin 0.4s linear infinite; }

.egg-sparkle {
  position: fixed;
  z-index: 9998;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0%, var(--color-accent) 60%, rgba(14,165,233,0) 100%);
  animation: egg-sparkle-fade 0.9s ease-out forwards;
}
@keyframes egg-sparkle-fade {
  0%   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, calc(-50% + 18px)) scale(0.2); }
}

/* ==========================================================================
   Animations au scroll
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.97);
  transition: opacity 0.7s var(--ease-spring), transform 0.7s var(--ease-spring);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Variantes directionnelles (assignées automatiquement en JS) */
.reveal.reveal--left  { transform: translateX(-42px) scale(0.98); }
.reveal.reveal--right { transform: translateX(42px) scale(0.98); }
.reveal.reveal--zoom  { transform: scale(0.9); }
.reveal.reveal--left.is-visible,
.reveal.reveal--right.is-visible,
.reveal.reveal--zoom.is-visible { transform: translate(0, 0) scale(1); }

/* ==========================================================================
   Barre de progression du scroll
   ========================================================================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--color-accent), var(--color-highlight));
  z-index: 1000;
  pointer-events: none;
  will-change: transform;
}

/* ==========================================================================
   Bouton retour en haut
   ========================================================================== */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  cursor: pointer;
  box-shadow: var(--shadow-hover);
  opacity: 0;
  transform: translateY(16px) scale(0.85);
  pointer-events: none;
  transition: opacity 0.3s var(--ease-spring), transform 0.3s var(--ease-spring), background 0.25s ease;
  z-index: 999;
}
.back-to-top svg { width: 22px; height: 22px; }
.back-to-top:hover { background: var(--color-accent); transform: translateY(0) scale(1.06); }
.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Compteurs : évite le "saut" de largeur pendant l'animation */
.is-counting { font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Transitions entre pages (fondu d'entrée + de sortie)
   On anime l'opacité du body uniquement (pas de transform : cela
   n'affecte pas le positionnement des éléments fixes comme la barre de
   progression ou le bouton retour en haut).
   ========================================================================== */
@keyframes page-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
body {
  animation: page-fade-in 0.5s var(--ease-spring) both;
}
body.is-leaving {
  opacity: 0;
  transition: opacity 0.32s ease;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-progress { display: none; }
  .back-to-top { transition: opacity 0.2s ease; transform: none; }
  .back-to-top.is-visible { transform: none; }
  .reveal.reveal--left,
  .reveal.reveal--right,
  .reveal.reveal--zoom { transform: none; }
  body { animation: none; }
  body.is-leaving { opacity: 1; transition: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
  .nav-links {
    gap: 24px;
  }
}

@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; width: 100%; aspect-ratio: 4 / 3; min-height: 0; max-height: 380px; margin: 0 auto; }
  .hero-visual img { object-position: center 65%; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; }
  section { padding: 56px 0; }
  .pricing-card.featured::before { right: -40px; top: 22px; }
}

/* Navigation mobile / tablette : à partir de 1024px, on bascule sur le menu burger
   pour éviter que les liens ne chevauchent le logo. */
@media (max-width: 1024px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px;
    gap: 12px;
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-150%);
    opacity: 0;
    transition: all var(--transition);
    pointer-events: none;
    z-index: 999;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

/* Petits écrans : on resserre le header pour que logo, bouton d'appel et burger tiennent sur une seule ligne. */
@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }

  .site-header .container {
    padding: 0 24px;
  }

  .logo {
    margin-left: 12px;
  }

  .nav-actions {
    margin-right: 12px;
  }

  .site-header {
    padding: 0;
  }

  .navbar {
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }

  .logo {
    gap: 6px;
    font-size: 0.88rem;
    flex-shrink: 1;
    min-width: 0;
  }

  .logo > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .logo-img {
    height: 28px;
    flex-shrink: 0;
  }

  .logo span.tagline {
    display: none;
  }

  .nav-actions {
    gap: 8px;
    flex-shrink: 0;
  }

  .nav-call {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
  }

  .nav-call svg {
    width: 20px;
    height: 20px;
  }

  .nav-actions .btn {
    display: none;
  }

  .nav-toggle {
    width: 28px;
    padding: 6px;
  }

  .nav-links a {
    font-size: 0.92rem;
    padding: 10px 0;
  }

  .hero-actions {
    flex-direction: column;
    max-width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }

  .hero-share {
    margin-left: 0;
    align-self: flex-start;
  }

  .cta-band {
    padding: 32px 20px;
    flex-direction: column;
    text-align: center;
  }

  .cta-band .hero-actions {
    width: 100%;
  }

  .form-grid {
    gap: 14px;
  }
}

/* ==========================================================================
   Page 404
   ========================================================================== */
.error-404 {
  position: relative;
  overflow: hidden;
}

.error-404 .container {
  position: relative;
  z-index: 2;
}

.error-illustration {
  display: block;
  width: 100%;
  max-width: 460px;
  margin: 0 auto 12px;
}

.error-actions {
  justify-content: center;
  margin: 0 auto 0;
}

@media (max-width: 640px) {
  .error-illustration {
    max-width: 320px;
  }
}

/* ==========================================================================
   Bouton flottant WhatsApp
   ========================================================================== */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9990;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s ease;
}
.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.55);
}
.wa-float svg { width: 30px; height: 30px; display: block; }
.wa-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: waPulse 2.2s ease-out infinite;
  pointer-events: none;
}
@keyframes waPulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.7); opacity: 0; }
}
.wa-tip {
  position: absolute;
  right: 70px;
  white-space: nowrap;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.wa-float:hover .wa-tip { opacity: 1; transform: translateX(0); }
@media (max-width: 600px) {
  .wa-float { width: 52px; height: 52px; right: 16px; bottom: 16px; }
  .wa-tip { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-float::after { animation: none; }
}
