/* =========================================================================
 *  WorldWeed · desktop.css — DÉDIÉ DESKTOP (ordinateur + iPad + tablettes)
 *
 *  Chargé UNIQUEMENT si User-Agent != phone (donc desktop, laptop, iPad, tablette).
 *  PAS de @media queries inside : ce fichier EST le CSS desktop.
 * ========================================================================= */


/* =========================================================================
 *  ▣ BODY · pas de padding bottom (pas de bottom-nav)
 * ========================================================================= */
body {
    padding-bottom: 0;
    overflow-x: clip;
}

/* Safe-area covers : utilisés uniquement sur iOS mobile, masqués sur desktop. */
.safe-area-cover { display: none !important; }


/* =========================================================================
 *  ▣ CONTAINER · max-width desktop
 * ========================================================================= */
.container {
    width: 100%;
    max-width: 1280px;
    padding-left: 32px;
    padding-right: 32px;
    margin-left: auto;
    margin-right: auto;
}


/* =========================================================================
 *  ▣ HEADER · nav complète visible
 * ========================================================================= */
.header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(10, 9, 8, 0.85);
    -webkit-backdrop-filter: saturate(160%) blur(22px);
    backdrop-filter: saturate(160%) blur(22px);
    border-bottom: 1px solid rgba(245, 241, 232, 0.08);
    box-shadow: 0 1px 0 rgba(245, 241, 232, 0.02), 0 8px 24px -16px rgba(0, 0, 0, 0.7);
}
.header-inner {
    padding: 14px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    max-width: 1280px;
    margin: 0 auto;
    min-height: 64px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink, #f5f1e8);
    font-family: 'Cormorant Garamond', 'Playfair Display', serif;
    font-weight: 600;
    font-size: 22px;
    letter-spacing: 0.02em;
    transition: opacity .2s ease;
}
.brand:hover { opacity: 0.85; }
.header-nav {
    display: flex !important;
    gap: 32px;
    align-items: center;
}
.header-nav a {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-dim, #b8aec8);
    position: relative;
    padding: 10px 2px;
    transition: color .2s ease;
}
.header-nav a:hover { color: var(--ink, #f5f1e8); }
.header-nav a.active { color: var(--acid, #c084fc); }
.header-nav a.active::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--acid, #c084fc);
    border-radius: 0 0 3px 3px;
    box-shadow: 0 0 12px rgba(192, 132, 252, 0.5);
}
.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}
.header-icon-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    background: rgba(245, 241, 232, 0.04);
    border: 1px solid rgba(245, 241, 232, 0.10);
    color: var(--ink-dim, #b8aec8);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease;
    cursor: pointer;
}
.header-icon-btn:hover {
    color: var(--acid, #c084fc);
    border-color: rgba(192, 132, 252, 0.4);
    background: rgba(192, 132, 252, 0.08);
}
.header-icon-btn:active {
    transform: scale(0.92);
}
/* Sélecteur de langue (dropdown au hover/click) */
.lang-switcher {
    position: relative;
}
.lang-flag {
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.lang-switcher-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 200px;
    background: #1a1410;
    border: 1px solid rgba(245, 241, 232, 0.10);
    border-radius: 14px;
    padding: 8px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.lang-switcher-menu[hidden] { display: none; }
.lang-switcher-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--ink-dim, #b8aec8);
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.05em;
    transition: background 0.15s ease, color 0.15s ease;
}
.lang-switcher-item:hover,
.lang-switcher-item.active {
    background: rgba(192, 132, 252, 0.12);
    color: var(--acid, #c084fc);
}
.lang-switcher-item .lang-name {
    flex: 1;
}

.header-icon-btn .badge,
.header-icon-btn[data-count]::after {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--acid, #c084fc);
    color: #0a0908;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(192, 132, 252, 0.4);
}


/* =========================================================================
 *  ▣ BOTTOM-NAV · CACHÉE sur desktop
 * ========================================================================= */
.bottom-nav { display: none !important; }


/* =========================================================================
 *  ▣ HERO · 2 colonnes desktop (texte + photo)
 * ========================================================================= */
.home-hero {
    padding: 80px 0 100px;
    position: relative;
    isolation: isolate;
}
/* Variante COMPACTE : 1 ligne titre + lead court + 1 CTA, place aux produits en dessous */
.home-hero--compact {
    padding: 48px 0 32px;
}
.home-hero-compact-inner {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    align-items: center;
}
.home-hero--compact .home-hero-title {
    font-size: clamp(42px, 5vw, 64px);
    line-height: 1.06;
    margin-bottom: 4px;
}
.home-hero--compact .home-hero-lead {
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 16px;
    max-width: 600px;
    opacity: 0.85;
}
.home-hero--compact .home-hero-cta {
    margin-bottom: 0;
}
/* Section PÉPITES = premier contact avec les produits, padding réduit en haut */
.home-section--pepites {
    padding-top: 24px;
}
.home-section--pepites .home-section-header {
    margin-bottom: 24px;
}
.home-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 56px;
    align-items: center;
}
.home-hero-title {
    font-size: clamp(56px, 7vw, 88px);
    line-height: 1.05;
    letter-spacing: -.025em;
    margin-bottom: 24px;
}
.home-hero-lead {
    font-size: 18px;
    line-height: 1.65;
    max-width: 540px;
    margin-bottom: 36px;
}
.home-hero-cta {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}
.home-hero-cta .btn { min-height: 56px; }
.home-hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    border-top: 1px solid rgba(245,241,232,.08);
    padding-top: 28px;
}
.home-hero-stats .v {
    font-size: 36px;
    line-height: 1;
}
.home-hero-stats .k {
    font-size: 10px;
    margin-top: 6px;
    letter-spacing: 0.2em;
}


/* =========================================================================
 *  ▣ SECTIONS HOME · padding desktop
 * ========================================================================= */
.home-section {
    padding: 80px 0;
    position: relative;
}
.home-section-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    gap: 48px;
    margin-bottom: 40px;
}
.section-title {
    font-size: clamp(40px, 5vw, 56px);
    line-height: 1.08;
}
.home-section-intro {
    font-size: 16px;
    line-height: 1.65;
    max-width: 540px;
    padding-left: 20px;
    border-left: 4px solid var(--acid, #c084fc);
}


/* =========================================================================
 *  ▣ PRODUCTS GRID · 4 colonnes desktop
 * ========================================================================= */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.product-card { transition: transform .25s ease, box-shadow .25s ease; }
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px -16px rgba(192,132,252,.4);
}


/* =========================================================================
 *  ▣ CATEGORIES GRID · 3 colonnes
 * ========================================================================= */
.home-cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.home-cat-card {
    aspect-ratio: 4 / 5;
    transition: transform .3s ease;
}
.home-cat-card:hover { transform: translateY(-4px); }


/* =========================================================================
 *  ▣ FORMS · row layout desktop
 * ========================================================================= */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="search"],
