/* ========================================
   MÉCAREMAP — GLOBAL DESIGN SYSTEM
   Ultra-Premium CSS v2.0
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&family=Rajdhani:wght@400;500;600;700&display=swap');

/* ── TOKENS ─────────────────────────────── */
:root {
  --black:       #060608;
  --black-2:     #0d0d10;
  --black-3:     #141418;
  --red:         #E30613;
  --red-dark:    #a80410;
  --red-glow:    rgba(227, 6, 19, 0.35);
  --red-glow-sm: rgba(227, 6, 19, 0.15);
  --white:       #F5F5F0;
  --white-dim:   rgba(245,245,240,0.7);
  --white-ghost: rgba(245,245,240,0.08);
  --gold:        #C9A84C;
  --gold-light:  #E8C96A;
  --titanium:    #8A8A95;
  --titanium-2:  #3A3A42;
  --glass:       rgba(13,13,16,0.7);
  --glass-border:rgba(255,255,255,0.07);

  --font-tech:   'Orbitron', sans-serif;
  --font-body:   'Inter', sans-serif;
  --font-alt:    'Rajdhani', sans-serif;

  --radius-sm:  6px;
  --radius-md:  14px;
  --radius-lg:  24px;
  --radius-xl:  40px;

  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: 0.2s ease;
  --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ── Phase 1 — Design system : échelles formalisées (additif) ── */
  /* Espacement (base 4 px) */
  --sp-1: 4px;  --sp-2: 8px;   --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px;
  --sp-7: 40px; --sp-8: 48px;  --sp-9: 64px; --sp-10: 80px; --sp-11: 96px; --sp-12: 128px;

  /* Typographie fluide (mobile → desktop, sans media query) */
  --fs-xs:   clamp(0.72rem, 0.68rem + 0.2vw, 0.80rem);
  --fs-sm:   clamp(0.82rem, 0.78rem + 0.2vw, 0.90rem);
  --fs-base: clamp(0.95rem, 0.90rem + 0.25vw, 1.05rem);
  --fs-md:   clamp(1.10rem, 1.00rem + 0.5vw, 1.35rem);
  --fs-lg:   clamp(1.40rem, 1.15rem + 1.1vw, 2.00rem);
  --fs-xl:   clamp(1.90rem, 1.40rem + 2.2vw, 3.00rem);
  --fs-2xl:  clamp(2.60rem, 1.80rem + 3.6vw, 4.60rem);
  --fs-3xl:  clamp(3.40rem, 2.00rem + 6.0vw, 7.00rem);

  /* Mouvement (durées + courbes nommées) */
  --dur-fast: 0.2s; --dur-base: 0.4s; --dur-slow: 0.7s;
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-inout:  cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Ombres */
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.30);
  --shadow-md:  0 12px 32px rgba(0,0,0,0.40);
  --shadow-lg:  0 28px 80px rgba(0,0,0,0.45);
  --shadow-red: 0 8px 30px var(--red-glow);

  /* Z-index (fin des nombres magiques) */
  --z-base: 1; --z-raised: 10; --z-nav: 200; --z-overlay: 8000;
  --z-modal: 9000; --z-cursor: 9990; --z-curtain: 99990;

  /* Conteneurs */
  --container: 1280px;
  --container-narrow: 880px;
}

/* ── RESET ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* overflow-x: clip clippe le débordement horizontal SANS créer de conteneur de
   défilement (contrairement à hidden) → plus de scrollbar imbriquée ni de scroll
   parasite qui perturbe le défilement de page. */
html { scroll-behavior: auto; overflow-x: clip; }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
  overflow-wrap: break-word; /* sécurité mobile : aucun mot/URL long ne déborde d'une carte */
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
input, textarea, select {
  font-family: var(--font-body);
  background: none;
  border: none;
  outline: none;
  color: var(--white);
}

/* ── CUSTOM CURSOR — désactivé ───────────── */
#cursor-dot, #cursor-ring { display: none !important; }

/* ── SCROLLBAR ───────────────────────────── */
/* Desktop uniquement : scrollbar fine, discrète et translucide (jamais de barre
   rouge fixe). Sur mobile/tactile, AUCUNE personnalisation → la scrollbar native
   "overlay" s'affiche brièvement pendant le défilement puis disparaît : pas de
   trait fixe qui ressemble à un scroll de section. */
