/* ========================================================
   iPhone & Gaming Store - Style CSS Lumineux & Épuré
   Design Apple Store Lumineux (Light Theme)
   Palette : Blanc #ffffff, Gris Apple #f5f5f7 / #fbfbfd,
   Bleu Apple #0071e3, Titres sombres #1d1d1f, Bordures #e5e5ea
   ======================================================== */

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

:root {
  --bg-main: #fbfbfd;
  --bg-surface: #f5f5f7;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.9);
  --bg-glass-light: rgba(0, 0, 0, 0.03);
  --text-primary: #1d1d1f;
  --text-secondary: #515154;
  --text-muted: #86868b;
  --accent-apple: #0071e3;
  --accent-apple-hover: #0077ed;
  --accent-cyan: #0071e3;
  --accent-glow: rgba(0, 113, 227, 0.18);
  --accent-success: #28a745;
  --accent-warning: #f59e0b;
  --accent-danger: #e11d48;
  --accent-occasion: #6366f1;
  --border-subtle: #e5e5ea;
  --border-focus: #0071e3;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-card-hover: 0 12px 32px rgba(0, 0, 0, 0.09);
  --shadow-glow: 0 0 20px rgba(0, 113, 227, 0.2);
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

button, input, select, textarea {
  font-family: inherit;
}

/* Utilitaires */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-gradient {
  background: linear-gradient(135deg, #1d1d1f 30%, #0071e3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-apple {
  background: rgba(0, 113, 227, 0.1);
  color: #0071e3;
  border: 1px solid rgba(0, 113, 227, 0.25);
}

.badge-promo {
  background: rgba(225, 29, 72, 0.1);
  color: #e11d48;
  border: 1px solid rgba(225, 29, 72, 0.25);
}

.badge-stock {
  background: rgba(40, 167, 69, 0.1);
  color: #28a745;
  border: 1px solid rgba(40, 167, 69, 0.25);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.badge-occasion {
  background: rgba(99, 102, 241, 0.12);
  color: #4f46e5;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  outline: none;
  transition: all var(--transition-normal);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-apple);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 113, 227, 0.28);
}

.btn-primary:hover {
  background: var(--accent-apple-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 113, 227, 0.4);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.btn-secondary:hover {
  background: var(--bg-surface);
  border-color: #d2d2d7;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--accent-apple);
  border: 1.5px solid var(--accent-apple);
}

.btn-outline:hover {
  background: rgba(0, 113, 227, 0.08);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 15px 34px;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

/* ========================================================
   TOP BAR & HEADER LUMINEUX
   ======================================================== */
.top-bar {
  background: #f5f5f7;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-secondary);
  padding: 7px 0;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.top-bar-announcement {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
  color: var(--text-primary);
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 2px 4px;
  gap: 2px;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.lang-btn.active {
  background: var(--accent-apple);
  color: #ffffff;
}

.lang-btn:hover:not(.active) {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.05);
}

/* Main Header */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease-in-out;
}

.main-header.scrolled {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #0071e3, #2997ff);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}

.logo-text span {
  color: var(--accent-apple);
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 22px;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-apple);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-apple);
  transition: width var(--transition-normal);
  border-radius: 2px;
}

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

.header-search {
  flex: 1;
  max-width: 300px;
  position: relative;
}

.header-search form {
  position: relative;
  width: 100%;
}

.header-search input {
  width: 100%;
  background: #f5f5f7;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 9px 18px 9px 38px;
  color: var(--text-primary);
  font-size: 0.88rem;
  outline: none;
  transition: all var(--transition-fast);
}

.header-search input:focus {
  background: #ffffff;
  border-color: var(--accent-apple);
  box-shadow: 0 0 12px rgba(0, 113, 227, 0.2);
}

.header-search .search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 44px;
  height: 44px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  color: var(--text-primary);
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.cart-btn:hover {
  background: var(--bg-surface);
  transform: scale(1.05);
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent-apple);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 113, 227, 0.4);
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ========================================================
   HERO SLIDER ANIMÉ LUMINEUX
   ======================================================== */
.hero-slider-container {
  position: relative;
  width: 100%;
  height: 620px;
  overflow: hidden;
  background: #f5f5f7;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 10;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.82) 55%, rgba(255, 255, 255, 0.35) 100%);
  z-index: 1;
}

.slide-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  padding: 40px 0;
}

