/**
 * BrakataShop - Styles Complets
 * Système de design glassmorphism avec boutons dégradés
 * Tous les styles pour index.html, cart.html, success.html, contact.html, about.html, terms.html, policy.html
 */

/* ========== VARIABLES GLOBALES ========== */
:root {
  /* Glassmorphism */
  --blur: 16px;
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-brd: rgba(255, 255, 255, 0.28);

  /* Couleurs */
  --text: #f5f7fa;
  --accent: #ffcc00;
  --danger: #ff4c4c;

  /* Boutons (dégradé moderne cyan → vert) */
  --btn-gradient-start: #00ff88;
  --btn-gradient-end: #00d9ff;

  /* Layout */
  --header-h: 64px;
  --nav-h: 60px;
  --menu-w: 280px;
}

/* ========== RESET ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  width: 100%;
}

body {
  font-family: System-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: #080a0d;
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.45;
}

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

/* ========== BACKGROUND ========== */
#bg-img {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -10;
  pointer-events: none;
}

/* Background image pour pages simples */
body {
  background: #080a0d url("../assets/brktabg.jpg") center/cover fixed;
}

/* ========== GLASSMORPHISM ========== */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
  border: 1px solid var(--glass-brd);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.3),
    inset 0 -1px 1px rgba(0, 0, 0, 0.25);
}

.glass-pill {
  border-radius: 9999px;
}

.glass-card {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.glass-tabs {
  position: relative;
  padding: 0.4rem;
}

/* ========== SYSTÈME DE BOUTONS NORMALISÉ ========== */

/* Bouton principal - Dégradé cyan → vert néon */
.btn-primary,
.buy-btn {
  padding: 0.9rem 1.6rem;
  border: none;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--btn-gradient-start) 0%, var(--btn-gradient-end) 100%);
  color: #000;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
  box-shadow: 0 4px 16px rgba(0, 217, 255, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  text-align: center;
  text-decoration: none;
}

.btn-primary:hover,
.buy-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.btn-primary:active,
.buy-btn:active {
  filter: brightness(0.96);
  transform: translateY(0);
}

.btn-primary:focus-visible,
.buy-btn:focus-visible {
  outline: 2px solid rgba(0, 255, 136, 0.6);
  outline-offset: 2px;
}

.btn-primary:disabled,
.buy-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(0.3);
}

/* Animation d'ajout au panier */
.buy-btn.animating {
  animation: buttonPulse 0.6s ease;
}

