/* =========================================================
   FOCUS — Styles globaux
   ========================================================= */

/* ---------- Reset / base typographique ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}
body {
  cursor: none;
}


/* =========================================================
   Correction : Empêcher le scroll horizontal
   ========================================================= */

body {
  /* Empêche le contenu de déborder à droite ou à gauche */
  overflow-x: hidden; /* Ne pas afficher la barre de défilement horizontale et cacher le contenu qui dépasse. */
}

a {
  cursor: none;
}
html {
  /* Palette par défaut (sombre) via variables */
  --bg: #0b0b0c;
  --bg-elev: #121215;
  --fg: #e9e9ee;
  --fg-dim: #b9b9c2;
  --muted: #8a8a97;
  --surface: #17171b;
  --glass: rgba(18, 18, 21, 0.6);
  --border: rgba(255,255,255,0.08);
  --ring: rgba(140, 241, 255, 0.55);
  --danger: #ff5f5f;
  --ok: #5fff9a;

  --shadow-soft: 0 10px 30px rgba(0,0,0,0.35);
  --radius-2xl: 22px;
  --radius-pill: 999px;

  --header-h: 72px;
  --container: 1920px;
  --gap: 16px;

  scroll-behavior: smooth;
}

html.theme-light {
  /* Palette pastel / rétro */
  --bg: #f3ede4;          /* fond général (crème très doux) */
  --bg-elev: #fdf7ef;     /* sections légèrement surélevées */
  --surface: #ffffff;     /* cartes, panneaux, etc. */
  --fg: #181818;          /* texte principal */
  --fg-dim: #4b4740;      /* texte secondaire */
  --muted: #8a7b6b;       /* légende / texte atténué */

  /* Accents un peu vintage */
  --accent: #f39b6b;      /* corail doux */
  --accent-2: #480ca8;    /* bleu légèrement grisé */

  --glass: rgba(255,255,255,0.75);
  --border: rgba(0,0,0,0.06);
  --ring: rgba(243,155,107,0.55);
  --shadow-soft: 0 10px 30px rgba(0,0,0,0.15);
}


body {
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, system-ui, sans-serif;
  background: var(--bg);   /* plus de gros dégradé sombre qui fait la bannière */
  color: var(--fg);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}


/* Conteneur */
.section,
.header-inner,
.footer-top,
.footer-legal {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}


/* Focus visible accessible */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 10px;
  
}

/* Liens */
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }

/* Titres */
h1, h2, h3 {
  line-height: 1.1;
  margin: 0 0 0.6em;
}

/* Sections */
.section {
  padding-block: clamp(48px, 6vw, 96px);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #001317;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 999999;
}
.skip-link:focus { left: 12px; top: 12px; }



/* ---------------- Animations ---------------- */

@keyframes orbit-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes logo-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

@keyframes logo-glow {
  0%, 100% { filter:
      drop-shadow(0 0 12px rgba(0,0,0,0.9))
      drop-shadow(0 0 18px var(--ring));
  }
  50%      { filter:
      drop-shadow(0 0 22px rgba(0,0,0,0.9))
      drop-shadow(0 0 32px var(--ring));
  }
}

@keyframes text-pulse {
  0%, 100% { opacity: .4; }
  50%      { opacity: 1; }
}




/* =========================================================
   Header minimal — juste les boutons en haut à droite
   ========================================================= */
#site-header {
  position: sticky;
  top: 0;
  inset-inline: 0;
  /* plus de barre : */
  height: 0;
  background: transparent;
  border: none;
  backdrop-filter: none;
  z-index: 1000;
  display: block;
  overflow: visible;
  /* on laisse les enfants dépasser */
  pointer-events: none; /* le header est "fantôme" */
}

.header-inner {
  width: min(100% - 64px, var(--container));
  margin-inline: auto;
  padding-top: 20px;         /* marge depuis le haut */
  display: flex;
  align-items: center;
  justify-content: flex-end; /* tout à droite */
  gap: 12px;
  pointer-events: auto;      /* mais les boutons restent cliquables */
}

/* on masque le logo pour avoir vraiment "juste les boutons" */
.brand {
  display: none;
}

/* nav = rangée de pills à droite */
.main-nav .nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* on vire les icônes de droite (thème, panier…) pour coller au ref */
.header-ctas {
  display: none;
}


/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: .5px;
}
.brand-mark { height: 28px; width: auto; }
.brand-text { opacity: .85; }

/* Nav principal */
.main-nav .nav-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 10px;
}

.nav-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 0 0 0 rgba(255,255,255,0);
  transition: transform .9s ease, box-shadow .9s ease, background .9s ease;
  will-change: transform;
  justify-content: center; /* ⭐ centre icon + texte */
}
.nav-pill .nav-ico {
  font: 0/0 a; /* placeholder text icons */
  width: 0; height: 0; /* caché si on met des icones plus tard */
}


.nav-pill .nav-ico {
display: none;
}



.nav-pill .nav-txt { font-weight: 600; }
.nav-pill:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 18px rgba(140,241,255,0.18);
}
.nav-pill[aria-current="page"] {
  outline: 2px solid var(--ring);
  box-shadow: 0 0 30px rgba(140,241,255,0.22);
}

/* CTA icônes (thème + panier + burger) */

.icon-btn {
  height: 40px;
  width: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.04);
  transition: transform .18s ease, box-shadow .25s ease;
  color: var(--fg); /* ⭐️ Ajoute ceci */
}

.icon-btn:hover { transform: translateY(-1px); box-shadow: 0 0 18px rgba(140,241,255,0.16); }

.header-ctas { display: flex; align-items: center; gap: 10px; }

.cart-btn { position: relative; }
/* --- Dans style-focus.css --- */

.cart-count {
  position: absolute;
  top: -6px; right: -6px;
  min-width: 18px; height: 18px;
  padding-inline: 6px;
  border-radius: var(--radius-pill);

  /* 1. MODE SOMBRE (Par défaut) = BLEU */
  /* On met le code couleur hexadécimal directement pour être sûr */
  background: #480CA8; 

  color: white;
  font-size: 11px; font-weight: 700;
  display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: background 0.3s ease;
}

/* 2. MODE CLAIR = ORANGE */
html.theme-light .cart-count {
  /* Ici on utilise la variable d'accent orange du thème clair */
  background: var(--accent); 
}

/* Burger visible seulement en mobile */
.only-mobile { display: none; }

/* =========================================================
   Menu mobile plein écran
   ========================================================= */
.mobile-menu {
  position: fixed; inset: 0;
  background: color-mix(in oklab, var(--bg) 75%, black 25%);
  backdrop-filter: blur(10px);
  z-index: 1001;
  display: grid; place-items: center;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 14px; text-align: center;
}
.mobile-menu nav a {
  display: inline-block;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 600;
}
.close-menu {
  margin-top: 22px;
  display: inline-grid; place-items: center;
  height: 40px; width: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  display: grid;
  gap: clamp(18px, 3vw, 28px);
  align-items: center;
}

.hero-media {
  position: relative;
  border-radius: var(--radius-2xl);
  background: radial-gradient(50% 70% at 50% 40%, rgba(140,241,255,0.08), transparent 60%),
              var(--bg-elev);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

model-viewer {
  width: 100%;
  height: clamp(360px, 55vw, 560px);
  display: block;
  --poster-color: transparent;
}

.hero-copy {
  text-align: center;
  max-width: 780px;
  margin-inline: auto;
}
.hero-copy h1 { font-size: clamp(1.6rem, 4.5vw, 3rem); }
.lead { color: var(--fg-dim); margin: .6rem 0 1.1rem; }

.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.cta {
  display: inline-block;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  font-weight: 600;
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.cta:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0,0,0,0.25); }
.cta-primary {
  background: linear-gradient(180deg, color-mix(in oklab, var(--accent) 25%, transparent), transparent 90%), var(--surface);
  border-color: color-mix(in oklab, var(--accent) 40%, var(--border));
  box-shadow: 0 0 18px rgba(140,241,255,0.18);
}
.cta-ghost {
  background: transparent;
  border-color: var(--border);
}

.scroll-hint {
  margin: 8px auto 0;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--fg);
  border-radius: var(--radius-pill);
  width: 44px; height: 44px;
  display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  animation: hint-bounce 1.6s ease-in-out infinite;
}
@keyframes hint-bounce {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* =========================================================
   Section — Affiches vedettes
   ========================================================= */
.section-head {
  text-align: center;
  margin-bottom: clamp(18px, 3vw, 26px);
}
.section-sub { color: var(--fg-dim); margin: 0; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(12px, 2.4vw, 22px);
}

.product-card {
  grid-column: span 12;
  border-radius: var(--radius-2xl);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow .25s ease, transform .18s ease;
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35), 0 0 22px rgba(140,241,255,0.08);
}
.product-link { display: grid; }

.product-card picture, .product-card img {
  display: block; width: 100%; height: auto;
}
.product-card img {
  aspect-ratio: 3/4;
  object-fit: cover;
  transition: transform .35s ease, filter .35s ease;
  will-change: transform;
}
.product-card:hover img {
  transform: scale(1.04) translateY(-2px);
  filter: brightness(1.06);
}

.product-meta {
  padding: 12px 14px 16px;
  display: flex; justify-content: space-between; align-items: baseline;
}
.product-meta h3 { font-size: 1.05rem; margin: 0; }
.price { color: var(--fg-dim); margin: 0; }

/* =========================================================
   Section — Blog preview
   ========================================================= */
.post-card {
  border-radius: var(--radius-2xl);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow .25s ease, transform .18s ease;
}
.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35), 0 0 22px rgba(255,107,214,0.08);
}
.post-link { display: block; }

.post-card picture, .post-card img { display: block; width: 100%; height: auto; }
.post-card img {
  aspect-ratio: 16/9; object-fit: cover;
  transition: transform .35s ease, filter .35s ease;
}
.post-card:hover img { transform: scale(1.03); filter: brightness(1.05); }

.post-meta { padding: 14px 16px 18px; }
.post-meta h3 { margin-bottom: 6px; }
.post-excerpt { color: var(--fg-dim); margin: 0 0 6px; }
time { color: var(--muted); font-size: .9rem; }

/* =========================================================
   Section — À propos
   ========================================================= */
.about { text-align: center; }
.about-text {
  color: var(--fg-dim);
  max-width: 780px;
  margin: 0 auto 14px;
}
.about-highlights {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
}
.about-highlights li {
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.04);
}
/* =========================================================
   FOOTER V2 (Cinematic Grid)
   ========================================================= */

#site-footer {
  position: relative;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-top: 0;
  overflow: hidden;
  z-index: 1;
}

/* --- 1. Marquee (Texte défilant) --- */
.footer-marquee {
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: inline-block;
  animation: marquee 20s linear infinite;
  padding-left: 100%; /* Commence hors champ */
}

.marquee-track span {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  color: var(--fg-dim);
}

.marquee-track .dot {
  color: var(--accent);
  margin: 0 20px;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* --- 2. Layout Grille --- */
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 60px 24px 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr; /* Newsletter plus large */
  gap: 40px;
  margin-bottom: 80px;
}

/* Colonnes */
.footer-col h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 20px;
}

.footer-col p {
  font-size: 0.95rem;
  color: var(--fg-dim);
  margin-bottom: 20px;
  max-width: 300px;
}

/* Liens de navigation */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a,
.link-reset {
  text-decoration: none;
  color: var(--fg);
  font-size: 1rem;
  transition: transform 0.2s ease, color 0.2s ease;
  display: inline-block;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}

.footer-links a:hover,
.link-reset:hover {
  color: #480CA8 !important;
  transform: translateX(5px); /* Petit glissement vers la droite */
}

/* Formulaire Newsletter */
.footer-form .input-group {
  display: flex;
  gap: 10px;
  max-width: 320px;
}

.footer-form input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 12px 20px;
  color: var(--fg);
  outline: none;
  transition: border-color 0.2s;
}

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

/* Socials */
.social-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-pill {
  display: block;
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: 12px;
  text-align: center;
  background: var(--bg-elev);
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

/* 2. Boutons Sociaux (Insta, Pinterest, TikTok...) */
.social-pill:hover {
  /* On enlève le fond blanc qui inversait les couleurs */
  background: transparent !important; 
  
  /* On allume le texte et la bordure en bleu */
  color: #480CA8 !important;
  border-color: #480CA8 !important;
  
  /* Petit effet de glow optionnel pour rappeler le néon */
  box-shadow: 0 0 15px rgba(72, 12, 168, 0.25); 
}

/* --- 3. Big Text (Signature) --- */
.footer-big-type {
  display: flex;
  justify-content: center;
  line-height: 0.8;
  margin-bottom: 40px;
  user-select: none;
  pointer-events: none;
}

.footer-big-type span {
  font-size: clamp(4rem, 18vw, 15rem); /* Énorme */
  font-weight: 700;
  letter-spacing: -0.04em;
}

.outline-text {
  color: transparent;
  -webkit-text-stroke: 2px var(--border); /* Contour seulement */
}

.fill-text {
  color: var(--fg); /* Plein */
}

/* --- 4. Bottom Bar --- */
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.85rem;
  color: var(--muted);
}

.payment-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}
.payment-icons .material-symbols-rounded {
  font-size: 16px;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr; /* 2 colonnes tablette */
    gap: 40px;
  }
  .newsletter-col {
    grid-column: span 2; /* La newsletter prend toute la largeur */
  }
}

@media (max-width: 640px) {
  .footer-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }
  
  .newsletter-col {
    order: -1; /* Newsletter en premier */
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  /* Texte géant un peu plus petit sur mobile pour pas casser */
  .footer-big-type span {
    font-size: 22vw;
  }
  
  .outline-text {
    -webkit-text-stroke: 1px var(--border);
  }
}
/* =========================================================
   COOKIES CINÉMATIQUE & MODALE
   ========================================================= */

body.cookies-ui-open #cursor {
  z-index: 1000000; /* au-dessus de .cookie-modal-backdrop (10001) */
}
body.cookies-ui-open .custom-cursor {
  z-index: 10003;
}


/* --- 1. LE BANDEAU (Banner) --- */
.cookie-banner-cinematic {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  width: min(500px, calc(100% - 40px));
  
  background: rgba(15, 15, 15, 0.85); /* Très sombre */
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 24px;
  
  box-shadow: 
    0 20px 50px rgba(0,0,0,0.5),
    0 0 0 1px rgba(255,255,255,0.05);
    
  z-index: 10; /* Au-dessus de tout */
  opacity: 0;
  visibility: hidden;
  transition: 
    opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
    visibility 0.6s;
}

/* État visible (activé par JS) */
.cookie-banner-cinematic.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.cookie-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cookie-text h3 {
  font-size: 1.1rem;
  margin: 0 0 8px;
  color: #fff;
}

.cookie-text p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  margin: 0;
  line-height: 1.5;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Boutons liens discrets */
.cta-link {
  background: none;
  border: none;
  padding: 0;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: all 0.3s;
}
.cta-link:hover {
  color: #fff;
  text-decoration-color: #fff;
}

/* Petit ajustement du bouton néon dans ce contexte */
.neon-btn-small {
  height: 40px;
  padding: 0 20px;
  font-size: 0.9rem;
}


/* --- 2. LA MODALE DE RÉGLAGES --- */
.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 10001;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.cookie-modal-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
}

.cookie-modal-panel {
  width: min(500px, calc(100% - 32px));
  background: var(--surface);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid var(--border);
}

.cookie-modal-backdrop.is-visible .cookie-modal-panel {
  transform: scale(1);
}

.cookie-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.cookie-modal-header h2 {
  margin: 0;
  font-size: 1.2rem;
}

.cookie-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 12px;
  background: var(--bg-elev);
  border-radius: 12px;
}

.cookie-info strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.cookie-info p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.status-on {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ok);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Toggle Switch Custom */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.switch input { opacity: 0; width: 0; height: 0; }

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--border);
  transition: .4s;
  border-radius: 34px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: var(--fg); /* Active color */
}
input:checked + .slider:before {
  transform: translateX(20px);
}

.cookie-footer-actions {
  margin-top: 30px;
  display: flex;
  justify-content: flex-end;
  gap: 16px;
}

.cta-ghost {
  background: none;
  border: none;
  font-weight: 600;
  color: var(--fg-dim);
  cursor: pointer;
}




/* =========================================================
   NOUVEAU BOUTON "SOLID" (Pour les Cookies)
   ========================================================= */

.btn-solid {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 28px;
  border-radius: 999px;
  
  /* STYLE PAR DÉFAUT : Fond du site, Bordure visible */
  background: var(--bg); 
  color: var(--fg);
  border: 1px solid var(--fg);
  
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  
  /* Transition simple de couleur uniquement */
  transition: background 0.3s ease, color 0.3s ease;
}

/* AU SURVOL : Inversion stricte */
.btn-solid:hover {
  background: var(--fg); /* Devient Blanc (en dark mode) */
  color: var(--bg);      /* Texte devient Noir */
  /* La bordure reste la même couleur que le fond, donc elle se fond */
}

/* =========================================================
   Noscript
   ========================================================= */
.noscript {
  background: var(--danger);
  color: #fff;
  padding: 10px 14px;
  text-align: center;
}

/* =========================================================
   Utilitaires & états
   ========================================================= */
.glass {
  background: var(--glass);
  backdrop-filter: saturate(140%) blur(10px);
}

.section-actions {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  padding-bottom: 40px;
  
  /* 🔥 ON ANNULE TOUS LES STACKING CONTEXTS */
  position: relative;
  z-index: auto;
  isolation: auto;
  overflow: visible;
}



/* Grille responsive des cartes produits */
@media (min-width: 640px) {
  .product-card { grid-column: span 6; }
}
@media (min-width: 960px) {
  .product-card { grid-column: span 3; }
}

/* Layout hero en colonnes en large */
@media (min-width: 960px) {
  .hero {
    grid-template-columns: 1.2fr .9fr;
    align-items: stretch;
  }
  .hero-copy { text-align: left; margin-inline: 0; align-self: center; }
}

/* Apparence mobile du header */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .only-mobile { display: inline-grid; }
}

/* =========================================================
   Réduire les animations si l’utilisateur le demande
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .scroll-hint { animation: none; }
}

/* =========================================================
   Petits raffinements
   ========================================================= */
header a:hover .brand-mark { filter: drop-shadow(0 0 10px var(--ring)); }
.hero-media { box-shadow: 0 30px 80px rgba(0,0,0,0.35), 0 0 40px rgba(140,241,255,0.06); }
.cta-primary:hover { box-shadow: 0 0 26px rgba(140,241,255,0.28), 0 10px 24px rgba(0,0,0,0.25); }

/* Rendre les boutons un peu "squishy" au hover (effet organique soft) */
.nav-pill:active, .icon-btn:active, .cta:active, .socials a:active {
  transform: translateY(0) scale(0.98);
}

/* Matérial Symbols taille cohérente */
.material-symbols-rounded { font-size: 22px; line-height: 1; }

/* =========================================================
   Helpers d’imagerie
   ========================================================= */
picture, img { max-width: 100%; height: auto; }

