/* ============================================================================
   BIGO67 — Telegram Mini App
   Feuille de style principale
   Vente • Achat • Réparation d'iPhone en Alsace
   ============================================================================
   Sommaire
   01. Polices & variables
   02. Reset & base
   03. Utilitaires & typographie
   04. Arrière-plan & halos
   05. Layout applicatif
   06. En-tête
   07. Boutons
   08. Pastilles / chips
   09. Section Accueil (hero, cartes d'action, trust strip)
   10. Cartes produit & Accessoires
   11. Formulaires & champs
   12. Réparation (grille de sélection, devis)
   13. Rachat (wizard, stepper)
   14. Rendez-vous (calendrier, créneaux, récap)
   15. Suivi (recherche, timeline)
   16. Contact (boutons contact, carte, horaires)
   17. Footer
   18. Dock — navigation flottante façon Dynamic Island
   19. Panier & Fiche Produit Apple
   20. Sécurité Paiement Stripe
   21. Admin (bonus)
   22. Toast
   23. Animations
   24. Responsive
   25. Accessibilité & scrollbar
   ========================================================================= */

/* ============================================================================
   01. POLICES & VARIABLES
   ========================================================================= */
@import url('https://fonts.googleapis.com/css2?family=Monoton&family=Bungee&family=Exo+2:wght@400;500;600;700;800&display=swap');