.buy-btn.added {
  background: linear-gradient(135deg, #4ade80, #22c55e);
}

@keyframes buttonPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Bouton secondaire - Style ghost translucide */
.btn-ghost,
.buy-now-btn,
.more-btn {
  padding: 0.9rem 1.6rem;
  border: 1px solid var(--glass-brd);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  text-align: center;
  text-decoration: none;
}

.btn-ghost:hover,
.buy-now-btn:hover,
.more-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

.btn-ghost:active,
.buy-now-btn:active,
.more-btn:active {
  transform: translateY(0);
}

.btn-ghost:focus-visible,
.buy-now-btn:focus-visible,
.more-btn:focus-visible {
  outline: 2px solid var(--glass-brd);
  outline-offset: 2px;
}

.btn-ghost:disabled,
.buy-now-btn:disabled,
.more-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Bouton danger */
.btn-danger {
  padding: 0.6rem 1.2rem;
  border: 1px solid rgba(255, 76, 76, 0.5);
  border-radius: 9999px;
  background: rgba(255, 76, 76, 0.15);
  color: #ff6b6b;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-danger:hover {
  background: rgba(255, 76, 76, 0.25);
  border-color: rgba(255, 76, 76, 0.7);
  transform: translateY(-1px);
}

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

/* Boutons sociaux - variant plus discret */
.tiktok-btn,
.youtube-btn {
  padding: 0.75rem 1.4rem;
  font-size: 0.9rem;
  opacity: 0.85;
}

.tiktok-btn:hover,
.youtube-btn:hover {
  opacity: 1;
}

/* Boutons spécifiques */
.buy-btn,
.checkout-btn {
  width: 100%;
}

.remove-btn {
  padding: 0.5rem 1rem;
}

.back-btn {
  margin-top: 2rem;
  display: inline-block;
}

/* Bouton simple (pages success/cancel) */
.btn {
  display: inline-block;
  margin-top: 1rem;
  background: linear-gradient(135deg, var(--btn-gradient-start) 0%, var(--btn-gradient-end) 100%);
  color: #000;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.8rem 1.6rem;
  transition: filter 0.15s ease, transform 0.15s ease;
  box-shadow: 0 4px 16px rgba(0, 217, 255, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

/* Groupes de boutons */
.btn-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

/* ========== HEADER ========== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 2rem;
  z-index: 100;
}

header.glass {
  border-bottom: 1px solid var(--glass-brd);
}

.logo {
  height: 128px;
  width: auto;
  object-fit: contain;
}

.icon {
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.8rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.icon:hover {
  transform: scale(1.1);
}

.spacer {
  flex: 1;
}

/* ========== CART ICON + BADGE ========== */
.cart-icon {
  position: relative;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: background 0.2s ease, transform 0.2s ease;
}

.cart-icon svg {
  width: 28px;
  height: 28px;
  display: block;
}

.cart-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.cart-count {
  position: absolute;
  top: 0;
  right: 0;
  background: linear-gradient(135deg, #ff0080, #ff4040);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 8px rgba(255, 0, 128, 0.4);
}

/* Animations pour le panier */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px) rotate(-5deg); }
  75% { transform: translateX(5px) rotate(5deg); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

.cart-icon.shake {
  animation: shake 0.5s ease;
}

.cart-count.pulse {
  animation: pulse 0.5s ease;
}

/* ========== OVERLAY + SIDE MENU ========== */
#overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#overlay.active {
  opacity: 1;
  pointer-events: all;
}

#sideMenu {
  position: fixed;
  top: 0;
  right: 0;
  width: var(--menu-w);
  height: 100vh;
  padding: 2rem 1.5rem;
  z-index: 95;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

#sideMenu.open {
  transform: translateX(0);
}

#sideMenu .close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--glass-brd);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

#sideMenu .close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

#sideMenu nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

#sideMenu nav h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

#sideMenu nav a {
  padding: 0.9rem 1.2rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
  font-size: 1rem;
  font-weight: 500;
}

#sideMenu nav a:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateX(4px);
}

/* ========== NAVIGATION TABS ========== */
.nav-wrapper {
  position: fixed;
  top: var(--header-h);
  left: 0;
  width: 100%;
  z-index: 80;
  display: flex;
  justify-content: center;
  padding: 0.5rem 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-wrapper.hide {
  opacity: 0;
  pointer-events: none;
}

#navTabs {
  display: flex;
  align-items: center;
  max-width: 620px;
  width: 100%;
  height: 46px;
  padding: 0;
  position: relative;
  pointer-events: auto;
}

#navTabs a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0;
  transition: opacity 0.2s;
  color: var(--text);
  opacity: 0.6;
  white-space: nowrap;
  position: relative;
  z-index: 2;
}

#navTabs a:hover {
  opacity: 0.9;
}

#navTabs a.active {
  opacity: 1;
}

#navTabs .indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 33.333%;
  height: 100%;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(var(--blur));
  border-radius: inherit;
  z-index: 1;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== SOCIAL PILL ========== */
#social-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.8rem 1.2rem;
  margin-top: 1.5rem;
}

/* En desktop : position fixe en bas à droite */
@media (min-width: 769px) {
  #social-pill {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 70;
    animation: fadeIn 0.5s ease 0.3s backwards;
    margin-top: 0;
  }
}

#social-pill a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: transform 0.2s ease, background 0.2s ease;
  background: rgba(255, 255, 255, 0.05);
}