/* =========================================================
   Support attribut [data-route] pour pointer visuel
   ========================================================= */
a[data-route] { cursor: pointer; }

/* =========================================================
   Place pour surcharges futures (ex: header scrolled)
   ========================================================= */
/* [data-scrolled="true"] #site-header { ... }  (si JS ajoute un état) */

/* =========================================================
   Overrides header — boutons type Dumpling Cat
   ========================================================= */

#site-header {
  position: sticky;
  top: 0;
  inset-inline: 0;
  height: auto;                 /* plus de hauteur forcée */
  background: transparent;      /* plus de barre sombre en haut */
  border-bottom: none;
  backdrop-filter: none;
}



/* logo à gauche qui "pousse" tout le reste vers la droite */
.brand {
  margin-right: auto;
}

/* la nav est collée visuellement aux boutons thème / panier */
.main-nav {
  margin-left: auto;
}

.main-nav .nav-list {
  gap: 8px;
}

/* Nav pills plus petites, même vibe que les icônes rondes */
.nav-pill {
  padding: 6px 14px;        /* moins haut */
  font-size: 0.85rem;       /* texte un peu plus petit */
  border-radius: 999px;     /* bien pill */
}



/* actif = halo léger, pas un gros truc */
.nav-pill[aria-current="page"] {
  box-shadow: 0 0 0 1px rgba(255,255,255,0.22);
}




/* =========================================================
   HERO FOCUS KEYCHAIN — version clean
   ========================================================= */

/* Fond global déjà géré plus haut avec body { background: var(--bg) } */

/* Sections après le hero : panneau gris plein écran */
.section {
  position: relative;
  z-index: 0;
}

/* Fond gris qui s'étend sur toute la largeur de la fenêtre */
.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 100vw;          /* prend TOUTE la largeur de l'écran */
  height: 100%;
  transform: translateX(-50%);
  background: var(--bg-elev);
  z-index: -1;           /* reste derrière le contenu */
}

/* Footer : garde juste son fond normal */
#site-footer {
  background: var(--bg-elev);
}



/* --- TEXTE 2 : VOTRE PORTE-CLÉ FOCUS --- */
#hero .intro {
  min-height: 26vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0 3rem 3rem;
  
  /* CORRECTION ICI : */
  /* On utilise vh (hauteur d'écran) au lieu de em */
  /* Cela permet au texte de rester proportionnel à la hauteur de la fenêtre */
  margin-top: 65vh; 
  
  /* Pour s'assurer qu'il passe bien au-dessus du canvas si besoin */
  position: relative; 
  z-index: 2; 
}

/* --- AJUSTEMENTS RESPONSIVE --- */

/* Pour les écrans de taille moyenne (Laptops / Tablettes) */
@media (max-width: 1200px) {
  #hero .intro {
    margin-top: 40vh; /* On remonte un peu le texte */
  }
}

/* Pour les Mobiles */
@media (max-width: 768px) {
  #hero .intro {
    /* Sur mobile, le porte-clé est souvent plus petit ou centré différemment */
    /* On remonte le texte pour qu'il soit visible plus tôt */
    margin-top: 35vh; 
    padding: 0 1.5rem 3rem; /* Moins de padding sur les côtés */
  }
  
  /* Optionnel : Ajuster la taille du texte sur mobile pour qu'il ne soit pas énorme */
  #hero .intro h2 {
    font-size: 1.8rem; 
  }
}

#hero .intro .intro-inner {
  text-align: center;
}



/* HERO : assez long pour l’anim de scroll */
#hero {
  position: relative;
  height: 180vh; /* tu peux monter à 250vh si tu veux plus de “parcours” */
}

/* Porte-clé sticky, centré dans la fenêtre */
#hero-sticky {
  position: sticky;
  top: 0;
  height: 85vh;
  display: flex;
  align-items: center;      /* centre verticalement */
  justify-content: center;
  pointer-events: auto;
  z-index: 0;               /* 🔽 passe SOUS les textes */
}


/* Canvas 3D */
#keychain-canvas {
  /* plus large = porte-clé plus gros */
  width: min(620px, 100vw);
  height: 100vh;          /* un peu plus haut aussi */
  display: block;
}


/* --- TEXTE 1 : FOCUS KEYCHAIN (bloque le porte-clé en bas de l’écran au début) --- */

#hero .hero-intro {
  position: relative;
  z-index: 2;                 /* au-dessus du porte-clé */
  display: flex;
  justify-content: center;
  margin-top: -5.5rem;        /* 🔼 remonte le texte */
  padding-top: 0;
  padding-bottom: 0rem;     /* moins d’espace en bas */
}


.hero-intro-inner {
  text-align: center;
}


.hero-intro-inner h1 {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg);          /* utilise la couleur du thème */
}
.hero-intro-inner h1 .char-title1 {
  display: inline-block;
  opacity: 0;
  transform: translateX(-24px) rotate(-14deg);
  transition:
    opacity 0.35s ease-out,                     /* anim rapide */
    transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: calc(200ms + var(--char-index) * 120ms);
}


/* état visible : lettres droites, centrées, opaques */
.hero-intro-inner.is-visible h1 .char-title1 {
  opacity: 1;
  transform: translateX(0) rotate(0deg);
}



.hero-tagline {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);      /* texte secondaire du thème */
}

#hero .intro h2 {
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  color: var(--fg);
}

#hero .intro p {
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
/* Lettres animées du bloc TEXTE 2 (sans flou) */
#hero .intro-inner .char-text2 {
  display: inline-block;
  opacity: 0;
  transform: translateY(10px); /* un léger “lift” vers le haut */
  transition:
    opacity 0.4s ease-out,
    transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: calc(var(--char-index) * 30ms);
}

#hero .intro-inner.is-visible .char-text2 {
  opacity: 1;
  transform: translateY(0);
}

/* Reset instantané des lettres quand le bloc sort du viewport */
.hero-intro-inner.instant-hide h1 .char-title1 {
  transition: none !important;
  opacity: 0;
  transform: translateX(-24px) rotate(-14deg);
}

#hero .intro-inner.instant-hide .char-text2 {
  transition: none !important;
  opacity: 0;
  transform: translateY(10px);
}


/* =========================================================
   BOUTIQUE — Layout & filtres
   ========================================================= */

/* Page boutique : on réutilise les variables de thème au lieu du fond forcé sombre */
body.page-boutique {
  background: var(--bg);
  color: var(--fg);
}

/* Sur la boutique, les sections reprennent le fond normal du site */
body.page-boutique .section {
  background: transparent;
}

body.page-boutique #site-footer {
  background: linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.06));
}

/* Intro boutique (inspiration The Poster Club / PSTR) */
.shop-hero {
  text-align: center;
}

.shop-intro-header {
  max-width: 760px;
  margin-inline: auto;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0 0 8px;
}

.shop-intro-header h1 {
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
}

.shop-intro-strip {
  margin-top: 18px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface) 92%, var(--bg-elev) 8%);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--fg-dim);
}

/* Layout boutique : sidebar filtres + grille produits */
.shop-section {
  padding-top: 0;
  border-top: 1px solid var(--border);
}

.shop-layout {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 32px);
  align-items: flex-start;
}

/* Filtres */
.shop-filters {
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 18px 16px 18px;
  box-shadow: var(--shadow-soft);
}

.filter-group + .filter-group {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}

.filter-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin: 0 0 8px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-pill {
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface) 92%, black 8%);
  padding: 6px 10px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-dim);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease,
    box-shadow 0.18s ease, color 0.18s ease, transform 0.15s ease;
}

.filter-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}

.filter-pill.is-active {
  background: linear-gradient(
      180deg,
      color-mix(in oklab, var(--accent) 18%, transparent),
      transparent 100%
    );
  border-color: color-mix(in oklab, var(--accent) 40%, var(--border));
  color: var(--fg);
  box-shadow: 0 0 0 1px var(--ring);
}

.shop-info-card {
  margin-top: 18px;
  padding: 10px 12px;
  border-radius: 16px;
  background: color-mix(in oklab, var(--bg-elev) 90%, var(--accent) 10%);
  color: var(--fg-dim);
  font-size: 0.85rem;
}

/* Barre au-dessus de la grille : nombre d’articles + tri */
.shop-main {
  min-width: 0;
}

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.shop-count {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.shop-sort {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--muted);
}

.shop-sort select {
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--fg);
  padding: 6px 30px 6px 10px;
  font-size: 0.9rem;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  position: relative;
}

/* petit caret custom pour le select */
.shop-sort {
  position: relative;
}
.shop-sort::after {
  content: "expand_more";
  font-family: "Material Symbols Rounded";
  font-size: 18px;
  position: absolute;
  right: 10px;
  pointer-events: none;
}

/* Grille boutique : on garde .cards-grid mais on peut ajuster l’espacement */
.shop-grid {
  margin-top: 6px;
}

.product-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.product-legend {
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

/* Note sous la grille */
.shop-note {
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--fg-dim);
  max-width: 720px;
}

/* Responsive */
@media (max-width: 960px) {
  .shop-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .shop-filters {
    order: -1;
  }

  .shop-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .shop-intro-strip {
    border-radius: 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  .shop-filters {
    padding: 14px 12px 14px;
  }
}

/* =========================================================
   PRODUIT — Fiche Focus Lines 01
   ========================================================= */

body.page-product {
  background: var(--bg);
  color: var(--fg);
}

.product-hero {
  padding-bottom: 0;
}

.product-breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
}

.product-breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.product-breadcrumb li::after {
  content: "/";
  margin-left: 6px;
  color: var(--border);
}

.product-breadcrumb li:last-child::after {
  content: none;
}

.product-breadcrumb a {
  text-decoration: none;
  color: var(--fg-dim);
}

/* Layout principal */
.product-section {
  padding-top: 0;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 40px);
  align-items: flex-start;
}

/* Visuels */
.product-media {
  min-width: 0;
}

.product-main-image {
  border-radius: 26px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
}

.product-main-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Miniatures */
.product-thumbs {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-thumbs .thumb {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  padding: 2px;
  cursor: pointer;
  width: 72px;
  height: 90px;
  display: grid;
  place-items: center;
  opacity: 0.9;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.product-thumbs .thumb img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.product-thumbs .thumb.is-active {
  border-color: color-mix(in oklab, var(--accent) 50%, var(--border));
  box-shadow: 0 0 0 1px var(--ring);
  opacity: 1;
}

/* Panel droit */
.product-panel {
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 18px 16px 18px;
  box-shadow: var(--shadow-soft);
}

.product-head h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 6px;
}

.product-tagline {
  margin: 0;
  font-size: 0.95rem;
  color: var(--fg-dim);
}

.product-price-block {
  margin-top: 10px;
}

.product-price {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
}

.product-price-note {
  margin: 2px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Formulaire produit */
.product-form {
  margin-top: 16px;
  border-top: 1px dashed var(--border);
  padding-top: 12px;
}

.product-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Reprend le principe des filters mais dédié produit */
.option-pill {
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  padding: 7px 12px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-dim);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease,
    box-shadow 0.18s ease, color 0.18s ease, transform 0.15s ease;
}

.option-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}

.option-pill.is-active {
  background: linear-gradient(
      180deg,
      color-mix(in oklab, var(--accent) 18%, transparent),
      transparent 100%
    );
  border-color: color-mix(in oklab, var(--accent) 40%, var(--border));
  color: var(--fg);
  box-shadow: 0 0 0 1px var(--ring);
}

/* Quantité */
.product-qty {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  overflow: hidden;
}

.product-qty .qty-btn {
  border: none;
  background: transparent;
  padding: 4px 8px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.product-qty .qty-btn .material-symbols-rounded {
  font-size: 18px;
}

.product-qty-input {
  width: 42px;
  border: none;
  text-align: center;
  background: transparent;
  font: inherit;
  padding: 4px 0;
}

/* Boutons */
.product-actions {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-actions .cta {
  justify-content: center;
}

.product-add-note {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

/* Infos détaillées */
.product-info {
  margin-top: 18px;
  border-top: 1px dashed var(--border);
  padding-top: 12px;
}

.product-info details {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  padding: 8px 10px;
  font-size: 0.9rem;
}

.product-info details + details {
  margin-top: 6px;
}

.product-info summary {
  cursor: pointer;
  font-weight: 600;
}

.product-info p,
.product-info ul {
  margin-top: 6px;
  color: var(--fg-dim);
}

.product-info ul {
  padding-left: 18px;
}

/* Contexte */
.product-context {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--fg-dim);
}

.product-context h2 {
  font-size: 1rem;
  margin-bottom: 4px;
}

/* Section “vous aimerez aussi” déjà cohérente avec .cards-grid */

/* Responsive */
@media (max-width: 960px) {
  .product-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-panel {
    padding: 14px 12px 16px;
  }
}

@media (max-width: 640px) {
  .product-main-image {
    border-radius: 20px;
  }

  .product-thumbs {
    gap: 6px;
  }
}
/* =========================================================
   PANIER LATÉRAL (DRAWER CINEMATIQUE)
   ========================================================= */

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
  z-index: 9000;
  /* Effet de flou sur le site derrière */
  backdrop-filter: blur(4px); 
}

.cart-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100%); /* Un peu plus large pour respirer */
  height: 100%;
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
  
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1); /* Sortie fluide */
  z-index: 9001;
  display: flex;
  flex-direction: column;
}

.cart-drawer.is-open {
  transform: translateX(0);
}

/* --- HEADER --- */
.cart-drawer-head {
  padding: 24px 24px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.cart-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.cart-title-row h2 {
  font-size: 1.4rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-count-badge {
  font-size: 0.8rem;
  background: var(--fg);
  color: var(--bg);
  padding: 2px 8px;
  border-radius: 99px;
  vertical-align: middle;
}

/* Jauge Livraison Gratuite */
.free-shipping-bar {
  margin-top: 10px;
}

.fs-text {
  font-size: 0.85rem;
  color: var(--fg-dim);
  margin-bottom: 8px;
}
.fs-text strong { color: var(--accent); }

.fs-track {
  height: 4px;
  background: var(--bg-elev);
  border-radius: 4px;
  overflow: hidden;
}

.fs-progress {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  transition: width 0.5s ease-out;
  box-shadow: 0 0 10px var(--accent); /* Glow */
}

/* --- CORPS --- */
.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  /* Scrollbar fine */
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

/* État vide */
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: var(--muted);
}

.empty-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.5; }
.empty-title { font-size: 1.1rem; color: var(--fg); margin-bottom: 20px; }





/* Liste Items */
.cart-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px dashed var(--border);
  animation: slide-in-right 0.4s ease forwards;
  opacity: 0; /* Pour l'anim */
  transform: translateX(20px);
}

/* Délai d'animation pour chaque item (jusqu'à 5) */
.cart-item:nth-child(1) { animation-delay: 0.1s; }
.cart-item:nth-child(2) { animation-delay: 0.15s; }
.cart-item:nth-child(3) { animation-delay: 0.2s; }

@keyframes slide-in-right {
  to { opacity: 1; transform: translateX(0); }
}

.cart-item-thumb {
  width: 80px;
  aspect-ratio: 3/4;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-elev);
}
.cart-item-thumb img {
  width: 100%; height: 100%; object-fit: cover;
}

.cart-item-main {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cart-item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.cart-item-title { font-weight: 600; font-size: 1rem; line-height: 1.2; }
.cart-item-meta { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }
.cart-item-price { font-weight: 600; font-size: 1rem; }

/* Contrôles (Qty) */
.cart-item-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.qty-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px;
}

.qty-pill button {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border: none; background: transparent;
  color: var(--fg);
  cursor: pointer;
  border-radius: 4px;
}
.qty-pill button:hover { background: var(--bg-elev); }

.qty-pill input {
  width: 30px;
  text-align: center;
  border: none; background: transparent;
  color: var(--fg);
  font-weight: 600;
}

.remove-link {
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: all 0.2s;
  cursor: pointer;
  background: none; border: none;
}
.remove-link:hover { color: var(--danger); text-decoration-color: var(--danger); }


/* --- FOOTER --- */
.cart-drawer-foot {
  padding: 24px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.cart-summary {
  margin-bottom: 24px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.summary-row.sub-info {
  font-size: 0.9rem;
  color: var(--muted);
}

.summary-price { font-weight: 700; font-size: 1.2rem; }

.secure-badge {
  margin-top: 16px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.secure-badge span { font-size: 14px; }

/* Boutons produits : hover plus marqué */

.product-card .product-link,
.product-panel .product-add {
  transition: transform 0.16s ease, box-shadow 0.16s ease,
    background 0.16s ease, border-color 0.16s ease;
}

.product-card:hover .product-link {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28);
}

.product-panel .product-add:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}
/* =========================================================
   Contraste en mode sombre : quantités + boutons panier
   ========================================================= */

/* Bloc quantité sur la fiche produit */
html.theme-dark .product-qty,
html.theme-dark .product-qty * {
  color: #fff;
}

html.theme-dark .product-qty .qty-btn {
  border-color: rgba(255, 255, 255, 0.5);
}

html.theme-dark .product-qty-input {
  background: transparent;
  color: #fff;
}

/* Bouton "Ajouter au panier" sur la fiche produit */
html.theme-dark .product-actions .cta-primary {
  color: #fff;
}

/* Quantités dans le panier (drawer) */
html.theme-dark .cart-item-qty,
html.theme-dark .cart-item-qty * {
  color: #fff;
}

html.theme-dark .cart-item-qty input {
  background: transparent;
  color: #fff;
}

/* Boutons "Valider le panier" et "Continuer mes achats" */
html.theme-dark .cart-checkout-btn,
html.theme-dark .cart-continue-btn {
  color: #fff;
}

/* Forcer le panier à passer au-dessus du header + contenu */

.cart-overlay {
  z-index: 9000;   /* au-dessus du header (1000) */
}

.cart-drawer {
  z-index: 9001;   /* au-dessus de l'overlay */
}

/* ===== Fond pleine largeur pour "Affiches vedettes" ===== */

#featured {
  position: relative;
  background: var(--bg-elev); /* ⭐ On met le fond directement ici */
}

/* ❌ ON DÉSACTIVE LE ::before QUI CRÉE LE STACKING CONTEXT */
#featured::before {
  display: none !important;
}

/* =========================================================
   Widget d’aide FOCUS (bouton flottant + panneau)
   ========================================================= */

/* Lanceur : rond en bas à droite, qui s’étire au hover */
/* Bouton flottant */
/* =========================================================
   WIDGET D'AIDE - STYLE CORRIGÉ & UNIFIÉ
   ========================================================= */

/* Lanceur : rond en bas à droite */
/* =========================================================
   Aide : curseur au-dessus uniquement quand l’UI aide est ouverte
   ========================================================= */
body.help-ui-open #cursor {
  z-index: 10002;
}

body.help-ui-open .custom-cursor {
  z-index: 10003;
}