select,
textarea {
    min-height: 48px;
    padding: 14px 16px;
    border-radius: 10px;
    background: rgba(245,241,232,.04);
    border: 1px solid rgba(245,241,232,.10);
    color: var(--ink, #f7f1ea);
    font-size: 15px;
    transition: border-color .15s, background .15s;
}
input:focus,
select:focus,
textarea:focus {
    border-color: var(--acid, #c084fc);
    background: rgba(245,241,232,.07);
    outline: none;
}
.form-row {
    display: flex;
    flex-direction: row;
    gap: 16px;
}
.form-row .form-group { flex: 1; }
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    color: var(--ink-dim, #b8aec8);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}


/* =========================================================================
 *  ▣ BOUTONS · desktop avec hover effets
 * ========================================================================= */
.btn {
    min-height: 48px;
    padding: 14px 28px;
    font-size: 14px;
    cursor: pointer;
    transition: all .2s ease;
}
.btn-sm { min-height: 36px; padding: 8px 16px; font-size: 12px; }
.btn-lg { min-height: 56px; padding: 18px 32px; font-size: 15px; }

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(192, 132, 252, 0.4);
}
.btn-ghost:hover {
    border-color: var(--acid, #c084fc);
    color: var(--acid, #c084fc);
    transform: translateY(-1px);
}


/* =========================================================================
 *  ▣ CART DRAWER · 480px width à droite, fixed
 * ========================================================================= */
.cart-drawer {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    width: 480px !important;
    max-width: 480px !important;
    height: 100dvh;
    z-index: 500 !important;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.2,.7,.3,1);
    display: flex !important;
    flex-direction: column;
    background-color: #110a1f;
    border-left: 1px solid var(--acid, #c084fc);
    box-shadow: -16px 0 48px rgba(0,0,0,.6),
                -4px 0 12px rgba(192,132,252,.15);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}
.cart-drawer.open {
    transform: translateX(0) !important;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 400;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
    pointer-events: none;
}
.cart-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.cart-open {
    overflow: hidden !important;
}

/* Cart drawer interne desktop : padding plus aéré */
.cart-drawer-header {
    padding: 22px 28px;
    position: sticky;
    top: 0;
    z-index: 5;
    background: #110a1f;
    border-bottom: 1px solid rgba(245,241,232,.06);
}
.cart-drawer-header h3 { font-size: 22px; }
.cart-drawer .cart-items { padding: 14px 28px; }
.cart-drawer .cart-item { padding: 16px 0; gap: 16px; }
.cart-drawer .cart-item-img { width: 72px; height: 72px; }
.cart-drawer .cart-drawer-footer {
    padding: 20px 28px 24px;
    position: sticky;
    bottom: 0;
    z-index: 5;
    background: #110a1f;
    border-top: 1px solid rgba(245,241,232,.06);
}


/* =========================================================================
 *  ▣ POPUP NEWSLETTER · modal centré desktop
 * ========================================================================= */
.nl-popup {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .3s ease;
}
.nl-popup[hidden] { display: none !important; }
.nl-popup.open { opacity: 1; }
.nl-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.nl-popup-box {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    background: linear-gradient(180deg, #1a1228 0%, #0d0817 100%);
    border: 1px solid rgba(192,132,252,0.3);
    border-radius: 20px;
    padding: 40px 40px 32px;
    text-align: center;
    transform: scale(0.95);
    transition: transform .35s cubic-bezier(.2,.7,.3,1);
    box-shadow: 0 30px 80px rgba(192,132,252,0.2), 0 0 0 1px rgba(192,132,252,0.1) inset;
}
.nl-popup.open .nl-popup-box { transform: scale(1); }
.nl-popup-close {
    position: absolute;
    top: 16px; right: 16px;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(245,241,232,0.06);
    border: 1px solid rgba(245,241,232,0.1);
    color: var(--ink-dim);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.nl-popup-close:hover { background: rgba(245,241,232,0.12); color: var(--ink); }
.nl-popup-icon { font-size: 52px; line-height: 1; margin-bottom: 12px; }
.nl-popup-title {
    font-family: var(--font-display);
    font-size: 36px;
    font-style: italic;
    line-height: 1.05;
    margin: 0 0 14px;
    color: var(--ink);
}
.nl-popup-title em {
    background: linear-gradient(135deg, #c084fc, #ff8fdc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-style: normal;
    font-weight: 800;
}
.nl-popup-lead {
    font-size: 16px;
    line-height: 1.5;
    color: var(--ink-dim);
    margin: 0 0 10px;
}
.nl-popup-lead strong { color: var(--ink); font-weight: 700; }
.nl-popup-bonus {
    font-size: 13px;
    color: var(--acid, #c084fc);
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
    margin: 0 0 24px;
    padding: 10px 16px;
    background: rgba(192,132,252,0.08);
    border-radius: 10px;
    border: 1px solid rgba(192,132,252,0.2);
}
.nl-popup-form { display: flex; flex-direction: column; gap: 14px; }
.nl-popup-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(245,241,232,0.04);
    border: 1px solid rgba(245,241,232,0.12);
    border-radius: 10px;
    color: var(--ink);
    font-size: 15px;
    transition: border-color .15s ease;
}
.nl-popup-input:focus {
    outline: none;
    border-color: var(--acid, #c084fc);
    box-shadow: 0 0 0 3px rgba(192,132,252,0.15);
}
.nl-popup-cgv {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    color: var(--ink-dim);
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
}
.nl-popup-cgv input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    width: 16px; height: 16px;
    accent-color: var(--acid, #c084fc);
}
.nl-popup-cgv a { color: var(--acid, #c084fc); text-decoration: underline; }
.nl-popup-submit { min-height: 52px; font-size: 15px; }
.nl-popup-dismiss {
    background: none;
    border: none;
    color: var(--ink-faint);
    font-size: 12px;
    text-decoration: underline;
    cursor: pointer;
    padding: 8px;
}
.nl-popup-dismiss:hover { color: var(--ink-dim); }
.nl-popup-fine {
    font-size: 11px;
    color: var(--ink-faint);
    margin: 8px 0 0;
    line-height: 1.4;
}
.nl-popup-success { padding: 20px 0; }
.nl-popup-success .nl-popup-icon {
    color: #4ade80;
    font-size: 60px;
    background: rgba(74,222,128,0.1);
    width: 88px; height: 88px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.nl-popup-success h2 {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--ink);
    margin: 0;
}


/* =========================================================================
 *  ▣ COOKIE BANNER · bottom 16px (pas de bottom-nav à éviter)
 * ========================================================================= */
.cookie-banner {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    max-width: 720px;
    margin: 0 auto;
    background: var(--concrete-2, #1a1228);
    border: 1px solid var(--acid, #c084fc);
    border-radius: 14px;
    padding: 18px 22px;
    z-index: 800;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 12px 36px rgba(0,0,0,.55);
}
.cookie-banner p {
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
    flex: 1 1 280px;
}
.cookie-banner .cookie-actions { display: flex; gap: 8px; }


/* =========================================================================
 *  ▣ FOOTER · 4 colonnes desktop
 * ========================================================================= */
.footer {
    padding: 72px 0 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
}
.footer-bottom {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid rgba(245,241,232,.06);
    font-size: 11px;
}


/* =========================================================================
 *  ▣ NEWSLETTER · 2 colonnes
 * ========================================================================= */
.newsletter { padding: 80px 0; }
.newsletter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}
.newsletter h2 {
    font-size: clamp(40px, 5vw, 56px);
    line-height: 1.05;
}


/* =========================================================================
 *  ▣ AUTH PAGES
 * ========================================================================= */
.auth-page {
    padding: 60px 32px;
    min-height: calc(100vh - 200px);
}
.auth-box {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    padding: 36px 32px;
    background: rgba(245,241,232,.025);
    border: 1px solid rgba(245,241,232,.08);
    border-radius: 16px;
}


/* =========================================================================
 *  ▣ CHECKOUT · 2 col, sticky recap
 * ========================================================================= */
.checkout-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: flex-start;
}
.checkout-recap {
    position: sticky;
    top: 100px;
}


/* =========================================================================
 *  ▣ PRODUCT DETAIL · 2 col desktop
 * ========================================================================= */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    padding: 56px 0;
}


/* =========================================================================
 *  ▣ PRODUCTS PAGE · sidebar 240px + grid
 * ========================================================================= */
.products-page-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 40px;
}
.products-sidebar { order: 0; }
.products-main { order: 0; }


/* =========================================================================
 *  ▣ DÉCORATIONS · full effets desktop
 * ========================================================================= */
.marquee-tag {
    transform: rotate(-1deg);
    padding: 12px 0;
}
.floating-sticker { display: inline-block; }
.graffiti-tag,
.splat-corner { display: block; }


/* =========================================================================
 *  ▣ TYPO DESKTOP GLOBALE
 * ========================================================================= */
h1 { font-size: clamp(36px, 4vw, 56px); line-height: 1.1; }
h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.15; }
h3 { font-size: clamp(20px, 2vw, 28px); line-height: 1.2; }
p  { line-height: 1.7; font-size: 16px; }


/* =========================================================================
 *  ▣ HOVER EFFECTS GLOBAUX
 * ========================================================================= */
.product-card .product-image-link { transition: transform .3s; }
.product-card:hover .product-image-link { transform: scale(1.02); }


/* =========================================================================
 *  ▣ REDUCED-MOTION
 * ========================================================================= */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
