/* Jeux Tousles Jours - Boutique jeux rétro - Thème clair (WCAG 4.5:1+) */
:root {
    --primary: #059669;
    --primary-hover: #047857;
    --accent: #ea580c;
    --black: #0f172a;
    --neutral-dark: #1e293b;
    --bg-dark: #f8fafc;
    --bg-card: #ffffff;
    --bg-elevated: #f1f5f9;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Source Sans 3', sans-serif;
    --radius: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-elevated: 0 4px 12px rgba(0,0,0,0.1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover { color: var(--primary-hover); }
a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Header */
.app-header {
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(15,23,42,0.06), 0 1px 0 rgba(255,255,255,0.8) inset;
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: 64px;
}

.app-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    opacity: 0.9;
}

.logo {
    display: flex;
    align-items: center;
    padding: 0.25rem 0;
    transition: opacity 0.2s ease;
}
.logo:hover { opacity: 0.9; }

.logo img {
    height: 44px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    border-radius: var(--radius);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.main-nav > a {
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 0 0 1px rgba(255,255,255,0.5) inset;
    text-shadow: 0 1px 1px rgba(255,255,255,0.8), 0 1px 2px rgba(0,0,0,0.06);
}
.main-nav > a:hover {
    color: var(--primary);
    background: rgba(5,150,105,0.08);
    border-color: rgba(5,150,105,0.25);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1), 0 0 0 1px rgba(5,150,105,0.15);
}
.main-nav > a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.main-nav .nav-cart,
.main-nav .nav-fav {
    margin-left: 0.5rem;
    padding-left: 0.5rem;
    border-left: 1px solid var(--border);
}

.nav-cart, .nav-fav {
    position: relative;
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    color: var(--text);
    transition: color 0.2s ease, background 0.2s ease;
}
.nav-cart:hover, .nav-fav:hover {
    color: var(--primary);
    background: rgba(5,150,105,0.08);
}

.nav-cart .badge, .nav-fav .badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    min-width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.75rem;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    transition: background 0.2s ease;
}
.nav-toggle:hover { background: rgba(5,150,105,0.08); }
.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
    transition: background 0.2s ease;
}
.nav-toggle:hover span { background: var(--primary); }

@media (max-width: 768px) {
    .app-header { padding: 0.5rem 1rem; min-height: 56px; }
    .logo img { height: 40px; }
    .main-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-card);
        padding: 1rem;
        gap: 0;
        box-shadow: 0 8px 24px rgba(15,23,42,0.12);
        border-bottom: 1px solid var(--border);
    }
    .main-nav.open {
        display: flex;
    }
    .main-nav > a {
        width: 100%;
        padding: 0.75rem 1rem;
        border-radius: var(--radius);
        border: 1px solid var(--border);
        box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    }
    .main-nav > a:last-of-type { border-bottom: none; }
    .main-nav .nav-cart,
    .main-nav .nav-fav {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        margin-top: 0.5rem;
        padding-top: 0.75rem;
        border-top: 1px solid var(--border);
    }
    .nav-toggle { display: flex; }
}

/* Main */
.app-main {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 2rem 1.5rem;
}

/* Hero */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
}

.hero-logo {
    display: inline-block;
    margin-bottom: 1rem;
    opacity: 0.95;
    transition: opacity 0.2s;
}
.hero-logo:hover { opacity: 1; }
.hero-logo img {
    height: 48px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.hero-content h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--black);
}

