/* Netflix-style Video Intro */
.video-intro {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.8s ease;
}

.video-intro.hidden {
    opacity: 0;
    pointer-events: none;
}

.video-intro video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.skip-intro-btn {
    position: absolute;
    bottom: 80px;
    right: 50px;
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.skip-intro-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
}

/* Modal Logo */
.modal-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    box-shadow: 0 5px 30px rgba(212, 175, 55, 0.4);
    border: 3px solid var(--gold);
}

/* Header Logo Image */
.logo-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
}

/* Variables */
:root {
    --primary: #8b0000;
    --primary-dark: #5c0000;
    --secondary: #1a1a2e;
    --accent: #d4af37;
    --gold: #d4af37;
    --dark: #0f0f1a;
    --light: #f5f5f5;
    --text: #333;
    --text-light: #666;
    --white: #fff;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
    --radius: 12px;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Age Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.modal.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    background: var(--secondary);
    padding: 50px;
    border-radius: var(--radius);
    text-align: center;
    max-width: 500px;
    color: var(--white);
    border: 2px solid var(--gold);
}

.modal-icon {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    background: var(--white);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.modal-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.modal-content p {
    color: #aaa;
    margin-bottom: 30px;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-confirm {
    background: var(--primary);
    color: var(--white);
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.btn-confirm:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.btn-deny {
    background: transparent;
    color: #888;
    padding: 15px 30px;
    border: 1px solid #444;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.btn-deny:hover {
    border-color: #666;
    color: #aaa;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--secondary);
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 1.8rem;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
}

.logo-ember {
    color: var(--white);
}

.logo-read {
    color: var(--gold);
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: #ccc;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--gold);
}

.cart-btn {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    padding: 10px;
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary);
    color: var(--white);
    font-size: 0.7rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero */
.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--dark) 100%);
    color: var(--white);
    padding-top: 70px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(139, 0, 0, 0.3) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 40px 20px;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero h1 span {
    color: var(--gold);
    font-style: italic;
}

.hero p {
    font-size: 1.2rem;
    color: #aaa;
    margin-bottom: 30px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(139, 0, 0, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(139, 0, 0, 0.5);
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 15px;
    color: var(--secondary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 50px;
}

/* Filters */
.filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid var(--secondary);
    background: transparent;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--secondary);
    color: var(--white);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 10;
}

.badge-soft {
    background: #27ae60;
    color: var(--white);
}

.badge-building {
    background: #e67e22;
    color: var(--white);
}

.badge-medium {
    background: #f39c12;
    color: var(--white);
}

.badge-intense {
    background: #e74c3c;
    color: var(--white);
}

.badge-hard {
    background: #c0392b;
    color: var(--white);
}

.badge-climax {
    background: #e91e63;
    color: var(--white);
}

.badge-extreme {
    background: #8e44ad;
    color: var(--white);
}

.badge-suspense {
    background: #2c3e50;
    color: var(--white);
}

.product-image {
    height: 300px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2c3e50 0%, #1a1a2e 100%);
}

.book-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .book-cover-img {
    transform: scale(1.05);
}

.book-cover {
    width: 140px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.product-card:hover .book-cover {
    transform: scale(1.05) rotate(-2deg);
}

.cover-1 { background: linear-gradient(135deg, #ee9ca7 0%, #ffdde1 100%); }
.cover-2 { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.cover-3 { background: linear-gradient(135deg, #ff6b6b 0%, #c0392b 100%); }
.cover-4 { background: linear-gradient(135deg, #8e44ad 0%, #3498db 100%); }
.cover-5 { background: linear-gradient(135deg, #2c3e50 0%, #000 100%); }

.book-title {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    color: var(--white);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    padding: 10px;
}

.product-info {
    padding: 25px;
}

.product-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--secondary);
}

.product-info h3 a {
    color: inherit;
    transition: var(--transition);
}

.product-info h3 a:hover {
    color: var(--primary);
}

.product-image {
    display: block;
}

.product-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.intensity {
    display: flex;
    gap: 2px;
}

.flame {
    font-size: 0.9rem;
}

.format {
    font-size: 0.8rem;
    color: #888;
    background: var(--light);
    padding: 3px 10px;
    border-radius: 10px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.btn-add {
    background: var(--secondary);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.85rem;
}

.btn-add:hover {
    background: var(--primary);
}

/* Pack Section */
.pack-section {
    margin-top: 60px;
}

.pack-card {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--dark) 100%);
    color: var(--white);
    padding: 50px;
    border-radius: var(--radius);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pack-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.pack-badge {
    display: inline-block;
    background: var(--gold);
    color: var(--dark);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
}

.pack-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 10px;
    position: relative;
}

.pack-card > p {
    color: #aaa;
    margin-bottom: 25px;
    position: relative;
}

.pack-price {
    margin-bottom: 25px;
    position: relative;
}

.old-price {
    text-decoration: line-through;
    color: #888;
    font-size: 1.2rem;
    margin-right: 15px;
}

.new-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
}

.btn-pack {
    background: var(--gold);
    color: var(--dark);
    padding: 15px 40px;
    font-size: 1.1rem;
    position: relative;
}

.btn-pack:hover {
    background: #e5c04b;
    transform: scale(1.05);
}

/* À propos */
.apropos {
    background: var(--light);
}

.apropos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.apropos-card {
    background: var(--white);
    padding: 40px 25px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.apropos-card:hover {
    transform: translateY(-5px);
}

.apropos-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 20px;
}

.apropos-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--secondary);
}

.apropos-card p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    margin-bottom: 15px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--secondary);
    text-align: left;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--light);
}

.faq-icon {
    font-size: 1.5rem;
    transition: var(--transition);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 25px 20px;
    color: var(--text-light);
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--white);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
}

.cart-sidebar.active {
    right: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cart-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border-bottom: 1px solid #eee;
}

.cart-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
}