#social-pill a:hover {
  transform: scale(1.15);
  background: rgba(255, 255, 255, 0.15);
}

#social-pill img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* ========== MAIN + PRODUCTS ========== */
main {
  padding-top: calc(var(--header-h) + var(--nav-h));
}

.product {
  height: 100vh;
}

.product-inner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 1200px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4vw;
  align-items: center;
  padding: 3rem 5vw;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s;
}

.product-inner.active {
  opacity: 1;
  pointer-events: auto;
}

/* ========== VIDEO CONTAINER ========== */
.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
}

.tshirt-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ========== SCRUBBER ========== */
.scrubber {
  width: 100%;
  margin-top: 1rem;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.2);
  outline: none;
  cursor: pointer;
}

.scrubber::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--btn-gradient-start), var(--btn-gradient-end));
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 217, 255, 0.4);
  transition: transform 0.2s ease;
}

.scrubber::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.scrubber::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--btn-gradient-start), var(--btn-gradient-end));
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 217, 255, 0.4);
  transition: transform 0.2s ease;
}

.scrubber::-moz-range-thumb:hover {
  transform: scale(1.2);
}

/* ========== INFO SECTION (PRODUCT DETAILS) ========== */
.info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info h2 {
  font-size: 1.8rem;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.baseline {
  font-size: 1.1rem;
  opacity: 0.85;
  font-style: italic;
  margin-bottom: 0.5rem;
}

/* ========== DESCRIPTION COLLAPSIBLE ========== */
.desc-container {
  margin: 1rem 0;
}

.desc {
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0.85;
  margin-bottom: 0.5rem;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  overflow: hidden;
}

.desc.collapsed {
  max-height: 0;
  opacity: 0;
  margin-bottom: 0;
}

.desc-toggle {
  background: none;
  border: none;
  color: var(--btn-gradient-end);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  transition: opacity 0.2s ease;
}

.desc-toggle:hover {
  opacity: 0.8;
}

/* ========== PRICE + SIZE ROW ========== */
.price-size-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0;
}

/* ========== SIZE SELECTOR ========== */
.size-selector {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.size-label {
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 0.9;
}

.size-pills {
  display: flex;
  gap: 0.5rem;
}

.size-pill {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid var(--glass-brd);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 44px;
  text-align: center;
}

.size-pill:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.size-pill.active {
  background: linear-gradient(135deg, var(--btn-gradient-start), var(--btn-gradient-end));
  color: #000;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(0, 217, 255, 0.3);
}

/* ========== TYPOGRAPHIE ========== */
h1 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.6rem;
  margin: 0;
}

h3 {
  font-size: 1.2rem;
  margin: 0;
}

p {
  font-size: 1.05rem;
  line-height: 1.55;
  margin-bottom: 1rem;
}

/* ========== FORMULAIRES ========== */
label {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--glass-brd);
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-size: 1rem;
  backdrop-filter: blur(var(--blur));
  transition: background 0.15s ease, border-color 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
}

textarea {
  resize: vertical;
}

input[type="number"] {
  width: 60px;
  padding: 0.5rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
}

/* ========== TOAST NOTIFICATIONS ========== */
.toast-container {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 400px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
  border: 1px solid var(--glass-brd);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  animation: slideInRight 0.3s ease;
  pointer-events: all;
}

.toast.removing {
  animation: slideOutRight 0.3s ease;
}

.toast.success {
  border-left: 4px solid #4ade80;
}

.toast.error {
  border-left: 4px solid #ff4c4c;
}

.toast.warning {
  border-left: 4px solid #fbbf24;
}

.toast.info {
  border-left: 4px solid #60a5fa;
}

.toast-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.toast.success .toast-icon {
  color: #4ade80;
}

.toast.error .toast-icon {
  color: #ff4c4c;
}

.toast.warning .toast-icon {
  color: #fbbf24;
}