.slide-badge {
  margin-bottom: 16px;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.6s ease 0.2s;
}

.slide-title {
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  color: #1d1d1f;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.7s ease 0.3s;
}

.slide-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 32px;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.7s ease 0.4s;
}

.slide-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.7s ease 0.5s;
}

.slide.active .slide-badge,
.slide.active .slide-title,
.slide.active .slide-subtitle,
.slide.active .slide-actions {
  transform: translateY(0);
  opacity: 1;
}

/* Slide Gaming avec Manette en Arrière-plan */
.slide-gaming {
  background-position: center right !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

.slide-gaming .slide-overlay {
  background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.92) 40%, rgba(255, 255, 255, 0.45) 75%, rgba(255, 255, 255, 0.1) 100%);
}

.slide-controller-showcase {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 420px;
  animation: floatController 4s ease-in-out infinite;
}

.slide-controller-img {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
  border: 4px solid #ffffff;
  transition: transform 0.3s ease;
}

.slide-controller-img:hover {
  transform: scale(1.03);
}

.controller-glass-pill {
  position: absolute;
  bottom: -12px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

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

@media (max-width: 900px) {
  .slide-controller-showcase {
    display: none;
  }
}

.slider-controls {
  position: absolute;
  bottom: 30px;
  right: 40px;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 20;
}

.slider-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all var(--transition-fast);
}

.slider-btn:hover {
  background: var(--accent-apple);
  color: #ffffff;
  border-color: var(--accent-apple);
  transform: scale(1.08);
}

.slider-dots {
  position: absolute;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 20;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.dot.active {
  width: 32px;
  background: var(--accent-apple);
}

/* ========================================================
   SECTIONS & GRILLES LUMINEUSES
   ======================================================== */
.section {
  padding: 70px 0;
}

.section-dark, .section-surface {
  background: var(--bg-surface);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 46px auto;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: #1d1d1f;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

/* Catégories Grid */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  transition: all var(--transition-normal);
  text-decoration: none;
  box-shadow: var(--shadow-card);
}

.category-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.85;
}

.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.95) 85%);
}

.category-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 113, 227, 0.4);
  box-shadow: var(--shadow-card-hover);
}

.category-card:hover .category-card-bg {
  transform: scale(1.08);
}

.category-card-content {
  position: relative;
  z-index: 2;
}

.category-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1d1d1f;
  margin-bottom: 4px;
}

.category-card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-apple);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Grille de Produits */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.product-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
  box-shadow: var(--shadow-card);
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 113, 227, 0.35);
  box-shadow: var(--shadow-card-hover);
}

.product-thumb {
  position: relative;
  width: 100%;
  height: 240px;
  background: #fbfbfd;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.product-thumb img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-thumb img {
  transform: scale(1.06);
}

.product-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 5;
}

.product-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  background: #ffffff;
}

.product-cat {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.product-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: #1d1d1f;
  margin-bottom: 8px;
  line-height: 1.35;
}

.product-title a:hover {
  color: var(--accent-apple);
}

.product-specs-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.spec-pill {
  font-size: 0.75rem;
  background: #f5f5f7;
  border: 1px solid var(--border-subtle);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

.product-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  gap: 12px;
}

.product-price-box {
  display: flex;
  flex-direction: column;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1d1d1f;
}

.product-old-price {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.add-cart-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-apple);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}

.add-cart-btn:hover {
  background: var(--accent-apple-hover);
  transform: scale(1.08);
}

