﻿/* ============================================================
   BRAVIOR DZ â€” Design System Â« NEON LAB Â»
   ============================================================ */

:root {
  --bg: #07090e;
  --bg-2: #0d111a;
  --panel: #121826;
  --line: rgba(255, 255, 255, 0.08);
  --line-neon: rgba(0, 191, 255, 0.35);
  --cyan: #00bfff;
  --blue: #386bff;
  --violet: #a43cff;
  --pink: #ec4899;
  --text: #e8edf6;
  --muted: #93a2b8;
  --neon-grad: linear-gradient(120deg, #00bfff, #386bff 55%, #a43cff);
  --chrome-grad: linear-gradient(135deg, #ffffff, #cbd5e1 50%, #94a3b8);
  --radius: 18px;
  --shadow-neon: 0 24px 60px -30px rgba(0, 191, 255, 0.55);
}

[x-cloak] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
}

::selection { background: var(--cyan); color: #04101c; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1c2434; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan); }

.font-cyber { font-family: "Orbitron", sans-serif; }

/* ---------- DÃ©gradÃ©s de texte ---------- */
.text-chrome {
  background: var(--chrome-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-neon {
  background: var(--neon-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Boutons ---------- */
.btn-neon,
.btn-violet,
.btn-ghost {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border-radius: 14px;
  font-family: "Orbitron", sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.95rem 1.75rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}
.btn-neon {
  background: linear-gradient(120deg, #00bfff, #386bff);
  color: #04101c;
  box-shadow: 0 14px 34px -14px rgba(0, 191, 255, 0.75);
}
.btn-neon:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 46px -14px rgba(0, 191, 255, 0.9);
}
.btn-violet {
  background: linear-gradient(120deg, #a43cff, #386bff);
  color: #fff;
  box-shadow: 0 14px 34px -14px rgba(164, 60, 255, 0.7);
}
.btn-violet:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 46px -14px rgba(164, 60, 255, 0.85);
}
.btn-ghost {
  background: rgba(0, 191, 255, 0.07);
  border: 1px solid var(--line-neon);
  color: #cfe8ff;
}
.btn-ghost:hover {
  background: rgba(0, 191, 255, 0.16);
  transform: translateY(-2px);
}
.btn-sm { padding: 0.6rem 1.05rem; font-size: 0.62rem; border-radius: 11px; }

/* ---------- Cartes ---------- */
.card {
  position: relative;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(18, 24, 38, 0.92), rgba(9, 12, 20, 0.96));
  border: 1px solid var(--line);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 191, 255, 0.45);
  box-shadow: var(--shadow-neon);
}
.card-flat:hover { transform: none; }

.spotlight { position: relative; overflow: hidden; }
.spotlight::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 191, 255, 0.14), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.spotlight:hover::after { opacity: 1; }

/* ---------- Bordure nÃ©on ---------- */
.neon-frame {
  position: relative;
  border-radius: 22px;
  padding: 1px;
  background: linear-gradient(140deg, rgba(0, 191, 255, 0.75), rgba(164, 60, 255, 0.35), rgba(0, 191, 255, 0.75));
}
.neon-frame > .inner {
  border-radius: 21px;
  background: linear-gradient(165deg, rgba(13, 17, 26, 0.97), rgba(7, 9, 14, 0.99));
}

/* ---------- Glows ---------- */
.glow-blue { filter: drop-shadow(0 0 14px rgba(0, 191, 255, 0.55)); }
.glow-violet { filter: drop-shadow(0 0 14px rgba(164, 60, 255, 0.5)); }
.glow-box-blue { box-shadow: 0 0 30px rgba(0, 191, 255, 0.18); }

/* ---------- Fond cyber ---------- */
.cyber-grid {
  background-image:
    linear-gradient(rgba(0, 191, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 191, 255, 0.07) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(ellipse 100% 80% at 50% 0%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 100% 80% at 50% 0%, #000 25%, transparent 78%);
}
.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  pointer-events: none;
  animation: float 14s ease-in-out infinite alternate;
}
@keyframes float {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(30px, -26px, 0) scale(1.12); }
}

/* ---------- Marquee ---------- */
.marquee {
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 2.75rem;
  min-width: 100%;
  padding-right: 2.75rem;
  animation: marquee 32s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* ---------- RÃ©vÃ©lations au scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Badges & chips ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: "Orbitron", sans-serif;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.32rem 0.72rem;
  border-radius: 99px;
  border: 1px solid rgba(0, 191, 255, 0.35);
  background: rgba(7, 9, 14, 0.82);
  color: var(--cyan);
  backdrop-filter: blur(8px);
}
.badge-violet { border-color: rgba(164, 60, 255, 0.4); color: #d3aaff; }
.badge-green { border-color: rgba(16, 185, 129, 0.4); color: #34d399; }
.badge-pink { border-color: rgba(236, 72, 153, 0.4); color: #f9a8d4; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: 99px;
  font-size: 0.68rem;
  font-weight: 600;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  transition: all 0.25s ease;
  cursor: pointer;
}
.chip:hover { border-color: var(--line-neon); color: var(--cyan); }
.chip.active {
  background: linear-gradient(120deg, #00bfff, #386bff);
  border-color: transparent;
  color: #04101c;
  font-weight: 800;
}

/* ---------- Ã‰toiles ---------- */
.stars { color: #ffb020; letter-spacing: 0.14em; font-size: 0.72rem; }

/* ---------- Progression de lecture (barre haute) ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  z-index: 60;
  background: var(--neon-grad);
  box-shadow: 0 0 12px rgba(0, 191, 255, 0.8);
}

/* ---------- Nav ---------- */
.nav-link {
  position: relative;
  padding: 0.35rem 0.15rem;
  font-family: "Orbitron", sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b9c6d8;
  transition: color 0.25s ease;
}
.nav-link:hover { color: var(--cyan); }
.nav-link.active { color: var(--cyan); }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--neon-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }

/* ---------- Toasts ---------- */
.toast-wrap {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 260px;
  padding: 0.9rem 1.15rem;
  border-radius: 14px;
  background: rgba(13, 17, 26, 0.96);
  border: 1px solid rgba(0, 191, 255, 0.35);
  box-shadow: 0 18px 40px -18px rgba(0, 191, 255, 0.55);
  font-size: 0.78rem;
  font-weight: 600;
  animation: toast-in 0.35s ease;
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(14px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

/* ---------- Modals & drawers ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(4, 8, 15, 0.82);
  backdrop-filter: blur(10px);
}
.drawer {
  width: min(27rem, 100vw);
  background: linear-gradient(180deg, #0d111a, #080b12);
  border-left: 1px solid rgba(0, 191, 255, 0.22);
  box-shadow: -30px 0 80px -30px rgba(0, 191, 255, 0.35);
}

/* ---------- Diviseurs ---------- */
.line-gradient {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 191, 255, 0.45), rgba(164, 60, 255, 0.35), transparent);
}

/* ---------- MÃ©dias produits ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 20% 10%, rgba(0, 191, 255, 0.18), transparent 55%),
    radial-gradient(110% 90% at 85% 85%, rgba(164, 60, 255, 0.18), transparent 55%),
    #0b111c;
}
.media-frame img {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.group:hover .media-frame img { transform: scale(1.08); }

.fallback-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(80% 80% at 30% 25%, rgba(0, 191, 255, 0.22), transparent 60%),
    radial-gradient(80% 80% at 75% 80%, rgba(164, 60, 255, 0.22), transparent 60%),
    #0b111c;
  font-family: "Orbitron", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: rgba(0, 191, 255, 0.75);
  text-transform: uppercase;
}

/* ---------- Prix ---------- */
.price {
  font-family: "Orbitron", sans-serif;
  font-weight: 800;
  color: var(--cyan);
  text-shadow: 0 0 18px rgba(0, 191, 255, 0.35);
}
.price-old {
  color: #64748b;
  text-decoration: line-through;
  font-size: 0.72rem;
}

/* ---------- Stats ---------- */
.stat-value {
  font-family: "Orbitron", sans-serif;
  font-weight: 800;
  font-size: 1.9rem;
  line-height: 1;
  background: var(--neon-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Tables comparateur ---------- */
.cmp-table th,
.cmp-table td {
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.8rem;
}
.cmp-table th {
  font-family: "Orbitron", sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.cmp-table tr:hover td { background: rgba(0, 191, 255, 0.04); }

/* ---------- Formulaires ---------- */
.field {
  width: 100%;
  border-radius: 12px;
  background: #080c14;
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 0.72rem 0.95rem;
  font-size: 0.8rem;
  color: var(--text);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.field:focus {
  outline: none;
  border-color: rgba(0, 191, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(0, 191, 255, 0.14);
}
.field option { background: #080c14; }
::placeholder { color: #55637a; }

/* ---------- Utilitaires ---------- */
.text-muted { color: var(--muted); }
.mono-code {
  font-family: "Orbitron", sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.group:hover .lift { transform: translateY(-3px); }
.lift { transition: transform 0.3s ease; }

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

/* ============================================================
   UPGRADE VISUEL v2 — effets premium
   ============================================================ */

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

/* Grain subtil (texture film) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 55;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

/* Halo qui suit le curseur (desktop) */
.cursor-glow {
  position: fixed;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  background: radial-gradient(circle, rgba(0, 191, 255, 0.13), rgba(164, 60, 255, 0.05) 45%, transparent 68%);
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease;
}

/* Bordure néon conique en rotation */
.neon-frame {
  background: conic-gradient(from var(--angle, 0deg), #00bfff, #386bff 35%, #a43cff 65%, #00bfff);
  animation: spin-border 7s linear infinite;
}
@keyframes spin-border {
  to { --angle: 360deg; }
}

/* Texte néon : dégradé animé */
.text-neon {
  background-size: 220% 220%;
  animation: shimmer-grad 7s ease-in-out infinite;
}
@keyframes shimmer-grad {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Balayage lumineux sur les boutons */
.btn-neon, .btn-violet { overflow: hidden; }
.btn-neon::after, .btn-violet::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(110deg, transparent 32%, rgba(255, 255, 255, 0.5) 50%, transparent 68%);
  transform: translateX(-130%);
  transition: transform 0.65s ease;
  pointer-events: none;
}
.btn-neon:hover::after, .btn-violet:hover::after {
  transform: translateX(130%);
}

/* Titre hero : apparition mot par mot */
.word {
  display: inline-block;
}
.word.anim {
  animation: word-in 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes word-in {
  from { transform: translateY(26px) rotate(1.2deg); }
  to { transform: none; }
}

/* Cartes en relief 3D au survol */
.tilt { transform-style: preserve-3d; will-change: transform; }
.tilt .media-frame { transform: translateZ(28px); }
.tilt:hover { transition: transform 0.12s ease-out; }

/* Lueur interne des visuels au survol */
.card:hover .media-frame {
  box-shadow: inset 0 0 70px rgba(0, 191, 255, 0.16);
}

/* Champs de données : halo focus renforcé */
.field:focus {
  box-shadow: 0 0 0 3px rgba(0, 191, 255, 0.16), 0 0 26px rgba(0, 191, 255, 0.22);
}

/* Badges plus lumineux */
.badge {
  box-shadow: 0 0 18px rgba(0, 191, 255, 0.12);
}
.badge-violet { box-shadow: 0 0 18px rgba(164, 60, 255, 0.14); }
.badge-pink { box-shadow: 0 0 18px rgba(236, 72, 153, 0.14); }

/* Prix : soulignement néon animé */
.price {
  position: relative;
  display: inline-block;
}
.price::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, #00bfff, #a43cff);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.card:hover .price::after { transform: scaleX(1); }

/* Titres de section : filet lumineux */
.section-title {
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  height: 3px;
  width: 3.5rem;
  border-radius: 3px;
  background: var(--neon-grad);
  box-shadow: 0 0 16px rgba(0, 191, 255, 0.6);
}

/* Étoiles du hero (canvas) */
#starfield {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Orbes flottantes hero renforcées */
.aurora { mix-blend-mode: screen; }

/* Marquee : éléments alternés accentués */
.marquee-track > span:nth-child(odd) { color: #cfe8ff; }

/* Chiffres des stats : halo */
.stat-value {
  filter: drop-shadow(0 0 14px rgba(0, 191, 255, 0.35));
}

/* Animation flottement doux */
.float-soft { animation: float 8s ease-in-out infinite alternate; }

@media (prefers-reduced-motion: reduce) {
  .word { opacity: 1; transform: none; animation: none; }
  .neon-frame { animation: none; }
  .text-neon { animation: none; }
}

/* ---------- Intro cinématique ---------- */
.intro-loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(120% 120% at 50% 40%, #0b1424 0%, #05070b 65%);
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
.intro-loader.done {
  opacity: 0;
  visibility: hidden;
}
.intro-emblem {
  width: 260px;
  height: auto;
  filter: drop-shadow(0 0 34px rgba(0, 191, 255, 0.75));
  animation: intro-pop 1s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes intro-pop {
  from { opacity: 0; transform: scale(0.55) rotate(-10deg); filter: blur(12px) drop-shadow(0 0 0 rgba(0,191,255,0)); }
  to   { opacity: 1; transform: none; filter: blur(0) drop-shadow(0 0 34px rgba(0,191,255,0.75)); }
}
.intro-word {
  margin-top: 1.4rem;
  font-family: "Orbitron", sans-serif;
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: 0.34em;
  color: #e8edf6;
  animation: intro-letters 0.9s 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes intro-letters {
  from { opacity: 0; letter-spacing: 0.45em; filter: blur(6px); }
  to   { opacity: 1; letter-spacing: 0.34em; filter: blur(0); }
}
.intro-bar {
  width: 190px;
  height: 3px;
  margin: 1.35rem auto 0;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.intro-bar i {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: 3px;
  background: var(--neon-grad);
  transform-origin: left;
  animation: intro-load 1.25s 0.25s cubic-bezier(0.65, 0, 0.35, 1);
  box-shadow: 0 0 14px rgba(0, 191, 255, 0.8);
}
@keyframes intro-load {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
.intro-tag {
  margin-top: 1.1rem;
  font-family: "Orbitron", sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(0, 191, 255, 0.85);
  animation: intro-letters 0.9s 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- RTL (arabe) ---------- */
[dir="rtl"] .cursor-glow { direction: ltr; }
[dir="rtl"] .marquee-track { direction: rtl; }
[dir="rtl"] .scroll-progress { right: 0; left: auto; }
[dir="rtl"] .toast-wrap { right: auto; left: 1.25rem; }
[dir="rtl"] .float-anim, [dir="rtl"] .float-b { transform: none; }
[dir="rtl"] body { text-align: right; }
[dir="rtl"] .nav-link::after { transform-origin: right; }
[dir="rtl"] .section-title::after { left: auto; right: 0; }

/* ============================================================
   RESPONSIVE — smartphone & tablette (zoom 100% sans espace)
   ============================================================ */

/* Pas de débordement horizontal : évite les bandes vides au zoom */
html, body {
  overflow-x: clip;
  max-width: 100%;
}
img, video, canvas, svg {
  max-width: 100%;
}
img { height: auto; }

/* Tableaux à défilement horizontal (comparateur) */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}
.table-scroll table { min-width: 540px; }

/* Empêche le zoom automatique d'iOS sur les champs de formulaire
   (qui provoque un espace vide quand on revient à 100%) */
@media (max-width: 640px) {
  input, select, textarea {
    font-size: 16px !important;
    zoom: 1;
  }

  /* Espacements resserrés */
  .content { padding: 14px 12px; }
  .p-card { border-radius: 14px; }

  /* Titres de sections adaptés */
  h1, .font-display { letter-spacing: -0.01em; }

  /* Cartes statistiques du hero */
  .stat-value { font-size: 1.35rem; }

  /* Boutons : pleine largeur dans le hero */
  .hero-cta .btn-neon,
  .hero-cta .btn-violet {
    width: 100%;
    justify-content: center;
  }

  /* Bandeau des langues compact */
  .lang-switch button {
    padding: 0.25rem 0.55rem !important;
    font-size: 10px !important;
  }

  /* Toasts sur toute la largeur disponible */
  .toast-wrap { left: 0.75rem; right: 0.75rem; bottom: 0.75rem; }
  .toast { min-width: 0; width: 100%; }

  /* Modals : marges réduites */
  .modal-pad { padding: 0.75rem; }

  /* Tableau comparateur plus compact */
  .cmp-table th, .cmp-table td { padding: 0.55rem 0.7rem; font-size: 0.72rem; }
}

@media (max-width: 420px) {
  .stat-value { font-size: 1.15rem; }
  .marquee-track { gap: 1.4rem; padding-right: 1.4rem; }
  .badge { font-size: 0.5rem; padding: 0.25rem 0.55rem; }
}

/* Formats tablette */
@media (min-width: 641px) and (max-width: 1024px) {
  .table-scroll table { min-width: 480px; }
}

/* ---------- Garde anti-débordement (affichage mobile complet) ---------- */
html {
  overflow-x: hidden;
  overflow-x: clip;
}
body {
  overflow-x: hidden;
  overflow-x: clip;
  width: 100%;
  max-width: 100vw;
}
img, picture, video, canvas {
  max-width: 100%;
  height: auto;
}
.min-w-0-force { min-width: 0; }
a, p, h1, h2, h3, h4, span, li {
  overflow-wrap: break-word;
  word-break: normal;
}

/* ---------- Intro : tient dans l'écran mobile (lancement) ---------- */
.intro-loader {
  overflow: hidden;
  padding: 1rem;
  box-sizing: border-box;
}
.intro-loader > .text-center {
  max-width: calc(100vw - 2rem);
  width: 100%;
}
.intro-emblem {
  width: min(260px, 70vw);
  height: auto;
}
.intro-word {
  max-width: 100%;
  overflow: hidden;
  font-size: clamp(1rem, 5.2vw, 1.35rem);
  letter-spacing: 0.28em;
}
.intro-tag {
  max-width: 100%;
  overflow: hidden;
  font-size: clamp(0.45rem, 2.4vw, 0.58rem);
  letter-spacing: 0.18em;
}
@media (max-width: 480px) {
  .intro-word { letter-spacing: 0.18em; }
  .intro-tag { letter-spacing: 0.1em; }
}

/* Les enfants de grilles/flex ne doivent jamais forcer la largeur */
.grid > *, .flex > * { min-width: 0; }
p, h1, h2, h3, h4 { max-width: 100%; }

/* Les pistes implicites des grilles ne doivent jamais dépasser la largeur d'écran */
.grid { grid-auto-columns: minmax(0, 1fr); }
.grid > * { min-width: 0; max-width: 100%; }
section, header, footer, main { max-width: 100%; }

/* ============================================================
   CARTES PRODUITS MOBILE — grille 2 colonnes compacte
   ============================================================ */
@media (max-width: 640px) {
  .product-grid > .card {
    border-radius: 13px;
    overflow: hidden;
  }
  .product-grid .media-frame {
    height: 7.2rem !important;
    border-radius: 13px 13px 0 0 !important;
  }
  .product-grid .p-5 {
    padding: 0.65rem 0.65rem 0.75rem !important;
  }
  .product-grid h3 {
    font-size: 0.72rem !important;
    line-height: 1.3 !important;
    margin-bottom: 0.35rem !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.35em;
  }
  .product-grid .prod-rating {
    gap: 0.35rem !important;
    margin-bottom: 0.45rem !important;
  }
  .product-grid .stars {
    font-size: 0.55rem !important;
    letter-spacing: 0.04em;
  }
  .product-grid .prod-rating span:last-child {
    font-size: 0.55rem !important;
  }
  .product-grid .price {
    font-size: 0.88rem !important;
  }
  .product-grid .price-old {
    font-size: 0.58rem !important;
  }
  .product-grid .badge {
    font-size: 0.48rem !important;
    padding: 0.18rem 0.45rem !important;
    letter-spacing: 0.08em;
  }
  .product-grid .prod-actions {
    gap: 0.35rem !important;
    margin-top: 0.55rem !important;
  }
  .product-grid .prod-actions .btn-neon,
  .product-grid .prod-actions .btn-ghost {
    padding: 0.42rem 0.25rem !important;
    font-size: 0.52rem !important;
    letter-spacing: 0.05em !important;
    border-radius: 9px !important;
    gap: 0.25rem;
  }
  .product-grid button.absolute {
    padding: 0.35rem !important;
  }
  .product-grid .badge.badge-pink {
    display: none;
  }
}
@media (max-width: 380px) {
  .product-grid .p-5 { padding: 0.55rem !important; }
  .product-grid h3 { font-size: 0.66rem !important; }
  .product-grid .price { font-size: 0.8rem !important; }
}

/* ---------- Formulaire de commande mobile ---------- */
@media (max-width: 640px) {
  .checkout-form { padding: 1.05rem !important; }
  .checkout-form .field { padding: 0.65rem 0.85rem !important; border-radius: 11px; }
  .checkout-form label { margin-bottom: 6px !important; }
  .checkout-form .space-y-4 > * + * { margin-top: 0.75rem !important; }
  .checkout-form button[type="submit"] { width: 100%; }
}

/* ---------- Modals : fond opaque pour une lecture parfaite ---------- */
.fixed .card,
.fixed .drawer {
  background: linear-gradient(180deg, #121a29 0%, #0b111c 100%) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}
@media (max-width: 640px) {
  .fixed .card { border-radius: 18px !important; }
  .fixed.inset-0 .p-4 { padding: 0.65rem !important; }
}