:root{
  --ink:#050507;
  --surface:#14101F;
  --surface-2:#1E1730;

  --blue:#00E5FF;
  --pink:#FF2E92;
  --purple:#8A2BE2;
  --sunset:#FF6A00;
  --paper:#FFFFFF;

  --paper-04:rgba(255,255,255,.04);
  --paper-06:rgba(255,255,255,.06);
  --paper-08:rgba(255,255,255,.08);
  --paper-10:rgba(255,255,255,.10);
  --paper-14:rgba(255,255,255,.14);
  --paper-20:rgba(255,255,255,.20);
  --paper-40:rgba(255,255,255,.40);
  --paper-60:rgba(255,255,255,.60);
  --paper-75:rgba(255,255,255,.75);

  --ink-40:rgba(0,0,0,.40);
  --ink-60:rgba(0,0,0,.60);

  --grad-brand:linear-gradient(135deg,#00E5FF 0%,#FF2E92 100%);
  --grad-sunset:linear-gradient(135deg,#8A2BE2 0%,#FF2E92 55%,#FF6A00 100%);
  --grad-brand-soft:linear-gradient(135deg,rgba(0,229,255,.16),rgba(255,46,146,.10));
  --grad-text:linear-gradient(95deg,#00E5FF 0%,#FF2E92 90%);

  --glass-bg:rgba(255,255,255,.055);
  --glass-bg-strong:rgba(255,255,255,.09);
  --glass-border:rgba(255,255,255,.10);
  --glass-blur:24px;

  --r-xs:10px;
  --r-sm:14px;
  --r-md:18px;
  --r-lg:24px;
  --r-xl:32px;
  --r-full:999px;

  --shadow-soft:0 12px 35px rgba(0,0,0,.32);
  --shadow-lift:0 20px 55px rgba(0,0,0,.48);

  --glow-blue:
    0 0 1px rgba(0,229,255,.9),
    0 0 20px rgba(0,229,255,.35),
    0 8px 30px rgba(0,229,255,.25);

  --glow-pink:
    0 0 1px rgba(255,46,146,.9),
    0 0 20px rgba(255,46,146,.4),
    0 8px 30px rgba(255,46,146,.25);

  --font-display:'Bungee','Exo 2',sans-serif;
  --font-neon:'Monoton','Bungee',sans-serif;
  --font-body:'Exo 2',-apple-system,BlinkMacSystemFont,'SF Pro Text','Helvetica Neue',Arial,sans-serif;

  --gutter:18px;
  --header-h:60px;
  --dock-h:78px;

  --ease:cubic-bezier(.22,.9,.32,1);
  --fast:.18s;
  --med:.38s;
}

/* ============================================================================
   02. RESET & BASE
   ========================================================================= */
*, *::before, *::after{ box-sizing: border-box; }

/* Le sprite SVG ne sert qu'à définir des icônes réutilisables via <use> :
   il ne doit jamais prendre de place ni être visible. Sans cette règle,
   le navigateur lui donne une taille par défaut qui pousse tout le reste
   (y compris le header) vers le bas. */
.sprite{
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

html{
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  color-scheme: dark;
}

body{
  margin:0;
  min-height:100vh;
  min-height:100dvh;

  background:
    radial-gradient(
      circle at 20% -5%,
      rgba(0,229,255,.16),
      transparent 38%
    ),
    radial-gradient(
      circle at 85% 15%,
      rgba(255,46,146,.14),
      transparent 36%
    ),
    radial-gradient(
      circle at 50% 100%,
      rgba(138,43,226,.20),
      transparent 45%
    ),
    linear-gradient(180deg, #0B0716 0%, #050408 60%, #030204 100%);

  color:var(--paper);
  font-family:var(--font-body);

  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;

  overflow-x:hidden;

  /* Rendu "app native" plutôt que "page web" */
  -webkit-tap-highlight-color: transparent;
}

/* Aucun élément interactif ne doit garder le flash gris/bleu du tap mobile */
a, button, .product-card, .action-card, .contact-btn, .chip, .dock__item{
  -webkit-tap-highlight-color: transparent;
}

/* Empêche le menu "enregistrer l'image" au appui long façon app native */
img{ -webkit-touch-callout: none; }

/* ============================================================================
   03. UTILITAIRES & TYPOGRAPHIE
   ========================================================================= */
.icon{
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: currentColor;
}
.icon--xs{ width: 13px; height: 13px; }
.icon--sm{ width: 16px; height: 16px; }
.icon--lg{ width: 30px; height: 30px; }

.accent{
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-muted{ color: var(--paper-60); }

/* ============================================================================
   04. ARRIÈRE-PLAN & HALOS
   ========================================================================= */
.bg-glow{
  position: fixed;
  width: 60vw;
  height: 60vw;
  max-width: 420px;
  max-height: 420px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .4;
  pointer-events: none;
  z-index: 0;
}
.bg-glow--blue{ top: -10%; left: -20%; background: var(--blue); }
.bg-glow--pink{ bottom: 5%; right: -25%; background: var(--pink); animation: drift 14s ease-in-out infinite alternate; }

@keyframes drift{
  from{ transform: translate(0,0) scale(1); }
  to{ transform: translate(-6%, 8%) scale(1.08); }
}

/* Grille horizon façon synthwave / Vice City, fixée derrière tout le contenu */
.vice-grid{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: .5;
  mask-image: linear-gradient(180deg, transparent, #000 40%);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%);
}
.vice-grid::before{
  content: "";
  position: absolute;
  inset: -20% -50% 0 -50%;
  background-image:
    repeating-linear-gradient(90deg, rgba(0,229,255,.35) 0 1px, transparent 1px 60px),
    repeating-linear-gradient(0deg, rgba(255,46,146,.28) 0 1px, transparent 1px 34px);
  transform: perspective(220px) rotateX(58deg);
  transform-origin: bottom;
}
.vice-grid::after{
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), var(--pink), transparent);
  box-shadow: 0 0 20px 2px rgba(255,46,146,.6);
}

/* ============================================================================
   05. LAYOUT APPLICATIF
   ========================================================================= */
#app{
  position:relative;
  max-width:480px;
  min-height:100vh;
  margin:0 auto;

  background:
    linear-gradient(
      180deg,
      #09090C 0%,
      #050507 100%
    );

  overflow-x:hidden;
  isolation:isolate;

  border-left:1px solid rgba(255,255,255,.025);
  border-right:1px solid rgba(255,255,255,.025);

  animation:appIn .5s var(--ease);
}

/* Grain subtil : donne une texture "matière" plutôt qu'un aplat numérique plat */
#app::after{
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: .035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes appIn{
  from{ opacity: 0; }
  to{ opacity: 1; }
}

#mainContent{
  position: relative;
  z-index: 1;
  padding: 18px var(--gutter) 24px;
  min-height: 100vh;
}

.view{ display: none; }
.view.view--active{ display: block; animation: viewIn var(--med) var(--ease); }

@keyframes viewIn{
  from{ opacity: 0; transform: translateY(10px); }
  to{ opacity: 1; transform: translateY(0); }
}

.view-head{
  margin: 4px 0 26px;
  animation: fadeInUp .5s var(--ease) both;
}
.view-head h2{
  position: relative;
  padding-left: 14px;

  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -.015em;
  line-height: 1.1;

  background: linear-gradient(135deg, #FFFFFF 30%, rgba(255,255,255,.75) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.view-head h2::before{
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  border-radius: var(--r-full);
  background: var(--grad-brand);
}
.view-head p{
  margin: 0;
  padding-left: 14px;
  max-width: 34ch;
  color: var(--paper-60);
  font-size: 14.5px;
  line-height: 1.55;
  letter-spacing: -.005em;
}

.section-label{
  font-size: 13px;
  font-weight: 600;
  color: var(--paper-60);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 30px 2px 14px;
}

/* ============================================================================
   06. EN-TÊTE
   ========================================================================= */

.app-header {
  position: sticky;
  top: 0;
  z-index: 40;

  height: calc(var(--header-h) + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);

  display: flex;
  align-items: center;

  padding-left: max(10px, var(--gutter));
  padding-right: max(10px, var(--gutter));

  background: rgba(8, 9, 11, 0.88);

  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);

  border-bottom: 1px solid rgba(255, 255, 255, 0.07);

  box-shadow:
    0 8px 26px rgba(0, 0, 0, 0.28),
    inset 0 -1px 0 rgba(255, 255, 255, 0.02);

  isolation: isolate;
}

/* Boutons ronds du header */
.icon-btn,
.header-instagram {
  width: 38px;
  height: 38px;

  flex: 0 0 38px;

  display: grid;
  place-items: center;

  padding: 0;

  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.055);

  border-radius: 12px;

  color: var(--paper);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 4px 14px rgba(0, 0, 0, 0.22);

  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.icon-btn:active,
.header-instagram:active {
  transform: scale(0.91);
  background: rgba(255, 255, 255, 0.10);
}

.icon-btn:hover,
.header-instagram:hover {
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.16);
}

.icon-btn[hidden] {
  display: none;
}

/* Instagram à gauche */
.header-instagram {
  margin-left: 6px;
}

/* Logo BIGO67 parfaitement centré */
.header-brand {
  position: absolute;
  left: 50%;
  top: 50%;

  transform: translate(-50%, -50%);

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 3px;

  background: transparent;
  border: 0;
  border-radius: 15px;

  z-index: 2;

  transition: transform 0.18s ease;
}

.header-brand:active {
  transform: translate(-50%, -50%) scale(0.94);
}

/* Logo */
.header-brand__mark {
  width: 44px;
  height: 44px;

  border-radius: 13px;

  overflow: hidden;
  flex-shrink: 0;

  border: 1px solid rgba(255, 255, 255, 0.12);

  background:
    linear-gradient(
      145deg,
      rgba(45, 174, 255, 0.18),
      rgba(255, 46, 166, 0.16)
    );

  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.025),
    0 6px 18px rgba(0, 0, 0, 0.38),
    0 0 22px rgba(45, 174, 255, 0.08);
}

.header-brand__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-brand__fallback {
  display: none;

  width: 100%;
  height: 100%;

  align-items: center;
  justify-content: center;

  font-family: var(--font-display);
  font-weight: 900;
  font-size: 15px;

  color: #fff;
  letter-spacing: -0.04em;
}

.header-brand--fallback .header-brand__img {
  display: none;
}

.header-brand--fallback .header-brand__fallback {
  display: flex;
}

.header-brand__title {
  display: none;
}

/* Les deux boutons de droite */
#btnHeaderAccount,
#btnHeaderContact {
  margin-left: 6px;
}