/* Section Avantages */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-box {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px 22px;
  text-align: center;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-card);
}

.feature-box:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 113, 227, 0.35);
  box-shadow: var(--shadow-card-hover);
}

.feature-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: rgba(0, 113, 227, 0.08);
  color: var(--accent-apple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 18px auto;
  border: 1px solid rgba(0, 113, 227, 0.2);
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1d1d1f;
}

.feature-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ========================================================
   PAGE BOUTIQUE & FILTRES LUMINEUX
   ======================================================== */
.shop-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
}

.shop-sidebar {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  height: fit-content;
  position: sticky;
  top: 96px;
  box-shadow: var(--shadow-card);
}

.filter-group {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.filter-group:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.filter-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1d1d1f;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.filter-link:hover, .filter-link.active {
  background: rgba(0, 113, 227, 0.08);
  color: var(--accent-apple);
  font-weight: 600;
}

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
  gap: 16px;
  box-shadow: var(--shadow-card);
}

.shop-select {
  background: #ffffff;
  border: 1px solid #d2d2d7;
  border-radius: var(--radius-pill);
  color: var(--text-primary);
  padding: 8px 16px;
  font-size: 0.88rem;
  outline: none;
  cursor: pointer;
}

/* ========================================================
   PAGE PRODUIT DÉTAIL
   ======================================================== */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.product-gallery {
  position: sticky;
  top: 96px;
}

.product-main-image {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
}

.product-main-image img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.product-thumbs {
  display: flex;
  gap: 12px;
}

.thumb-item {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 2px solid var(--border-subtle);
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.thumb-item.active, .thumb-item:hover {
  border-color: var(--accent-apple);
}

.product-info-panel {
  display: flex;
  flex-direction: column;
}

.product-detail-title {
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 14px;
  color: #1d1d1f;
}

.product-detail-price {
  font-size: 2rem;
  font-weight: 800;
  color: #1d1d1f;
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 22px;
}

.spec-selector-group {
  margin-bottom: 22px;
}

.spec-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 10px;
  display: block;
}

.spec-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.spec-option-btn {
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  background: #ffffff;
  border: 1px solid #d2d2d7;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.spec-option-btn.active, .spec-option-btn:hover {
  background: var(--accent-apple);
  color: #ffffff;
  border-color: var(--accent-apple);
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}

.color-option-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px #d2d2d7;
  cursor: pointer;
  transition: transform var(--transition-fast);
  position: relative;
}

.color-option-btn.active {
  transform: scale(1.15);
  box-shadow: 0 0 0 2px var(--accent-apple);
}

.battery-badge-card {
  background: rgba(40, 167, 69, 0.08);
  border: 1px solid rgba(40, 167, 69, 0.25);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.battery-badge-card i {
  font-size: 1.5rem;
  color: var(--accent-success);
}

.product-action-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #d2d2d7;
  border-radius: var(--radius-pill);
  padding: 4px;
}

.qty-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.qty-btn:hover {
  background: rgba(0, 0, 0, 0.06);
}

.qty-input {
  width: 44px;
  text-align: center;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1rem;
  outline: none;
}

.trust-badges-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 26px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.trust-item i {
  color: var(--accent-apple);
  font-size: 1.1rem;
}

/* ========================================================
   PANIER (CART)
   ======================================================== */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}

.cart-table-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
}

.cart-table th {
  text-align: left;
  padding: 16px 20px;
  background: #f5f5f7;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border-subtle);
}

.cart-table td {
  padding: 20px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.cart-item-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cart-item-img {
  width: 70px;
  height: 70px;
  background: #fbfbfd;
  border-radius: var(--radius-sm);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
}

.cart-item-img img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.cart-item-title {
  font-weight: 700;
  color: #1d1d1f;
  margin-bottom: 4px;
}

.cart-item-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.remove-btn {
  background: transparent;
  border: none;
  color: var(--accent-danger);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.remove-btn:hover {
  background: rgba(225, 29, 72, 0.1);
}

.cart-summary-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: sticky;
  top: 96px;
  box-shadow: var(--shadow-card);
}

.summary-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
  color: #1d1d1f;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.summary-row.total-row {
  font-size: 1.3rem;
  font-weight: 800;
  color: #1d1d1f;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  margin-top: 18px;
}