.toast.info .toast-icon {
  color: #60a5fa;
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.toast-message {
  font-size: 0.9rem;
  opacity: 0.9;
}

.toast-close {
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  padding: 0;
  margin-left: 0.5rem;
  flex-shrink: 0;
}

.toast-close:hover {
  opacity: 1;
}

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

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

/* ========== PAGE CART (cart.html) ========== */
/* Layout spécifique pour cart.html */
body:has(> header:not(.glass)) {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 2rem;
  min-height: 100vh;
}

body:has(> header:not(.glass)) header {
  position: static;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
  padding: 0;
}

body:has(> header:not(.glass)) header img {
  height: 128px;
  width: auto;
}

body:has(> header:not(.glass)) main {
  padding-top: 0;
  width: 100%;
  max-width: 900px;
}

body:has(> header:not(.glass)) main h1 {
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Container du panier */
.cart-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
  border-radius: 20px;
  gap: 1rem;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
  border: 1px solid var(--glass-brd);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.3),
    inset 0 -1px 1px rgba(0, 0, 0, 0.25);
}

.cart-item img {
  width: 90px;
  height: 90px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.cart-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.cart-info h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

.cart-info p {
  font-size: 0.9rem;
  opacity: 0.85;
  margin: 0;
}

.qty-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Summary */
.summary {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-top: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  opacity: 0.9;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.3rem;
  font-weight: 700;
  padding-top: 0.75rem;
  margin-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--accent);
}

.free-shipping {
  background: linear-gradient(135deg, #4ade80, #22c55e);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.empty {
  text-align: center;
  opacity: 0.8;
  margin-top: 3rem;
}

/* ========== POPOVER PANIER ========== */
.cart-popover {
  position: fixed;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
  border: 1px solid var(--glass-brd);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.3),
    inset 0 -1px 1px rgba(0, 0, 0, 0.25);
  top: 4.5rem;
  right: 1rem;
  width: 320px;
  border-radius: 20px;
  padding: 1.2rem;
  display: none;
  flex-direction: column;
  gap: 0.8rem;
  z-index: 150;
}

.cart-popover.active,
.cart-popover:not(.hidden) {
  display: flex;
  animation: fadeIn 0.2s ease;
}

.cart-popover.hidden {
  display: none;
}

.cart-popover h4 {
  margin: 0 0 0.8rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 0.8rem;
}

#cart-items-preview {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-height: 200px;
  overflow-y: auto;
}

.cart-preview-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.95rem;
  padding: 0.5rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.cart-preview-item img {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.cart-preview-item strong {
  font-weight: 600;
  font-size: 1rem;
}

.cart-preview-item small {
  opacity: 0.75;
  font-size: 0.85rem;
}

.cart-summary {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 0.8rem;
  margin-top: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.95rem;
}

.cart-line,
.cart-total {
  display: flex;
  justify-content: space-between;
}

.cart-total {
  margin-top: 0.4rem;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 1.1rem;
  font-weight: 700;
}

.popover-actions {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.go-cart-btn {
  width: 100%;
  margin-top: 0.5rem;
}

/* ========== PAGES SUCCESS/CANCEL ========== */
.success-card,
.cancel-card {
  max-width: 520px;
  width: 100%;
  text-align: center;
  padding: 2rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.success-card img,
.cancel-card img {
  width: 120px;
  margin-bottom: 1rem;
}

.success-card h1,
.cancel-card h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.success-card .order-id,
.cancel-card .order-id {
  font-size: 0.95rem;
  opacity: 0.85;
  margin-bottom: 1.2rem;
}

.buyer-name {
  font-weight: bold;
  margin-bottom: 1rem;
}

/* ========== PAGE CONTACT ========== */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 960px;
  width: 100%;
  min-height: 100vh;
  align-items: center;
  margin: 0 auto;
}

.poster-box {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.poster-box img.poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.poster-logo {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 128px;
  height: auto;
  z-index: 10;
}

.form-box {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
  border: 1px solid var(--glass-brd);
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.3),
    inset 0 -1px 1px rgba(0, 0, 0, 0.25);
  padding: 2rem 2.2rem;
}

.form-box label {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}

.form-box input,
.form-box select,
.form-box textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--glass-brd);
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-size: 1rem;
  backdrop-filter: blur(var(--blur));
}

