/* ══════════════════════════════════════════════════════════════
   LIVAI DIGITAL — DESIGN SYSTEM
   Tokens + composants partagés (nav, footer, boutons, ticker,
   trust-bar, FAQ, galerie/lightbox, icônes, motion primitives).
   Chargé via <link> par les pages "coeur" (accueil + pages produit).
   Chaque page garde son propre <style> pour ses sections uniques.
   ══════════════════════════════════════════════════════════════ */

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

:root {
  --nav-h: 64px;
  --bg: #0A0A0F;
  --bg-2: #111118;
  --bg-3: #17171f;
  --bg-4: #1f1f29;
  --bg-glass: rgba(255,255,255,0.03);
  --orange: #E8B96A;
  --orange-2: #F3D9A6;
  --orange-3: #C99A46;
  --orange-dark: #C2920C;
  --gold: #E8B96A;
  --gold-soft: #F3D9A6;
  --green: #22C55E;
  --text: #F4F4F7;
  --text-dim: #9A9AA8;
  --text-muted: #6E6E7C;
  --border: rgba(255,255,255,0.08);
  --border-orange: rgba(232,185,106,0.30);
  --red: #EF4444;

  --font-body: 'Inter', system-ui, sans-serif;
  --font-display: 'Poppins', sans-serif;
  --font-serif: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;

  --ease: cubic-bezier(.22,.9,.3,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-deep: 0 20px 60px rgba(0,0,0,0.5);
  --shadow-gold: 0 0 40px rgba(232,185,106,0.12);
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5 { font-family: var(--font-display); }
a { color: var(--orange); text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.orange { color: var(--orange); }
.text-center { text-align: center; }
.text-center .section-sub { margin-left: auto; margin-right: auto; }

.editorial {
  font-family: var(--font-serif);
  font-weight: 500;
  font-style: italic;
  color: var(--orange-2);
}

/* ── ICONS ── */
.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.14em; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon.filled { fill: currentColor; stroke: none; }

/* ── SECTION HEADERS ── */
section { padding: 90px 0; }
.section-label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; color: var(--orange); text-transform: uppercase; margin-bottom: 16px; }
.section-label::before { content: ''; width: 18px; height: 1px; background: var(--orange); }
.section-title { font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 16px; }
.section-sub { font-size: 17px; color: var(--text-dim); max-width: 600px; line-height: 1.7; }

/* ── SCROLL REVEAL ── */
.reveal, .reveal-left, .reveal-right { opacity: 0; transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal { transform: translateY(28px); }
.reveal-left { transform: translateX(-28px); }
.reveal-right { transform: translateX(28px); }
.reveal.visible, .reveal-left.visible, .reveal-right.visible { opacity: 1; transform: translate(0,0); }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; } .d3 { transition-delay: .24s; }
.d4 { transition-delay: .32s; } .d5 { transition-delay: .40s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ── BUTTONS ── */
.btn-primary, .btn-main {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-2) 100%);
  color: #1a1206 !important; padding: 16px 32px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 16px; font-family: var(--font-display); border: none; cursor: pointer;
  box-shadow: 0 8px 30px rgba(232,185,106,0.35);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
}
.btn-primary:hover, .btn-main:hover { transform: translateY(-3px); box-shadow: 0 16px 44px rgba(232,185,106,0.5); color: #1a1206 !important; }
.btn-primary:active, .btn-main:active { transform: translateY(-1px); }
.btn-ghost {
  background: transparent; border: 1px solid rgba(255,255,255,0.15); color: var(--text-dim);
  padding: 16px 32px; border-radius: var(--radius-sm); font-weight: 600; font-size: 16px;
  font-family: var(--font-display); cursor: pointer; transition: all 0.2s var(--ease); display: inline-block;
}
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }
.btn-outline {
  background: transparent; border: 1px solid var(--border); color: var(--text-dim);
  padding: 12px 24px; border-radius: var(--radius-sm); font-weight: 600; font-size: 14px;
  cursor: pointer; transition: all 0.2s var(--ease); font-family: inherit; display: inline-block;
}
.btn-outline:hover { border-color: var(--orange); color: var(--orange); }

/* ── NAV / MEGA MENU ── */
nav { position: sticky; top: 0; z-index: 100; background: rgba(8,8,12,0.85); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; justify-content: space-between; align-items: center; height: var(--nav-h); max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.logo { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--text); transition: color 0.2s; }
.logo:hover { color: var(--text); text-decoration: none; }
.logo span { color: var(--orange); }
.logo-img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 1px solid rgba(232,185,106,0.35); }
.nav-menu { display: flex; align-items: center; gap: 0; }
.nav-item { position: relative; padding: 0 2px; }
.nav-item > a.nav-link { display: flex; align-items: center; gap: 5px; padding: 9px 16px; border-radius: var(--radius-sm); font-size: 14.5px; color: var(--text-dim); font-weight: 500; transition: 0.2s; }
.nav-item > a.nav-link:hover, .nav-item.open > a.nav-link { color: var(--text); background: var(--bg-3); }
.nav-cta {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-2) 100%) !important; color: #1a1206 !important;
  padding: 10px 22px; border-radius: var(--radius-sm); font-weight: 700; font-size: 14px; letter-spacing: 0.02em; margin-left: 8px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease); box-shadow: 0 4px 20px rgba(232,185,106,0.25);
  display: inline-flex; align-items: center; gap: 8px;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(232,185,106,0.40); color: #1a1206 !important; }