/* ========================================================
   CHECKOUT & PAIEMENT
   ======================================================== */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 36px;
  align-items: start;
}

.form-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.form-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #1d1d1f;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

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

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

.form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1d1d1f;
}

.form-input, .form-select, .form-textarea {
  background: #ffffff;
  border: 1px solid #d2d2d7;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: #1d1d1f;
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent-apple);
  box-shadow: 0 0 12px rgba(0, 113, 227, 0.2);
}

/* Choix Paiement */
.payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.payment-method-card {
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  background: #ffffff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-fast);
  text-align: center;
}

.payment-method-card:hover {
  border-color: rgba(0, 113, 227, 0.4);
}

.payment-method-card.active {
  border-color: var(--accent-apple);
  background: rgba(0, 113, 227, 0.05);
  box-shadow: 0 4px 14px rgba(0, 113, 227, 0.15);
}

.payment-icon-badge {
  font-size: 1.5rem;
  font-weight: 900;
}

/* ========================================================
   REÇU DE COMMANDE (RECEIPT)
   ======================================================== */
.receipt-wrapper {
  max-width: 780px;
  margin: 0 auto;
}

.receipt-card {
  background: #ffffff;
  color: #1d1d1f;
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-subtle);
  position: relative;
}

.receipt-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 24px;
  border-bottom: 2px dashed #e5e5ea;
  margin-bottom: 26px;
}

.receipt-brand {
  font-size: 1.4rem;
  font-weight: 900;
  color: #1d1d1f;
}

.receipt-number {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0071e3;
}

.receipt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 26px;
  font-size: 0.95rem;
}

.receipt-box {
  background: #f5f5f7;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.receipt-box-label {
  font-size: 0.78rem;
  color: #86868b;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.receipt-box-val {
  font-weight: 700;
  color: #1d1d1f;
}

.receipt-items-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 26px;
}

.receipt-items-table th {
  text-align: left;
  padding: 12px 14px;
  background: #f5f5f7;
  font-size: 0.8rem;
  color: #86868b;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-subtle);
}

.receipt-items-table td {
  padding: 14px;
  border-bottom: 1px solid #e5e5ea;
  font-size: 0.95rem;
}

.delivery-alert-box {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: var(--radius-md);
  padding: 20px;
  color: #166534;
  margin-top: 24px;
  text-align: center;
  font-weight: 600;
}

/* ========================================================
   ADMIN DASHBOARD
   ======================================================== */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 32px;
}