.form-box textarea {
  resize: vertical;
}

.form-box button[type="submit"] {
  margin-top: 1.4rem;
  width: 100%;
  padding: 0.9rem 0;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: #000;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.2s;
}

.form-box button[type="submit"]:hover {
  filter: brightness(0.9);
}

/* ========== PAGE ABOUT ========== */
.about-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 960px;
  width: 100%;
  min-height: 100vh;
  align-items: center;
  margin: 0 auto;
}

.content-box {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
  border: 1px solid var(--glass-brd);
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.3),
    inset 0 -1px 1px rgba(0, 0, 0, 0.25);
  padding: 2rem 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.content-box h1,
.cg-box h1,
.policy-box h1 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 0.6rem;
}

.content-box p,
.cg-box p,
.cg-box li,
.policy-box p,
.policy-box li {
  font-size: 1.05rem;
  line-height: 1.55;
}

/* ========== PAGE TERMS (CGV) ========== */
.cg-box {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
  border: 1px solid var(--glass-brd);
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.3),
    inset 0 -1px 1px rgba(0, 0, 0, 0.25);
  padding: 2.5rem 2.5rem 3rem;
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.cg-box h2,
.policy-box h2 {
  font-size: 1.25rem;
  margin-top: 1.2rem;
}

.cg-box ul,
.cg-box ol,
.policy-box ul {
  padding-left: 1.2rem;
}

/* ========== PAGE POLICY (REMBOURSEMENT) ========== */
.policy-box {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
  border: 1px solid var(--glass-brd);
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.3),
    inset 0 -1px 1px rgba(0, 0, 0, 0.25);
  padding: 2.5rem 2.5rem 3rem;
  max-width: 800px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(100%);
  }
}

/* ========== RESPONSIVE GLOBAL ========== */

/* Tablettes et petits desktops (≤ 1000px) */
@media (max-width: 1000px) {
  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  .btn-primary,
  .btn-ghost,
  .buy-btn,
  .buy-now-btn,
  .more-btn {
    padding: 0.7rem 1.4rem;
    font-size: 0.95rem;
  }

  .product-inner {
    gap: 1.5rem;
    padding: 1.5rem;
  }
}