.hero-tagline {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.hero-promo {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.hero-promo code {
    background: var(--bg-elevated);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
}

.trust-section-logo {
    display: block;
    text-align: center;
    margin-bottom: 1rem;
    opacity: 0.85;
    transition: opacity 0.2s;
}
.trust-section-logo:hover { opacity: 1; }
.trust-section-logo img {
    height: 36px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
}

.cta-section-logo {
    display: block;
    text-align: center;
    margin-bottom: 1rem;
    opacity: 0.9;
    transition: opacity 0.2s;
}
.cta-section-logo:hover { opacity: 1; }
.cta-section-logo img {
    height: 40px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}

.hero-visual img {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--radius);
    border: 2px solid var(--border);
    box-shadow: 0 4px 20px rgba(15,23,42,0.15);
}

@media (max-width: 768px) {
    .hero { grid-template-columns: 1fr; }
    .hero-visual { order: -1; }
    .hero-content h1 { font-size: 1.5rem; }
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover { background: var(--neutral-dark); }

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-secondary:hover { background: rgba(5,150,105,0.08); }

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* Promo banner */
.promo-banner, .promo-banner-large {
    background: linear-gradient(135deg, var(--black) 0%, var(--neutral-dark) 50%, var(--accent) 100%);
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    text-align: center;
}

.promo-banner-large { padding: 1.5rem; font-size: 1.1rem; }

.promo-banner code, .promo-banner-large code {
    background: rgba(255,255,255,0.3);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

/* Sections */
.section-products {
    margin-bottom: 3rem;
}

.section-products h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.section-desc {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.section-link {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
}

/* Product grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-elevated);
    border-color: var(--neutral-dark);
}

.product-card-link {
    color: inherit;
    display: block;
}

.product-image-wrap {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.product-card img, .product-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge-sale {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--accent);
    color: #fff;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
}

.product-card h3 {
    font-size: 1rem;
    padding: 1rem 1rem 0;
    line-height: 1.3;
}

.product-platform {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 0.25rem 1rem 0;
}

.product-short-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 0.25rem 1rem 0;
    line-height: 1.4;
}

.product-card-footer {
    padding: 1rem;
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.product-price .price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.old-price {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 0.5rem;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-add-cart {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-add-cart:hover { background: var(--primary-hover); }

.btn-add-fav {
    padding: 0.5rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s, border-color 0.2s;
}

.btn-add-fav:hover { color: var(--accent); border-color: var(--accent); }

.btn-add-fav.in-favorites,
.product-card.in-favorites .btn-add-fav {
    color: var(--accent);
    border-color: var(--accent);
}
.btn-add-fav.in-favorites svg,
.product-card.in-favorites .btn-add-fav svg {
    fill: currentColor;
}
.btn-add-fav.in-favorites svg path,
.product-card.in-favorites .btn-add-fav svg path {
    fill: currentColor;
    stroke: none;
}

/* CTA section */
.cta-section {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.cta-section h2 {
    font-family: var(--font-display);
    margin-bottom: 0.5rem;
}

.cta-section p { margin-bottom: 1.5rem; color: var(--text-muted); }

/* Breadcrumb */
.breadcrumb {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }

/* Product detail */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.product-gallery {
    position: relative;
}

.product-gallery > img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--radius);
    display: none;
}

.product-gallery > img.active { display: block; }

.gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.gallery-thumbs .thumb {
    width: 60px;
    height: 45px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
    background: none;
}

.gallery-thumbs .thumb.active { border-color: var(--primary); }

.gallery-thumbs .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info h1 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.product-meta {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.product-price-block .price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
}

.product-description {
    margin: 1.5rem 0;
    color: var(--text-muted);
}

.product-params {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem 1.5rem;
    margin: 1rem 0;
    padding: 1rem;
    background: var(--bg-elevated);
    border-radius: var(--radius);
}

.product-params dt {
    font-weight: 600;
    color: var(--text-muted);
}

.product-params dd {
    margin: 0;
}

.product-actions-detail {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.out-of-stock { color: var(--accent); margin-top: 1rem; }

.cta-product {
    padding: 1rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    text-align: center;
}

@media (max-width: 768px) {
    .product-detail { grid-template-columns: 1fr; }
}

/* Cart & Favorites pages */
.page-cart, .page-favorites, .page-checkout, .page-gift, .page-content {
    max-width: 900px;
    margin: 0 auto;
}

.page-about-logo, .page-contact-logo, .page-gift-logo, .page-promo-logo {
    display: block;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    transition: opacity 0.2s;
}
.page-about-logo:hover, .page-contact-logo:hover, .page-gift-logo:hover, .page-promo-logo:hover { opacity: 1; }
.page-about-logo img, .page-contact-logo img, .page-gift-logo img, .page-promo-logo img {
    height: 42px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.page-cart h1, .page-favorites h1, .page-checkout h1, .page-gift h1, .page-content h1 {
    font-family: var(--font-display);
    margin-bottom: 0.5rem;
}

.page-desc, .lead {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    border: 1px solid var(--border);
}

.cart-item img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

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

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-qty, .btn-remove {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
    cursor: pointer;
    font-size: 1rem;
}

.btn-qty:hover, .btn-remove:hover { border-color: var(--primary); }

.cart-summary {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: var(--radius);
}

.cart-total { font-size: 1.25rem; }

.cart-summary .btn-primary { margin-top: 1rem; }

@media (max-width: 600px) {
    .cart-item { grid-template-columns: 60px 1fr; }
    .cart-item-actions { grid-column: 1 / -1; }
}

/* Favorites page — Ma liste de nostalgie */
.page-favorites { max-width: 1100px; }

.fav-hero {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(5,150,105,0.06) 0%, rgba(234,88,12,0.04) 100%);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.fav-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    background: var(--black);
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.fav-pixel-heart {
    color: var(--accent);
    font-size: 1rem;
}

.cart-empty {
    text-align: center;
    padding: 2.5rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px dashed var(--border);
}

.cart-empty-logo {
    display: inline-block;
    margin-bottom: 1rem;
    opacity: 0.85;
    transition: opacity 0.2s;
}
.cart-empty-logo:hover { opacity: 1; }
.cart-empty-logo img {
    height: 36px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
}

.fav-hero-logo {
    display: block;
    margin-bottom: 1rem;
    opacity: 0.9;
    transition: opacity 0.2s;
}
.fav-hero-logo:hover { opacity: 1; }
.fav-hero-logo img {
    height: 36px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
}

.fav-empty {
    text-align: center;
    padding: 2.5rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px dashed var(--border);
}

.fav-empty-icon {
    font-size: 3rem;
    color: var(--border);
    margin-bottom: 1rem;
}

.fav-empty-hint {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.fav-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.fav-count { color: var(--text-muted); margin: 0; }

.fav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.fav-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.fav-card:hover {
    box-shadow: var(--shadow-elevated);
    border-color: var(--neutral-dark);
}

.fav-card-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    color: inherit;
    text-decoration: none;
}

.fav-card-image {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--bg-elevated);
}

.fav-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fav-card-body {
    padding: 0.75rem;
    flex: 1;
}

.fav-card-body h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fav-card-platform {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.fav-card-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 1rem;
}

.fav-card-actions {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-top: 1px solid var(--border);
    background: var(--bg-elevated);
}

.fav-card-actions .btn-sm {
    flex: 1;
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
}

.fav-card-actions .btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--accent);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.fav-card-actions .btn-icon:hover {
    background: rgba(234,88,12,0.1);
    color: var(--accent);
}

.fav-card-actions .btn-icon.in-favorites,
.fav-card .btn-remove-fav {
    color: var(--accent);
}

@media (max-width: 480px) {
    .fav-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.75rem; }
    .fav-card-body h3 { font-size: 0.9rem; }
}

/* Checkout */
.checkout-empty {
    text-align: center;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.checkout-empty p { margin-bottom: 1rem; color: var(--text-muted); }

.checkout-form {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-group.full-width { grid-column: 1 / -1; }

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 1rem;
}

.checkout-summary { margin-bottom: 1.5rem; }

.btn-submit { width: 100%; padding: 1rem; }

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
}

.modal-content {
    position: relative;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius);
    border: 2px solid var(--primary);
    max-width: 400px;
    width: 100%;
}

.modal-content h2 {
    font-family: var(--font-display);
    margin-bottom: 1rem;
    color: var(--primary);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
}

/* Gift page */
.gift-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
}