.help-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1200;
  
  display: inline-flex;
  flex-direction: row;          /* icône à droite, texte à gauche */
  align-items: center;
  justify-content: flex-end;
  gap: 10px;

  padding-right: 10px;
  padding-left: 16px;

  height: 54px;
  width: 54px;                  /* Au repos : un cercle parfait */

  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  color: var(--fg);
  cursor: pointer;

  /* Animation d'entrée (Pop) */
  transform-origin: center right;
  opacity: 0;
  transform: scale(0.6) translate3d(0, 0, 0);
  animation: help-launcher-pop 0.45s cubic-bezier(0.21, 0.7, 0.3, 1.1) 0.6s forwards;

  /* TRANSITION CORRIGÉE (Anti-tremblement) :
     On n'anime PAS 'transform' ici pour éviter le conflit avec l'effet aimanté JS */
transition:
    opacity 3s cubic-bezier(0.2, 0.8, 0.2, 1),       /* Animation fluide largeur */
    background 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
    /* IMPORTANT : Pas de transition sur 'transform' ici car le JS le gère */


      transform: none !important;

}

/* État survolé OU Panneau ouvert : Le bouton s'allonge */
.help-launcher:hover,
.help-launcher[aria-expanded="true"] {
  width: 210px; /* Il s'élargit pour montrer le texte */
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
}

/* Le texte à l'intérieur */
.help-launcher:hover .help-label,
.help-launcher[aria-expanded="true"] .help-label {
  opacity: 1;
  max-width: 150px;
  transform: translateX(0);
}

/* Responsive Mobile */
@media (max-width: 640px) {
  .help-launcher {
    right: 16px;
    bottom: 16px;
  }
}

/* Texte “Besoin d’aide ?” */
.help-label {
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  transform: translateX(6px);
  transition:
    opacity 0.22s ease,
    max-width 0.22s ease,
    transform 0.22s ease;
}

/* Icône rond + ? */
.help-icon {
  position: relative;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;                         /* centre bien le ? */
  place-items: center;
}

.help-icon-circle {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--bg-elev);
  border: 2px solid var(--fg);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.help-icon-q {
  position: relative;
  display: block;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  color: var(--fg);
  text-align: center;
  transform: translateY(-1px); /* petit micro-ajustement vers le haut */
}


/* Hover : le bouton s’allonge,
   et reste allongé si le panneau est ouvert */
.help-launcher:hover,
.help-launcher[aria-expanded="true"] {
  width: 210px;
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
}

.help-launcher:hover .help-label,
.help-launcher[aria-expanded="true"] .help-label {
  opacity: 1;
  max-width: 150px;
  transform: translateX(0);
}


/* Pop d’apparition */
@keyframes help-launcher-pop {
  0% {
    opacity: 0;
    transform: scale(0.4) translate3d(0, 0, 0);
  }
  100% {
    opacity: 1;
    transform: scale(1) translate3d(0, 0, 0);
  }
}


/* ----------------- Panneau d’aide ----------------- */

.help-panel {
  position: fixed;
  right: 24px;
  bottom: 92px; /* au-dessus du bouton */
  width: min(420px, 100% - 32px);
  height: min(560px, calc(100vh - 140px));
  border-radius: 22px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.65);
  z-index: 1200;
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

.help-panel.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.help-panel[hidden] {
  display: none;
}

@media (max-width: 640px) {
  .help-panel {
    right: 16px;
    bottom: 80px;
    width: min(100% - 20px, 420px);
    max-height: min(520px, calc(100vh - 120px));
  }
}

.help-panel-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0; /* important pour que le flex enfant puisse scroller */
}

/* Header panneau */
.help-panel-header {
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface) 88%, var(--bg-elev) 12%);
  transition: all 0.3s ease;
}
/* --- GESTION DU MENU RETRACTABLE --- */

/* Par défaut, les raccourcis sont visibles. 
   Quand on ajoute la classe 'is-menu-collapsed' au panneau, on les cache. */
.help-panel.is-menu-collapsed .help-shortcuts {
  display: none;
}
.help-panel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}














/* Nouveaux styles pour le Header du panel */
.help-panel-bar {
  /* On garde flex, mais on s'assure que les éléments bougent bien */
  gap: 8px;
}

/* 2. HEADER DU PANNEAU : Animation du bouton Retour */
.help-bar-left {
  display: flex;
  align-items: center;
  /* Pas de gap ici, on le gère dans l'animation pour que ce soit fluide */
}

.help-panel-back {
  /* État caché (départ) */
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--fg);
  
  /* Animation de sortie/entrée */
  max-width: 0;           /* Largeur 0 = invisible et ne prend pas de place */
  opacity: 0;
  margin-right: 0;
  border-width: 0;        /* On cache aussi la bordure */
  transform: translateX(-10px);
  pointer-events: none;   /* Non cliquable quand caché */
  overflow: hidden;
  
/* --- TRANSITIONS (Magie de l'animation) --- */
  transition: 
    max-width 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.25s ease,
    margin-right 0.35s ease,
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-width 0.2s ease;
}

.help-panel-back .material-symbols-rounded {
  font-size: 16px;
  min-width: 16px; /* Empêche l'écrasement de l'icône pendant l'anim */
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Ajustement du titre pour qu'il reste centré ou calé */
#help-panel-title {
  flex: 1;
  text-align: center;
  font-size: 0.98rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  /* Petit hack pour compenser visuellement la croix à droite */
  padding-right: 10px; 
}

/* État Visible (activé par JS) */
.help-panel-back.is-active {
  max-width: 32px;        /* Retrouve sa taille */
  opacity: 1;
  margin-right: 15px;      /* Pousse le bouton menu */
  border-width: 1px;
  transform: translateX(0);
  pointer-events: auto;
}





/* =========================================================
   CHATBOT FOCUS (Vue Assistant)
   ========================================================= */

/* Structure de la vue chat : Flex vertical pour pousser l'input en bas */
.help-view-chat {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 12px 16px 16px;
  overflow: hidden; /* On gère le scroll dans .chat-messages */
}

/* Zone des messages (scrollable) */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  
  /* Scrollbar fine comme le reste */
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

/* Styles des messages */
.message {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  max-width: 90%;
  animation: pop-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.message-bubble {
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 0.9rem;
  line-height: 1.4;
  position: relative;
}

.message-bubble p { margin: 0 0 6px; }
.message-bubble p:last-child { margin: 0; }

/* -- BOT (Gauche) -- */
.message-bot {
  align-self: flex-start;
}

.message-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--accent); /* Couleur Cyan néon */
  flex-shrink: 0;
}
.message-avatar span { font-size: 16px; }

.message-bot .message-bubble {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--fg);
  border-bottom-left-radius: 4px; /* Petit coin style bulle */
}

/* -- UTILISATEUR (Droite) -- */
.message-user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.message-user .message-bubble {
  background: var(--fg);      /* Fond clair (ou sombre selon thème) */
  color: var(--bg);           /* Texte inversé pour contraste */
  border-bottom-right-radius: 4px;
}

/* Zone de saisie (Input) */
.chat-input-area {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.chat-input-area input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--fg);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.chat-input-area input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--ring);
}

.chat-send-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--fg);
  color: var(--bg);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.chat-send-btn:hover {
  transform: scale(1.05);
}

@keyframes pop-in {
  from { opacity: 0; transform: translateY(10px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

















































.help-panel-header h2 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
}

/* petit bouton "menu" (3 barres) */
.help-panel-menu {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  
  /* --- CORRECTION --- */
  margin-left: -12px;  /* On pousse depuis la GAUCHE pour le déplacer vers la droite */
  margin-right: 0;    /* On enlève le margin-right qui ne servait pas */
  /* ------------------ */

  border: 1px solid var(--border);
  background: transparent;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  z-index: 10;
  position: relative;
  transition: transform 0.3s ease, background 0.2s ease;
}

.help-panel-menu span {
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: var(--fg-dim);
  transition: background 0.2s ease;
}

.help-panel-menu:hover {
  background: var(--bg-elev); /* Petit effet visuel au survol */
}

.help-panel-menu:hover span {
  background: var(--fg);
}
/* Croix de fermeture bien centrée et claire */
.help-panel-close {
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.help-panel-close span {
  color: var(--fg);
  font-size: 18px;
  line-height: 1;
}

/* Barre de recherche */
.help-search {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 4px 10px;
}

.help-search input {
  border: none;
  outline: none;
  background: transparent;
  color: var(--fg);
  font-size: 0.9rem;
  width: 100%;
}

.help-search input::placeholder {
  color: var(--muted);
}

/* Raccourcis FAQ / Claim / Contact */
.help-shortcuts {
  display: flex;
  gap: 8px;
  
  /* --- NOUVEAU : La délimitation --- */
  margin-top: 14px;              /* Espace entre la recherche et la ligne */
  padding-top: 14px;             /* Espace entre la ligne et les boutons */
  border-top: 1px solid var(--border); /* La ligne de séparation fine */
  
  /* Animation pour que ça soit fluide si on joue avec l'opacité */
  transition: opacity 0.3s ease;
}

/* Boutons néon, version mini */
.help-shortcut {
  position: relative;
  flex: 1 1 0;
  min-width: 0;

  min-height: 32px;                 /* plus petit */
  height: auto;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: #111111;

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

  font-size: 0.75rem;
  line-height: 1.2;
  color: #ffffff;
  white-space: normal;          /* pas de retour à la ligne */
  text-align: center;
  cursor: pointer;
  overflow: visible;

  /* base pour l’effet aimanté */
  transform: translate3d(0, 0, 0);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

/* halo néon plus discret */
.help-shortcut::before {
  content: "";
  position: absolute;
  inset: -40%;
  border-radius: inherit;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.25) 0%,
    rgba(255, 255, 255, 0) 55%
  );
  opacity: 0;
  filter: blur(10px);
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    filter 0.22s ease;
}


/* état "aimanté" → léger glow */
.help-shortcut.is-hovered {
  border-color: #ffffff;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.22);
}


.help-shortcut.is-hovered::before {
  opacity: 1;
  filter: blur(14px);
}

/* icône + label, sans fond chelou */
.help-shortcut .material-symbols-rounded {
  font-size: 16px;
}

.help-shortcut span:last-child {
  font-weight: 600;
  font-size: 0.78rem;
  line-height: 1.25;
}
.help-shortcut span {
  background: none;
}


/* Vue liste & vue article : prennent la hauteur dispo + scrollbar */
.help-view {
  flex: 1 1 auto;
  padding: 12px 16px 16px;
  overflow-y: auto;   /* scroll vertical à l’intérieur du panneau */
  overflow-x: hidden; /* pas de scroll horizontal */
}
/* Scrollbar custom dans le panneau d’aide */
.help-view {
  scrollbar-width: thin;
  scrollbar-color: color-mix(in oklab, var(--border) 70%, #000 30%)
                   transparent;
}

.help-view::-webkit-scrollbar {
  width: 6px;
}

.help-view::-webkit-scrollbar-track {
  background: transparent;
}

.help-view::-webkit-scrollbar-thumb {
  background: color-mix(in oklab, var(--border) 70%, #000 30%);
  border-radius: 999px;
}

.help-view::-webkit-scrollbar-thumb:hover {
  background: color-mix(in oklab, var(--border) 40%, #000 60%);
}


.help-section + .help-section {
  margin-top: 12px;
}

/* Titres + liens lisibles en clair */
.help-section-title {
  margin: 0 0 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fg);
}

/* liens suggérés */
.help-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.help-link {
  padding: 4px 0;
  border: none;
  background: none;
  text-align: left;
  font-size: 0.9rem;
  color: var(--accent);
  cursor: pointer;
}

/* Accordion catégories */
.help-accordion {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 6px 10px;
}

.help-category {
  border-bottom: 1px solid var(--border);
  padding-block: 4px;
}

.help-category:last-of-type {
  border-bottom: none;
}

.help-category > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
}

.help-category > summary::-webkit-details-marker {
  display: none;
}

.help-category > summary::after {
  content: "+";
  font-weight: 700;
  font-size: 1rem;
  color: var(--muted);
  transition: transform 0.2s ease, color 0.2s ease;
}

.help-category[open] > summary::after {
  content: "–";
  color: var(--fg);
}

.help-category ul {
  list-style: none;
  padding-left: 0;
  margin: 4px 0 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.help-link,
.help-question {
  padding: 4px 0;
  border: none;
  background: none;
  text-align: left;
  font-size: 0.9rem;
  color: var(--fg);            /* bien visible */
  cursor: pointer;
}

.help-link:hover,
.help-question:hover {
  color: var(--fg);   /* même couleur qu’au repos → aucun effet visuel */
}


/* Bouton “Retour au centre d’aide” en clair */
.help-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 4px 10px;
  font-size: 0.82rem;
  margin-bottom: 10px;
  cursor: pointer;
  color: var(--fg);
}
.help-article-title {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 600;
}

.help-article-body {
  font-size: 0.88rem;
  color: var(--fg-dim);
}

.help-article-body p {
  margin: 0 0 8px;
}

.help-article-body ul {
  margin: 0 0 8px 18px;
  padding: 0;
}

/* ==== Overrides widget d’aide FOCUS ==== */

/* Centre parfaitement le ? dans le rond */
.help-icon {
  position: relative;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transform: translateX(2px);   /* 👈 décale légèrement le rond vers la droite */
}
.help-icon-circle {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--bg-elev);
  border: 2px solid var(--fg);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.help-icon-q {
  position: relative;
  display: block;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  color: var(--fg);
}



/* Quand le panneau est OUVERT :
   - le bouton s’allonge vers la gauche
   - le texte “Besoin d’aide ?” apparaît */
.help-launcher[aria-expanded="true"] {
  width: 210px;
}

.help-launcher[aria-expanded="true"] .help-label {
  opacity: 1;
  max-width: 150px;
  transform: translateX(0);
}


/* --- MODE FAQ --- */
/* Quand le panneau a la classe 'is-faq-mode', on cache les suggestions */
.help-panel.is-faq-mode #help-section-suggestions {
  display: none;
}



/* --- VUE FORMULAIRE RÉCLAMATION --- */

.help-form-title {
  margin: 0 0 20px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--fg);
}

.help-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-bottom: 20px;
}

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

.help-form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fg);
}

.help-form-group .req {
  color: var(--danger, #ff5f5f);
}

.help-form-desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
  margin: 0 0 6px;
}

/* Inputs & Textarea */
.help-input,
.help-select,
.help-textarea {
  width: 100%;
  background: var(--surface); /* Fond unifié */
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--fg);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.help-input:focus,
.help-select:focus,
.help-textarea:focus {
  border-color: var(--accent, #ccc);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

/* Select custom arrow */
.select-wrapper {
  position: relative;
}
.select-wrapper .select-arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 20px;
  color: var(--muted);
}
.help-select {
  appearance: none;
  cursor: pointer;
}

/* File Input (Custom) */
.file-input-wrapper {
  position: relative;
  overflow: hidden;
  display: inline-block;
}

.help-file-input {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 2;
}

.file-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--fg-dim);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}

.help-file-input:hover + .file-btn,
.help-file-input:focus + .file-btn {
  background: var(--surface);
  border-color: var(--fg);
  color: var(--fg);
}

/* Bouton submit pleine largeur */
.full-width {
  width: 100%;
  justify-content: center;
  margin-top: 10px;
}

/* --- CORRECTION POUR LA LISIBILITÉ DU BOUTON SUBMIT (Réclamation) --- */

/* Force la couleur du texte en blanc pour le bouton primaire (Envoyer)
   lorsqu'il est dans une vue du centre d'aide. */
.help-view .cta.cta-primary {
    color: #ffffff !important; 
    /* Utilisation de !important pour s'assurer que cette couleur prime sur l'héritage. */
}
/* --- CORRECTION POUR LA LISIBILITÉ DU BOUTON SUBMIT EN MODE CLAIR --- */

html.theme-light .help-view .cta.cta-primary {
    /* En mode clair, --fg est noir. On force la couleur du texte à var(--fg). */
    color: var(--fg) !important; 
    /* var(--fg) est #181818 en mode clair */
}





























   /* --------- BOUTON NEON --------- */
.neon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 36px;
  height: 52px;

  border-radius: 999px;
  border: 1px solid transparent;
  
  /* CHANGEMENT ICI : On utilise les variables du thème */
  background: var(--bg);   
  color: var(--fg);
  
  text-decoration: none;
  overflow: visible;

  /* magnétisme SANS transform */
  left: 0;
  top: 0;

  transition:
    border-width 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    color 0.25s ease, /* On ajoute la transition de couleur */
    left 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
    top 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.neon-btn__inner {
  position: relative;
  padding: 0 12px;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: inherit;
  z-index: 2; /* au-dessus de la sphère blanche (::before) */
}

/* le texte du bouton */
.neon-btn__label {
  position: relative;
  
  /* C'est ICI la correction : */
  /* Le curseur est souvent à 9999. On met le texte à 10000 pour qu'il passe DEVANT. */
  z-index: 10000 !important; 

  font-size: 18px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--fg);
  left: 0;
  top: 0;
  transition:
    left 0.25s ease,
    top 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}


/* ---- SPHÈRE BLANCHE / GLOW ---- */
/* ---- SPHÈRE / GLOW ---- */
.neon-btn::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform: translate(-50%, -50%) scale(0.2);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  
  /* CHANGEMENT ICI : On utilise color-mix pour la transparence sur la variable --fg */
  background: radial-gradient(circle,
    color-mix(in srgb, var(--fg), transparent 0%) 0%,
    color-mix(in srgb, var(--fg), transparent 20%) 40%,
    transparent 80%
  ) !important;
  
  opacity: 0;
  filter: blur(18px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    width 0.35s ease,
    height 0.35s ease,
    filter 0.35s ease;
}

/* quand on est sur le bouton : sphère blanche visible */
.neon-btn.is-hovered::before {
opacity: 1;
  /* Important : scale(1) pour qu'elle prenne sa taille réelle définie ci-dessous */
  transform: translate(-50%, -50%) scale(1);
  
  /* MODIFICATION : Taille fixe beaucoup plus grande que le bouton */
  width: 180px;
  height: 180px;
  
  /* On augmente un peu le flou pour que la grande sphère soit douce */
  filter: blur(25px);
}

/* ---- BORDURE QUI SE TRANSFORME EN SPHÈRE (RING) ---- */

/* anneau blanc qui suit exactement la bordure au repos */
/* ---- BORDURE QUI SE TRANSFORME EN SPHÈRE (RING) ---- */
/* ---- BORDURE QUI SE TRANSFORME EN SPHÈRE (RING) ---- */
.neon-btn::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  
  /* CHANGEMENT ICI : Bordure dynamique */
  border: 1px solid var(--fg) !important;
  
  pointer-events: none;
  z-index: 1;
  opacity: 1;
  transition:
    width 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
    height 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
    border-radius 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 0.45s ease;
}

/* au survol : l’anneau grossit → cercle, puis disparaît en < 1s */
.neon-btn.is-hovered::after {
/* MODIFICATION : On le fait disparaître complètement */
  opacity: 0;
  
  /* Astuce : on l'agrandit en le faisant disparaître pour un effet de dissipation,
     au lieu qu'il se contracte au centre */
  width: 150px;
  height: 150px;
  border-radius: 50%;
}

/* --------- TEXTE QUI RÉAGIT AU FOND --------- */