/* Mobile (≤ 768px) */
@media (max-width: 768px) {
  :root {
    --header-h: 56px;
    --nav-h: 48px;
  }

  body {
    padding: 0;
  }

  /* Header en mode mobile : cart - logo - burger */
  header {
    padding: 0 1rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
  }

  header .spacer {
    display: none;
  }

  /* Cart icon à gauche */
  .cart-icon {
    order: 1;
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
  }

  /* Logo au centre */
  .logo {
    height: 80px;
    order: 2;
    margin: 0 auto;
  }

  /* Burger à droite */
  header .icon {
    order: 3;
    position: relative;
    right: auto;
    font-size: 1.6rem;
  }

  /* Navigation tabs en mobile */
  .nav-wrapper {
    width: calc(100% - 2rem);
    left: 1rem;
    transform: none;
  }

  .nav-wrapper.hide {
    transform: translateY(-20px);
  }

  #navTabs {
    width: 100%;
    justify-content: space-between;
  }

  #navTabs a {
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
    flex: 1;
    text-align: center;
  }

  /* Products en mobile */
  main {
    padding-top: calc(var(--header-h) + var(--nav-h) + 1rem);
    padding-bottom: 2rem;
  }

  .product {
    height: auto !important;
    min-height: auto;
    display: none;
    padding-top: 0;
    padding-bottom: 1rem;
    margin-bottom: 0;
  }

  .product.active {
    display: block;
  }

  .product-inner {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    grid-template-columns: 1fr;
    opacity: 1 !important;
    pointer-events: auto !important;
    padding: 1.2rem 0.8rem;
    gap: 1rem;
    margin: 2.5rem auto 0 auto;
    max-width: 400px;
  }

  .video-container {
    max-height: 60vh;
  }

  /* Info section */
  .info h2 {
    font-size: 1.4rem;
  }

  .price-size-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .price {
    font-size: 1.6rem;
  }

  .size-selector {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .size-pills {
    width: 100%;
    justify-content: space-between;
  }

  .size-pill {
    flex: 1;
    min-width: auto;
  }

  /* Toast en mobile */
  .toast-container {
    top: 1rem;
    right: 1rem;
    left: 1rem;
    max-width: none;
  }

  .toast {
    padding: 0.9rem 1rem;
  }

  /* Page cart en mobile */
  body:has(> header:not(.glass)) {
    padding: 1rem;
  }

  body:has(> header:not(.glass)) header img {
    height: 80px;
  }

  body:has(> header:not(.glass)) main h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  /* Panier */
  .cart-item {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 1rem;
    gap: 0.75rem;
  }

  .cart-item img {
    width: 70px;
    height: 70px;
    border-radius: 10px;
  }

  .cart-info {
    flex: 1;
    min-width: 150px;
  }

  .cart-info h3 {
    font-size: 1rem;
  }

  .cart-info p {
    font-size: 0.85rem;
  }

  .qty-box {
    width: 100%;
    justify-content: space-between;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  input[type="number"] {
    width: 50px;
    font-size: 0.9rem;
  }

  .btn-primary,
  .btn-ghost,
  .buy-btn,
  .buy-now-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  .btn-danger,
  .remove-btn {
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
  }

  .checkout-btn {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1rem;
  }

  .summary {
    font-size: 1rem;
  }

  .back-btn {
    width: 100%;
    text-align: center;
  }

  .success-card img,
  .cancel-card img {
    width: 90px;
  }

  .success-card,
  .cancel-card {
    padding: 1.5rem;
  }

  /* Pages spécifiques */
  .contact-wrap {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 400px;
    padding: 1rem;
  }

  .poster-box {
    order: -1;
    height: auto;
    padding-top: 1rem;
    padding-bottom: 0;
  }

  .poster-box img.poster-img {
    display: none;
  }

  .poster-logo {
    position: static;
    transform: none;
    width: 100px;
    margin: 0 auto;
  }

  .form-box {
    padding: 1.5rem 1.5rem;
  }

  .about-wrap {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .poster-box {
    max-height: 40vh;
  }

  .cg-box,
  .policy-box {
    padding: 1.8rem 1.4rem;
  }
}

/* Très petits écrans (≤ 480px) */
@media (max-width: 480px) {
  body {
    padding: 0;
  }

  .logo {
    height: 80px;
  }

  h1 {
    font-size: 1.25rem;
  }

  .product-inner {
    margin: 0 0.5rem;
    padding: 1rem;
  }

  .info h2 {
    font-size: 1.2rem;
  }

  #navTabs a {
    font-size: 0.8rem;
    padding: 0.5rem 0.7rem;
  }

  .cart-item {
    padding: 0.75rem;
  }

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

  .cart-info h3 {
    font-size: 0.95rem;
  }

  .cart-info p {
    font-size: 0.8rem;
  }

  input[type="number"] {
    width: 45px;
  }

  .success-card img,
  .cancel-card img {
    height: 60px;
  }

  .success-card h1,
  .cancel-card h1 {
    font-size: 1.5rem;
  }

  .contact-wrap {
    gap: 1rem;
  }

  .poster-logo {
    width: 80px;
  }

  .form-box {
    padding: 1.2rem 1.2rem;
  }

  .form-box h1 {
    font-size: 1.4rem;
  }

  .form-box .back-btn {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
  }

  .form-box input,
  .form-box select,
  .form-box textarea {
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
  }

  .form-box button[type="submit"] {
    padding: 0.8rem 0;
    font-size: 0.95rem;
  }

  .content-box h1,
  .cg-box h1,
  .policy-box h1 {
    font-size: 1.6rem;
  }
}