@media (hover: hover) and (pointer: fine) {
  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    border: 3px solid transparent;
    background-clip: padding-box;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.26);
    background-clip: padding-box;
  }
  html { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.18) transparent; }
}

/* ── SELECTION ───────────────────────────── */
::selection { background: var(--red); color: var(--white); }

/* ── PAGE WRAPPER ────────────────────────── */
.page-wrapper { min-height: 100vh; overflow: hidden; }

/* ── NOISE OVERLAY ───────────────────────── */
.noise {
  position: fixed;
  inset: 0;
  width: 100%; height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 9997;
}

/* ── TYPOGRAPHY ──────────────────────────── */
.heading-xl {
  font-family: var(--font-tech);
  font-size: clamp(2.5rem, 8vw, 7rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  word-break: break-word;
  overflow-wrap: anywhere;
  min-width: 0;
}
.heading-lg {
  font-family: var(--font-tech);
  font-size: clamp(1.6rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  word-break: break-word;
  overflow-wrap: anywhere;
  min-width: 0;
}
.heading-md {
  font-family: var(--font-tech);
  font-size: clamp(1rem, 3vw, 2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
  line-height: 1.2;
  min-width: 0;
}
@media (max-width: 480px) {
  .heading-md {
    letter-spacing: 0.02em;
    font-size: clamp(0.92rem, 4.2vw, 1.18rem);
  }
}

/* Lien « étendu » : la carte entière reste cliquable, mais le texte
   d'ancre se limite au titre (corrige « anchor text too long » SEO). */
.stretched-link { color: inherit; text-decoration: none; cursor: inherit; }
.stretched-link::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.heading-sm {
  font-family: var(--font-alt);
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--titanium);
}
.text-gradient {
  background: linear-gradient(135deg, var(--red) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-red { color: var(--red); }
.text-gold { color: var(--gold); }
.text-dim { color: var(--white-dim); }

/* ── BUTTONS ─────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius-xl);
  font-family: var(--font-tech);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--white);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.btn:hover::before { opacity: 0.08; }
.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 0 40px var(--red-glow), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 60px var(--red-glow), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-outline {
  border: 1px solid var(--glass-border);
  color: var(--white);
  background: var(--white-ghost);
  backdrop-filter: blur(12px);
}
.btn-outline:hover {
  border-color: var(--red);
  box-shadow: 0 0 30px var(--red-glow-sm);
  transform: translateY(-3px);
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--black);
  font-weight: 800;
  box-shadow: 0 0 40px rgba(201,168,76,0.3);
}
.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 60px rgba(201,168,76,0.5);
}
.btn svg { width: 18px; height: 18px; transition: transform 0.3s ease; }
.btn:hover svg { transform: translateX(4px); }

/* ── SECTION LAYOUT ──────────────────────── */
.section {
  padding: clamp(60px, 10vw, 140px) clamp(20px, 5vw, 80px);
  position: relative;
}
.container {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  padding-left: clamp(16px, 4vw, 40px);
  padding-right: clamp(16px, 4vw, 40px);
  overflow-x: clip;
}
.section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.section-label::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--red);
}
.section-label span {
  font-family: var(--font-alt);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
}

/* ── CARD ────────────────────────────────── */
.card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  padding: 36px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
}
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s ease;
  box-shadow: inset 0 0 60px var(--red-glow-sm);
  pointer-events: none;
}
.card:hover { transform: translateY(-6px); border-color: rgba(227,6,19,0.2); }
.card:hover::after { opacity: 1; }

/* ── DIVIDER ──────────────────────────────── */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--titanium-2), transparent);
  margin: 0;
}

/* ── PILL BADGE ──────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.badge-red { background: rgba(227,6,19,0.15); color: var(--red); border: 1px solid rgba(227,6,19,0.3); }
.badge-gold { background: rgba(201,168,76,0.1); color: var(--gold); border: 1px solid rgba(201,168,76,0.3); }
.badge-white { background: var(--white-ghost); color: var(--white-dim); border: 1px solid var(--glass-border); }

/* ── GRID HELPERS ────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
}

/* ── FLEX HELPERS ────────────────────────── */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { flex-direction: column; }
.gap-sm { gap: 12px; }
.gap-md { gap: 24px; }
.gap-lg { gap: 48px; }