.neon-btn.is-hovered .neon-btn__label {
  color: transparent;             /* la couleur vient du background */
  -webkit-background-clip: text;
  background-clip: text;
}











/* --------- CURSEUR CUSTOM --------- */
.custom-cursor {
  background: #ffffff;
  position: fixed;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;                  /* sous le bouton (z=10), au-dessus du fond */
  transform: translate(-50%, -50%);
  transition:
    width 0.25s ease,
    height 0.25s ease,
    background 0.25s ease,
    filter 0.25s ease,
    opacity 0.25s ease;
  opacity: 1;
}

/* quand le curseur est sur le bouton */
.custom-cursor.cursor--on-button {
  width: 70px;
  height: 70px;
  
  /* CHANGEMENT ICI : Le curseur prend la couleur du FOND (Noir en dark, Blanc en light) */
  background: var(--bg); 
  
  filter: blur(8px);
}






#featured.section {
  position: static !important;
  z-index: auto !important;
  isolation: auto !important;
}

#featured.section::before {
  display: none !important; /* enlève le fond 100vw qui force le stacking context */
}










/* =========================================================
   Curseur personnalisé (desktop uniquement)
   ========================================================= */
@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }

  #cursor {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 10; /* oui, six 9 – pour passer devant tous tes stacking contexts */

  }
.cursor-core, .cursor-halo {
    position: fixed;
    left: 0;
    top: 0;
    transform: none !important;   /* crucial */
    will-change: left, top, opacity;
    pointer-events: none;
    translate: -50% -50%; /* tu peux garder, ça centre */
}

  .cursor-core {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--fg);
    mix-blend-mode: difference;
    box-shadow: 0 0 12px rgba(255,255,255,0.75);
    z-index: -1;
  }
  .cursor-halo {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--ring), transparent 60%);
    opacity: .6;
    filter: blur(6px);
  }

  /* État "over interactive" (JS ajoutera .cursor-interactive sur body) */
  body.cursor-interactive .cursor-halo {
    width: 58px; height: 58px; opacity: .9;
  }
}



/* === CURSEUR : comportement désiré === */

/* 1) La boule noire du bouton est invisible hors hover */
.custom-cursor {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* 2) Quand on est sur le bouton → la boule apparaît */
.custom-cursor.cursor--on-button {
  opacity: 1 !important;
}

/* 3) Quand la boule noire est active → cache le curseur FOCUS */
.custom-cursor.cursor--on-button ~ #cursor {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* 4) Sécurité : si la souris est sur le bouton → cache aussi le curseur FOCUS */
.neon-btn:hover ~ #cursor {
  opacity: 0 !important;
}


/* === CURSEUR GLOBAL (ajusté) === */
#cursor .cursor-core {
  background: var(--cursor-core-color, #f5f5f5);
  width: 8px;      /* avant ~12px */
  height: 8px;
}

#cursor .cursor-halo {
  background: var(--cursor-halo-color, rgba(119, 119, 119, 0.25));
  width: 40px;     /* avant ~60px */
  height: 40px;
}

/* Thème clair → halo plus doux */
html.theme-light #cursor .cursor-halo {
  background: rgba(0, 0, 0, 0.1);
}


:root {
  --cursor-core: var(--fg);        /* "blanc" du site */
  --cursor-blob: var(--surface);   /* gris du site (remplace le noir) */
  --cursor-ring: var(--bg);        /* pour le masque du texte */
}



/* Boule = gris du site, core = blanc du site */
@media (hover: hover) and (pointer: fine) {
  .custom-cursor { background: var(--cursor-core) !important; }
  .custom-cursor.cursor--on-button {
    background: var(--cursor-blob) !important;
    filter: blur(8px);
  }
}


/* état hover du bouton principal */
.neon-btn:hover {
  /* On rend le fond transparent pour ne voir que la sphère */
  background: transparent; 
  /* On s'assure que la bordure est aussi transparente */
  border-color: transparent;
}

/* état hover de la SPHÈRE (le glow) */
.neon-btn:hover::before {
  opacity: 1;
  /* Important : scale(1) pour qu'elle prenne sa taille réelle définie ci-dessous */
  transform: translate(-50%, -50%) scale(1);
  
  /* MODIFICATION : Taille fixe beaucoup plus grande que le bouton */
  width: 180px;
  height: 180px;
  
  /* On augmente un peu le flou pour que la grande sphère soit douce */
  filter: blur(25px);
}








































/* =========================================================
   Page d'authentification FOCUS
   ========================================================= */

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 12px;
}

.auth-panel {
  width: min(100%, 420px);
  padding: 24px 20px 22px;
  border-radius: var(--radius-2xl);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.auth-head h1 {
  margin-bottom: 4px;
  font-size: 1.4rem;
}
.auth-head p {
  margin: 0 0 12px;
  color: var(--fg-dim);
  font-size: .95rem;
}

/* Tabs */
.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.auth-tab {
  flex: 1;
  padding: 8px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--fg-dim);
  font-weight: 600;
  cursor: pointer;
}
.auth-tab.is-active {
  background: var(--surface);
  color: var(--fg);
  box-shadow: 0 0 0 1px var(--border), 0 0 14px rgba(0,0,0,0.18);
}

/* Vues */
.auth-views {
  margin-bottom: 16px;
}
.auth-view {
  display: none;
}
.auth-view.is-active {
  display: block;
}

.field {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
}
.field label {
  font-size: .9rem;
  color: var(--fg-dim);
}
.field input {
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 10px 14px;
  background: var(--bg-elev);
  color: var(--fg);
}
.field input:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

/* Boutons submit */
.auth-submit {
  width: 100%;
  justify-content: center;
}

/* Séparateur */
.auth-separator {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 12px;
  font-size: .85rem;
  color: var(--muted);
}
.auth-separator::before,
.auth-separator::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Boutons sociaux */
.auth-socials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--fg);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
}
.social-btn:hover {
  box-shadow: 0 0 14px rgba(0,0,0,0.2);
  transform: translateY(-1px);
}

/* Message */
.auth-message {
  margin: 4px 0 0;
  font-size: .9rem;
}
.auth-message.error {
  color: var(--danger);
}
.auth-message.success {
  color: var(--ok);
}

/* Mobile */
@media (max-width: 600px) {
  .auth-panel {
    padding: 20px 16px 18px;
  }
}
/* Halo + anneau un peu plus petits pour éviter le crop */
.neon-btn.is-hovered::before,
.neon-btn.is-hovered::after {
  width: 200px !important;       /* 220px -> 160px */
  height: 200px !important;
}

/* Le bouton lui-même doit devenir transparent */
.neon-btn.is-hovered {
  background: transparent;
  border-color: transparent;
}





/* =========================================================
   CONTACT V2 (Redesign)
   ========================================================= */

/* --- Layout Général --- */
.contact-hero-v2 {
  padding-top: 120px;
  padding-bottom: 60px;
  text-align: left;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: 24px;
}

.contact-hero-v2 h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  margin: 0;
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.contact-layout-v2 {
  display: grid;
  grid-template-columns: 1fr 1.2fr; /* Infos à gauche, Form à droite un peu plus large */
  gap: clamp(40px, 8vw, 120px);
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: 24px;
  padding-bottom: 120px;
  align-items: start;
}

/* --- Colonne Gauche : Infos Sticky --- */
.contact-infos {
  position: relative;
}

.contact-sticky-wrapper {
  position: sticky;
  top: 120px; /* Colle au scroll */
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.info-block h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 12px;
}

.big-mail-link {
  display: block;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 600;
  color: var(--fg);
  text-decoration: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.big-mail-link:hover {
  opacity: 0.7;
  transform: translateX(10px); /* Petit effet de mouvement */
}

.info-sub {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--fg-dim);
}

.social-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.social-pills a {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.social-pills a:hover {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

/* --- Colonne Droite : Formulaire --- */

.styled-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

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

.form-group label {
  font-size: 0.9rem;
  font-weight: 500;
  margin-left: 4px;
}

/* Inputs modernes : Fond doux, pas de bordure agressive */
.styled-form input,
.styled-form textarea,
.styled-form select {
  width: 100%;
  background: var(--surface); /* Fond légèrement différent du body */
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 16px 20px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--fg);
  transition: all 0.2s ease;
  outline: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.styled-form input:focus,
.styled-form textarea:focus,
.styled-form select:focus {
  background: var(--bg);
  border-color: var(--fg); /* Bordure s'allume au focus */
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.styled-form textarea {
  resize: vertical;
  min-height: 150px;
}

/* Select Custom */
.select-wrapper {
  position: relative;
}
.select-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--muted);
}
.styled-form select {
  appearance: none;
  cursor: pointer;
}

/* Checkbox Custom (Sexy) */
.custom-checkbox {
  display: flex;
  align-items: center; /* Alignement vertical centré */
  gap: 12px;
  cursor: pointer;
  margin-top: 10px;
  user-select: none;
}

.custom-checkbox input {
  display: none; /* Cache la checkbox native */
}

.checkmark {
  width: 24px;
  height: 24px;
  min-width: 24px; /* Empêche l'écrasement */
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
}

.checkmark span {
  font-size: 16px;
  color: var(--bg); /* Checkmark couleur du fond */
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* État coché */
.custom-checkbox input:checked + .checkmark {
  background: var(--fg); /* Fond devient la couleur du texte (Noir/Blanc) */
  border-color: var(--fg);
}

.custom-checkbox input:checked + .checkmark span {
  opacity: 1;
  transform: scale(1);
}

.label-text {
  font-size: 0.9rem;
  color: var(--fg-dim);
  line-height: 1.4;
}

/* Bouton submit : On aligne à gauche */
.form-submit {
  margin-top: 20px;
}

/* Bouton Néon Submit Adjustments */
.form-submit .neon-btn {
  width: 100%; /* Pleine largeur sur mobile */
  border: none;
  cursor: pointer;
}

@media (min-width: 768px) {
  .form-submit .neon-btn {
    width: auto; /* Largeur auto sur desktop */
    min-width: 200px;
  }
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .contact-layout-v2 {
    grid-template-columns: 1fr; /* Une seule colonne */
    gap: 60px;
  }
  
  .contact-sticky-wrapper {
    position: static; /* Plus sticky sur mobile */
    gap: 40px;
  }
  
  .contact-layout-v2 {
    display: flex;
    flex-direction: column-reverse; /* Formulaire EN PREMIER sur mobile, Infos en dessous */
  }
  
  .contact-hero-v2 h1 {
    font-size: 3rem;
  }
}


/* =========================================================
   Correction du Z-Index pour la page Contact
   ========================================================= */

/* On désactive le contexte d'empilement qui "piège" le bouton */
.section.contact-layout-v2 {
  position: static !important;
  z-index: auto !important;
  isolation: auto !important;
}

/* On cache le pseudo-élément de fond qui pourrait gêner */
.section.contact-layout-v2::before {
  display: none !important;
}




/* =========================================================
   BLOG V2 (Redesign Éditorial)
   ========================================================= */

/* --- Hero --- */
.blog-hero-v2 {
  padding-top: 120px;
  padding-bottom: 40px;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: 24px;
}

.blog-hero-v2 h1 {
  font-size: clamp(3rem, 6vw, 6rem);
  margin: 0;
  line-height: 0.9;
  letter-spacing: -0.03em;
}

/* --- Featured Post (A la une) --- */
.featured-post-section {
  padding-block: 40px 80px; /* Espace autour */
}

.featured-card {
  position: relative;
  display: block;
}

.featured-link {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  text-decoration: none;
  color: var(--fg);
}

.featured-image {
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 16/9;
  /* Petite astuce : ombre portée colorée */
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.3);
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Zoom lent au survol de tout l'article */
.featured-link:hover .featured-image img {
  transform: scale(1.05);
}

.featured-content {
  padding-right: 20px;
}

.featured-content .tag {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent); /* Couleur vive du thème */
  margin-bottom: 16px;
  font-weight: 600;
}

.featured-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 16px;
  line-height: 1.1;
}

.featured-content p {
  font-size: 1.1rem;
  color: var(--fg-dim);
  margin-bottom: 24px;
  line-height: 1.6;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: gap 0.2s ease;
}

.featured-link:hover .read-more {
  gap: 12px; /* La flèche bouge un peu */
}

/* --- Layout Principal (Sidebar + Grille) --- */
.blog-layout-v2 {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 60px;
  align-items: start;
}

/* Sidebar Sticky */
.blog-sticky-wrapper {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  /* AJOUTEZ CETTE LIGNE : */
  /* Cela place la sidebar (et son bouton) au-dessus du curseur (qui est à 2) */
  z-index: 1;
}

/* Recherche */
.blog-search-box {
  position: relative;
  background: var(--surface);
  border-radius: 999px;
  padding: 4px 16px;
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
}

.blog-search-box input {
  border: none;
  background: transparent;
  width: 100%;
  padding: 10px 0;
  color: var(--fg);
  font-family: inherit;
  outline: none;
}
.blog-search-box span {
  color: var(--muted);
}

/* Filtres */
.blog-filters-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.blog-filters-list h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
  letter-spacing: 0.1em;
}

.filter-link {
  background: none;
  border: none;
  padding: 0;
  font-size: 1rem;
  color: var(--fg-dim);
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease;
}

.filter-link:hover,
.filter-link.is-active {
  color: var(--fg);
  font-weight: 500;
}

/* Petit point à gauche pour l'actif */
.filter-link.is-active::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* Mini Newsletter dans la sidebar */
.blog-newsletter-mini p {
  font-size: 0.85rem;
  color: var(--fg-dim);
  margin: 4px 0 16px;
}

/* Neon btn en version petite pour sidebar */
.neon-btn-mini {
  height: 40px;
  padding: 0 24px;
}
.neon-btn-mini .neon-btn__label {
  font-size: 14px;
}

/* --- Grille Articles --- */
.blog-grid-v2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 colonnes strictes */
  gap: 40px;
}

.article-card-v2 {
  display: flex;
  flex-direction: column;
}

.article-card-v2 a {
  text-decoration: none;
  color: var(--fg);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card-image {
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 4/3; /* Format un peu plus carré pour la grille */
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.article-card-v2:hover .card-image img {
  transform: scale(1.06);
}

.card-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-meta {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-content h3 {
  font-size: 1.25rem;
  margin: 0;
  line-height: 1.3;
}

/* Pagination Centrée */
.blog-pagination {
  margin-top: 80px;
  display: flex;
  justify-content: center;
}

/* --- Responsive --- */
@media (max-width: 960px) {
  /* Featured passe en colonne */
  .featured-link {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .featured-content {
    padding-right: 0;
  }
  .blog-layout-v2 {
    grid-template-columns: 1fr;
  }
  
  .blog-sticky-wrapper {
    position: static;
    margin-bottom: 40px;
  }
  
  /* Filtres en scroll horizontal sur mobile */
  .blog-filters-list {
    flex-direction: row;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 10px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }
  
  .blog-search-box, .blog-newsletter-mini {
    display: none; /* On cache les trucs secondaires sur mobile pour épurer */
  }
}

@media (max-width: 600px) {
  .blog-grid-v2 {
    grid-template-columns: 1fr; /* 1 colonne sur petit mobile */
    gap: 40px;
  }
  .blog-hero-v2 h1 {
    font-size: 3.5rem;
  }
}

/* =========================================================
   Correction du Z-Index pour la page Blog
   ========================================================= */

/* On libère la section principale du blog */
.section.blog-layout-v2 {
  position: static !important;
  z-index: auto !important;
  isolation: auto !important;
}

/* On supprime le fond pseudo-élément qui pourrait gêner */
.section.blog-layout-v2::before {
  display: none !important;
}

/* FIX : Empêche le wrapper sticky de casser le curseur */
.blog-sticky-wrapper {
  position: static !important;
  isolation: auto !important;
  z-index: auto !important;
  overflow: visible !important;
}





/* =========================================================
   BOUTIQUE V2 (Galerie Style)
   ========================================================= */

/* --- Hero --- */
.shop-hero-v2 {
  padding-top: 140px;
  padding-bottom: 60px;
  text-align: center;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: 24px;
}

.shop-hero-v2 h1 {
  font-size: clamp(3.5rem, 8vw, 7rem); /* Très gros titre */
  margin: 0;
  line-height: 0.9;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, var(--fg), var(--fg-dim));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-bottom: 10px; /* Pour le descendeur des lettres */
}

.hero-desc {
  margin-top: 16px;
  font-size: 1.1rem;
  color: var(--muted);
}

/* --- Layout --- */
.shop-layout-v2 {
  /* On ne met pas de grid ici, c'est un flux vertical */
  display: block; 
}

/* --- Barre de Contrôle Sticky (Z-Index Fix) --- */
/* Fichier : style-focus.css */

.shop-controls-sticky {
  position: sticky;
  
  /* MODIFICATION ICI : On passe de 20px à 100px (ou plus selon vos goûts) */
  /* Cela force la barre à s'arrêter plus bas, sous votre header */
  top: 100px; 
  
  z-index: 50;
  margin-bottom: 40px;
  padding-inline: 16px;
  pointer-events: none;
}

.shop-controls-inner {
  pointer-events: auto; /* Réactive les clics sur la barre */
  max-width: var(--container);
  margin: 0 auto;
  background: rgba(var(--bg-rgb), 0.8); /* Fallback */
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
  border-radius: 999px;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Partie Gauche : Filtres */
.filter-group-horizontal {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}

.filter-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  white-space: nowrap;
}

.filter-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none; /* Cache scrollbar Firefox */
  padding-bottom: 0;
}
.filter-scroll::-webkit-scrollbar { display: none; } /* Cache scrollbar Chrome */

/* Pills des filtres */
.shop-controls-inner .filter-pill {
  white-space: nowrap;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.9rem;
  color: var(--fg-dim);
  cursor: pointer;
  transition: all 0.2s ease;
}

.shop-controls-inner .filter-pill:hover {
  color: var(--fg);
  background: var(--bg-elev);
}

.shop-controls-inner .filter-pill.is-active {
  background: var(--fg);
  color: var(--bg); /* Texte inversé */
  font-weight: 500;
}

/* Partie Droite : Outils */
.shop-tools {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.count-badge {
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--bg-elev);
  padding: 4px 10px;
  border-radius: 6px;
}

/* Select de tri style minimal */
.shop-sort-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.sort-select {
  appearance: none;
  background: transparent;
  border: none;
  color: var(--fg);
  font-family: inherit;
  font-size: 0.9rem;
  padding-right: 24px;
  cursor: pointer;
  outline: none;
  text-align: right;
}

.sort-icon {
  position: absolute;
  right: 0;
  pointer-events: none;
  font-size: 18px;
  color: var(--fg-dim);
}

/* --- Grille Produits --- */
.shop-grid-v2 {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 60px 40px; /* Gap vertical plus grand */
}

/* Carte Produit */
.product-card-v2 {
  position: relative;
  display: block;
  /* Animation d'entrée */
  animation: fade-up 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

/* Décalage d'animation pour chaque carte (jusqu'à 10) */
.product-card-v2:nth-child(1) { animation-delay: 0.1s; }
.product-card-v2:nth-child(2) { animation-delay: 0.2s; }
.product-card-v2:nth-child(3) { animation-delay: 0.3s; }
.product-card-v2:nth-child(4) { animation-delay: 0.4s; }
.product-card-v2:nth-child(5) { animation-delay: 0.5s; }
.product-card-v2:nth-child(6) { animation-delay: 0.6s; }

.pc-link {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  group: normal; /* Pour hover state */
}

/* Média (Image) */
.pc-media {
  position: relative;
  border-radius: 4px; /* Coins presque carrés, style galerie */
  overflow: hidden;
  aspect-ratio: 3/4; /* Ratio affiche standard */
  background: var(--bg-elev);
}

.pc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Overlay au survol */
.pc-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.2);
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pc-btn {
  background: var(--surface);
  color: var(--fg);
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Interaction Hover */
.pc-link:hover .pc-media img {
  transform: scale(1.08); /* Zoom lent */
}
.pc-link:hover .pc-overlay {
  opacity: 1;
}
.pc-link:hover .pc-btn {
  transform: translateY(0);
}

/* Infos Produit */
.pc-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.pc-info h3 {
  font-size: 1.1rem;
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.pc-tag {
  display: block;
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--muted);
}

.pc-price {
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
}

/* Footer Actions */
.shop-footer-actions {
  display: flex;
  justify-content: center;
  margin-top: 80px;
  padding-bottom: 40px;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .shop-controls-inner {
    flex-direction: column;
    align-items: stretch;
    border-radius: 16px;
    padding: 12px 16px;
    gap: 12px;
  }
  
  .filter-group-horizontal {
    justify-content: space-between;
  }
  
  .shop-tools {
    justify-content: space-between;
    border-top: 1px solid var(--border);
    padding-top: 10px;
  }
}

@media (max-width: 600px) {
  .shop-grid-v2 {
    grid-template-columns: 1fr; /* 1 colonne sur mobile */
    gap: 40px;
  }
  
  .shop-hero-v2 h1 {
    font-size: 3.5rem;
  }
}

/* Animation Keyframes */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}














/* =========================================================
   PANIER V2 (Redesign)
   ========================================================= */

/* --- Hero --- */
.cart-hero-v2 {
  padding-top: 120px;
  padding-bottom: 40px;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: 24px;
}

.cart-hero-v2 h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  margin: 0;
  line-height: 0.9;
  letter-spacing: -0.03em;
}

/* --- Layout Principal --- */
.cart-layout-v2 {
  display: grid;
  grid-template-columns: 1fr 380px; /* Liste large | Résumé compact */
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
  position: relative;
  /* On libère le contexte pour le bouton néon */
  z-index: auto;
}

/* Si panier vide, on cache la grille */
.cart-layout-v2:has(.cart-empty:not([hidden])) {
  display: block; /* Pour centrer le bloc vide */
}


/* --- Colonne Liste (Items) --- */
.cart-items-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cart-list-header {
  display: flex;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.cart-list {
  display: flex;
  flex-direction: column;
}

/* Item Panier */
.cart-item-v2 {
  display: grid;
  grid-template-columns: 100px 1fr auto; /* Image | Infos | Prix Total */
  gap: 24px;
  padding-block: 24px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

/* Image */
.ci-media {
  width: 100px;
  aspect-ratio: 3/4;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-elev);
}
.ci-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Détails centraux */
.ci-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ci-info h3 {
  font-size: 1.1rem;
  margin: 0 0 4px;
}
.ci-meta {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.ci-unit-price {
  font-size: 0.85rem;
  color: var(--fg-dim);
  margin-top: 4px;
}

/* Actions (Qty + Remove) */
.ci-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Selecteur Quantité Custom */
.qty-selector {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  background: var(--bg-elev);
}

.qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--surface);
  color: var(--fg);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s;
}
.qty-btn:hover {
  background: var(--fg);
  color: var(--bg);
}
.qty-btn .material-symbols-rounded {
  font-size: 16px;
}

.qty-input {
  width: 36px;
  text-align: center;
  border: none;
  background: transparent;
  color: var(--fg);
  font-weight: 600;
  font-size: 1rem;
  pointer-events: none; /* Lecture seule visuelle, boutons gèrent */
}

/* Lien retirer */
.ci-remove {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: all 0.2s;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.ci-remove:hover {
  color: var(--danger);
}

/* Prix Total Ligne */
.ci-total {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--fg);
}

/* Note de commande */
.cart-note-block {
  margin-top: 20px;
}
.cart-note-label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 8px;
}
.cart-note-input {
  width: 100%;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  color: var(--fg);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border 0.2s;
}
.cart-note-input:focus {
  border-color: var(--fg);
}