.gift-hero img {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--radius);
}

@media (max-width: 768px) { .gift-hero { grid-template-columns: 1fr; } }

/* About page */
.about-hero {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    align-items: start;
    margin-bottom: 2rem;
}

.about-hero-image img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--radius);
    border: 2px solid var(--border);
}

.about-hero-text h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.about-hero-text p { margin-bottom: 1rem; }

.about-address {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bg-elevated);
    border-radius: var(--radius);
}

@media (max-width: 768px) {
    .about-hero { grid-template-columns: 1fr; }
    .about-hero-image { order: -1; }
}

/* Content pages */
.content-block {
    margin-bottom: 2rem;
}

.content-block h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.contact-card {
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

/* Cookie popup */
.cookie-popup {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 2px solid var(--primary);
    padding: 1.5rem;
    border-radius: var(--radius);
    z-index: 9998;
    box-shadow: var(--shadow);
    transition: transform 0.3s, opacity 0.3s;
}

.cookie-popup.hidden {
    opacity: 0;
    transform: translateY(100%);
    pointer-events: none;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 200px;
}

.cookie-content h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }

.cookie-content p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.cookie-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Promo popup - Cadeau de bienvenue */
.promo-popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: promoFadeIn 0.4s ease-out;
}

.promo-popup.hidden {
    display: none;
    pointer-events: none;
}