/* ── REVEAL ANIMATIONS (GSAP targets) ────── */
.reveal { opacity: 0; transform: translateY(40px); }
.reveal-left { opacity: 0; transform: translateX(-40px); }
.reveal-right { opacity: 0; transform: translateX(40px); }
.reveal-scale { opacity: 0; transform: scale(0.9); }
.stagger-child { opacity: 0; transform: translateY(30px); }

/* ── GRID RESPONSIVE ─────────────────────── */
.grid-responsive { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 60px; align-items: center; }
@media (max-width: 900px) { .grid-responsive { grid-template-columns: minmax(0, 1fr); gap: 40px; } }

/* ── RED LINE ACCENT ─────────────────────── */
.red-line {
  display: inline-block;
  width: 60px;
  height: 3px;
  background: var(--red);
  border-radius: 3px;
}
.red-line-full { width: 100%; height: 1px; background: linear-gradient(90deg, var(--red), transparent); }

/* ── GLOW TEXT ───────────────────────────── */
.glow-red { text-shadow: 0 0 60px var(--red-glow), 0 0 120px var(--red-glow-sm); }

/* ── ICON WRAPPER ────────────────────────── */
.icon-wrap {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  background: rgba(227,6,19,0.1);
  border: 1px solid rgba(227,6,19,0.2);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}
.icon-wrap svg { width: 26px; height: 26px; color: var(--red); }
.card:hover .icon-wrap { background: var(--red); box-shadow: 0 0 30px var(--red-glow); }
.card:hover .icon-wrap svg { color: var(--white); }

/* ── COUNTER ──────────────────────────────── */
.counter-wrap { text-align: center; }
.counter-number {
  font-family: var(--font-tech);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}
.counter-suffix { color: var(--red); }
.counter-label {
  font-family: var(--font-alt);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--titanium);
  margin-top: 8px;
}

/* ── FOOTER ───────────────────────────────── */
footer {
  background: var(--black-2);
  border-top: 1px solid var(--glass-border);
  padding: 48px clamp(20px, 5vw, 80px) 30px;
}