/* --- Colonne Résumé (Sticky Droite) --- */
.cart-summary-column {
  position: relative;
  z-index: 10; /* Au-dessus du curseur éventuellement */
}

.cart-summary-card {
  position: sticky;
  top: 120px; /* Flotte sous le header */
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.cart-summary-card h2 {
  font-size: 1.2rem;
  margin-bottom: 24px;
}

.summary-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  color: var(--fg-dim);
}

.summary-row.total {
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--fg);
}

.summary-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Ajustement bouton néon pleine largeur */
.neon-btn.full-width {
  width: 100%;
  padding: 0; /* Le padding est géré par la flexbox interne */
}

.secure-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--muted);
}
.secure-text span { font-size: 14px; }

.summary-foot {
  margin-top: 20px;
  text-align: center;
}
.link-back {
  font-size: 0.9rem;
  color: var(--fg-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.link-back:hover {
  color: var(--fg);
}


/* --- État Panier Vide --- */
.cart-empty {
  text-align: center;
  padding: 80px 0;
}

/* ✅ CORRECTION : On cible la bonne classe */
.cart-empty-cinematic[hidden] {
  display: none !important;
}

.empty-content {
  max-width: 480px;
  margin: 0 auto;
}
.empty-content h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}
.empty-content p {
  color: var(--fg-dim);
  margin-bottom: 32px;
  font-size: 1.1rem;
}


/* --- Responsive --- */
@media (max-width: 900px) {
  .cart-layout-v2 {
    grid-template-columns: 1fr; /* Une seule colonne */
    gap: 60px;
  }
  
  .cart-list-header {
    display: none; /* On cache les titres sur mobile */
  }

  .cart-item-v2 {
    grid-template-columns: 80px 1fr; /* Image | Infos */
    grid-template-areas: 
      "img info"
      "img total";
    gap: 16px;
  }
  
  .ci-media { grid-area: img; width: 80px; }
  .ci-details { grid-area: info; }
  .ci-total { 
    grid-area: total; 
    text-align: left;
    margin-top: -10px; /* Remonte un peu */
  }

  /* Sur mobile, les actions passent en dessous */
  .ci-actions {
    margin-top: 10px;
    justify-content: space-between;
    width: 100%;
  }
}





/* =========================================================
   PAGE PRODUIT V2 (Style Galerie Immersive)
   ========================================================= */


/* =========================================================
   BARRE FILTRES "CINEMATIC" (Boutique V3)
   ========================================================= */

.shop-controls-sticky {
  position: sticky;
  top: 100px; /* Colle sous le header */
  z-index: 40; /* Au-dessus des produits, sous le menu mobile */
  margin-bottom: 60px;
  padding-inline: 16px;
  
  /* Laisse passer les clics sur les côtés (vide) */
  pointer-events: none; 
  
  /* Animation d'entrée douce */
  animation: fade-up 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s backwards;
}

/* Le conteneur en verre */
.shop-controls-glass {
  pointer-events: auto; /* Réactive les clics sur la barre */
  max-width: var(--container);
  margin: 0 auto;
  
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 12px;
  
  background: rgba(var(--surface-rgb), 0.75); /* Fallback si var rgb existe */
  background: var(--surface); /* Fallback simple */
  /* Si tu as défini --bg-elev ou --surface comme couleur solide, on ajoute de la transparence ici */
  background: color-mix(in srgb, var(--surface), transparent 15%);
  
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  
  border: 1px solid var(--border);
  border-radius: 999px; /* Forme de pilule géante */
  box-shadow: 
    0 10px 40px -10px rgba(0,0,0,0.3), /* Ombre portée */
    inset 0 1px 0 rgba(255,255,255,0.1); /* Petit reflet en haut */
}

/* --- GROUPE GAUCHE (FILTRES) --- */
.filter-group-cinematic {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden; /* Masque si ça dépasse */
  flex: 1; /* Prend la place dispo */
}

.filter-label-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-elev);
  color: var(--muted);
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.filter-label-icon span { font-size: 18px; }

.filter-scroll-container {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 0;
  
  /* Cache scrollbar */
  scrollbar-width: none; 
  -ms-overflow-style: none;
}
.filter-scroll-container::-webkit-scrollbar { display: none; }

/* BOUTONS FILTRES (PILLS) */
.filter-pill-cine {
  white-space: nowrap;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--fg-dim);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  overflow: hidden;
}

/* Hover : Légère surbrillance */
.filter-pill-cine:hover {
  color: var(--fg);
  background: var(--bg-elev);
  border-color: var(--border);
}

/* Actif : Style Néon/Plein */
.filter-pill-cine.is-active {
  background: var(--fg); /* Fond blanc/noir selon thème */
  color: var(--bg);      /* Texte inversé */
  border-color: var(--fg);
  font-weight: 600;
  box-shadow: 0 0 20px -5px var(--accent); /* Petit glow coloré */
}

/* --- GROUPE DROITE (OUTILS) --- */
.tools-group-cinematic {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0; /* Ne rétrécit pas */
}

/* Compteur */
.count-badge-cine {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 0.9rem;
  color: var(--fg);
  font-variant-numeric: tabular-nums; /* Chiffres alignés */
}
.count-num { font-weight: 700; color: var(--accent); }
.count-label { color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }

/* Séparateur vertical */
.tool-separator {
  width: 1px;
  height: 24px;
  background: var(--border);
}

/* Tri (Select) */
.shop-sort-cine {
  position: relative;
  display: flex;
  align-items: center;
}

.sort-select-cine {
  appearance: none;
  background: transparent;
  border: none;
  color: var(--fg);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 32px 8px 8px; /* Place pour la flèche */
  cursor: pointer;
  outline: none;
  text-align: right;
  border-radius: 8px;
  transition: background 0.2s;
}

.sort-select-cine:hover {
  background: var(--bg-elev);
}

.sort-arrow {
  position: absolute;
  right: 4px;
  pointer-events: none;
  font-size: 20px;
  color: var(--muted);
  transition: transform 0.2s;
}

/* Interaction Focus sur le select */
.sort-select-cine:focus + .sort-arrow {
  color: var(--accent);
  transform: rotate(180deg);
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 900px) {
  .shop-controls-glass {
    flex-direction: column; /* Empile les blocs */
    align-items: stretch;   /* Prend toute la largeur */
    border-radius: 20px;
    padding: 16px;
    gap: 16px;
  }
  
  .filter-group-cinematic {
    width: 100%;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
  }
  
  /* Sur mobile, on permet le scroll horizontal fluide */
  .filter-scroll-container {
    padding-right: 20px; /* Espace fin de scroll */
  }
  
  .tools-group-cinematic {
    justify-content: space-between;
    width: 100%;
  }
  
  .tool-separator { display: none; } /* Pas besoin sur mobile */
}


















/* Barre du haut (Retour) */
.product-top-bar {
  max-width: var(--container);
  margin: 0 auto;
  padding: 24px 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--fg-dim);
  transition: color 0.2s;
}
.back-link:hover { color: var(--fg); }
.back-link .material-symbols-rounded { font-size: 18px; }

.product-ref {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}

/* Layout 2 Colonnes (Galerie Scroll + Sticky Info) */
.product-layout-v2 {
  display: grid;
  grid-template-columns: 1.4fr 1fr; /* Image prend plus de place */
  gap: 60px;
  max-width: var(--container);
  margin: 40px auto 80px;
  padding-inline: 24px;
  align-items: start;
}

/* Colonne Gauche : Galerie */
.product-gallery-scroll {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.gallery-item {
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-elev);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* Colonne Droite : Sticky Info */
.product-info-sticky {
  position: sticky;
  top: 120px; /* Colle sous le header */
  height: fit-content;
}

.product-info-inner {
  /* Max width pour ne pas que le texte soit trop long à lire */
  max-width: 480px; 
}

.pi-header {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.pi-subtitle {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  color: var(--accent);
  margin: 0 0 8px;
}

.pi-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  margin: 0 0 12px;
}

.pi-price {
  font-size: 1.5rem;
  font-weight: 500;
}

.pi-description {
  font-size: 1rem;
  color: var(--fg-dim);
  line-height: 1.6;
  margin-bottom: 32px;
}

/* Sélecteur de taille (Pills Propres) */
.size-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 32px;
}

.size-pill {
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 12px;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--fg-dim);
}

.size-pill span:first-child {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--fg);
}

.size-pill .dims {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 2px;
}

.size-pill:hover {
  border-color: var(--fg);
  background: var(--bg-elev);
}

.size-pill.is-active {
  border-color: var(--fg);
  background: var(--fg);
}
.size-pill.is-active span,
.size-pill.is-active .dims {
  color: var(--bg); /* Texte inversé */
}

/* Actions & Trust */
.pi-actions {
  margin-bottom: 24px;
}

.pi-trust {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.pi-trust li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}
.pi-trust li span { font-size: 18px; }

/* Accordéons Détails */
.pi-detail-item {
  border-top: 1px solid var(--border);
}
.pi-detail-item:last-child { border-bottom: 1px solid var(--border); }

.pi-detail-item summary {
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
}
.pi-detail-item summary::-webkit-details-marker { display: none; }

.detail-content {
  padding-bottom: 16px;
  font-size: 0.9rem;
  color: var(--fg-dim);
  line-height: 1.6;
}

/* --- BANDEAU MARQUEE --- */
.marquee-strip {
  width: 100%;
  overflow: hidden;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev);
  margin-bottom: 80px;
}

.marquee-content {
  display: inline-block;
  white-space: nowrap;
  animation: marquee-scroll 20s linear infinite;
  font-size: 1.2rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.marquee-content .separator {
  margin: 0 20px;
  color: var(--accent);
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); } /* Assure-toi d'avoir assez de texte dupliqué */
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .product-layout-v2 {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .product-info-sticky {
    position: static; /* Plus sticky sur mobile */
  }
  
  /* Sur mobile, on peut faire un slider horizontal pour les images si on veut,
     mais ici on les empile simplement pour la lisibilité */
  .product-gallery-scroll {
    gap: 10px;
  }
}









/* =========================================================
   NOUVEAU PRÉLOADER "CINEMATIC"
   ========================================================= */

#preloader {
  position: fixed;
  inset: 0;
  z-index: 99999; /* Au-dessus de TOUT */
  background-color: #050505; /* Noir très profond */
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  
  /* Transition pour la sortie en rideau */
  transition: transform 0.8s cubic-bezier(0.76, 0, 0.24, 1);
  transform-origin: top;
}

/* Classe ajoutée en JS pour faire disparaître le loader vers le haut */
#preloader.is-loaded {
  transform: translateY(-100%);
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  height: 100%;
  position: relative;
}

/* --- 1. Logo (petit, en haut) --- */
.loader-logo img {
  height: 24px;
  width: auto;
  opacity: 0.6;
  filter: grayscale(100%);
  animation: pulse-logo 2s infinite ease-in-out;
}

/* --- 2. Compteur Géant --- */
.loader-counter {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: clamp(4rem, 15vw, 12rem);
  line-height: 1;
  letter-spacing: -0.04em;
  position: relative;
  
  /* On utilise Flexbox pour bien aligner le chiffre et le % */
  display: flex;
  align-items: flex-start; 
  justify-content: center;
  
  animation: focus-in 1s ease-out forwards;
}

/* L'effet Métal s'applique UNIQUEMENT au chiffre */
#counter-num {
  background: linear-gradient(to bottom, #ffffff 0%, #666666 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Le % est gris solide, toujours visible */
.counter-unit {
  font-size: 0.35em;
  color: #444444; /* Gris foncé visible sur le noir */
  margin-top: 0.1em; /* Petit ajustement pour l'aligner */
  -webkit-text-fill-color: #444444; /* Force la couleur (annule l'effet transparent du parent) */
  opacity: 1;
}

/* --- 3. Barre de progression --- */
.loader-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.1);
}

.loader-progress {
  height: 100%;
  width: 0%;
  
  /* CORRECTION : On force la couleur Orange/Corail (#f39b6b) */
  /* Comme ça, elle est visible même en mode sombre */
  background: #480CA8; 
  
  box-shadow: 0 0 20px #480CA8; /* Glow assorti */
  transition: width 0.1s linear;
}
/* --- Animations --- */

@keyframes focus-in {
  0% {
    filter: blur(12px);
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    filter: blur(0);
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse-logo {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}






/* =========================================================
   PAGES LÉGALES (Typographie & Mise en page)
   ========================================================= */

.legal-hero {
  padding-top: 140px;
  padding-bottom: 40px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.legal-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 10px;
}

.legal-date {
  color: var(--muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.legal-content {
  max-width: 800px; /* Largeur de lecture optimale */
  margin: 0 auto;
  padding-block: 60px;
  font-size: 1rem;
  color: var(--fg-dim); /* Un peu moins contrasté pour ne pas fatiguer les yeux */
}

.legal-content h2 {
  font-size: 1.5rem;
  color: var(--fg);
  margin-top: 40px;
  margin-bottom: 16px;
  border-left: 3px solid var(--accent);
  padding-left: 16px;
}

.legal-content h3 {
  font-size: 1.1rem;
  color: var(--fg);
  margin-top: 24px;
  margin-bottom: 10px;
  font-weight: 600;
}

.legal-content p {
  margin-bottom: 16px;
  line-height: 1.7;
}

.legal-content ul {
  margin-bottom: 16px;
  padding-left: 20px;
}

.legal-content li {
  margin-bottom: 8px;
  list-style: disc;
}

.legal-content strong {
  color: var(--fg);
  font-weight: 600;
}

.legal-content a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.legal-content a:hover {
  color: var(--accent);
}



/* =========================================================
   CURSEUR — Halo plus lumineux en sombre, plus doux en clair
   (à mettre tout en bas du CSS pour override)
   ========================================================= */

/* Valeurs par défaut = mode sombre */
html {
  --cursor-halo-size: 46px;
  --cursor-halo-blur: 4px;
  --cursor-halo-opacity: 0.9;
  --cursor-halo-bg: radial-gradient(circle,
    rgba(255,255,255,0.65) 0%,
    rgba(255,255,255,0.0) 70%
  );

  --cursor-core-shadow: 0 0 18px rgba(255,255,255,0.9);
}

/* Inverse en mode lumineux */
html.theme-light {
  --cursor-halo-size: 40px;
  --cursor-halo-blur: 9px;
  --cursor-halo-opacity: 0.7;
  --cursor-halo-bg: radial-gradient(circle,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.0) 90%
  );

  --cursor-core-shadow: 0 0 10px rgba(0,0,0,0.35);
}

@media (hover: hover) and (pointer: fine) {
  #cursor .cursor-core {
    box-shadow: var(--cursor-core-shadow);
  }

  #cursor .cursor-halo {
    width: var(--cursor-halo-size);
    height: var(--cursor-halo-size);
    background: var(--cursor-halo-bg);
    opacity: var(--cursor-halo-opacity);
    filter: blur(var(--cursor-halo-blur));
  }
}

@media (hover: hover) and (pointer: fine) {

  /* Halo ORANGE (plus visible sur fond clair) */
  html.theme-light #cursor .cursor-halo{
    background: radial-gradient(circle,
      rgba(243, 155, 107, 0.70) 0%,
      rgba(243, 155, 107, 0.28) 38%,
      rgba(243, 155, 107, 0.00) 74%
    ) !important;

    opacity: 1 !important;
    filter: blur(8px) !important;
    mix-blend-mode: multiply;
    z-index: 1;
  }

  /* Core AU-DESSUS, orange accent */
  html.theme-light #cursor .cursor-core{
    mix-blend-mode: normal !important;
    background: rgba(243, 155, 107, 0.98) !important;
    box-shadow: 0 0 10px rgba(243, 155, 107, 0.35) !important;
    z-index: 2;
  }

}