@keyframes promoFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.promo-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.promo-popup-content {
    position: relative;
    max-width: 420px;
    width: 100%;
    background: linear-gradient(165deg, #ffffff 0%, #f0fdf4 40%, #fef3c7 100%);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35), 0 0 0 3px rgba(5, 150, 105, 0.3), 0 0 60px rgba(234, 88, 12, 0.15);
    border: 2px solid rgba(5, 150, 105, 0.4);
    animation: promoSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes promoSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.promo-popup-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.08);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.promo-popup-close:hover {
    background: rgba(15, 23, 42, 0.15);
    color: var(--black);
}

.promo-popup-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, #047857 100%);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.4);
}

.promo-popup-content h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--black);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.promo-popup-desc {
    font-size: 1rem;
    color: var(--neutral-dark);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.promo-popup-code {
    margin: 1.25rem 0;
}

.promo-popup-code code {
    display: inline-block;
    background: linear-gradient(135deg, var(--black) 0%, var(--neutral-dark) 100%);
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    border: 2px solid var(--accent);
}

.promo-popup-extra {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.promo-popup-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.promo-popup-btn {
    display: block;
    text-align: center;
    padding: 0.85rem 1.25rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.promo-popup-btn:active {
    transform: scale(0.98);
}

.promo-popup-btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #047857 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.4);
}

.promo-popup-btn-primary:hover {
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.5);
}

.promo-popup-btn-secondary {
    background: #fff;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.promo-popup-btn-secondary:hover {
    background: rgba(5, 150, 105, 0.08);
}

@media (max-width: 480px) {
    .promo-popup-content {
        padding: 1.5rem;
    }
    .promo-popup-code code {
        font-size: 1.2rem;
        letter-spacing: 0.1em;
        padding: 0.6rem 1rem;
    }
}

.cookie-content a:hover { text-decoration: none; }

.cookie-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .cookie-content {
        flex-direction: column;
        align-items: stretch;
    }
    .cookie-actions {
        justify-content: flex-end;
    }
}

/* Toast */
#retro-toast {
    position: fixed;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--primary);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    z-index: 10000;
    opacity: 0;
    transition: transform 0.2s, opacity 0.2s;
}