/* Newsletter band en haut du footer (card contenue, anti-overflow) */
.footer-newsletter {
  position: relative;
  max-width: 1280px;
  margin: 0 auto 56px;
  padding: 44px clamp(22px, 4vw, 48px);
  background: linear-gradient(135deg, rgba(227, 6, 19, 0.07) 0%, rgba(201, 168, 76, 0.045) 100%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-sizing: border-box;
}
.footer-newsletter::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(227, 6, 19, 0.12) 0%, transparent 60%);
  pointer-events: none;
}
.footer-newsletter-inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
  align-items: center;
}
.footer-newsletter-text { max-width: 540px; }
.footer-newsletter-eyebrow {
  font-family: var(--font-tech);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.footer-newsletter-title {
  font-family: var(--font-tech);
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 8px;
}
.footer-newsletter-sub {
  font-size: 0.85rem;
  color: var(--white-dim);
  line-height: 1.55;
}
.footer-newsletter-form {
  display: flex;
  gap: 10px;
  width: 100%;
}
.footer-newsletter-form .form-input {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
  background: rgba(13, 13, 16, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  color: var(--white);
  font-size: 0.92rem;
}
.footer-newsletter-form .form-input:focus {
  border-color: var(--red);
  background: rgba(13, 13, 16, 0.85);
}
.footer-newsletter-form .btn {
  white-space: nowrap;
  padding: 14px 24px;
  font-size: 0.78rem;
}
.footer-newsletter-feedback {
  grid-column: 1 / -1;
  margin-top: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  min-height: 1em;
  transition: color 0.3s;
}
@media (max-width: 880px) {
  .footer-newsletter-inner { grid-template-columns: 1fr; gap: 22px; }
  .footer-newsletter { margin-bottom: 40px; padding: 32px clamp(20px, 5vw, 80px); }
}
@media (max-width: 520px) {
  .footer-newsletter-form { flex-direction: column; }
  .footer-newsletter-form .form-input { border-radius: 12px; }
  .footer-newsletter-form .btn { border-radius: 12px; min-height: 48px; justify-content: center; }
}

/* Trust badges row */
.footer-trust {
  max-width: 1280px;
  margin: 32px auto 28px;
  padding: 22px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 28px;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}
.footer-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--white-dim);
  font-family: var(--font-body);
  letter-spacing: 0.02em;
}
.footer-trust-item strong {
  color: var(--white);
  font-family: var(--font-tech);
  letter-spacing: 0.05em;
  font-weight: 700;
  margin-right: 2px;
}
.footer-trust-item svg {
  width: 16px;
  height: 16px;
  color: var(--red);
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .footer-trust { gap: 12px 18px; padding: 18px 0; }
  .footer-trust-item { font-size: 0.7rem; }
  .footer-trust-item svg { width: 14px; height: 14px; }
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr;
  gap: 48px;
  max-width: 1280px;
  margin: 0 auto 48px;
}
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.footer-logo {
  font-family: var(--font-tech);
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.footer-desc { color: var(--titanium); font-size: 0.9rem; line-height: 1.7; }
.footer-heading {
  font-family: var(--font-alt);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  color: var(--titanium);
  font-size: 0.9rem;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-links a:hover { color: var(--white); }
.footer-links a::before { content: '›'; color: var(--red); }
.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { color: var(--titanium); font-size: 0.8rem; }
.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 40px; height: 40px;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--titanium);
  transition: var(--transition);
}
.social-links a:hover {
  border-color: var(--red);
  color: var(--red);
  box-shadow: 0 0 20px var(--red-glow-sm);
}
.social-links svg { width: 16px; height: 16px; }

/* ── PAGE TRANSITION ─────────────────────── */
#page-transition {
  position: fixed;
  inset: 0;
  background: radial-gradient(130% 130% at 50% 0%, #15151c 0%, var(--black) 62%);
  z-index: 99990;
  transform: translateY(0);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Fallback CSS si GSAP ne se charge pas */
  animation: pageReveal 0s 1.2s forwards;
}
#page-transition::before {
  content: '';
  position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  opacity: 0.7;
}
.pt-brand {
  font-family: var(--font-tech);
  font-weight: 900;
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  letter-spacing: 0.12em;
  color: var(--white);
  opacity: 0;
  will-change: opacity, transform;
}
.pt-brand span { color: var(--red); }
@keyframes pageReveal {
  to { transform: translateY(-100%); }
}

/* ── Révélation des titres mot par mot (Phase 2) ─────────── */
.rw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.rw-i { display: inline-block; transform: translateY(110%); opacity: 0; transition: transform 0.8s cubic-bezier(.22,1,.36,1), opacity 0.8s cubic-bezier(.22,1,.36,1); }
[data-reveal-words].in .rw-i { transform: translateY(0); opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .rw-i { transform: none; opacity: 1; transition: none; }
}

/* ── MOBILE ───────────────────────────────────────── */
@media (max-width: 768px) {
  .section { padding: 60px 16px; }
  .btn { padding: 12px 24px; font-size: 0.7rem; }
  /* Bloque tout débordement horizontal */
  * { max-width: 100%; }
  img, video, svg, canvas, iframe { max-width: 100%; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  /* Card padding réduit sur mobile */
  .card { padding: 20px 16px; }
  /* Tableaux scrollables si trop larges */
  .gain-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}


/* ── SETTINGS MESSAGES (feedback forms) ───────────── */
.settings-msg {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  line-height: 1.5;
  font-family: var(--font-body);
}
.settings-msg-success {
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.25);
  color: #4ade80;
}
.settings-msg-error {
  background: rgba(227,6,19,0.08);
  border: 1px solid rgba(227,6,19,0.25);
  color: #ff6b6b;
}