/* Le bouton téléphone reste toujours dans le header */
#btnHeaderContact {
  margin-right: 0;
}

/* Quand le bouton retour apparaît */
#btnBack {
  margin-right: 6px;
}

/* Réduit légèrement sur très petits écrans */
@media (max-width: 360px) {
  .app-header {
    padding-left: 7px;
    padding-right: 7px;
  }

  .icon-btn,
  .header-instagram {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .header-brand__mark {
    width: 41px;
    height: 41px;
  }

  #btnHeaderAccount,
  #btnHeaderContact {
    margin-left: 4px;
  }
}
/* ============================================================================
   07. BOUTONS
   ========================================================================= */
.btn{
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--r-full);
  padding: 13px 22px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-body);
  transition: transform var(--fast) var(--ease), box-shadow var(--fast), opacity var(--fast);
  -webkit-user-select: none;
  user-select: none;
}
.btn:active{ transform: scale(.97); }

.btn--primary{
  background: var(--grad-brand);
  color: var(--paper);
  box-shadow: var(--glow-pink);
}
.btn--primary:disabled{
  opacity: .4;
  box-shadow: none;
  pointer-events: none;
}

.btn--ghost{
  background: var(--glass-bg);
  color: var(--paper);
  border: 1px solid var(--glass-border);
}
.btn--ghost:active{ background: var(--paper-10); }

.btn--block{ width: 100%; }
.btn--lg{ padding: 16px 22px; font-size: 16px; }
.btn--icon{ padding: 13px 16px; }

/* Effet ripple */
.btn .ripple{
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  transform: scale(0);
  animation: rippleAnim .6s ease-out;
  pointer-events: none;
}
@keyframes rippleAnim{
  to{ transform: scale(2.6); opacity: 0; }
}

/* ============================================================================
   08. PASTILLES / CHIPS
   ========================================================================= */
.pill{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--r-full);
  font-size: 12.5px;
  font-weight: 600;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--paper-75);
}
.pill--eyebrow .icon{ color: var(--pink); }

.chip-row{
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 18px;
}
.chip-row--scroll{
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-left: calc(var(--gutter) * -1);
  margin-right: calc(var(--gutter) * -1);
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.chip-row--scroll::-webkit-scrollbar{ display: none; }

.chip{
  flex-shrink: 0;
  padding: 9px 16px;
  border-radius: var(--r-full);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--paper-75);
  font-size: 13.5px;
  font-weight: 600;
  transition: all var(--fast) var(--ease);
  white-space: nowrap;
}
.chip.is-selected{
  background: var(--grad-brand);
  color: var(--paper);
  border-color: transparent;
  box-shadow: var(--glow-blue);
}
.chip:active{ transform: scale(.95); }

.chip-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}
.chip-grid .chip{
  width: 100%;
  text-align: center;
  padding: 12px 8px;
  white-space: normal;
  font-size: 13px;
}
.chip-grid--icons .chip-icon{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 6px;
  border-radius: var(--r-md);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--paper-75);
  font-size: 12.5px;
  font-weight: 600;
  transition: all var(--fast) var(--ease);
}
.chip-grid--icons .chip-icon span.emoji{ font-size: 20px; }
.chip-grid--icons .chip-icon.is-selected{
  background: var(--grad-brand-soft);
  border-color: var(--blue);
  color: var(--paper);
  box-shadow: var(--glow-blue);
}
.chip-grid--icons{ grid-template-columns: repeat(4, 1fr); }

.badge{
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.badge--blue{ background: rgba(0,229,255,.16); color: var(--blue); }
.badge--pink{ background: rgba(255,46,146,.16); color: var(--pink); }
.badge--outline{ background: transparent; border: 1px solid var(--paper-20); color: var(--paper-60); }

/* ============================================================================
   09. ACCUEIL — HERO & CARTES D'ACTION
   ========================================================================= */
.hero{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 0 20px;
}

/* Logo hero masqué par choix de design (le logo reste visible dans le header) */
.hero-logo{
  display: none;
}
.hero-logo__img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  transform: scale(1);
}
.hero-logo__fallback{
  display: none;
  width: 100%; height: 100%;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  gap: 1px;
  box-shadow: var(--shadow-soft);
}
.hero-logo--fallback .hero-logo__img{ display: none; }
.hero-logo--fallback .hero-logo__fallback{ display: flex; }

.hero-title {
  width: 100%;
  max-width: 100%;
  margin: 0;

  text-align: center;

  /* Style rétro / Vice City */
  font-family: Impact, "Arial Black", sans-serif;
  font-weight: 900;
  font-style: italic;

  font-size: clamp(42px, 11vw, 72px);
  line-height: 0.88;
  letter-spacing: -0.035em;

  text-transform: uppercase;

  color: #ffffff;
  -webkit-text-fill-color: #ffffff;

  /* Gros contour sombre */
  -webkit-text-stroke: 2.5px #080808;

  /* Relief + profondeur */
  text-shadow:
    3px 3px 0 #080808,
    6px 6px 0 #080808,
    0 12px 28px rgba(0, 0, 0, 0.45);

  animation: fadeInUp .6s var(--ease) both;
  animation-delay: .1s;
}
.hero-subtitle{
  width:100%;
  max-width:320px;

  text-align:center;

  margin:14px auto 0;

  color:rgba(255,255,255,.58);

  font-size:14px;
  line-height:1.5;
  font-weight:500;

  letter-spacing:-.01em;

  animation:fadeInUp .6s var(--ease) both;
  animation-delay:.16s;
}

.hero-visual{
  position: relative;
  width: 100%;
  max-width: 250px;
  margin: 35px auto 18px;
  animation: fadeInUp .7s var(--ease) both;
  animation-delay: .22s;
}

.hero-visual__glow{
  position: absolute;
  inset: 10% 10%;
  background: var(--grad-brand);
  filter: blur(50px);
  opacity: .5;
  border-radius: 50%;
}

.iphone-wrap{
  position:relative;
  width:100%;
  animation: floatSlow 5.5s ease-in-out infinite;
}