.cart-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #888;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.cart-item-img {
    width: 60px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.cart-item-info .item-price {
    color: var(--primary);
    font-weight: 600;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 1.2rem;
}

.cart-empty {
    text-align: center;
    padding: 40px;
    color: #888;
}

.cart-footer {
    padding: 25px;
    border-top: 1px solid #eee;
}

.promo-code {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.promo-code input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9rem;
}

.promo-code button {
    padding: 10px 15px;
    background: var(--gold);
    color: var(--dark);
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
}

#promoStatus {
    font-size: 0.85rem;
    margin-bottom: 10px;
    color: #4CAF50;
}

#promoStatus.error {
    color: #f44336;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.btn-checkout {
    width: 100%;
    background: var(--primary);
    color: var(--white);
    padding: 15px;
}

.btn-checkout:hover {
    background: var(--primary-dark);
}

/* Footer */
.footer {
    background: var(--secondary);
    color: var(--white);
    padding: 50px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.footer-brand p {
    color: #888;
    margin-top: 10px;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: #888;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.footer-bottom a {
    color: var(--gold);
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 992px) {
    .apropos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    /* Header Mobile */
    .header .container {
        padding: 0 15px;
    }

    .nav {
        display: none;
    }

    .logo-img {
        width: 35px;
        height: 35px;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    /* Hero Mobile */
    .hero {
        min-height: 50vh;
        padding-top: 80px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    /* Sections Mobile */
    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .section-subtitle {
        margin-bottom: 30px;
    }

    /* Filters Mobile */
    .filters {
        gap: 8px;
        margin-bottom: 25px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    /* Products Grid Mobile */
    .apropos-grid {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-card {
        max-width: 100%;
    }

    .product-image {
        height: 250px;
    }

    .product-info {
        padding: 20px;
    }

    .product-info h3 {
        font-size: 1.1rem;
    }

    .product-desc {
        font-size: 0.85rem;
    }

    /* Footer Mobile */
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    /* Cart Sidebar Mobile - IMPROVED */
    .cart-sidebar {
        width: 100%;
        right: -100%;
        max-width: 100vw;
    }

    .cart-header {
        padding: 20px 15px;
    }

    .cart-header h3 {
        font-size: 1.3rem;
    }

    .cart-items {
        padding: 15px;
    }

    .cart-item {
        gap: 12px;
        padding: 12px 0;
    }

    .cart-item-img {
        width: 50px;
        height: 65px;
    }

    .cart-item-info h4 {
        font-size: 0.9rem;
    }

    .cart-footer {
        padding: 20px 15px;
    }

    .cart-total {
        font-size: 1.1rem;
    }

    .btn-checkout {
        padding: 12px;
        font-size: 0.95rem;
    }

    /* Pack Card Mobile */
    .pack-card {
        padding: 30px 20px;
    }

    .pack-card h3 {
        font-size: 1.5rem;
    }

    .new-price {
        font-size: 2rem;
    }

    /* Age Modal Mobile */
    .modal-content {
        margin: 20px;
        padding: 30px 20px;
    }

    .modal-logo {
        width: 80px;
        height: 80px;
    }

    .modal-icon {
        width: 70px;
        height: 70px;
        font-size: 2.5rem;
    }

    .modal-content h2 {
        font-size: 1.4rem;
    }

    .modal-content p {
        font-size: 0.9rem;
    }

    .modal-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .btn-confirm, .btn-deny {
        width: 100%;
        padding: 12px 20px;
    }

    /* Video Intro Mobile */
    .skip-intro-btn {
        bottom: 40px;
        right: 20px;
        left: 20px;
        text-align: center;
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    /* FAQ Mobile */
    .faq-question {
        padding: 15px;
        font-size: 0.95rem;
    }

    .faq-answer p {
        padding: 0 15px 15px;
        font-size: 0.9rem;
    }

    /* Apropos Cards Mobile */
    .apropos-card {
        padding: 25px 20px;
    }

    .apropos-icon {
        font-size: 2.5rem;
    }

    .apropos-card h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    /* Extra small screens */
    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .product-image {
        height: 200px;
    }

    .price {
        font-size: 1.3rem;
    }

    .btn-add {
        padding: 8px 15px;
        font-size: 0.8rem;
    }

    .pack-card h3 {
        font-size: 1.3rem;
    }

    .old-price {
        font-size: 1rem;
    }

    .new-price {
        font-size: 1.8rem;
    }

    .btn-pack {
        padding: 12px 30px;
        font-size: 1rem;
    }
}