/* ── WHATSAPP FLOATING BUTTON ─────────────────────── */
#wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9980;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  padding: 14px 20px 14px 16px;
  border-radius: 999px;
  box-shadow: 0 4px 24px rgba(37,211,102,0.45), 0 1px 6px rgba(0,0,0,0.3);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.3s ease,
              opacity 0.3s ease,
              visibility 0.3s ease;
  animation: waPulse 3s ease-in-out infinite;
}
#wa-float:hover {
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 8px 40px rgba(37,211,102,0.6);
  animation: none;
}
.wa-float-label { white-space: nowrap; }
@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 24px rgba(37,211,102,0.45); }
  50% { box-shadow: 0 4px 40px rgba(37,211,102,0.75), 0 0 0 8px rgba(37,211,102,0.1); }
}
/* Masqué : viewer 3D ouvert OU scroll vers le bas sur mobile */
#wa-float.wa-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.85);
  pointer-events: none;
  animation: none;
}
@media (max-width: 600px) {
  #wa-float {
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    right: 16px;
    padding: 13px 14px;
  }
  .wa-float-label { display: none; }
}

/* ── KLARNA BADGE FOOTER ──────────────────────────── */
.footer-klarna { margin: 8px 0; }
.footer-klarna-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,182,193,0.08);
  border: 1px solid rgba(255,182,193,0.2);
  color: #ffb6c1;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}
.footer-klarna-badge strong { color: #fff; font-weight: 700; }

/* section::before red-line supprimé — causait un overflow horizontal */

/* ── LINK UNDERLINE DRAW ─────────────────────────────────── */
.link-draw { position: relative; display: inline-block; }
.link-draw::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--red);
  transition: width 0.35s cubic-bezier(0.22,1,0.36,1);
}
.link-draw:hover::after { width: 100%; }

/* ── STATUS DOT PULSING ───────────────────────────────────── */
@keyframes statusPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
  50%      { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
}
.status-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: statusPulse 2s ease infinite;
  flex-shrink: 0;
}

/* ── CARD IMAGE ZOOM ─────────────────────────────────────── */
.card-img-wrap { overflow: hidden; border-radius: var(--radius-md); }
.card-img-wrap img { transition: transform 0.6s cubic-bezier(0.22,1,0.36,1); width: 100%; object-fit: cover; }
.card:hover .card-img-wrap img { transform: scale(1.08); }

/* ════════════════════════════════════════════════════════════
   FAQ GLOBALE — Structure unique <details>/<summary>
   Utilisée sur TOUTES les pages : index, e85, services, etc.
   ════════════════════════════════════════════════════════════ */

/* Conteneur */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}

/* Chaque item = une card glass */
.faq-item {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}
/* Support [open] (details natif) ET .open (div + JS) */
.faq-item[open],
.faq-item.open {
  border-color: rgba(227, 6, 19, 0.4);
}

/* Question = summary ou div cliquable */
.faq-question {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  user-select: none;
  font-family: var(--font-tech);
  font-size: clamp(0.78rem, 2vw, 0.9rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  transition: color 0.2s;
}
/* Supprimer le marqueur natif (tous navigateurs) */
.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker              { display: none; }

/* Icône inline .faq-icon (pages véhicules) — masqué, le ::after CSS la remplace */
.faq-icon { display: none !important; }

/* Icône + dans un cercle (via pseudo-élément) */
.faq-question::after {
  content: '+';
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--titanium);
  transition: all 0.3s, transform 0.3s;
  line-height: 1;
}
.faq-item[open] > .faq-question,
.faq-item.open > .faq-question {
  color: var(--red);
}
.faq-item[open] > .faq-question::after,
.faq-item.open > .faq-question::after {
  content: '+';
  transform: rotate(45deg);
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  font-size: 1.1rem;
  font-family: var(--font-body);
}
.faq-question:hover { color: var(--red); }

/* Réponse avec animation smooth */
.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.3s ease;
  padding: 0 24px;
}
.faq-item[open] .faq-answer,
.faq-item.open .faq-answer {
  max-height: 600px;
  padding: 0 24px 22px;
}
.faq-answer p {
  color: var(--white-dim);
  font-size: 0.92rem;
  line-height: 1.75;
}
.faq-answer strong { color: var(--white); }