/* Reflet façon "sol studio" sous l'appareil, pour ancrer le visuel */
.iphone-wrap::after{
  content: "";
  position: absolute;
  left: 50%;
  bottom: -14px;
  width: 62%;
  height: 22px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(0,0,0,.55), transparent 72%);
  filter: blur(4px);
  z-index: -1;
}

.hero-visual__device{
  position: relative;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 34px rgba(0,0,0,.55)) drop-shadow(0 2px 0 rgba(255,255,255,.04));
}

.hero-stats{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
  margin-top: 22px;
  animation: fadeInUp .7s var(--ease) both;
  animation-delay: .3s;
}
.stat{
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 6px;
  border-radius: var(--r-md);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
}
.stat strong{
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
}
.stat span{
  font-size: 10.5px;
  color: var(--paper-60);
  line-height: 1.3;
}

.action-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.action-card{
  position:relative;

  display:flex;
  align-items:center;
  gap:14px;

  width:100%;
  padding:16px;

  border-radius:22px;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.09) 0%,
      rgba(255,255,255,.03) 100%
    );

  border:1px solid rgba(255,255,255,.09);

  backdrop-filter:blur(24px);
  -webkit-backdrop-filter:blur(24px);

  box-shadow:
    0 1px 0 rgba(255,255,255,.06) inset,
    0 14px 34px rgba(0,0,0,.28),
    0 2px 6px rgba(0,0,0,.22);

  text-align:left;
  overflow:hidden;

  opacity:0;

  animation:cardIn .55s var(--ease) both;
  animation-delay:calc(var(--d) * 70ms + 120ms);

  transition:
    transform .25s var(--ease),
    border-color .25s ease,
    background .25s ease,
    box-shadow .25s ease;
}
.action-card::before{
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-brand-soft);
  opacity: 0;
  transition: opacity var(--med);
}
.action-card:active{ transform: scale(.97); border-color: var(--paper-20); }
.action-card:active::before{ opacity: 1; }

@media (hover: hover){
  .action-card:hover{
    border-color: rgba(255,255,255,.16);
    box-shadow:
      0 1px 0 rgba(255,255,255,.08) inset,
      0 18px 40px rgba(0,0,0,.34),
      0 2px 6px rgba(0,0,0,.24);
  }
}

.action-card__icon{
  position: relative;
  z-index: 1;
  font-size: 24px;
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  background:
    linear-gradient(155deg, rgba(0,229,255,.20), rgba(255,46,146,.14)),
    var(--surface-2);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 1px 0 rgba(255,255,255,.05) inset;
}
.action-card__body{
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.action-card__title{ font-size: 15.5px; font-weight: 700; }
.action-card__desc{ font-size: 12.5px; color: var(--paper-60); }
.action-card__arrow{
  position: relative;
  z-index: 1;
  color: var(--paper-40);
  transition: transform var(--fast) var(--ease);
}
.action-card:active .action-card__arrow{ transform: translateX(3px); color: var(--blue); }

.trust-strip{
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 28px;
  padding: 18px 14px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0));
  border: 1px solid var(--paper-06);
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset;
}
.trust-strip__item{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  color: var(--paper-60);
  text-align: center;
  flex: 1;
}
.trust-strip__item .icon{
  width: 30px;
  height: 30px;
  padding: 7px;
  color: var(--blue);
  background: rgba(0,229,255,.10);
  border-radius: 50%;
}

/* ============================================================================
   10. CARTES PRODUIT & ACCESSOIRES
   Une seule source de vérité par élément (générées par buildProductCard() en JS,
   partagée entre Boutique, Accessoires et la recherche).
   ========================================================================= */
.product-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.product-card{
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 14px;

  border-radius: 26px;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.12) 0%,
      rgba(255,255,255,.055) 45%,
      rgba(255,255,255,.025) 100%
    );

  border: 1px solid rgba(255,255,255,.13);

  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);

  box-shadow:
    0 1px 0 rgba(255,255,255,.10) inset,
    0 16px 38px rgba(0,0,0,.42),
    0 3px 8px rgba(0,0,0,.28);

  transition:
    transform .25s var(--ease),
    border-color .25s ease,
    box-shadow .25s ease;

  display: flex;
  flex-direction: column;
}

.product-card::before{
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  top: -60px;
  right: -60px;
  background: var(--grad-brand);
  filter: blur(50px);
  opacity: .15;
  pointer-events: none;
}

.product-card:active{ transform: scale(.97); }

@media (hover: hover){
  .product-card:hover{
    border-color: rgba(255,255,255,.20);
    box-shadow:
      0 1px 0 rgba(255,255,255,.12) inset,
      0 20px 44px rgba(0,0,0,.48),
      0 3px 8px rgba(0,0,0,.3);
  }
}

.product-card__image{
  width: 100%;
  height: 150px;
  margin: 0 auto;
  padding: 6px;

  object-fit: contain;
  border-radius: 20px;

  background:
    radial-gradient(
      circle at 50% 30%,
      rgba(255,255,255,.13),
      rgba(255,255,255,.02) 70%
    );

  border: 1px solid rgba(255,255,255,.09);
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 8px 18px rgba(0,0,0,.22) inset;
}

.product-card__image.accessoire-image{
  height: 120px;
  padding: 10px;
}

.product-card__body{
  padding-top: 8px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card__body h3{
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  margin: 0;
  letter-spacing: -.01em;
}

.product-card__specs{
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
  max-height: 28px;
  overflow: hidden;
}
.product-card__specs span{
  padding: 3px 7px;
  font-size: 9px;
  white-space: nowrap;
  border-radius: var(--r-full);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--paper-75);
}