#retro-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Footer */
.app-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 2rem 1.5rem;
    margin-top: 3rem;
}

.footer-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.trust-badge {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
}

.footer-address {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.footer-newsletter {
    max-width: 400px;
    margin: 0 auto 2rem;
    padding: 1.5rem;
    background: var(--bg-elevated);
    border-radius: var(--radius);
}

.footer-newsletter h4 { margin-bottom: 0.5rem; }

.footer-newsletter p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .newsletter-form { flex-direction: column; }
    .newsletter-form .btn-primary { width: 100%; }
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 2rem;
}

.footer-logo {
    display: inline-block;
}

.footer-logo img {
    height: 48px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    border-radius: 10px;
}

.footer-col h4 {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }

.footer-legal {
    text-align: center;
    padding: 1.5rem;
    margin: 0 -1.5rem -2rem;
    background: var(--black);
    color: rgba(255,255,255,0.9);
}

.footer-legal .footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-legal a { color: rgba(255,255,255,0.9); }
.footer-legal a:hover { color: #fff; }

.payment-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.6);
    margin-bottom: 0.5rem;
}

.payment-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.payment-logos img {
    height: 32px;
    width: auto;
    max-width: 56px;
    object-fit: contain;
    opacity: 0.95;
    transition: opacity 0.2s ease;
}

.payment-logos img:hover {
    opacity: 1;
}
.footer-legal .copyright { font-size: 0.9rem; color: rgba(255,255,255,0.85); }
.copyright { font-size: 0.9rem; color: var(--text-muted); }

/* Legal content */
.legal-content h2 {
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.legal-content p { margin-bottom: 0.75rem; }

/* FAQ */
.page-faq .faq-list { margin-top: 1.5rem; }

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
}

.faq-item summary {
    padding: 1rem;
    cursor: pointer;
    font-weight: 600;
}

.faq-item p {
    padding: 0 1rem 1rem;
    margin: 0;
    color: var(--text-muted);
}

/* Trust section */
/* Boutique hero block */
.boutique-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.boutique-hero-content h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.boutique-hero-content p {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.boutique-hero-image img {
    width: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
    border-radius: var(--radius);
}

@media (max-width: 768px) {
    .boutique-hero { grid-template-columns: 1fr; }
    .boutique-hero-image { order: -1; }
}

.trust-section {
    margin-bottom: 2rem;
}

.trust-section h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--primary);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.trust-item {
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.trust-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-elevated);
}

.trust-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.75rem;
    background: linear-gradient(135deg, var(--black) 0%, var(--neutral-dark) 100%);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trust-item strong { display: block; margin-bottom: 0.25rem; }

.trust-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

/* Reviews */
.reviews-section {
    margin-bottom: 2rem;
    padding: 2rem 1rem;
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-elevated) 50%, var(--bg-dark) 100%);
    border-radius: var(--radius);
}

.reviews-section h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
    color: var(--primary);
}

.reviews-intro {
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    max-width: 1000px;
    margin: 0 auto;
}

.review-card {
    position: relative;
    padding: 1.5rem 1.5rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.review-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-elevated);
}

.review-stars {
    font-size: 1rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    color: var(--accent);
}

.review-stars .star-empty {
    color: var(--border);
}

.review-quote {
    margin: 0 0 1rem;
    padding: 0;
    border: none;
}

.review-quote p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text);
    margin: 0;
}

.review-meta {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.review-meta cite {
    font-style: normal;
    font-weight: 600;
    color: var(--text);
}

.review-location {
    color: var(--text-muted);
}

.review-location::before {
    content: '·';
    margin-right: 0.5rem;
}

.review-date {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.review-date::before {
    content: '·';
    margin-right: 0.5rem;
}

/* Category page */
.page-category { margin-bottom: 2rem; }

/* Error 404 */
.error-404 {
    text-align: center;
    padding: 3rem 2rem;
}

.error-404 h1 { margin-bottom: 1rem; }