/* =========================================================
   PAGE AUTH V2 (Split Screen - Fix Scroll & Clics)
   ========================================================= */

.page-auth {
  background: var(--bg);
  width: 100vw;
  height: 100vh; /* Force la hauteur écran */
  overflow: hidden; /* Empêche le scroll global */
  display: flex;
  flex-direction: column;
}

/* Header Flottant */
.auth-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 24px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 20; /* Au-dessus de tout */
  pointer-events: none; /* Laisse passer les clics en dessous */
}

/* On réactive les clics uniquement sur les boutons du header */
.auth-header a {
  pointer-events: auto;
}

.close-auth {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  display: grid;
  place-items: center;
  color: var(--fg);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}
.close-auth:hover {
  background: var(--fg);
  color: var(--bg);
  transform: rotate(90deg);
}

/* Layout Principal */
.auth-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  height: 100%; /* Prend toute la hauteur */
}

/* --- COLONNE GAUCHE : VISUEL --- */
.auth-visual {
  position: relative;
  background: #050505;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Pas de padding ici pour laisser le bg remplir */
}

.visual-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 480px;
  padding: 40px; /* Marge interne de sécurité */
}

.visual-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 16px;
}

.auth-visual h1 {
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 1;
  margin-bottom: 24px;
  background: linear-gradient(to bottom, #fff, #888);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.visual-sub {
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}

/* Blobs animés */
.visual-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  animation: float-blob 10s infinite ease-in-out;
}
.blob-1 { width: 400px; height: 400px; background: var(--accent); top: 20%; left: 10%; }
.blob-2 { width: 300px; height: 300px; background: var(--accent-2); bottom: 20%; right: 10%; animation-delay: -5s; }

@keyframes float-blob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* --- COLONNE DROITE : CONTENU --- */
.auth-content {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  padding: 40px;
  position: relative;
  
  /* Permet de scroller SI l'écran est trop petit verticalement */
  overflow-y: auto; 
  height: 100%;
}

.auth-wrapper {
  width: 100%;
  max-width: 400px;
  /* Petit margin top pour éviter que le header ne cache le haut sur petits écrans */
  margin-top: 60px; 
}

/* Onglets Navigation */
.auth-nav {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
  position: relative; /* Important pour la barre absolue */
}

.auth-nav-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 16px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  
  /* CORRECTION CLIC : */
  cursor: pointer;
  position: relative;
  z-index: 2; /* Passe DEVANT la barre animée */
  
  transition: color 0.3s;
}

.auth-nav-btn.is-active {
  color: var(--fg);
}

/* Barre indicatrice animée */
.nav-indicator {
  position: absolute;
  bottom: 0; /* Collé à la ligne */
  left: 0;
  height: 2px;
  background-color: var(--fg);
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1), width 0.3s ease;
  
  z-index: 1; /* Derrière le texte des boutons */
  pointer-events: none; /* Ne bloque pas le clic */
}

/* Formulaires */
.auth-view {
  display: none;
  animation: fade-in-up 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.auth-view.is-active {
  display: block;
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Inputs */
.styled-form .form-group { margin-bottom: 20px; }
.styled-form input {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  background: var(--bg-elev);
  border: 1px solid transparent;
  color: var(--fg);
  font-family: inherit;
  transition: all 0.2s;
}
.styled-form input:focus {
  background: var(--bg);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(140, 241, 255, 0.1);
}

.forgot-link {
  font-size: 0.8rem;
  color: var(--muted);
  float: right;
  margin-top: 6px;
}

/* Socials */
.auth-divider {
  margin: 30px 0 20px;
  text-align: center;
  position: relative;
}
.auth-divider::before {
  content: "";
  position: absolute;
  left: 0; top: 50%; width: 100%; height: 1px;
  background: var(--border);
  z-index: 0;
}
.auth-divider span {
  position: relative;
  z-index: 1;
  background: var(--surface);
  padding: 0 12px;
  color: var(--muted);
  font-size: 0.85rem;
}

.social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.social-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--fg);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.social-pill img { width: 20px; height: 20px; }

/* Message */
.auth-feedback {
  margin-top: 20px;
  text-align: center;
  font-size: 0.9rem;
  min-height: 20px;
}
.auth-feedback.error { color: var(--danger); }
.auth-feedback.success { color: var(--ok); }

/* Responsive Mobile */
@media (max-width: 900px) {
  .page-auth {
    height: auto; /* On laisse scroller sur mobile si besoin */
    overflow: auto;
  }
  .auth-container {
    grid-template-columns: 1fr;
    height: auto;
  }
  .auth-visual {
    display: none; /* On cache le visuel pour aller vite */
  }
  .auth-content {
    padding: 20px;
    align-items: flex-start;
    min-height: 100vh;
  }
  .auth-wrapper {
    margin-top: 80px; /* Espace pour le bouton retour */
  }
  .auth-header {
    position: absolute; /* Reste en haut */
  }
}




/* =========================================================
   HOME PARTIE 2 : BLOG & MANIFESTO
   ========================================================= */

/* --- SECTION BLOG CINEMATIC --- */
.blog-cinematic {
  padding-bottom: 80px;
  overflow: hidden; /* Pour le slider qui dépasse */
}

.section-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  padding-inline: 8px; /* Alignement visuel */
}

.section-head-row h2 {
  font-size: 2rem;
  margin: 0;
}

/* SLIDER HORIZONTAL (Scroll Snap) */
.blog-scroll-wrapper {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 20px; /* Espace pour la scrollbar éventuelle */
  scroll-snap-type: x mandatory; /* Magnétisme */
  -webkit-overflow-scrolling: touch;
  
  /* Cache la scrollbar moche */
  scrollbar-width: none;
}
.blog-scroll-wrapper::-webkit-scrollbar { display: none; }

/* Carte Blog */
.blog-card-cinematic {
  flex: 0 0 320px; /* Largeur fixe des cartes */
  scroll-snap-align: start;
  position: relative;
}

.bcc-link {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-decoration: none;
  group: normal; /* Pour hover */
}

/* Image */
.bcc-image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-elev);
}

.bcc-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Overlay "Lire" */
.bcc-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.read-pill {
  background: rgba(255,255,255,0.9);
  color: #000;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  transform: translateY(10px);
  transition: transform 0.3s ease;
}

/* Hover interactions */
.bcc-link:hover img { transform: scale(1.05); }
.bcc-link:hover .bcc-overlay { opacity: 1; }
.bcc-link:hover .read-pill { transform: translateY(0); }

/* Contenu Texte */
.bcc-content h3 {
  font-size: 1.1rem;
  line-height: 1.4;
  margin: 0;
  color: var(--fg);
}

.bcc-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  color: var(--muted);
}

.tag { color: var(--accent); font-weight: 600; }

/* Spacer pour le scroll */
.snap-spacer {
  flex: 0 0 1px; /* Juste pour donner du mou à la fin du scroll */
}


/* --- MARQUEE SEPARATOR --- */
.marquee-separator {
  background: var(--bg-elev);
  padding: 20px 0;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 80px;
}

.marquee-content {
  display: inline-block;
  white-space: nowrap;
  animation: marquee-scroll 25s linear infinite;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--fg-dim);
  letter-spacing: 0.1em;
}

.marquee-content .star {
  color: var(--accent);
  margin: 0 30px;
  font-size: 1.2rem;
  vertical-align: middle;
}


/* --- MANIFESTO (BENTO GRID) --- */
.manifesto-section {
  padding-top: 0;
}

.manifesto-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}

.bento-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.bento-box:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

/* Box 1 : Large texte */
.box-large {
  grid-column: 1 / -1; /* Prend toute la largeur sur mobile, changera en desktop */
  background: linear-gradient(135deg, var(--surface) 0%, var(--bg-elev) 100%);
}

.box-large h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin: 16px 0;
  background: linear-gradient(to right, var(--fg), var(--fg-dim));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bento-text {
  font-size: 1.1rem;
  color: var(--fg-dim);
  max-width: 600px;
  line-height: 1.6;
}

/* Box Icones */
.bento-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-elev);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  color: var(--accent);
  border: 1px solid var(--border);
}
.bento-icon span { font-size: 24px; }

.bento-box h3 {
  font-size: 1.1rem;
  margin: 0 0 8px;
}
.bento-box p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* Box Wide (bas) */
.box-wide {
  grid-column: span 3;
}
.bento-flex {
  display: flex;
  align-items: center;
  gap: 20px;
}
.box-wide .bento-icon { margin-bottom: 0; }


/* --- RESPONSIVE BENTO --- */
@media (min-width: 960px) {
  .manifesto-grid {
    grid-template-columns: 2fr 1fr 1fr; /* 3 colonnes */
    grid-template-rows: 280px 140px;
  }
  
  .box-large {
    grid-column: 1 / 2; /* 1ere colonne */
    grid-row: 1 / 3;    /* Toute la hauteur */
  }
  
  .box-square {
    grid-column: span 1; /* Carrés à droite */
  }
  
  .box-wide {
    grid-column: 2 / 4; /* En bas à droite */
  }
}

@media (max-width: 959px) {
  .manifesto-grid {
    grid-template-columns: 1fr 1fr;
  }
  .box-large { grid-column: 1 / -1; }
  .box-wide { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .manifesto-grid {
    display: flex;
    flex-direction: column;
  }
  .blog-card-cinematic {
    flex: 0 0 280px; /* Un peu plus petit sur mobile */
  }
}
/* =========================================================
   CORRECTIFS FINAUX (Icônes & Boutons)
   ========================================================= */

/* 1. Fixer le bouton "Tout lire" (Ghost) */
/* Au survol, il s'inverse (devient blanc/texte noir) pour être bien visible */
.cta-ghost:hover {
  background: var(--fg) !important;
  color: var(--bg) !important;
  border-color: var(--fg) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 2. Fixer les Icônes de la grille Bento */
.bento-icon {
  /* En mode sombre (par défaut), on force le BLANC pur */
  color: #ffffff; 
  background: rgba(255, 255, 255, 0.1); /* Fond légèrement plus clair */
  border-color: rgba(255, 255, 255, 0.2);
}

/* En mode clair (Light Mode), on remet la couleur d'accent (Orange/Corail) */
html.theme-light .bento-icon {
  color: var(--accent);
  background: var(--bg-elev);
  border-color: var(--border);
}



























/* =========================================================
   PAGE SUIVI COMMANDE (Tracking)
   ========================================================= */

.page-tracking {
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.tracking-header {
  padding: 24px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tracking-header .brand-mini img { height: 32px; width: auto; }

.close-tracking {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid; place-items: center;
  color: var(--fg);
  transition: all 0.3s ease;
}
.close-tracking:hover {
  background: var(--fg);
  color: var(--bg);
  transform: rotate(90deg);
}

/* Container Centré */
.tracking-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.tracking-content {
  width: 100%;
  max-width: 680px;
  text-align: center;
}

.tracking-intro { margin-bottom: 40px; }
.tracking-intro h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin: 8px 0; line-height: 1.1; }
.tracking-intro .subtitle { color: var(--fg-dim); font-size: 1.1rem; }

/* Barre de recherche */
.tracking-search {
  display: flex;
  gap: 12px;
  background: var(--surface);
  padding: 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  max-width: 500px;
  margin: 0 auto 60px;
}

.search-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  padding-left: 16px;
  gap: 10px;
}

.search-icon { color: var(--muted); }

.tracking-search input {
  border: none;
  background: transparent;
  width: 100%;
  color: var(--fg);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
}

/* RÉSULTAT : TIMELINE */
.tracking-result {
  text-align: left;
  animation: fade-up 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 10px;
}

.order-id-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  font-weight: 600;
}

.order-id-badge .dot {
  width: 8px; height: 8px;
  background: var(--ok); /* Vert */
  border-radius: 50%;
  box-shadow: 0 0 8px var(--ok);
}

.order-status-text {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- LA TIMELINE --- */
.timeline-wrapper {
  position: relative;
  margin-bottom: 60px;
  padding-top: 20px;
}

/* La ligne grise derrière */
.timeline-track {
  position: absolute;
  top: 35px; /* Hauteur ajustée au centre des icônes */
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

/* La ligne colorée active */
.timeline-fill {
  height: 100%;
  background: var(--accent);
  box-shadow: 0 0 15px var(--accent); /* Effet néon */
  border-radius: 99px;
  transition: width 1s ease-out;
}

/* Les étapes */
.timeline-steps {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 80px;
  text-align: center;
  opacity: 0.4; /* Grisé par défaut */
  transition: opacity 0.3s;
}

.step.is-completed,
.step.is-active {
  opacity: 1;
}

/* L'icône ronde */
.step-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg); /* Masque la ligne derrière */
  border: 2px solid var(--border);
  display: grid; place-items: center;
  font-size: 16px;
  transition: all 0.3s;
}
.step-icon span { font-size: 16px; }

/* Style Validé */
.step.is-completed .step-icon {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg); /* Icône noire */
  box-shadow: 0 0 15px rgba(var(--accent), 0.4);
}

/* Style Actif (En cours) */
.step.is-active {
  position: relative;
}
.step.is-active .step-icon {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--bg);
  box-shadow: 0 0 20px var(--accent);
}

/* Effet Radar sur l'actif */
.step-radar {
  position: absolute;
  top: 0; left: 50%;
  width: 32px; height: 32px;
  transform: translateX(-50%);
  border: 1px solid var(--accent);
  border-radius: 50%;
  animation: radar-ping 2s infinite;
  pointer-events: none;
}

@keyframes radar-ping {
  0% { transform: translateX(-50%) scale(1); opacity: 0.8; }
  100% { transform: translateX(-50%) scale(2.5); opacity: 0; }
}

.step-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.step-date {
  font-size: 0.7rem;
  color: var(--muted);
}

/* Cartes Logistiques */
.logistics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.log-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.log-icon {
  font-size: 24px;
  color: var(--fg-dim);
}

.log-card strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.log-card p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
}

.tracking-footer {
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 600px) {
  .timeline-wrapper {
    overflow-x: auto;
    padding-bottom: 20px;
    margin-inline: -20px; /* Pour coller aux bords */
    padding-inline: 20px;
  }
  .timeline-steps {
    min-width: 400px; /* Force le scroll horizontal */
  }
  
  .tracking-search {
    flex-direction: column;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
  }
  .search-wrapper {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 12px 16px;
    margin-bottom: 10px;
  }
  .tracking-search button {
    width: 100%;
  }
}
/* =========================================================
   PAGE 404 (GLITCH EFFECT)
   ========================================================= */

.page-404 {
  background: var(--bg);
  height: 100vh;
  overflow: hidden; /* Pas de scroll */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Header flottant discret */
.header-404 {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}
.header-404 img { height: 32px; width: auto; opacity: 0.8; }

/* Conteneur principal */
.error-container {
  text-align: center;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

/* --- EFFET GLITCH 404 --- */
.glitch {
  font-size: clamp(6rem, 25vw, 18rem); /* Énorme */
  font-weight: 700;
  line-height: 1;
  position: relative;
  color: var(--fg);
  letter-spacing: -0.05em;
  user-select: none;
}

/* Les "fantômes" du glitch (avant/après) */
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg); /* Masque le fond */
}

/* Fantôme 1 (Cyan/Accent) */
.glitch::before {
  left: 2px;
  text-shadow: -2px 0 var(--accent); /* Couleur néon */
  clip-path: inset(0 0 0 0); /* Découpe dynamique */
  animation: glitch-anim-1 3s infinite linear alternate-reverse;
}

/* Fantôme 2 (Magenta/Accent 2) */
.glitch::after {
  left: -2px;
  text-shadow: -2px 0 var(--accent-2);
  clip-path: inset(0 0 0 0);
  animation: glitch-anim-2 2s infinite linear alternate-reverse;
}

/* Keyframes pour faire sauter le texte */
@keyframes glitch-anim-1 {
  0% { clip-path: inset(20% 0 80% 0); }
  20% { clip-path: inset(60% 0 10% 0); }
  40% { clip-path: inset(40% 0 50% 0); }
  60% { clip-path: inset(80% 0 5% 0); }
  80% { clip-path: inset(10% 0 70% 0); }
  100% { clip-path: inset(30% 0 20% 0); }
}

@keyframes glitch-anim-2 {
  0% { clip-path: inset(10% 0 60% 0); }
  20% { clip-path: inset(30% 0 20% 0); }
  40% { clip-path: inset(70% 0 10% 0); }
  60% { clip-path: inset(20% 0 50% 0); }
  80% { clip-path: inset(50% 0 30% 0); }
  100% { clip-path: inset(5% 0 80% 0); }
}

/* Textes */
.error-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: fade-up 1s ease-out 0.2s backwards;
}

.error-content h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  margin: 0;
}

.error-desc {
  font-size: 1.1rem;
  color: var(--fg-dim);
  max-width: 400px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.error-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* --- NOISE OVERLAY (Grain de film) --- */
.noise-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.05; /* Très subtil */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Responsive */
@media (max-width: 600px) {
  .glitch {
    font-size: 8rem; /* Un peu plus petit sur mobile pour pas casser */
  }
}

/* =========================================================
   FOOTER : SPOTLIGHT "FOCUS" (V4 - Final Fix)
   ========================================================= */

.footer-big-type.interactive-spotlight {
  /* Layout : Le conteneur définit la zone de la souris */
  position: relative;
  display: block; 
  width: 100%;
  /* Hauteur fixe/fluide pour contenir le texte */
  height: clamp(6rem, 25vw, 18rem);
  margin: 60px 0 40px;

  /* Variables initiales (Centré par défaut) */
  --x: 50%;
  --y: 50%;
  --spotlight-size: 180px;

  /* IMPORTANT : Force le texte à passer au-dessus du reste pour capter la souris */
  z-index: 10;
  isolation: isolate;
  cursor: default;       /* Curseur par défaut en attendant l'anim */
  pointer-events: auto;  /* 🔥 OBLIGATOIRE : Active la souris sur ce bloc */
  user-select: none;     /* Pas de sélection de texte bleu moche */
}

/* Les couches de texte (Outline et Fill) */
.spotlight-layer {
  position: absolute;
  inset: 0; /* Prend TOUTE la place du parent -> Coordonnées synchronisées */
  
  display: flex;
  align-items: center;
  justify-content: center;
  
  font-family: 'Poppins', sans-serif; /* Ta font titrage */
  font-size: clamp(5rem, 20vw, 16rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  
  /* 🔥 CRUCIAL : La souris doit "traverser" le texte pour toucher le parent */
  pointer-events: none; 
  transition: opacity 0.2s ease;
}

/* COUCHE 1 : L'Outline (Fond) */
.layer-outline {
  z-index: 1;
  color: transparent;
  -webkit-text-stroke: 2px var(--border);
  opacity: 0.3;
}

/* COUCHE 2 : Le Fill (Lumière) */
.layer-fill {
  z-index: 2;
  color: #ffffff; /* Blanc pur forcé */
  
  /* Le masque suit les variables calculées en JS */
  clip-path: circle(var(--spotlight-size) at var(--x) var(--y));
  
  /* Glow lumineux */
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.6));
  
  /* Pas de transition sur clip-path pour que ça colle à la souris instantanément */
  transition: opacity 0.2s ease; 
}