.product-card__bottom{
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-card__bottom strong{
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -.01em;
  background: linear-gradient(90deg, var(--blue), var(--pink));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.product-card__actions{
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

/* "Voir" reste discret : le vrai CTA (Ajouter) doit ressortir seul */
.product-card__actions .product-btn{
  flex: 1;
  padding: 8px 10px;
  font-size: 11px;
  background: transparent;
  color: var(--paper-75);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: none;
}
.product-card__actions .product-btn:active{
  background: var(--paper-06);
}

.cart-btn{
  width: auto;
  min-width: 90px;
  height: 34px;
  padding: 0 12px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;

  white-space: nowrap;

  border-radius: 999px;
  border: none;

  background: linear-gradient(90deg, var(--blue), var(--pink));

  color: white;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;

  box-shadow: 0 8px 20px rgba(0,229,255,.25);
}

/* ============================================================================
   11. FORMULAIRES & CHAMPS
   ========================================================================= */
.form-block{ margin-bottom: 20px; }
.form-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-row .form-block{ margin-bottom: 0; }

.form-label{
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--paper-75);
  margin-bottom: 9px;
}

.input{
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--paper-08);
  color: var(--paper);
  font-size: 15px;
  transition: border-color var(--fast), background var(--fast);
  appearance: none;
  -webkit-appearance: none;
}
.input::placeholder{ color: var(--paper-40); }
.input:focus{
  outline: none;
  border-color: var(--blue);
  background: var(--surface-2);
}

.select-wrap{ position: relative; }
.select-wrap select{ padding-right: 42px; }
.select-wrap__chevron{
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--paper-40);
  pointer-events: none;
}

.search-row{
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.search-row .input{ flex: 1; }

/* ============================================================================
   12. RÉPARATION
   ========================================================================= */
.estimate-card{
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--paper-08);
  padding: 18px;
  margin-top: 22px;
  animation: fadeInUp var(--med) var(--ease) both;
  position: relative;
  overflow: hidden;
}
.estimate-card::before{
  content: "";
  position: absolute;
  top: -40%; right: -20%;
  width: 60%; height: 140%;
  background: var(--grad-brand);
  opacity: .10;
  filter: blur(40px);
}
.estimate-card__head{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--paper-60);
  margin-bottom: 14px;
}
.estimate-row{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  border-top: 1px solid var(--paper-06);
  font-size: 14px;
}
.estimate-row:first-of-type{ border-top: none; }
.estimate-row strong{ font-size: 15.5px; font-family: var(--font-display); }
.estimate-card .btn{ margin-top: 16px; position: relative; }

.repair-card {
  padding: 18px;
  border-radius: var(--r-lg);
  background: var(--grad-brand-soft);
  border: 1px solid rgba(0,229,255,.3);
  margin-bottom: 20px;
}
.repair-card h3 { margin-bottom: 15px; }

.repair-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.repair-item {
  padding: 16px;
  border-radius: var(--r-md);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(var(--glass-blur));
}
.repair-item span { font-weight: 700; }
.repair-item strong { color: var(--blue); }

/* ============================================================================
   13. RACHAT — WIZARD & STEPPER
   ========================================================================= */
.stepper{
  display: flex;
  gap: 5px;
  margin-bottom: 20px;
}
.stepper__dot{
  flex: 1;
  height: 4px;
  border-radius: var(--r-full);
  background: var(--paper-08);
  overflow: hidden;
}
.stepper__dot i{
  display: block;
  height: 100%;
  width: 0%;
  background: var(--grad-brand);
  transition: width var(--med) var(--ease);
}
.stepper__dot.is-done i,
.stepper__dot.is-active i{ width: 100%; }

.wizard-card{
  border-radius: var(--r-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 20px 18px;
}

.wizard-question__title{
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 4px;
  font-family: var(--font-display);
}
.wizard-question__hint{
  font-size: 12.5px;
  color: var(--paper-60);
  margin: 0 0 16px;
}

.option-tiles{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.option-tiles--list{ grid-template-columns: 1fr; }

.option-tile{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1.5px solid var(--paper-08);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--paper-75);
  transition: all var(--fast) var(--ease);
  text-align: left;
}
.option-tile__check{
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--paper-20);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  transition: all var(--fast);
}
.option-tile__check .icon{ width: 11px; height: 11px; opacity: 0; transform: scale(.5); transition: all var(--fast); }
.option-tile.is-selected{
  border-color: var(--blue);
  background: var(--grad-brand-soft);
  color: var(--paper);
}
.option-tile.is-selected .option-tile__check{ background: var(--grad-brand); border-color: transparent; }
.option-tile.is-selected .option-tile__check .icon{ opacity: 1; transform: scale(1); color: var(--paper); }

.wizard-nav{
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.wizard-nav .btn{ flex: 1; }

.upload-zone{
  border: 1.5px dashed var(--paper-20);
  border-radius: var(--r-md);
  padding: 26px 16px;
  text-align: center;
  color: var(--paper-60);
  font-size: 13px;
  cursor: pointer;
}
.upload-zone .icon{ color: var(--blue); margin-bottom: 8px; }
.upload-zone input{ display: none; }
.upload-preview{
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.upload-preview img{
  width: 56px; height: 56px;
  object-fit: cover;
  border-radius: var(--r-sm);
  border: 1px solid var(--paper-10);
}

.result-highlight{
  text-align: center;
  padding: 6px 0 10px;
}
.result-highlight span{
  display: block;
  font-size: 12px;
  color: var(--paper-60);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 8px;
}
.result-highlight strong{
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
}

/* ============================================================================
   14. RENDEZ-VOUS — CALENDRIER & RÉCAP
   ========================================================================= */
#btnConfirmBooking { margin-top: 25px; }

.recap-card{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--grad-brand-soft);
  border: 1px solid rgba(0,229,255,.3);
  font-size: 13px;
  margin-bottom: 20px;
  line-height: 1.5;
}
.recap-card strong{ display: block; font-size: 13.5px; margin-bottom: 2px; }

.calendar{
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--paper-08);
  padding: 16px;
}
.calendar__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.calendar__head strong{ font-size: 14.5px; font-family: var(--font-display); text-transform: capitalize; }
.calendar__nav{
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--paper-06);
  display: grid;
  place-items: center;
  border: none;
  color: var(--paper);
}
.calendar__nav:disabled{ opacity: .25; pointer-events: none; }