.stat-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-card);
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(0, 113, 227, 0.1);
  color: var(--accent-apple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.stat-val {
  font-size: 1.6rem;
  font-weight: 800;
  color: #1d1d1f;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

.admin-table th {
  padding: 16px 20px;
  background: #f5f5f7;
  text-align: left;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-subtle);
}

.admin-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

/* ========================================================
   FOOTER LUMINEUX
   ======================================================== */
.main-footer {
  background: #f5f5f7;
  border-top: 1px solid var(--border-subtle);
  padding-top: 60px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-col-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1d1d1f;
  margin-bottom: 18px;
}

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

.footer-link {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--accent-apple);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.footer-contact-item i {
  color: var(--accent-apple);
  margin-top: 3px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.newsletter-form input {
  flex: 1;
  background: #ffffff;
  border: 1px solid #d2d2d7;
  border-radius: var(--radius-pill);
  padding: 10px 16px;
  color: var(--text-primary);
  font-size: 0.88rem;
  outline: none;
}

.newsletter-form input:focus {
  border-color: var(--accent-apple);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: #1d1d1f;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  font-weight: 500;
  animation: slideInToast 0.3s ease forwards;
}

@keyframes slideInToast {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ========================================================
   RESPONSIVE MOBILE — Breakpoints complets
   ======================================================== */

/* ---- Tablette large 1024px ---- */
@media (max-width: 1024px) {
  .container {
    padding: 0 20px;
  }

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

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

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

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .shop-layout {
    grid-template-columns: 1fr;
  }

  .cart-layout {
    grid-template-columns: 1fr;
  }

  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .product-detail-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .product-gallery {
    position: static;
  }

  .section-title {
    font-size: 1.95rem;
  }

  .slide-title {
    font-size: 2.7rem;
  }

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

/* ---- Mobile 768px ---- */
@media (max-width: 768px) {
  /* Utilitaires */
  .container {
    padding: 0 16px;
  }

  .section {
    padding: 44px 0;
  }

  .section-title {
    font-size: 1.65rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  /* Top bar — masqué */
  .top-bar {
    display: none;
  }

  /* Navbar */
  .navbar {
    height: 60px;
    gap: 12px;
  }

  .logo {
    font-size: 1.1rem;
  }

  .logo-icon {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-surface);
    font-size: 1.2rem;
  }

  /* Menu mobile déroulant */
  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    padding: 20px 16px 24px;
    gap: 4px;
    border-bottom: 1px solid var(--border-subtle);
    display: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 999;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }

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

  .nav-link {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
  }

  .nav-link:hover, .nav-link.active {
    background: rgba(0, 113, 227, 0.06);
  }

  .nav-link::after {
    display: none;
  }

  /* Barre de recherche — cachée sur mobile (dans menu) */
  .header-search {
    display: none;
  }

  /* Hero Slider */
  .hero-slider-container {
    height: 420px;
  }

  .slide {
    padding: 0 16px;
  }

  .slide-content {
    max-width: 100%;
    padding: 32px 0;
  }

  .slide-title {
    font-size: 1.8rem;
    letter-spacing: -0.02em;
  }

  .slide-subtitle {
    font-size: 1rem;
    margin-bottom: 22px;
  }

  .slide-actions {
    flex-wrap: wrap;
    gap: 10px;
  }

  .slide-actions .btn {
    font-size: 0.88rem;
    padding: 11px 20px;
  }

  .slider-controls {
    bottom: 16px;
    right: 16px;
  }

  .slider-btn {
    width: 36px;
    height: 36px;
  }

  .slider-dots {
    bottom: 18px;
  }

  /* Catégories */
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .category-card {
    height: 200px;
    padding: 16px;
  }

  .category-card-title {
    font-size: 1rem;
  }

  /* Grille produits */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .product-thumb {
    height: 180px;
    padding: 12px;
  }

  .product-body {
    padding: 14px;
  }

  .product-title {
    font-size: 0.95rem;
  }

  .product-price {
    font-size: 1.05rem;
  }

  .add-cart-btn {
    width: 36px;
    height: 36px;
  }

  /* Features */
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .feature-box {
    padding: 20px 14px;
  }

  .feature-icon {
    width: 46px;
    height: 46px;
    font-size: 1.3rem;
  }

  .feature-title {
    font-size: 0.95rem;
  }

  /* Boutique — sidebar en haut pleine largeur */
  .shop-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .shop-sidebar {
    position: static;
    padding: 16px;
  }

  .shop-toolbar {
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 14px;
  }

  /* Détail produit */
  .product-detail-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .product-gallery {
    position: static;
  }

  .product-main-image {
    height: 300px;
    padding: 18px;
  }

  .product-detail-title {
    font-size: 1.6rem;
  }

  .product-detail-price {
    font-size: 1.5rem;
  }

  .product-action-row {
    flex-wrap: wrap;
    gap: 12px;
  }

  .product-action-row .btn {
    flex: 1;
    min-width: 140px;
  }

  /* Panier — table en mode cartes */
  .cart-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cart-summary-card {
    position: static;
  }

  /* Masquer en-têtes tableau panier + transformer en liste */
  .cart-table thead {
    display: none;
  }

  .cart-table, .cart-table tbody, .cart-table tr {
    display: block;
    width: 100%;
  }

  .cart-table tr {
    border-bottom: 2px solid var(--border-subtle);
    padding: 14px 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
  }

  .cart-table td {
    display: block;
    padding: 0;
    border: none;
    width: auto;
  }

  .cart-item-info {
    flex: 1 1 100%;
    gap: 12px;
  }

  .cart-item-img {
    width: 56px;
    height: 56px;
  }

  .cart-table td:nth-child(2),
  .cart-table td:nth-child(3) {
    flex: 1;
  }

  /* Checkout */
  .checkout-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .form-card {
    padding: 20px 16px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .payment-methods-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* Reçu */
  .receipt-card {
    padding: 20px 16px;
  }

  .receipt-header {
    flex-direction: column;
    gap: 10px;
  }

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

  /* Table reçu — scroll horizontal */
  .receipt-items-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .newsletter-form {
    flex-direction: column;
  }

  /* Boutons — permettre retour à la ligne */
  .btn {
    white-space: normal;
  }

  /* Statistiques admin */
  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Table admin — scroll horizontal */
  .admin-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-lg);
  }

  /* Toast */
  .toast-container {
    bottom: 12px;
    right: 12px;
    left: 12px;
  }

  .toast {
    font-size: 0.85rem;
    padding: 12px 16px;
  }
}

/* ---- Petit mobile 480px ---- */
@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }

  .section {
    padding: 32px 0;
  }

  .section-title {
    font-size: 1.45rem;
  }

  /* Hero encore plus compact */
  .hero-slider-container {
    height: 360px;
  }

  .slide-title {
    font-size: 1.5rem;
  }

  .slide-subtitle {
    font-size: 0.9rem;
  }

  /* Catégories — 1 colonne */
  .categories-grid {
    grid-template-columns: 1fr;
  }

  /* Produits — 1 colonne si très petit */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .product-thumb {
    height: 150px;
  }

  /* Features — 1 colonne */
  .features-grid {
    grid-template-columns: 1fr;
  }

  /* Admin stats — 1 colonne */
  .admin-stats-grid {
    grid-template-columns: 1fr;
  }

  /* Détail produit */
  .product-main-image {
    height: 240px;
  }

  .product-detail-title {
    font-size: 1.35rem;
  }

  .product-detail-price {
    font-size: 1.25rem;
  }

  /* Checkout form card */
  .form-card {
    padding: 16px 12px;
  }

  /* Navbar */
  .logo-text {
    display: none;
  }
}

/* ---- Très petit mobile 380px ---- */
@media (max-width: 380px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .slide-title {
    font-size: 1.3rem;
  }

  .btn-lg {
    padding: 13px 22px;
    font-size: 0.95rem;
  }
}

/* ---- Print ---- */
@media print {
  body {
    background: #ffffff !important;
  }
  .main-header, .top-bar, .main-footer, .no-print, .toast-container, #gdpr-cookie-banner {
    display: none !important;
  }
  .receipt-wrapper {
    max-width: 100% !important;
    margin: 0 !important;
  }
  .receipt-card {
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
  }
}

/* ========================================================
   BOUTONS COPIER & TOAST - Paiement virement / Suivi
   ======================================================== */

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--accent-apple);
  color: #ffffff;
  border: 2px solid var(--accent-apple);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  font-family: inherit;
}

.btn-copy:hover {
  background: var(--accent-apple-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}

.btn-copy:active {
  transform: translateY(0);
}

/* Toast "Copié !" */
.toast-copied {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: #0f172a;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  font-family: inherit;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  z-index: 9999;
}

.toast-copied.show {
  opacity: 1;
  transform: translateY(0);
}