/* --- ADAPTATION LIGHT MODE --- */
html.theme-light .layer-outline {
  -webkit-text-stroke: 2px var(--fg-dim);
  opacity: 0.2;
}

html.theme-light .layer-fill {
  color: var(--accent);
  filter: drop-shadow(0 0 20px rgba(243, 155, 107, 0.6));
}

/* --- GESTION DU CURSEUR --- */
/* Cache le curseur global ET le curseur custom quand on est sur le spotlight */
body.hide-cursor-spotlight,
body.hide-cursor-spotlight * {
  cursor: none !important;
}

body.hide-cursor-spotlight #cursor,
body.hide-cursor-spotlight .custom-cursor {
  opacity: 0 !important;
  visibility: hidden;
  transition: opacity 0.1s;
}

/* Mobile : spot plus petit */
@media (max-width: 600px) {
  .footer-big-type.interactive-spotlight {
    --spotlight-size: 100px;
  }
}


/* =========================================================
   CORRECTIF : BOUTON NÉON EN MODE CLAIR (Sphère Orange)
   ========================================================= */

/* On cible uniquement le pseudo-élément ::before (la sphère) quand on est en Light Mode */
html.theme-light .neon-btn::before {
  
  /* On remplace le dégradé noir par le Orange Corail (--accent) */
  background: radial-gradient(circle,
    color-mix(in srgb, var(--accent), transparent 0%) 0%,   /* Centre solide */
    color-mix(in srgb, var(--accent), transparent 20%) 40%, /* Dégradé */
    transparent 80%                                         /* Bords invisibles */
  ) !important;

  /* On peut ajuster l'intensité du flou si nécessaire */
  filter: blur(20px); 
}

/* Optionnel : Si tu veux aussi que le curseur devienne orange quand il touche le bouton */
html.theme-light .custom-cursor.cursor--on-button {
  background: var(--accent) !important;
}


/* =========================================================
   DESIGN SYSTEM : ACCENT BLEU (Mode Sombre Uniquement)
   ========================================================= */

html:not(.theme-light) {
  /* On redéfinit la variable d'accent globale pour le mode sombre
     Cela va automatiquement colorer certains boutons, bordures, etc. */
  --accent: #480CA8; 
  --ring: rgba(72, 12, 168, 0.5); /* Le halo de focus en bleu aussi */
}

/* 1. SÉLECTION DE TEXTE (L'effet Surligneur) */
html:not(.theme-light) ::selection {
  background: #480CA8; /* Fond bleu */
  color: #0b0b0c;      /* Texte noir pour la lisibilité */
}

/* 2. SCROLLBAR PERSONNALISÉE (Webkit: Chrome, Safari, Edge) */
html:not(.theme-light) ::-webkit-scrollbar {
  width: 10px;
}

html:not(.theme-light) ::-webkit-scrollbar-track {
  background: #0b0b0c; /* Fond de la barre (couleur du site) */
}

html:not(.theme-light) ::-webkit-scrollbar-thumb {
  background-color: #480CA8; /* La barre elle-même */
  border-radius: 99px;       /* Arrondie */
  border: 3px solid #0b0b0c; /* Marge interne pour faire "flotter" la barre */
}

/* 3. LE FOOTER SPOTLIGHT (Lueur Bleue) */
/* On garde le texte BLANC pour le contraste, mais on change le GLOW en bleu */
html:not(.theme-light) .layer-fill {
  color: #ffffff; 
  /* Ombre portée bleue au lieu de blanche */
  filter: drop-shadow(0 0 25px rgba(72, 12, 168, 0.7)); 
}

/* 4. TITRES (Correction Visibilité) */

/* En Mode Sombre : On force le Blanc Pur sans transparence */
html:not(.theme-light) .hero-intro-inner h1,
html:not(.theme-light) .shop-hero-v2 h1,
html:not(.theme-light) .blog-hero-v2 h1 {
  background: none; /* On enlève le dégradé de fond */
  -webkit-text-fill-color: initial; /* On rétablit la couleur pleine */
  color: #ffffff !important; /* On force le BLANC */
  text-shadow: 0 0 20px rgba(72, 12, 168, 0.4); /* On garde juste une petite lueur bleue autour */
}

/* En Mode Clair : On s'assure qu'il est bien foncé */
html.theme-light .hero-intro-inner h1,
html.theme-light .shop-hero-v2 h1,
html.theme-light .blog-hero-v2 h1 {
  color: var(--fg) !important; /* Utilise la couleur du thème (Noir/Gris foncé) */
}

/* 5. PUCES ET DÉTAILS */
/* Les petites puces dans les listes ou badges */
html:not(.theme-light) .order-id-badge .dot, 
html:not(.theme-light) .filter-link.is-active::before {
  background: #480CA8;
  box-shadow: 0 0 10px rgba(72, 12, 168, 0.6);
}

/* Les icônes de la grille Bento (Manifesto) */
html:not(.theme-light) .bento-icon {
  color: #480CA8;
  border-color: rgba(72, 12, 168, 0.3);
  background: rgba(72, 12, 168, 0.05); /* Fond très légèrement bleuté */
}

/* =========================================================
   OVERRIDE FOOTER : MODE CLAIR (ORANGE CORAIL)
   ========================================================= */

/* 1. Liens textes (Explorer, Infos, CGV...) au survol */
html.theme-light .footer-links a:hover,
html.theme-light .link-reset:hover {
  /* On force la couleur d'accent du thème clair (#f39b6b) */
  color: var(--accent) !important;
  transform: translateX(5px);
}

/* 2. Boutons Sociaux (Instagram, TikTok...) au survol */
html.theme-light .social-pill:hover {
  /* Texte et bordure deviennent Orange */
  color: var(--accent) !important;
  border-color: var(--accent) !important;
  
  /* On change aussi le "Glow" (lueur) pour qu'il soit orange et pas bleu */
  box-shadow: 0 0 15px rgba(243, 155, 107, 0.35) !important;
  background: transparent !important;
}




/* === FIX PRODUIT : débloque le curseur dans la fiche produit === */
.product-info-sticky,
.product-info-inner,
.product-layout-v2 {
  position: static !important;
  isolation: auto !important;
  overflow: visible !important;
  z-index: auto !important;
}


/* =========================================================
   FIX CURSEUR : VISIBLE DANS LE PANIER
   ========================================================= */

/* Quand le panier est ouvert (classe ajoutée par JS), 
   on force le curseur à passer au-dessus du tiroir (z=9001) */
body.cart-is-open #cursor,
body.cart-is-open .custom-cursor {
  z-index: 10000 !important; 
}


/* =========================================================
   BOUTON CHECKOUT "DESIRE" (Solide & Cinématique)
   ========================================================= */

.cart-checkout-btn {
  /* 1. Structure & Taille */
  position: relative;
  width: 100%;             /* Prend toute la largeur du footer */
  height: 56px;            /* Hauteur confortable pour le pouce (Mobile UX) */
  border: none;
  border-radius: 999px;    /* Pill shape */
  overflow: hidden;        /* Pour contenir l'effet de brillance */
  cursor: pointer;
  
  /* 2. Typographie */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;               /* Espace entre texte et flèche */
  
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #ffffff;          /* Texte toujours blanc pour le contraste */
  
  /* 3. Transition fluide (Cinématique) */
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  transform: translateZ(0); /* Force l'accélération matérielle */
}

/* --- COULEURS SELON LE THÈME --- */

/* MODE SOMBRE (Défaut) : Bleu Focus (#7e98d7) */
.cart-checkout-btn {
  background: #480CA8; 
  /* Ombre portée douce bleue */
  box-shadow: 0 4px 20px rgba(72, 12, 168, 0.25), 
              inset 0 1px 0 rgba(72, 12, 168, 0.2); /* Petit reflet en haut */
}

/* MODE CLAIR : Orange Corail (#f39b6b) */
html.theme-light .cart-checkout-btn {
  background: #f39b6b;
  /* Ombre portée douce orange */
  box-shadow: 0 4px 20px rgba(243, 155, 107, 0.25),
              inset 0 1px 0 rgba(255,255,255,0.3);
}

/* --- ANIMATIONS (UX Design) --- */

/* 1. HOVER : Le bouton se soulève et brille (Désir) */
.cart-checkout-btn:hover {
  transform: translateY(-3px) scale(1.02); /* Léger "pop" */
}

/* Gestion de l'ombre au survol selon le thème */
html:not(.theme-light) .cart-checkout-btn:hover {
  background: #8aa4e0; /* Légèrement plus clair */
  box-shadow: 0 14px 35px rgba(72, 12, 168, 0.5); /* Glow intense */
}

html.theme-light .cart-checkout-btn:hover {
  background: #ffab7d; /* Légèrement plus clair */
  box-shadow: 0 14px 35px rgba(243, 155, 107, 0.5); /* Glow intense */
}

/* 2. ACTIVE (CLIC) : Effet tactile "Rubber Band" */
.cart-checkout-btn:active {
  transform: translateY(1px) scale(0.98); /* S'enfonce */
  box-shadow: 0 2px 10px rgba(0,0,0,0.1); /* L'ombre se réduit */
}

/* 3. EFFET "SHINE" (Reflet qui passe) */
/* C'est ce qui donne le côté "Premium / Cinématique" */
.cart-checkout-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%; /* Départ hors champ */
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.3), /* Lumière blanche */
    transparent
  );
  transform: skewX(-20deg);
  pointer-events: none;
  transition: none;
}