.calendar__weekdays, .calendar__grid{
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.calendar__weekdays{ margin-bottom: 6px; }
.calendar__weekdays span{
  text-align: center;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--paper-40);
}
.calendar__day{
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: transparent;
  border: none;
  color: var(--paper-75);
  font-size: 13px;
  font-weight: 600;
}
.calendar__day--muted{ visibility: hidden; }
.calendar__day--disabled{ color: var(--paper-20); pointer-events: none; }
.calendar__day--today{ box-shadow: inset 0 0 0 1.5px var(--paper-20); }
.calendar__day--selected{
  background: var(--grad-brand);
  color: var(--paper);
  box-shadow: var(--glow-blue);
}

/* ============================================================================
   15. SUIVI — TIMELINE
   ========================================================================= */
.timeline-card{
  border-radius: var(--r-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 20px 18px;
  margin-top: 18px;
  animation: fadeInUp var(--med) var(--ease) both;
}
.timeline-card__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.timeline-card__head strong{ font-family: var(--font-display); font-size: 16px; }

.timeline{ position: relative; padding-left: 6px; }
.timeline__step{
  position: relative;
  display: flex;
  gap: 14px;
  padding-bottom: 22px;
}
.timeline__step:last-child{ padding-bottom: 0; }
.timeline__step:last-child .timeline__line{ display: none; }

.timeline__dot{
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1.5px solid var(--paper-14);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  z-index: 1;
}
.timeline__dot .icon{ width: 13px; height: 13px; opacity: 0; }
.timeline__line{
  position: absolute;
  left: 13px;
  top: 26px;
  bottom: -22px;
  width: 2px;
  background: var(--paper-08);
}
.timeline__content{ padding-top: 3px; }
.timeline__label{ font-size: 14px; font-weight: 700; color: var(--paper-40); }
.timeline__date{ font-size: 11.5px; color: var(--paper-40); margin-top: 2px; }

.timeline__step.is-done .timeline__dot{ background: var(--grad-brand); border-color: transparent; }
.timeline__step.is-done .timeline__dot .icon{ opacity: 1; color: var(--paper); }
.timeline__step.is-done .timeline__line{ background: var(--grad-brand); }
.timeline__step.is-done .timeline__label{ color: var(--paper); }

.timeline__step.is-current .timeline__dot{
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0,229,255,.15);
  animation: pulseDot 1.8s ease-in-out infinite;
}
.timeline__step.is-current .timeline__label{ color: var(--paper); }
.timeline__step.is-current .timeline__date{ color: var(--blue); }

.empty-state{
  text-align: center;
  padding: 40px 16px;
  color: var(--paper-60);
}
.empty-state .icon{ width: 34px; height: 34px; color: var(--paper-20); margin-bottom: 10px; }
.empty-state strong{ display: block; color: var(--paper); font-size: 15px; margin-bottom: 4px; }
.empty-state p{ font-size: 13px; margin: 0; }

/* ============================================================================
   16. CONTACT
   ========================================================================= */
.contact-actions{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.contact-btn{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  border-radius: var(--r-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  font-size: 12px;
  font-weight: 600;
  transition: transform var(--fast) var(--ease), border-color var(--fast);
}
.contact-btn:active{ transform: scale(.95); border-color: var(--blue); }
.contact-btn .icon{ width: 22px; height: 22px; color: var(--blue); }
.contact-btn:nth-child(2) .icon{ color: var(--pink); }

.map-frame{
  width: 100%;
  height: 190px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--paper-08);
  filter: grayscale(.3) contrast(1.05) brightness(.9);
}
.map-frame iframe{ width: 100%; height: 100%; }

.map-note{
  font-size: 11px;
  color: var(--paper-40);
  margin: 8px 2px 20px;
  line-height: 1.5;
}

.hours-card{
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--paper-08);
  padding: 6px 16px;
}
.hours-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid var(--paper-06);
  font-size: 13.5px;
}
.hours-row:first-child{ border-top: none; }
.hours-row span:first-child{ color: var(--paper-75); font-weight: 600; }
.hours-row span:last-child{ color: var(--paper-60); }
.hours-row.is-today span:first-child{ color: var(--paper); }
.hours-row.is-today span:last-child{ color: var(--blue); font-weight: 700; }

/* ============================================================================
   17. FOOTER
   ========================================================================= */
.app-footer{
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  padding: 30px var(--gutter) calc(var(--dock-h) + 26px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--paper-06);
}
.app-footer__brand{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.app-footer__mark{
  width: 42px; height: 42px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--grad-brand);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.app-footer__img{ width: 100%; height: 100%; object-fit: cover; }
.app-footer__fallback{
  display: none;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
}
.app-footer__mark.is-fallback .app-footer__img{ display: none; }
.app-footer__mark.is-fallback .app-footer__fallback{ display: block; }
.app-footer__brand div{ display: flex; flex-direction: column; gap: 1px; }
.app-footer__brand strong{ font-family: var(--font-display); font-size: 15px; }
.app-footer__brand span{ font-size: 12px; color: var(--paper-60); }

.app-footer__social{
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
}
.app-footer__social a{
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  transition: transform var(--fast), border-color var(--fast);
}
.app-footer__social a:active{ transform: scale(.9); border-color: var(--blue); }

.app-footer__legal{
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--paper-40);
}
.app-footer__admin{
  background: none;
  border: none;
  color: var(--paper-20);
  font-size: 11px;
  text-decoration: underline;
  padding: 4px;
}

/* ============================================================================
   18. DOCK — NAVIGATION FLOTTANTE (signature Dynamic Island)
   ========================================================================= */
.dock{
  position:fixed;

  left:50%;
  bottom:calc(14px + env(safe-area-inset-bottom));

  transform:translateX(-50%);

  width:calc(100% - 28px);
  max-width:420px;

  display:flex;
  justify-content:space-between;

  padding:7px;

  border-radius:28px;

  background:
    rgba(12,12,15,.82);

  border:1px solid rgba(255,255,255,.10);

  backdrop-filter:blur(28px) saturate(140%);
  -webkit-backdrop-filter:blur(28px) saturate(140%);

  box-shadow:
    0 18px 50px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,255,255,.05);

  z-index:50;
}
.dock__item{
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: none;
  border: none;
  color: var(--paper-40);
  padding: 9px 4px;
  border-radius: var(--r-full);
  font-size: 9.5px;
  font-weight: 600;
  transition: all var(--med) var(--ease);
}
.dock__item .icon{ width: 19px; height: 19px; transition: transform var(--med) var(--ease); }
.dock__emoji{ font-size: 17px; line-height: 19px; filter: grayscale(1) opacity(.55); transition: filter var(--med); }