/* ═══════════════════════════════════════════════════════════════════
   PREMIUM LAYER — focus-visible · button states · utilities · forms
   ═══════════════════════════════════════════════════════════════════ */

/* ── Focus visible WCAG AA — global ──────────────────────────────── */
:where(a, button, input, select, textarea, summary, [tabindex]):focus {
  outline: none;
}
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
  transition: outline-offset 0.2s ease;
}
.btn:focus-visible,
.svc-item:focus-visible,
.choose-card:focus-visible,
.card:focus-visible {
  outline-offset: 5px;
  box-shadow: 0 0 0 4px rgba(227, 6, 19, 0.18);
}

/* Skip-to-content (a11y AAA) */
.skip-to-content {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100000;
  padding: 12px 20px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-tech);
  font-weight: 800;
  text-decoration: none;
  border-radius: var(--radius-sm);
}
.skip-to-content:focus-visible {
  left: 16px;
  top: 16px;
  outline: 2px solid var(--white);
  outline-offset: 4px;
}

/* ── Boutons : états manquants (loading, disabled, ghost) ──────── */
.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}
.btn.is-loading {
  pointer-events: none;
  position: relative;
  color: transparent !important;
  transition: none;
}
.btn.is-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: btn-spin 0.7s linear infinite;
  color: var(--white);
}
.btn-outline.is-loading::after { color: var(--white); }
.btn-gold.is-loading::after { color: var(--black); }
@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

/* Alias .btn-ghost-hero → comportement aligné btn-outline */
.btn-ghost,
.btn-ghost-hero {
  position: relative;
  overflow: hidden;
}

/* Effet ripple universel sur tous les boutons (CSS-only) */
.btn {
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  left: var(--ripple-x, 50%);
  top: var(--ripple-y, 50%);
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
}
.btn:active::before {
  width: 240px;
  height: 240px;
  opacity: 1;
  transition: width 0.45s ease-out, height 0.45s ease-out, opacity 0.7s;
}
.btn-primary::before { background: rgba(255, 255, 255, 0.4); }
.btn-outline::before { background: rgba(255, 255, 255, 0.2); }
.btn-gold::before { background: rgba(0, 0, 0, 0.25); }