.nav-burger { display: none; background: none; border: 0; color: var(--text); font-size: 20px; cursor: pointer; padding: 4px; }
.nav-burger .icon { width: 22px; height: 22px; }

.mega {
  position: fixed; left: 0; right: 0; top: 64px; background: #0B0B11; border-bottom: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 24px 60px rgba(0,0,0,0.55); opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s; z-index: 99;
}
.nav-item.open .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-inner { max-width: 1120px; margin: 0 auto; padding: 32px 28px 36px; display: grid; grid-template-columns: 1.1fr 1.4fr 1.1fr; gap: 34px; }
.mega h4 { font-family: var(--font-body); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px; font-weight: 700; }
.mega-cat { display: flex; align-items: center; gap: 13px; padding: 11px 12px; border-radius: 12px; margin: 0 -12px; transition: 0.2s; }
.mega-cat:hover { background: var(--bg-3); }
.mega-cat .ic { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; background: rgba(232,185,106,0.12); overflow: hidden; }
.mega-cat .ic img { width: 100%; height: 100%; object-fit: cover; }
.mega-cat .t { font-family: var(--font-display); font-weight: 600; font-size: 14.5px; color: var(--text); }
.mega-cat .d { font-size: 12.5px; color: var(--text-dim); }
.mega-cat.coming-soon { position: relative; opacity: 0.7; pointer-events: none; cursor: not-allowed; }
.mega-cat.coming-soon::after {
  content: 'À venir'; position: absolute; top: 50%; right: 0; transform: translateY(-50%);
  background: linear-gradient(135deg, var(--orange), var(--orange-2)); color: #1a1206;
  padding: 3px 10px; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; border-radius: 12px; white-space: nowrap; z-index: 10;
}
.mega-art { display: flex; gap: 14px; padding: 10px; border-radius: 12px; margin: 0 -10px; transition: 0.2s; }
.mega-art:hover { background: var(--bg-3); }
.mega-thumb { width: 74px; height: 54px; border-radius: 9px; flex-shrink: 0; background: linear-gradient(135deg, #23232f, #15151e); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 20px; overflow: hidden; }
.mega-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mega-art .badge { font-size: 10px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--orange); font-weight: 700; }
.mega-art .rt { font-size: 13.5px; font-weight: 500; line-height: 1.35; margin-top: 3px; color: var(--text); }
.mega-art .meta { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.mega-promo { background: linear-gradient(160deg, var(--bg-4), var(--bg-2)); border: 1px solid var(--border); border-radius: 16px; padding: 20px; }
.mega-promo .cover { width: 100%; height: 140px; border-radius: 10px; margin-bottom: 14px; background: linear-gradient(135deg, #2a2418, #1a1610); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.mega-promo .cover img { width: auto; height: 100%; object-fit: contain; }
.mega-promo .pt { font-family: var(--font-display); font-weight: 600; font-size: 14.5px; color: var(--text); }
.mega-promo .pd { font-size: 13px; color: var(--text-dim); margin: 6px 0 12px; }
.mega-promo .pp { color: var(--orange); font-weight: 700; }
.mega-promo .mini { display: block; text-align: center; margin-top: 12px; padding: 10px; border-radius: 10px; background: linear-gradient(135deg, var(--orange), var(--orange-2)); color: #1a1206; font-weight: 700; font-size: 13.5px; transition: 0.2s; }
.mega-promo .mini:hover { filter: brightness(1.08); color: #1a1206; }

@media (max-width: 900px) {
  .nav-menu { display: none; position: fixed; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: #0B0B11; padding: 14px; gap: 4px; border-bottom: 1px solid var(--border); max-height: calc(100vh - 64px); overflow-y: auto; }
  .nav-menu.open { display: flex; }
  .nav-burger { display: block; }
  .nav-cta { margin: 8px 0 0; text-align: center; justify-content: center; }
  .mega { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; border: 0; display: none; }
  .nav-item.open .mega { display: block; }
  .mega-inner { grid-template-columns: 1fr; gap: 16px; padding: 8px 0 14px; }
  .mega-promo { display: none; }
}

/* ── TICKER ── */
.ticker { background: linear-gradient(90deg, rgba(232,185,106,0.12), rgba(232,185,106,0.05), rgba(232,185,106,0.12)); border-bottom: 1px solid var(--border-orange); overflow: hidden; padding: 11px 0; }
.ticker-track { display: flex; gap: 0; width: max-content; animation: ticker-scroll 38s linear infinite; }
.ticker-track span { font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange); white-space: nowrap; padding: 0 18px; }
.ticker-track span::after { content: '•'; margin-left: 36px; color: var(--orange-2); opacity: 0.6; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation-play-state: paused; } }

/* ── TRUST BAR ── */
.trust-bar { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 20px 0; }
.trust-items { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; align-items: center; }
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-dim); font-weight: 500; }
.trust-icon { width: 20px; height: 20px; color: var(--orange); flex-shrink: 0; }
.trust-item strong { color: var(--text); }

/* ── FAQ ── */
.faq-section { padding: 90px 0; }
.faq-list { max-width: 720px; margin: 48px auto 0; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; transition: border-color 0.2s; }
.faq-item.open { border-color: var(--border-orange); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; background: transparent; border: none; cursor: pointer; text-align: left; font-family: var(--font-body); font-size: 15px; font-weight: 600; color: var(--text); gap: 16px; }
.faq-q:hover { color: var(--orange); }
.faq-chevron { width: 20px; height: 20px; color: var(--text-dim); transition: transform 0.25s var(--ease); flex-shrink: 0; }
.faq-item.open .faq-chevron { transform: rotate(45deg); color: var(--orange); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease), padding 0.35s var(--ease); font-size: 14px; color: var(--text-dim); line-height: 1.75; padding: 0 24px; }
.faq-item.open .faq-a { max-height: 420px; padding: 0 24px 22px; }

/* ── GALLERY SLIDER + LIGHTBOX (pages produit) ── */
.gallery-slider-wrap { position: relative; margin-top: 52px; }
.gallery-slider { display: flex; gap: 20px; overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x mandatory; padding: 6px 4px 18px; scrollbar-width: none; -ms-overflow-style: none; }
.gallery-slider::-webkit-scrollbar { display: none; }
.gallery-item { flex: 0 0 260px; scroll-snap-align: start; cursor: zoom-in; }
@media (max-width: 540px) { .gallery-item { flex-basis: 220px; } }
.gallery-frame { border-radius: 14px; overflow: hidden; border: 1px solid var(--border-orange); box-shadow: 0 16px 44px rgba(0,0,0,0.55); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); position: relative; }
.gallery-item:hover .gallery-frame { transform: translateY(-6px) scale(1.02); box-shadow: 0 26px 64px rgba(0,0,0,0.65), 0 0 44px rgba(232,185,106,0.14); }
.gallery-frame .gf-zoom { position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%; background: rgba(12,12,20,0.75); border: 1px solid var(--border-orange); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.25s; }
.gallery-frame .gf-zoom .icon { width: 15px; height: 15px; color: var(--orange); }
.gallery-item:hover .gallery-frame .gf-zoom { opacity: 1; }
.gallery-frame img { width: 100%; display: block; }
.gallery-cap { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--text-dim); }
.gallery-cap .icon { width: 14px; height: 14px; color: var(--orange); flex-shrink: 0; }
.gallery-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; background: var(--bg-3); border: 1px solid var(--border-orange); color: var(--orange); cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 5; transition: background 0.2s, color 0.2s, box-shadow 0.2s; box-shadow: 0 8px 24px rgba(0,0,0,0.5); }
.gallery-arrow .icon { width: 20px; height: 20px; }
.gallery-arrow:hover:not(:disabled) { background: var(--orange); color: #1a1206; box-shadow: 0 8px 30px rgba(232,185,106,0.4); }
.gallery-arrow:disabled { opacity: 0.35; cursor: default; pointer-events: none; color: var(--text-muted); border-color: var(--border); box-shadow: none; }
.gallery-arrow.prev { left: -14px; } .gallery-arrow.next { right: -14px; }
@media (max-width: 640px) { .gallery-arrow { width: 40px; height: 40px; } .gallery-arrow.prev { left: -6px; } .gallery-arrow.next { right: -6px; } }

.lightbox { position: fixed; inset: 0; background: rgba(5,5,10,0.92); backdrop-filter: blur(6px); z-index: 300; display: none; align-items: center; justify-content: center; padding: 30px 16px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: min(92vw, 620px); max-height: 88vh; border-radius: 12px; border: 1px solid var(--border-orange); box-shadow: 0 40px 100px rgba(0,0,0,0.8); }
.lightbox-close { position: absolute; top: 20px; right: 24px; width: 44px; height: 44px; border-radius: 50%; background: var(--bg-3); border: 1px solid var(--border-orange); color: var(--orange); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s, color 0.2s; }
.lightbox-close .icon { width: 18px; height: 18px; }
.lightbox-close:hover { background: var(--orange); color: #1a1206; }
.lightbox-cap { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--orange-2); background: rgba(12,12,20,0.8); border: 1px solid var(--border); padding: 8px 18px; border-radius: 30px; white-space: nowrap; max-width: 90vw; overflow: hidden; text-overflow: ellipsis; }

/* ── TILT COVER (mockup pseudo-3D) ── */
.tilt-scene { perspective: 1600px; }
.tilt-cover {
  border-radius: 16px; overflow: hidden; will-change: transform;
  box-shadow: 0 40px 90px rgba(0,0,0,0.65), 0 0 0 1px rgba(255,255,255,0.06) inset;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
  transform-style: preserve-3d;
}
.tilt-cover img { width: 100%; display: block; }
@media (prefers-reduced-motion: reduce) { .tilt-cover { transition: none !important; transform: none !important; } }

/* ── STICKY CTA BAR (pages produit) ── */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: rgba(10,10,15,0.92); backdrop-filter: saturate(180%) blur(18px);
  border-top: 1px solid var(--border-orange);
  transform: translateY(110%); transition: transform 0.4s var(--ease-out);
  padding: 12px 0; box-shadow: 0 -12px 40px rgba(0,0,0,0.4);
}
.sticky-cta.show { transform: translateY(0); }
.sticky-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.sticky-cta-info { display: flex; align-items: center; gap: 14px; min-width: 0; }
.sticky-cta-cover { width: 40px; height: 52px; border-radius: 6px; overflow: hidden; flex-shrink: 0; box-shadow: 0 6px 16px rgba(0,0,0,0.5); }
.sticky-cta-cover img { width: 100%; height: 100%; object-fit: cover; }
.sticky-cta-text { min-width: 0; }
.sticky-cta-title { font-family: var(--font-display); font-size: 13.5px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-cta-price { font-size: 12.5px; color: var(--orange); font-weight: 700; }
.sticky-cta .btn-primary, .sticky-cta .btn-main { padding: 11px 22px; font-size: 14px; white-space: nowrap; flex-shrink: 0; }
@media (max-width: 560px) { .sticky-cta-title { display: none; } }

/* ── FOOTER ── */
footer { background: var(--bg-2); padding: 44px 0; border-top: 1px solid var(--border); text-align: center; color: var(--text-dim); font-size: 14px; }
.footer-socials { display: flex; gap: 12px; justify-content: center; margin-bottom: 24px; }
.footer-socials a { width: 42px; height: 42px; border-radius: 12px; background: var(--bg-3); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; transition: all 0.2s var(--ease); }
.footer-socials a:hover { background: var(--orange); border-color: var(--orange); transform: translateY(-2px); }
.footer-socials a svg { width: 18px; height: 18px; fill: var(--text-dim); transition: fill 0.2s; }
.footer-socials a:hover svg { fill: #1a1206; }
.footer-links { display: flex; gap: 24px; justify-content: center; margin-bottom: 16px; flex-wrap: wrap; }
.footer-links a { color: var(--text-dim); }
.footer-links a:hover { color: var(--orange); }

/* contraste : texte foncé garanti sur boutons dorés */
.btn-primary, .btn-main, .pay-btn-stripe { color: #1a1206 !important; }
.btn-primary:hover, .btn-main:hover, .pay-btn-stripe:hover { color: #1a1206 !important; }