.dock__item.is-active{
  color: var(--paper);
  background: var(--paper-08);
}
.dock__item.is-active .icon{ color: var(--blue); transform: translateY(-1px); }
.dock__item.is-active .dock__emoji{ filter: none; transform: translateY(-1px); }

/* Badge Panier Dock/Header */
.cart-icon {
  position: relative;
  display: inline-flex;
}
.cart-badge {
  position: absolute;
  top: -9px;
  right: -12px;
  min-width: 20px;
  height: 20px;
  background: #ff3b30;
  color: white;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #000;
}

/* ============================================================================
   19. PANIER & FICHE PRODUIT APPLE
   ========================================================================= */
#panierList, #panierTotal {
  padding: 20px 0;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  margin-bottom: 14px;
  background: var(--surface);
  border: 1px solid var(--paper-08);
  border-radius: var(--r-lg);
  box-shadow: 0 8px 25px rgba(0,0,0,.35);
  transition: .25s ease;
}
.cart-item:hover {
  transform: translateY(-2px);
  border-color: rgba(0,229,255,.35);
  box-shadow: 0 10px 30px rgba(0,229,255,.15);
}
.cart-item img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  background: var(--surface-2);
  border-radius: var(--r-md);
  padding: 8px;
}
.cart-item__content { flex: 1; }
.cart-item h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.cart-item__content span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--paper-60);
}
.cart-item strong {
  display: block;
  margin-top: 8px;
  font-size: 18px;
  font-weight: 800;
  color: var(--blue);
}

.remove-cart {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--surface-2);
  color: #fff;
  cursor: pointer;
  transition: .25s;
}
.remove-cart:hover {
  background: #ff3b30;
  color: #fff;
  transform: scale(1.08);
}

.cart-quantity {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.cart-quantity button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: var(--surface-2);
  color: white;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.cart-quantity span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--paper-10);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

/* Page détail produit */
.product-page {
  padding: 20px;
  max-width: 520px;
  margin: 10px auto;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0) 40%), var(--surface);
  border-radius: 28px;
  border: 1px solid var(--paper-08);
  box-shadow: 0 20px 50px rgba(0,0,0,.4);
  color: white;
}
.product-page .btn {
  width: 100%;
  height: 52px;
  border-radius: var(--r-md);
  font-size: 16px;
  font-weight: 700;
  margin-top: 12px;
}
.product-page__image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background:
    radial-gradient(circle at 50% 38%, rgba(0,229,255,.10), transparent 60%),
    linear-gradient(145deg, var(--surface-2), #1c1c1e);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 24px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 0 rgba(255,255,255,.05) inset;
}
.product-page h1 {
  font-size: 28px;
  letter-spacing: -0.5px;
  font-weight: 800;
  margin: 0 0 8px;
  color: white;
}
.product-page__badge{
  display: inline-flex;
  padding: 5px 12px;
  border-radius: var(--r-full);
  background: var(--grad-brand-soft);
  border: 1px solid rgba(0,229,255,.3);
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 12px;
}
.product-page__price {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -.02em;
  background: linear-gradient(90deg, var(--blue), var(--pink));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
}
.product-page__info { margin: 15px 0; }
.product-page__description h3{
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--paper-60);
  font-weight: 700;
  margin-bottom: 8px;
}
.product-page__description p{
  color: var(--paper-75);
  line-height: 1.6;
  font-size: 14.5px;
}
.product-page__specs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.product-page__specs span {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: var(--surface-2);
  color: white;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 600;
}

/* Barre d'action flottante en bas, façon Apple Store, au-dessus du dock */
.product-page__buttons {
  position: sticky;
  bottom: calc(var(--dock-h) + 14px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
  padding: 12px;
  border-radius: var(--r-lg);
  background: rgba(15,16,20,.78);
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 12px 30px rgba(0,0,0,.4);
}
.product-page__buttons .btn{ margin-top: 0; }

.accessoire-detail-image {
  width: 75%;
  max-height: 350px;
  margin: auto;
  display: block;
  object-fit: contain;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--paper);
  cursor: pointer;
  margin-bottom: 16px;
  overflow: hidden;
  transition: transform var(--fast) var(--ease), background var(--fast), border-color var(--fast), box-shadow var(--fast);

  /* Cache le texte "← Retour" venant du HTML : on ne garde que la pastille */
  font-size: 0;
  line-height: 0;
  color: transparent;
}

/* Flèche dessinée en pur CSS (deux bordures + rotation), affichée par-dessus le texte caché */
.back-btn::before{
  content: "";
  display: block;
  width: 9px;
  height: 9px;
  border-left: 2px solid var(--paper);
  border-bottom: 2px solid var(--paper);
  transform: rotate(45deg) translateX(1px);
}

.back-btn:active{
  transform: scale(.9);
  background: var(--paper-10);
}

@media (hover: hover){
  .back-btn:hover{
    border-color: rgba(0,229,255,.4);
    box-shadow: 0 0 14px rgba(0,229,255,.22);
  }
}

/* ============================================================================
   20. SÉCURITÉ PAIEMENT STRIPE
   ========================================================================= */
.payment-security {
  margin-top: 20px;
  padding: 18px;
  background: var(--surface);
  color: white;
  border-radius: 20px;
  border: 1px solid var(--paper-08);
}
.security-title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 6px;
}
.payment-security p {
  color: var(--paper-60);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}
.security-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.security-items span {
  background: var(--surface-2);
  padding: 7px 12px;
  border-radius: var(--r-full);
  font-size: 11.5px;
  font-weight: 600;
}

