/* =====================================================================
   STYLES DE LA BOUTIQUE MVS PRODUCTION
   La même boutique (même HTML, même contenu) avec plusieurs designs,
   exactement comme le site du studio.
   Le style actif est sur <html data-theme="...">.
     - neon      : le style de base (style.css + boutique.css)
     - glace     : bleu givré, effet verre, premium
     - editorial : épuré, typographique, grands blocs de couleur
   Pour créer un nouveau style : copier un bloc [data-theme="..."] ci-dessous,
   l'ajouter dans STYLES (js/effets.js) et un bouton dans index.html.
   ===================================================================== */

/* ---------- Commun à tous les styles ---------- */
body.style-switching, body.style-switching * {
  transition: background-color .5s ease, color .5s ease, border-color .5s ease, border-radius .5s ease !important;
}

/* Sélecteur de style (dans la barre de navigation) */
.style-switcher { position: relative; flex: none; }
.style-toggle {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; border-radius: 999px; cursor: pointer;
  font: 500 .82rem "Inter", system-ui, sans-serif; color: #f3f3f6;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.14); transition: transform .2s, border-color .2s;
}
.style-toggle:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.35); }
.style-dots { display: flex; }
.style-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #111114; margin-left: -5px; }
.style-dots i:first-child { margin-left: 0; background: #2563eb; }
.style-dots i:nth-child(2) { background: #8fe3ff; }
.style-dots i:nth-child(3) { background: #f2f2f2; }
.style-panel {
  position: absolute; top: calc(100% + 14px); right: 0; z-index: 60;
  width: min(320px, calc(100vw - 32px)); padding: 16px; border-radius: 18px; display: grid; gap: 8px;
  font-family: "Inter", system-ui, sans-serif; color: #f3f3f6;
  background: rgba(17,17,20,.97); backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.9); animation: fade-in .2s ease;
}
.style-title { font-weight: 700; font-size: 1rem; }
.style-hint { font-size: .8rem; color: #94949e; margin-bottom: 6px; line-height: 1.45; }
.style-option {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 10px; border-radius: 12px; cursor: pointer;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); color: inherit; font: inherit; text-align: left;
  transition: border-color .2s, background .2s;
}
.style-option:hover { border-color: rgba(255,255,255,.3); }
.style-option.active { border-color: #fff; background: rgba(255,255,255,.08); }
.style-name b { display: block; font-size: .92rem; }
.style-name small { font-size: .72rem; color: #94949e; }
.style-preview {
  flex: none; width: 64px; height: 44px; border-radius: 9px; position: relative; overflow: hidden;
  display: grid; align-content: center; gap: 4px; padding: 0 9px; border: 1px solid rgba(255,255,255,.12);
}
.style-preview i { display: block; height: 4px; border-radius: 3px; }
.style-preview i:nth-child(1) { width: 70%; height: 6px; }
.style-preview i:nth-child(2) { width: 90%; }
.style-preview i:nth-child(3) { width: 40%; height: 7px; border-radius: 999px; }
.sp-neon { background: radial-gradient(circle at 80% 20%, rgba(37,99,235,.6), transparent 60%), #0a0a0c; }
.sp-neon i { background: #f3f3f6; } .sp-neon i:nth-child(3) { background: #2563eb; }
.sp-glace { background: radial-gradient(circle at 70% 30%, #1b4f86, #07152a 70%); }
.sp-glace i { background: #e8f6ff; } .sp-glace i:nth-child(3) { background: linear-gradient(90deg, #a6ecff, #4fb8ff); }
.sp-editorial { background: #1f1f1f; }
.sp-editorial i { background: #f2f2f2; } .sp-editorial i:nth-child(2) { background: #60a5fa; } .sp-editorial i:nth-child(3) { background: #2563eb; border-radius: 3px; }
@media (max-width: 1180px) { .style-toggle-text { display: none; } .style-toggle { padding: 9px 10px; } }
@media (max-width: 920px) { .style-panel { position: fixed; top: 84px; right: 16px; } }


/* =====================================================================
   STYLE « GLACE »  —  bleu givré, verre dépoli, premium
   ===================================================================== */
[data-theme="glace"] {
  --bg: #06101f;
  --bg-2: #0a1a30;
  --line: rgba(140, 200, 255, .08);
  --line-2: rgba(140, 200, 255, .16);
  --text: #eef8ff;
  --muted: #9fb6cc;
  --accent-rgb: 79, 184, 255;
  --accent2-rgb: 166, 236, 255;
  --deep: #0d3a66;
  --soft: #cdf3ff;
  --radius: 22px;
}
[data-theme="glace"] body {
  background:
    radial-gradient(1200px 700px at 75% -10%, rgba(40, 110, 190, .35), transparent 60%),
    radial-gradient(900px 600px at -10% 40%, rgba(20, 70, 140, .3), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
[data-theme="glace"] .bg-grid { background-size: 80px 80px; opacity: .7; }
[data-theme="glace"] .cube { background: rgba(166,236,255,.85); border-radius: 50%; box-shadow: 0 0 14px rgba(166,236,255,.8); }
[data-theme="glace"] .cube.outline { border-radius: 50%; border-color: rgba(166,236,255,.35); background: transparent; box-shadow: none; }

/* Typo : très gras + italique fin */
[data-theme="glace"] .hero-title,
[data-theme="glace"] .section-head h2,
[data-theme="glace"] .cta h2,
[data-theme="glace"] .steps h3,
[data-theme="glace"] .product h3,
[data-theme="glace"] .modal h2,
[data-theme="glace"] .drawer h2 { font-family: "Poppins", sans-serif; font-weight: 800; letter-spacing: -.03em; }
[data-theme="glace"] .hero-title { font-weight: 900; line-height: 1; }
[data-theme="glace"] .hero-title .word:nth-of-type(3) span,
[data-theme="glace"] .hero-title .word:nth-of-type(4) span { font-style: italic; font-weight: 300; }
[data-theme="glace"] .rotator {
  background: linear-gradient(180deg, #ffffff 0%, #bff1ff 45%, #4fb8ff 100%);
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 0 18px rgba(79,184,255,.55)) drop-shadow(0 2px 0 rgba(13,58,102,.9));
}
[data-theme="glace"] h2 em, [data-theme="glace"] h3 em { font-style: italic; font-weight: 300; color: var(--soft); }
[data-theme="glace"] .eyebrow { font-family: "Poppins", sans-serif; font-weight: 800; letter-spacing: .14em; color: #8fdcff; }

/* Boutons dégradés givrés */
[data-theme="glace"] .btn, [data-theme="glace"] .cart-btn { font-family: "Poppins", sans-serif; font-weight: 600; }
[data-theme="glace"] .btn-accent,
[data-theme="glace"] .cart-btn {
  background: linear-gradient(90deg, #a6ecff, #4fb8ff); color: #062033;
  box-shadow: 0 0 0 1px rgba(255,255,255,.25) inset, 0 10px 40px rgba(79,184,255,.45);
}
[data-theme="glace"] .btn-accent:hover, [data-theme="glace"] .cart-btn:hover { background: linear-gradient(90deg, #c4f4ff, #6cc6ff); }
[data-theme="glace"] .cart-count { background: rgba(6,32,51,.85); color: #e8f9ff; }
[data-theme="glace"] .btn-ghost { background: rgba(10,30,55,.55); border-color: var(--line-2); backdrop-filter: blur(8px); }

/* Effet verre */
[data-theme="glace"] .nav,
[data-theme="glace"] .card,
[data-theme="glace"] .faq details,
[data-theme="glace"] .hero-pill,
[data-theme="glace"] .hero-badge,
[data-theme="glace"] .modal,
[data-theme="glace"] .drawer,
[data-theme="glace"] .toast,
[data-theme="glace"] .merci,
[data-theme="glace"] .search,
[data-theme="glace"] .sort,
[data-theme="glace"] .chip:not([aria-pressed="true"]) {
  background: linear-gradient(160deg, rgba(30, 70, 120, .38), rgba(8, 24, 45, .55));
  backdrop-filter: blur(14px); border-color: var(--line-2);
}
[data-theme="glace"] .modal, [data-theme="glace"] .drawer { background: linear-gradient(160deg, rgba(22, 56, 98, .92), rgba(6, 18, 36, .97)); }
[data-theme="glace"] .nav { border-radius: 22px; }
[data-theme="glace"] .card:hover { border-color: rgba(166,236,255,.5); box-shadow: 0 20px 60px -20px rgba(79,184,255,.5); }
[data-theme="glace"] .chip[aria-pressed="true"],
[data-theme="glace"] .badge-remise { background: linear-gradient(90deg, #a6ecff, #4fb8ff); color: #062033; border-color: transparent; }
[data-theme="glace"] .chip[aria-pressed="true"] small { color: #0d3a66; }
[data-theme="glace"] .ph-icon { border-radius: 20px; background: linear-gradient(160deg, rgba(166,236,255,.25), rgba(79,184,255,.08)); color: #e8f9ff; }
[data-theme="glace"] .product-thumb, [data-theme="glace"] .pd-main { border-radius: 16px; background: #071a31; }
[data-theme="glace"] .marquee { background: rgba(10, 30, 55, .6); backdrop-filter: blur(10px); }
[data-theme="glace"] .marquee-track { font-family: "Poppins", sans-serif; font-weight: 800; letter-spacing: .12em; }
[data-theme="glace"] .sort select option { background: #0a1a30; }

/* Hero : stats en cartes + cartes flottantes */
[data-theme="glace"] .hero-stats { border-top: 0; gap: 12px; }
[data-theme="glace"] .hero-stats > div {
  padding: 14px 20px; border-radius: 16px; min-width: 150px;
  background: linear-gradient(160deg, rgba(30, 70, 120, .38), rgba(8, 24, 45, .55));
  border: 1px solid var(--line-2); backdrop-filter: blur(10px);
}
[data-theme="glace"] .hero-stats b { font-family: "Poppins", sans-serif; font-size: 1.4rem; }
[data-theme="glace"] .hero-mascot img { border-radius: 28%; }
[data-theme="glace"] .mascot-ring { border-style: solid; border-color: rgba(166,236,255,.18); }
[data-theme="glace"] .float-card {
  display: grid; gap: 4px; position: absolute; z-index: 5; width: 210px; padding: 14px 16px; border-radius: 16px;
  background: linear-gradient(160deg, rgba(30, 70, 120, .55), rgba(8, 24, 45, .75)); backdrop-filter: blur(14px);
  border: 1px solid var(--line-2); box-shadow: 0 20px 50px -20px rgba(0,0,0,.8);
  animation: hover-y 6s ease-in-out infinite;
}
[data-theme="glace"] .float-card b { font-family: "Poppins", sans-serif; font-size: .92rem; }
[data-theme="glace"] .float-card span { font-size: .78rem; color: var(--muted); line-height: 1.45; }
[data-theme="glace"] .fc-1 { top: -46px; left: -18px; }
[data-theme="glace"] .fc-2 { bottom: 90px; right: -40px; animation-delay: -3s; }
@media (max-width: 1100px) { [data-theme="glace"] .float-card { display: none; } }
[data-theme="glace"] .cta { background: radial-gradient(ellipse at 50% 0%, rgba(79,184,255,.3), transparent 60%), linear-gradient(160deg, rgba(30, 70, 120, .4), rgba(8, 24, 45, .6)); }
[data-theme="glace"] .user-avatar { background: linear-gradient(135deg, #a6ecff, #4fb8ff); color: #062033; }


/* =====================================================================
   STYLE « ÉDITORIAL »  —  épuré, typographique, grands blocs de couleur
   ===================================================================== */
[data-theme="editorial"] {
  --bg: #1f1f1f;
  --bg-2: #262626;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .12);
  --text: #f2f2f2;
  --muted: #a3a3a3;
  --accent-rgb: 37, 99, 235;
  --accent2-rgb: 96, 165, 250;
  --deep: #1e3a8a;
  --soft: #93c5fd;
  --radius: 16px;
  --accent-glow: transparent;
}
[data-theme="editorial"] body { font-family: "Manrope", system-ui, sans-serif; }

/* Pas d'effets : on laisse parler la typo */
[data-theme="editorial"] .bg-grid,
[data-theme="editorial"] .cubes,
[data-theme="editorial"] .spotlight,
[data-theme="editorial"] .hero::before,
[data-theme="editorial"] .mascot-ring,
[data-theme="editorial"] .mascot-orbit,
[data-theme="editorial"] .cta-beam,
[data-theme="editorial"] .card::before,
[data-theme="editorial"] .btn-accent::after,
[data-theme="editorial"] .scroll-hint { display: none; }
[data-theme="editorial"] .card.visible { transform: none; }
[data-theme="editorial"] .hero-mascot img { filter: none; }

/* Typo : grotesque fine + italique à empattements */
[data-theme="editorial"] .hero-title,
[data-theme="editorial"] .section-head h2,
[data-theme="editorial"] .cta h2,
[data-theme="editorial"] .modal h2,
[data-theme="editorial"] .drawer h2 { font-family: "Manrope", sans-serif; font-weight: 500; letter-spacing: -.055em; }
[data-theme="editorial"] .hero-title { font-weight: 500; line-height: 1.02; }
[data-theme="editorial"] .rotator,
[data-theme="editorial"] h2 em,
[data-theme="editorial"] h3 em {
  font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -.02em;
  color: #60a5fa; background: none; -webkit-text-fill-color: #60a5fa; filter: none;
}
[data-theme="editorial"] .rotator { padding-right: .06em; }
[data-theme="editorial"] .steps h3, [data-theme="editorial"] .product h3 { font-weight: 600; letter-spacing: -.02em; }
[data-theme="editorial"] .mono { font-family: "Manrope", sans-serif; letter-spacing: .02em; }
[data-theme="editorial"] .eyebrow {
  font-size: .85rem; color: var(--text); text-transform: none; padding-left: 12px; border-left: 2px solid #60a5fa;
}
[data-theme="editorial"] .eyebrow::before { content: "("; }
[data-theme="editorial"] .eyebrow::after { content: ")"; }
[data-theme="editorial"] .hero-lead, [data-theme="editorial"] .section-head p { color: #c9c9c9; }

/* Nav & boutons */
[data-theme="editorial"] .nav { background: rgba(31,31,31,.85); border-radius: 14px; border-color: var(--line); }
[data-theme="editorial"] .nav-links a span { display: none; }
[data-theme="editorial"] .btn { border-radius: 10px; font-weight: 600; padding: 13px 22px; }
[data-theme="editorial"] .btn-sm { padding: 9px 16px; }
[data-theme="editorial"] .btn-accent, [data-theme="editorial"] .cart-btn { background: #2563eb; color: #fff; box-shadow: none; }
[data-theme="editorial"] .cart-btn, [data-theme="editorial"] .style-toggle, [data-theme="editorial"] .chip, [data-theme="editorial"] .qty, [data-theme="editorial"] .qty-btn { border-radius: 10px; }
[data-theme="editorial"] .btn-accent:hover, [data-theme="editorial"] .cart-btn:hover { background: #3b74f0; box-shadow: none; }
[data-theme="editorial"] .btn-ghost { background: #f2f2f2; color: #111; border-color: transparent; }
[data-theme="editorial"] .btn-ghost:hover { background: #fff; }

/* Hero centré */
[data-theme="editorial"] .hero { align-items: center; text-align: center; }
[data-theme="editorial"] .hero-pill { align-self: center; background: transparent; border-color: var(--line-2); border-radius: 10px; }
[data-theme="editorial"] .hero-lead { margin-inline: auto; }
[data-theme="editorial"] .hero-actions { justify-content: center; }
[data-theme="editorial"] .hero-stats { justify-content: center; border-top: 0; }
[data-theme="editorial"] .hero-stats b { color: #60a5fa; font-weight: 600; }
[data-theme="editorial"] .hero-visual { position: relative; right: auto; top: auto; margin: 0 0 28px; width: auto; flex-direction: row; gap: 18px; align-self: center; }
[data-theme="editorial"] .hero-mascot { width: 92px; }
[data-theme="editorial"] .hero-mascot img { animation: none; }
[data-theme="editorial"] .hero-badge { background: #262626; border-color: var(--line-2); box-shadow: none; border-radius: 10px; }

/* Bandeau : bande de couleur */
[data-theme="editorial"] .marquee { background: #2563eb; border: 0; }
[data-theme="editorial"] .marquee-track { color: #fff; font-weight: 700; }
[data-theme="editorial"] .marquee-track i { color: #93c5fd; animation: none; }

/* Cartes sobres */
[data-theme="editorial"] .card, [data-theme="editorial"] .faq details {
  background: #262626; border-color: var(--line); box-shadow: none;
}
[data-theme="editorial"] .card:hover { border-color: rgba(255,255,255,.25); box-shadow: none; transform: none; }
[data-theme="editorial"] .ph-icon { background: #1f1f1f; border-color: var(--line-2); color: #60a5fa; border-radius: 10px; box-shadow: none; }
[data-theme="editorial"] .ph-1, [data-theme="editorial"] .ph-3 { background: #2563eb; }
[data-theme="editorial"] .ph-2, [data-theme="editorial"] .ph-4 { background: #1e3a8a; }
[data-theme="editorial"] .product-thumb { border-radius: 10px; border-color: transparent; }
[data-theme="editorial"] .badge-remise { background: #1f1f1f; border-radius: 6px; box-shadow: none; }
[data-theme="editorial"] .cat-badge { border-radius: 6px; background: rgba(0,0,0,.35); }
[data-theme="editorial"] .chip[aria-pressed="true"] { box-shadow: none; }
[data-theme="editorial"] .search, [data-theme="editorial"] .sort { background: #262626; border-color: var(--line); border-radius: 10px; }
[data-theme="editorial"] .price b { font-weight: 700; }
[data-theme="editorial"] .modal, [data-theme="editorial"] .drawer { background: #262626; box-shadow: 0 40px 100px -30px rgba(0,0,0,.8); }
[data-theme="editorial"] .modal { border-radius: 18px; }
[data-theme="editorial"] .drawer-foot { background: #1f1f1f; }
[data-theme="editorial"] .user-avatar { background: #2563eb; }
[data-theme="editorial"] .toast { background: #262626; }

/* Divers */
[data-theme="editorial"] .cta { background: #2563eb; border: 0; border-radius: 22px; }
[data-theme="editorial"] .cta p { color: rgba(255,255,255,.9); }
[data-theme="editorial"] .cta .eyebrow { border-left-color: #fff; }
[data-theme="editorial"] .cta h2 em { color: #fff; -webkit-text-fill-color: #fff; }
[data-theme="editorial"] .cta .accent { color: #fff; }
[data-theme="editorial"] .cta .btn-accent { background: #1f1f1f; }
[data-theme="editorial"] .progress { background: #2563eb; box-shadow: none; }
[data-theme="editorial"] .modal-close:hover { background: #2563eb; }
[data-theme="editorial"] .steps li:nth-child(odd) { background: #2563eb; border-color: transparent; }
[data-theme="editorial"] .steps li:nth-child(odd) .mono, [data-theme="editorial"] .steps li:nth-child(odd) p { color: rgba(255,255,255,.9); }