/* ── Classes utilitaires (élimination styles inline) ─────────────── */
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 12px; }
.mb-3 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 24px; }
.mb-5 { margin-bottom: 32px; }
.mb-6 { margin-bottom: 48px; }
.mb-7 { margin-bottom: 64px; }
.mt-0 { margin-top: 0 !important; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.mt-5 { margin-top: 32px; }
.mt-6 { margin-top: 48px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-gold { color: var(--gold); }
.text-red { color: var(--red); }
.text-white { color: var(--white); }
.text-dim { color: var(--white-dim); }
.text-titanium { color: var(--titanium); }
.text-green { color: #4ade80; }
.text-bold { font-weight: 700; }
.text-tech { font-family: var(--font-tech); letter-spacing: 0.04em; }
.max-w-prose { max-width: 760px; }
.max-w-narrow { max-width: 560px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: 12px; }
.gap-3 { gap: 16px; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Form validation states (couplé à js/form-validate.js) ───────── */
.form-input.is-invalid,
.form-input.is-invalid:focus,
.form-input.is-invalid:hover {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15);
  background: rgba(248, 113, 113, 0.04);
}
.form-input.is-valid {
  border-color: rgba(34, 197, 94, 0.45);
}
.form-error {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  color: #fca5a5;
  min-height: 1em;
  font-family: var(--font-body);
  line-height: 1.4;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s, transform 0.2s;
}
.form-input.is-invalid + .form-error,
.form-input.is-invalid ~ .form-error {
  opacity: 1;
  transform: translateY(0);
}
.form-success {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: var(--radius-sm);
  color: #4ade80;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ── Trust signals chips (sous-hero home + city pages) ──────────── */
.trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  justify-content: center;
  align-items: center;
  padding: 18px 0;
  margin: 0 auto;
  max-width: 1100px;
}
.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  font-family: var(--font-tech);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white-dim);
  white-space: nowrap;
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}
.trust-chip:hover {
  background: rgba(227, 6, 19, 0.06);
  border-color: rgba(227, 6, 19, 0.25);
  color: var(--white);
  transform: translateY(-2px);
}
.trust-chip svg {
  width: 14px;
  height: 14px;
  color: var(--red);
  flex-shrink: 0;
}
.trust-chip-gold svg { color: var(--gold); }
.trust-chip-green svg { color: #4ade80; }
@media (max-width: 720px) {
  .trust-chip {
    font-size: 0.62rem;
    padding: 6px 11px;
    letter-spacing: 0.06em;
  }
  .trust-chip svg { width: 12px; height: 12px; }
}

/* ── Tap targets WCAG (mobile) ─────────────────────────────────── */
@media (max-width: 768px) {
  .nav-account-btn,
  .nav-mobile-trigger,
  .social-link,
  .icon-btn,
  .footer-social a,
  .footer-link,
  .nav-link,
  .zone-tag {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .nav-account-btn,
  .nav-mobile-trigger,
  .icon-btn,
  .social-link,
  .footer-social a {
    min-width: 44px;
    justify-content: center;
  }
  .faq-question {
    min-height: 56px;
    padding-top: 18px;
    padding-bottom: 18px;
  }
}

/* ── Respect prefers-reduced-motion ─────────────────────────────── */
@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;
  }
  .btn::before { display: none; }
  .trust-chip { transform: none !important; }
  .card:hover, .svc-item:hover, .choose-card:hover { transform: none !important; }
}

/* ═══════════════════════════════════════════════════════════════════
   ANTI-OVERFLOW — garde-fous mobile (corrige titres tronqués, débords)
   ═══════════════════════════════════════════════════════════════════ */

/* Aucun bloc ne déborde de son container, aucun enfant flex ne fige sa largeur */
.card, .choose-card, .case-card, .svc-item, .nav-mega-item,
.footer-newsletter, .footer-trust-item, .vehicle-item,
.section-label, .trust-chip {
  max-width: 100%;
  min-width: 0;
}

/* Les enfants flex (titres dans les rangées icône+titre) doivent pouvoir rétrécir */
.card > div,
.card > div > .heading-md,
.card .icon-wrap + .heading-md,
.choose-card *, .case-card * {
  min-width: 0;
}

/* Mobile : réduit le letter-spacing sur tous les libellés uppercase
   (principal facteur d'élargissement qui causait le tronquage) */
@media (max-width: 480px) {
  .section-label span,
  .heading-md,
  .choose-card-tag,
  .trust-chip,
  .case-stage,
  .footer-heading,
  .nav-mega-heading {
    letter-spacing: 0.02em;
  }
  /* La rangée icône + titre des cards passe en colonne sur très petit écran
     pour donner toute la largeur au titre */
  .card > div[style*="display:flex"][style*="align-items:center"]:has(> .icon-wrap):has(> .heading-md) {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* Garantit qu'aucune image / iframe / svg ne crée de scroll horizontal */
img, svg, iframe, video, table { max-width: 100%; }
.elfsight-app-fca44484-2dfe-4a6f-8165-2328ab0a0f05 { max-width: 100%; overflow: hidden; }

/* -- MCACOIN ICON ------------------------------- */
.mc-icon { display:inline-block; width:18px; height:18px; vertical-align:-3px; object-fit:contain; margin-right:2px; }
.mc-icon-sm { display:inline-block; width:14px; height:14px; vertical-align:-2px; object-fit:contain; margin-right:1px; }
.mc-icon-lg { display:inline-block; width:28px; height:28px; vertical-align:-5px; object-fit:contain; margin-right:3px; }
.mc-icon-xl { display:inline-block; width:48px; height:48px; vertical-align:-8px; object-fit:contain; }
.mc-icon-hero { display:inline-block; width:64px; height:64px; object-fit:contain; filter:drop-shadow(0 4px 16px rgba(255,193,7,.35)); }

/* ═══ MÉCACOIN IMAGE — rendu universel ═══════════════════════════════════ */
/* Élimine le fond blanc sur tous les fonds sombres via multiply            */
img[src*="mecacoin"] {
  mix-blend-mode: multiply;
  object-fit: contain;
  vertical-align: middle;
  flex-shrink: 0;
}