/* ============================================================================
   21. ADMIN (BONUS)
   ========================================================================= */
.admin-login{
  max-width: 340px;
  margin: 10px auto 0;
  text-align: center;
}
.admin-login__icon{
  width: 60px; height: 60px;
  margin: 0 auto 20px;
  border-radius: var(--r-md);
  background: var(--grad-brand-soft);
  border: 1px solid rgba(0,229,255,.3);
  display: grid;
  place-items: center;
  color: var(--blue);
}
.admin-login .form-block{ text-align: left; }
.admin-login .tab-row{ margin-bottom: 22px; }
.account-name{ font-size: 17px; font-weight: 800; margin: 4px 0 2px; }
.account-email{ font-size: 13px; color: var(--paper-60); margin: 0 0 22px; }
.admin-note{ font-size: 12.5px; margin: 10px 0 0; }
.admin-note--error{ color: var(--pink); }
.admin-hint{ font-size: 12px; color: var(--paper-40); margin-top: 14px; }
.admin-hint code{
  background: var(--paper-08);
  padding: 2px 7px;
  border-radius: 5px;
  color: var(--paper-75);
  font-family: 'SF Mono', Menlo, monospace;
}

.admin-stats{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.admin-stat-card{
  padding: 14px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--paper-08);
}
.admin-stat-card strong{ display: block; font-family: var(--font-display); font-size: 22px; }
.admin-stat-card span{ font-size: 11.5px; color: var(--paper-60); }

.tab-row{
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-bottom: 16px;
}
.tab-row::-webkit-scrollbar{ display: none; }
.tab{
  flex-shrink: 0;
  padding: 9px 15px;
  border-radius: var(--r-full);
  background: var(--paper-06);
  border: none;
  color: var(--paper-60);
  font-size: 12.5px;
  font-weight: 700;
}
.tab.is-active{ background: var(--grad-brand); color: var(--paper); }

.admin-table{ display: flex; flex-direction: column; gap: 10px; }
.admin-row{
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--paper-08);
  padding: 13px 14px;
}
.admin-row__top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.admin-row__title{ font-size: 13.5px; font-weight: 700; }
.admin-row__meta{ font-size: 11.5px; color: var(--paper-60); line-height: 1.5; }
.admin-row__actions{
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.admin-row__actions button{
  flex: 1;
  padding: 8px;
  border-radius: var(--r-sm);
  border: 1px solid var(--paper-10);
  background: var(--paper-06);
  color: var(--paper-75);
  font-size: 11.5px;
  font-weight: 700;
}
.admin-row__actions button.danger{ color: var(--pink); border-color: rgba(255,46,146,.3); }
.admin-row__price-input{
  width: 90px;
  padding: 7px 9px;
  border-radius: 8px;
  border: 1px solid var(--paper-10);
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 700;
  text-align: right;
}

.status-pill{
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--r-full);
}
.status-pill--blue{ background: rgba(0,229,255,.16); color: var(--blue); }
.status-pill--pink{ background: rgba(255,46,146,.16); color: var(--pink); }
.status-pill--muted{ background: var(--paper-08); color: var(--paper-40); }

/* ============================================================================
   22. TOAST
   ========================================================================= */
.toast{
  position: fixed;
  left: 50%;
  bottom: calc(var(--dock-h) + 30px + env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(20px);
  max-width: calc(100% - 40px);
  padding: 13px 20px;
  border-radius: var(--r-full);
  background: var(--paper);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: var(--shadow-lift);
  opacity: 0;
  pointer-events: none;
  transition: all var(--med) var(--ease);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.toast.is-show{
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast .icon{ width: 16px; height: 16px; color: var(--blue); }

/* ============================================================================
   23. ANIMATIONS
   ========================================================================= */
@keyframes fadeInUp{
  from{ opacity: 0; transform: translateY(14px); }
  to{ opacity: 1; transform: translateY(0); }
}
@keyframes cardIn{
  from{ opacity: 0; transform: translateY(18px) scale(.97); }
  to{ opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes floatSlow{
  0%, 100%{ transform: translateY(0); }
  50%{ transform: translateY(-14px); }
}
@keyframes pulseDot{
  0%, 100%{ box-shadow: 0 0 0 4px rgba(0,229,255,.15); }
  50%{ box-shadow: 0 0 0 8px rgba(0,229,255,.05); }
}
@keyframes spin{
  to{ transform: rotate(360deg); }
}
.spin{ animation: spin 1s linear infinite; }

@keyframes shimmer{
  0%{ background-position: -200% 0; }
  100%{ background-position: 200% 0; }
}
.skeleton{
  background: linear-gradient(90deg, var(--paper-04) 25%, var(--paper-10) 37%, var(--paper-04) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.6s ease infinite;
  border-radius: var(--r-sm);
}

/* ============================================================================
   24. RESPONSIVE
   ========================================================================= */
@media (min-width: 481px){
  body{ background: linear-gradient(160deg, #050506, #0a0a0c); }
  #app{ box-shadow: 0 0 80px rgba(0,0,0,.6); }
}

@media (max-width: 380px){
  :root{ --gutter: 16px; }
  .hero-title{ font-size: 38px; }
  .action-card__icon{ width: 44px; height: 44px; font-size: 22px; }
  .contact-actions{ gap: 8px; }
  .product-grid{ gap: 9px; }
}

@media (max-width: 340px){
  .chip-grid{ grid-template-columns: repeat(2, 1fr); }
  .chip-grid--icons{ grid-template-columns: repeat(3, 1fr); }
  .form-row{ grid-template-columns: 1fr; }
}

/* ============================================================================
   25. ACCESSIBILITÉ & SCROLLBAR
   ========================================================================= */
:focus-visible{
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

::-webkit-scrollbar{ width: 6px; height: 6px; }
::-webkit-scrollbar-track{ background: transparent; }
::-webkit-scrollbar-thumb{ background: var(--paper-14); border-radius: var(--r-full); }

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .bg-glow--pink{ animation: none; }
}
.pill--eyebrow {
  display: none !important;
}