/* Au survol, le reflet traverse le bouton */
.cart-checkout-btn:hover::after {
  animation: shiny-sweep 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes shiny-sweep {
  0% { left: -100%; opacity: 0; }
  20% { opacity: 1; }
  100% { left: 200%; opacity: 0; }
}

/* 4. Animation de la flèche (petite incitation subtile) */
.cart-checkout-btn .material-symbols-rounded {
  transition: transform 0.3s ease;
}

.cart-checkout-btn:hover .material-symbols-rounded {
  transform: translateX(4px); /* La flèche avance vers la droite */
}

/* =========================================================
   SÉLECTEUR DE QUANTITÉ "CINEMATIC" & SMART DELETE
   ========================================================= */

.qty-cinematic {
  display: inline-flex;
  align-items: center;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 999px; /* Pill shape complet */
  padding: 4px;
  gap: 4px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.qty-cinematic:hover {
  border-color: var(--fg-dim);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Les boutons (+ / -) */
.qty-btn-cine {
  width: 32px; 
  height: 32px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: var(--surface); /* Contraste léger */
  color: var(--fg);
  display: grid; 
  place-items: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.qty-btn-cine .material-symbols-rounded {
  font-size: 16px;
  font-weight: 600;
}

/* Hover classique */
.qty-btn-cine:hover {
  background: var(--fg);
  color: var(--bg); /* Inversion */
  transform: scale(1.05);
}

/* Click active */
.qty-btn-cine:active {
  transform: scale(0.95);
}

/* L'input au milieu */
.qty-input-cine {
  width: 32px;
  text-align: center;
  border: none; 
  background: transparent;
  color: var(--fg);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  /* On enlève les flèches natives des inputs number */
  -moz-appearance: textfield;
}
.qty-input-cine::-webkit-outer-spin-button,
.qty-input-cine::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* --- ÉTAT SUPPRESSION (Quand Qty = 1) --- */

/* Le bouton moins devient "Danger" */
.qty-btn-cine.is-delete {
  color: var(--muted); /* Gris par défaut */
  background: transparent;
  border-color: var(--border);
}

.qty-btn-cine.is-delete:hover {
  background: var(--danger); /* Rouge au survol */
  color: #fff;
  border-color: var(--danger);
  box-shadow: 0 0 10px rgba(255, 95, 95, 0.4); /* Petit glow rouge */
}

/* Petit hack : on change l'icône au survol via CSS ? 
   Non, mieux vaut le faire via JS pour être propre, 
   mais ici on gère la couleur. */


   /* =========================================================
   FIX PANIER : Alignement Quantité + Lien Retirer
   ========================================================= */

.cart-item-controls {
  display: flex;
  align-items: center;
  justify-content: space-between; /* Écarte le sélecteur du lien supprimer */
  margin-top: 12px;
  width: 100%;
}

/* Le lien texte "Retirer" */
.remove-link-text {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.85rem;
  color: var(--muted); /* Gris discret */
  text-decoration: underline;
  text-decoration-color: transparent; /* Soulignement invisible par défaut */
  text-underline-offset: 3px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.remove-link-text:hover {
  color: var(--danger); /* Rouge au survol */
  text-decoration-color: var(--danger); /* Le soulignement apparaît */
}


/* =========================================================
   PANIER UNIFIÉ "CINEMATIC" (Tiroir & Page)
   ========================================================= */

/* --- 1. LE TIROIR LATÉRAL (DRAWER) --- */

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
  z-index: 9000;
  /* Effet de flou sur le site derrière */
  backdrop-filter: blur(4px); 
}

.cart-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(440px, 100%); /* Largeur confortable */
  height: 100%;
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
  
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1); /* Sortie fluide */
  z-index: 9001;
  display: flex;
  flex-direction: column;
}

.cart-drawer.is-open {
  transform: translateX(0);
}

/* Header du tiroir */
.cart-drawer-head {
  padding: 24px 24px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.cart-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.cart-title-row h2 {
  font-size: 1.3rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-count-badge {
  font-size: 0.8rem;
  background: var(--fg);
  color: var(--bg);
  padding: 2px 8px;
  border-radius: 99px;
  vertical-align: middle;
  font-weight: 700;
}

/* Corps du tiroir (Scrollable) */
.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

/* Footer du tiroir */
.cart-drawer-foot {
  padding: 24px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}


/* --- 2. JAUGE DE LIVRAISON GRATUITE (Gamification) --- */
.free-shipping-bar {
  margin-top: 10px;
}

.fs-text-row {
  display: flex; 
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--fg-dim);
  margin-bottom: 8px;
}

.fs-text strong { 
  color: var(--accent); 
}

.fs-track {
  height: 4px;
  background: var(--bg-elev);
  border-radius: 4px;
  overflow: hidden;
}

.fs-progress {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  transition: width 0.5s ease-out, background 0.3s ease;
  box-shadow: 0 0 10px var(--accent); /* Glow */
}


/* --- 3. LISTE DES PRODUITS (ITEMS) --- */

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px dashed var(--border);
  
  /* Animation d'entrée */
  animation: slide-in-right 0.4s ease forwards;
  opacity: 0;
  transform: translateX(20px);
}

/* Délai d'animation en cascade */
.cart-item:nth-child(1) { animation-delay: 0.1s; }
.cart-item:nth-child(2) { animation-delay: 0.15s; }
.cart-item:nth-child(3) { animation-delay: 0.2s; }

@keyframes slide-in-right {
  to { opacity: 1; transform: translateX(0); }
}

/* Miniature */
.cart-item-thumb {
  width: 80px;
  aspect-ratio: 3/4;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-elev);
}
.cart-item-thumb img {
  width: 100%; height: 100%; object-fit: cover;
}

/* Infos */
.cart-item-main {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cart-item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.cart-item-title { 
  font-weight: 600; 
  font-size: 1rem; 
  line-height: 1.2; 
  margin-bottom: 4px;
}
.cart-item-meta { 
  font-size: 0.85rem; 
  color: var(--muted); 
}
.cart-item-price { 
  font-weight: 600; 
  font-size: 1rem; 
}

/* --- 4. CONTRÔLES (Quantité & Suppression) --- */

.cart-item-controls {
  display: flex;
  align-items: center;
  justify-content: space-between; /* Écarte le sélecteur du lien supprimer */
  margin-top: 12px;
  width: 100%;
}

/* Sélecteur Pilule */
.qty-cinematic {
  display: inline-flex;
  align-items: center;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
  transition: border-color 0.2s ease;
}

.qty-cinematic:hover {
  border-color: var(--fg-dim);
}

/* Boutons ronds (+ / -) */
.qty-btn-cine {
  width: 28px; 
  height: 28px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: var(--surface);
  color: var(--fg);
  display: grid; 
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.qty-btn-cine .material-symbols-rounded {
  font-size: 16px; font-weight: 600;
}

.qty-btn-cine:hover {
  background: var(--fg);
  color: var(--bg);
  transform: scale(1.05);
}

/* État Suppression (Poubelle Rouge) */
.qty-btn-cine.is-delete:hover {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
  box-shadow: 0 0 8px rgba(255, 95, 95, 0.4);
}

/* Input nombre */
.qty-input-cine {
  width: 32px;
  text-align: center;
  border: none; 
  background: transparent;
  color: var(--fg);
  font-weight: 600;
  font-size: 0.95rem;
}

/* Lien texte "Retirer" */
.remove-link-text {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.remove-link-text:hover {
  color: var(--danger);
  text-decoration-color: var(--danger);
}


/* --- 5. PAGE PANIER COMPLÈTE (cart.html) --- */

/* Layout par défaut (Plein) */
.cart-layout-v2 {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
  min-height: 60vh;
}

/* État Vide (Centré) */
.cart-layout-v2.is-empty-state {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: calc(100vh - 300px);
  min-height: 500px;
}

.cart-content-wrapper {
  display: contents; /* Suit la grille parente */
}

/* Cartes Résumé */
.cart-summary-card {
  position: sticky;
  top: 120px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.cart-summary-card h2 { font-size: 1.2rem; margin-bottom: 24px; }

.summary-row {
  display: flex; justify-content: space-between;
  margin-bottom: 12px; font-size: 1rem; color: var(--fg-dim);
}

.summary-row.total {
  margin-top: 16px; padding-top: 16px;
  border-top: 1px dashed var(--border);
  font-size: 1.2rem; font-weight: 700; color: var(--fg);
}

.summary-foot { margin-top: 20px; text-align: center; }
.link-back { color: var(--muted); font-size: 0.9rem; text-decoration: none; }
.link-back:hover { color: var(--fg); text-decoration: underline; }


/* --- 6. ÉTAT VIDE CINÉMATIQUE (Cadre Fantôme) --- */

.cart-empty-cinematic {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  perspective: 1000px;
}

/* Le lien invisible autour du cadre */
.void-visual-link {
  display: block;
  cursor: pointer;
  text-decoration: none;
  outline: none;
  margin-bottom: 40px;
}

.void-visual {
  position: relative;
  width: 200px;
  height: 280px; /* Ratio affiche */
  transform-style: preserve-3d;
  animation: float-frame 6s ease-in-out infinite;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.void-visual-link:hover .void-visual {
  transform: scale(1.05) rotateY(10deg);
}

/* Le cadre en pointillés */
.ghost-frame {
  width: 100%; height: 100%;
  border: 1px dashed var(--fg-dim);
  border-radius: 4px;
  position: relative;
  display: grid;
  place-items: center;
  transition: all 0.3s;
}

/* Coins techniques */
.frame-corner {
  position: absolute; width: 10px; height: 10px;
  border: 2px solid var(--accent); transition: all 0.3s;
}
.tl { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.tr { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.bl { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* La croix centrale */
.plus-mark {
  font-size: 40px; color: var(--muted); font-weight: 200; opacity: 0.5;
  transition: transform 0.3s;
}

.void-visual-link:hover .plus-mark {
  color: var(--accent); transform: scale(1.2) rotate(90deg);
}

/* Ombre qui respire */
.ghost-shadow {
  position: absolute; bottom: -40px; left: 50%; width: 60%; height: 20px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.4) 0%, transparent 70%);
  transform: translateX(-50%); filter: blur(10px);
  animation: shadow-breath 6s ease-in-out infinite; opacity: 0.5;
}

/* Animations */
@keyframes float-frame {
  0%, 100% { transform: translateY(0) rotateY(0deg); }
  50% { transform: translateY(-20px) rotateY(5deg); }
}
@keyframes shadow-breath {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.5; }
  50% { transform: translateX(-50%) scale(0.8); opacity: 0.3; }
}

.empty-text-content h2 {
  font-size: 2.5rem; margin-bottom: 16px;
  background: linear-gradient(to bottom, var(--fg), var(--fg-dim));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.empty-text-content p {
  font-size: 1.1rem; color: var(--fg-dim); margin-bottom: 40px;
}


/* --- 7. RESPONSIVE --- */
@media (max-width: 900px) {
  .cart-layout-v2 { grid-template-columns: 1fr; gap: 40px; }
  .cart-list-header { display: none; }
  
  .cart-item { grid-template-columns: 80px 1fr; }
  
  /* Sur mobile, on réduit le cadre fantôme */
  .void-visual { width: 160px; height: 220px; }
}






/* =========================================================
   NEWSLETTER MODALE (Design Cinématique)
   ========================================================= */

/* 1. L'arrière-plan flou */
.news-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6); /* Fond sombre */
  backdrop-filter: blur(12px);     /* Gros flou cinématique */
  z-index: 9990;                   /* Très haut */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  
  /* Animation d'apparition */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.news-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

/* 2. La Fenêtre */
.news-modal {
  width: min(900px, 100%);
  min-height: 500px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6); /* Grosse ombre portée */
  
  display: grid;
  grid-template-columns: 1fr 1.2fr; /* Image | Texte */
  overflow: hidden;
  position: relative;
  
  /* Animation Zoom In */
  transform: scale(0.95) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.news-overlay.is-visible .news-modal {
  transform: scale(1) translateY(0);
}

/* Bouton Fermer */
.news-close-btn.icon-btn {
  position: absolute;
  top: 20px; right: 20px;
  z-index: 10;
  background: transparent; border: none; color: var(--fg-dim);
}
.news-close-btn.icon-btn:hover {
  background: var(--bg-elev); color: var(--fg); transform: rotate(90deg);
}

/* 3. Colonne Gauche (Visuel Arty) */
.news-visual {
  position: relative;
  background: #0a0a0a;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Forme animée en fond */
.news-art-blob {
  position: absolute;
  width: 300px; height: 300px;
  background: linear-gradient(135deg, var(--accent), #480ca8);
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.6;
  animation: blob-pulse 8s infinite alternate ease-in-out;
}

@keyframes blob-pulse {
  0% { transform: scale(1) translate(0,0); }
  100% { transform: scale(1.2) translate(20px, -20px); }
}

.news-quote {
  position: relative; z-index: 2;
  text-align: center; display: flex; flex-direction: column; gap: 10px;
}
.news-quote span {
  font-size: 1.8rem; font-weight: 800; letter-spacing: 0.15em;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.3);
}

/* 4. Colonne Droite (Formulaire) */
.news-content {
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-content h2 { font-size: 2rem; margin-bottom: 12px; }
.news-desc { color: var(--fg-dim); line-height: 1.6; margin-bottom: 32px; }

/* Input Design */
.news-field {
  position: relative;
  margin-bottom: 16px;
}

.news-field input {
  width: 100%;
  padding: 16px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--fg);
  font-size: 1rem;
  outline: none;
  transition: background 0.2s;
}

.news-field input:focus {
  background: var(--bg);
  border-color: var(--accent);
}

.news-legal {
  font-size: 0.75rem; color: var(--muted); 
  text-align: center; margin-top: 16px;
}

/* État Succès */
#news-step-success { text-align: center; animation: fade-up 0.5s ease; }
.success-anim {
  width: 60px; height: 60px;
  background: var(--ok); color: #000;
  border-radius: 50%;
  display: grid; place-items: center;
  margin: 0 auto 20px;
  font-size: 32px;
  animation: pop-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes pop-in { from { transform: scale(0); } to { transform: scale(1); } }

/* Responsive */
@media (max-width: 800px) {
  .news-modal { grid-template-columns: 1fr; max-height: 90vh; overflow-y: auto; }
  .news-visual { height: 160px; }
  .news-content { padding: 40px 24px; }
  .news-quote span { font-size: 1.4rem; }
}


/* =========================================================
   FIX CURSEUR : NEWSLETTER
   ========================================================= */

/* Quand la newsletter est ouverte (classe ajoutée par le JS) */
body.newsletter-open #cursor,
body.newsletter-open .custom-cursor {
  z-index: 2147483647 !important; /* Niveau maximum possible */
}















/* =========================================================
   PAGE DASHBOARD (MON COMPTE)
   ========================================================= */

.page-dashboard {
  background: var(--bg);
  min-height: 100vh;
}

.dashboard-header {
  padding-top: 120px;
  padding-bottom: 40px;
  text-align: center;
}

.dashboard-header h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin: 0; }

/* LA GRILLE BENTO */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
  max-width: var(--container);
  margin: 0 auto 80px;
  padding: 0 24px;
}

/* Style commun des cartes */
.dash-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.dash-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card-sub { font-size: 0.85rem; color: var(--fg-dim); margin-bottom: 20px; }

/* 1. PROFIL (Prend 1 colonne) */
.card-profile {
  grid-column: span 1;
}

.profile-header {
  display: flex; align-items: center; gap: 16px; margin-bottom: 24px;
}

.profile-avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  font-weight: 700; font-size: 1.2rem;
  display: grid; place-items: center;
}

.member-badge {
  font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.05em;
  background: var(--bg-elev); padding: 4px 8px; border-radius: 4px;
  color: var(--muted);
}

.profile-stats {
  display: flex; gap: 20px; padding-top: 20px; border-top: 1px dashed var(--border);
}
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 1.5rem; font-weight: 700; line-height: 1; }
.stat-label { font-size: 0.8rem; color: var(--muted); }


/* 2. TRACKING (Prend 2 colonnes) */
.card-tracking {
  grid-column: span 2;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-elev), var(--surface));
}

.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }

.status-pulsing {
  color: var(--ok);
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600;
  display: flex; align-items: center; gap: 6px;
}
.status-pulsing::before {
  content: ""; width: 8px; height: 8px; background: currentColor; border-radius: 50%;
  box-shadow: 0 0 10px currentColor;
  animation: pulse-dot 2s infinite;
}

.mini-timeline { margin-bottom: 20px; }
.mt-track { height: 4px; background: var(--border); border-radius: 4px; margin-bottom: 10px; }
.mt-fill { height: 100%; background: var(--accent); border-radius: 4px; box-shadow: 0 0 10px var(--accent); }
.mt-info { font-size: 0.9rem; color: var(--fg-dim); }

.link-arrow {
  font-size: 0.9rem; color: var(--fg); text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
  transition: gap 0.2s;
}
.link-arrow:hover { gap: 10px; color: var(--accent); }


/* 3. DIGITAL COLLECTION (Prend 2 colonnes en bas) */
.card-digital {
  grid-column: span 2;
}

.digital-grid {
  display: flex; gap: 16px; overflow-x: auto; padding-bottom: 10px;
}

.digital-item {
  position: relative;
  width: 120px; aspect-ratio: 9/16; /* Format téléphone */
  border-radius: 12px; overflow: hidden;
  flex-shrink: 0;
}
.digital-item img { width: 100%; height: 100%; object-fit: cover; }

.download-btn {
  position: absolute; bottom: 8px; right: 8px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.2); color: #fff;
  display: grid; place-items: center; cursor: pointer;
  opacity: 0; transform: translateY(10px);
  transition: all 0.3s ease;
}
.digital-item:hover .download-btn { opacity: 1; transform: translateY(0); }

.is-locked { background: var(--bg-elev); border: 1px dashed var(--border); display: grid; place-items: center; }
.lock-overlay { color: var(--muted); opacity: 0.5; }


/* 4. WISHLIST (Prend 1 colonne en bas) */
.card-wishlist {
  grid-column: span 1;
}

.wishlist-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 12px;
  max-height: 200px; overflow-y: auto;
}

.wish-item {
  display: flex; align-items: center; gap: 12px;
  padding: 8px; border-radius: 12px;
  background: var(--bg-elev);
  text-decoration: none; color: var(--fg);
  transition: background 0.2s;
}
.wish-item:hover { background: var(--border); }
.wish-item img { width: 40px; height: 50px; object-fit: cover; border-radius: 4px; }
.wish-item span { font-size: 0.9rem; font-weight: 500; }


/* Responsive */
@media (max-width: 900px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .card-profile, .card-tracking, .card-digital, .card-wishlist { grid-column: span 1; }
}

@keyframes pulse-dot { 0% { opacity: 1; } 50% { opacity: 0.4; } 100% { opacity: 1; } }

/* État connecté du bouton compte (Style sobre) */
.icon-btn.is-logged-in {
  /* On garde le style par défaut (Blanc/Gris) */
  background: var(--surface);
  border-color: var(--border);
  color: var(--fg);
}

.icon-btn.is-logged-in:hover {
  /* Au survol, on met une petite touche de couleur (facultatif) ou juste blanc */
  border-color: var(--fg); 
  color: var(--fg);
  transform: translateY(-1px);
} 







/* =========================================================
   BOUTON FAVORIS (WISHLIST)
   ========================================================= */

.product-card-v2 {
  position: relative; /* Pour positionner le bouton en absolu */
}

.wishlist-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 20; /* Au-dessus de l'image et du lien */
  
  width: 40px;
  height: 40px;
  border-radius: 50%;
  
  /* Style Glassmorphism */
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #ffffff;
  
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wishlist-btn .material-symbols-rounded {
  font-size: 20px;
  font-variation-settings: 'FILL' 0; /* Vide par défaut */
  transition: transform 0.3s ease;
}

/* Hover */
.wishlist-btn:hover {
  background: #ffffff;
  color: var(--danger); /* Rouge */
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* État ACTIF (Liké) */
.wishlist-btn.is-active {
  background: #ffffff;
  color: var(--danger);
  border-color: #ffffff;
  box-shadow: 0 4px 15px rgba(255, 95, 95, 0.4);
}

.wishlist-btn.is-active .material-symbols-rounded {
  font-variation-settings: 'FILL' 1; /* Plein */
  animation: heart-pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* En mode clair, le bouton par défaut est un peu plus visible */
html.theme-light .wishlist-btn {
  background: rgba(255, 255, 255, 0.6);
  color: #000;
}

@keyframes heart-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}


/* --- FIX FINAL FAVORIS --- */
.product-card-v2 {
  position: relative !important;
  z-index: 1;
}

/* Le bouton passe au-dessus du lien produit */
.wishlist-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 999 !important; /* Force brute */
  cursor: pointer !important;
  pointer-events: auto !important; /* Réactive les clics */
}

/* On s'assure que l'icône ne bloque pas le clic du bouton */
.wishlist-btn .material-symbols-rounded {
  pointer-events: none; 
}
/* =========================================================
   FIX FINAL FAVORIS (Z-Index & Interaction)
   ========================================================= */

/* 1. On s'assure que la carte gère bien l'empilement */
.product-card-v2 {
  position: relative !important;
  isolation: isolate; /* Crée un nouveau contexte d'empilement */
}

/* 2. Le bouton passe au-dessus du lien produit et force le curseur */
.wishlist-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 100 !important; /* Force brute au-dessus de l'overlay */
  cursor: pointer !important;
  pointer-events: auto !important; /* Réactive les clics */
}

/* 3. On s'assure que l'icône ne bloque pas le clic du bouton */
.wishlist-btn .material-symbols-rounded {
  pointer-events: none; 
}





/* =========================================================
   BOUTON FAVORIS (WISHLIST) - STYLE & ANIMATION
   ========================================================= */

/* 1. On s'assure que la carte permet de positionner le bouton */
.product-card-v2 {
  position: relative !important;
  isolation: isolate; /* Crée un nouveau contexte d'empilement pour éviter les bugs */
}

/* 2. Le bouton Cœur (Glassmorphism) */
.wishlist-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 50; /* Au-dessus de l'image et du lien (important !) */
  
  width: 40px;
  height: 40px;
  border-radius: 50%;
  
  /* Effet de verre flouté */
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #ffffff; /* Cœur blanc par défaut */
  
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 0; /* Caché par défaut... */
  transform: translateY(-10px);
}

/* On affiche le bouton quand on survole la carte (plus élégant) */
.product-card-v2:hover .wishlist-btn {
  opacity: 1;
  transform: translateY(0);
}

/* Pour le mobile, on l'affiche tout le temps sinon on ne peut pas cliquer */
@media (max-width: 900px) {
  .wishlist-btn {
    opacity: 1;
    transform: translateY(0);
    background: rgba(0, 0, 0, 0.4); /* Fond plus sombre sur mobile pour lisibilité */
  }
}

/* 3. L'icône à l'intérieur */
.wishlist-btn .material-symbols-rounded {
  font-size: 20px;
  font-variation-settings: 'FILL' 0; /* Cœur vide */
  transition: transform 0.3s ease;
  pointer-events: none; /* Le clic passe au travers de l'icône vers le bouton */
}

/* 4. État HOVER (Survol du bouton) */
.wishlist-btn:hover {
  background: #ffffff;
  color: #ff5f5f; /* Rouge danger */
  transform: scale(1.1) !important;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  border-color: #ffffff;
}

/* 5. État ACTIF (Liké) - Ajouté par le JS */
.wishlist-btn.is-active {
  background: #ffffff;
  color: #ff5f5f;
  border-color: #ffffff;
  box-shadow: 0 4px 15px rgba(255, 95, 95, 0.4);
  opacity: 1; /* Reste visible même si on ne survole plus */
  transform: translateY(0);
}

.wishlist-btn.is-active .material-symbols-rounded {
  font-variation-settings: 'FILL' 1; /* Cœur plein */
  animation: heart-pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 6. Animation du "Pop" */
@keyframes heart-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

/* 7. Ajustement pour le Thème Clair */
html.theme-light .wishlist-btn {
  background: rgba(255, 255, 255, 0.6);
  color: #000;
  border-color: rgba(0,0,0,0.1);
}
html.theme-light .wishlist-btn:hover,
html.theme-light .wishlist-btn.is-active {
  background: #fff;
  color: #ff5f5f;
}





/* =========================================================
   COLLECTION DIGITALE & VISIONNEUSE 3D
   ========================================================= */

/* La Grille dans le Dashboard */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 20px;
}

/* Carte 2D (Aperçu) */
.digital-card {
  position: relative;
  aspect-ratio: 2/3; /* Format affiche/carte */
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  background: var(--bg-elev);
  border: 1px solid var(--border);
}

.digital-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Effet Holographique au survol (CSS pur) */
.digital-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg, 
    transparent 20%, 
    rgba(255, 255, 255, 0.4) 40%, 
    rgba(255, 255, 255, 0.4) 60%, 
    transparent 80%
  );
  transform: translateX(-100%);
  transition: transform 0.5s;
  mix-blend-mode: overlay;
}

.digital-card:hover {
  transform: scale(1.05) rotateY(5deg);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  z-index: 2;
}

.digital-card:hover::after {
  transform: translateX(100%); /* Le reflet passe */
}

/* Carte verrouillée */
.digital-card.is-locked {
  filter: grayscale(1) brightness(0.5);
  cursor: not-allowed;
  pointer-events: none;
}
.digital-card.is-locked::before {
  content: "lock";
  font-family: 'Material Symbols Rounded';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 32px;
  color: rgba(255,255,255,0.5);
  z-index: 2;
}

/* --- VISIONNEUSE 3D PLEIN ÉCRAN --- */
.viewer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 5, 0.95); /* Très sombre */
  z-index: 20000; /* Au-dessus de tout */
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
}

.viewer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.viewer-content {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#collection-canvas {
  width: 100%;
  height: 80vh;
  outline: none;
  cursor: grab;
}
#collection-canvas:active { cursor: grabbing; }

.viewer-controls {
  text-align: center;
  padding-bottom: 40px;
  pointer-events: none; /* Pour cliquer au travers si besoin */
}

#viewer-title {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.viewer-controls p {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
}

.close-viewer {
  position: absolute;
  top: 30px;
  right: 30px;
  z-index: 20001;
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}
.close-viewer:hover {
  background: #fff;
  color: #000;
}



/* Effet "Shine" sur les cartes de la collection */
.card-shine {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(
    135deg, 
    rgba(255,255,255,0) 0%, 
    rgba(255,255,255,0) 40%, 
    rgba(255,255,255,0.4) 50%, 
    rgba(255,255,255,0) 60%, 
    rgba(255,255,255,0) 100%
  );
  transform: translateX(-100%);
  transition: transform 0.6s;
  pointer-events: none; /* Laisse passer le clic */
  z-index: 2;
  mix-blend-mode: overlay;
}

.digital-card:hover .card-shine {
  transform: translateX(100%);
}

/* Ajustement du curseur pour le canvas 3D */
#collection-canvas {
  cursor: grab;
}
#collection-canvas:active {
  cursor: grabbing;
}



/* Indication "Cliquez pour ouvrir" */
.viewer-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  pointer-events: none; /* Laisse passer le clic vers le canvas */
  z-index: 10;
  text-shadow: 0 2px 20px rgba(0,0,0,0.8);
  
  opacity: 0;
  transition: opacity 0.5s ease;
}

.viewer-hint.is-visible {
  opacity: 1;
  animation: pulse-hint 2s infinite;
}

@keyframes pulse-hint {
  0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.6; transform: translate(-50%, -50%) scale(0.95); }
}