/* ===== VARIABLES & RESET ===== */
:root {
    --primary-color: #D4A574; /* Ocre doré */
    --secondary-color: #8B5A3C; /* Terre brûlée */
    --accent-color: #C19A6B; /* Beige chaud */
    --dark-color: #2C1810; /* Marron foncé */
    --light-color: #F5E6D3; /* Beige clair */
    --text-color: #3E2723;
    --white: #FFFFFF;
    --shadow: 0 10px 30px rgba(139, 90, 60, 0.15);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    background-color: var(--light-color);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    color: var(--dark-color);
    line-height: 1.3;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== ZONES ÉDITABLES ===== */
.editable-zone {
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.1), rgba(193, 154, 107, 0.1));
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.editable-zone strong {
    color: var(--secondary-color);
    display: block;
    margin-bottom: 10px;
}

.image-placeholder {
    text-align: center;
    color: var(--secondary-color);
    font-style: italic;
    margin-top: 10px;
    font-size: 0.9rem;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(44, 24, 16, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--light-color);
    text-decoration: none;
    font-weight: 400;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.burger div {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><path fill="rgba(212,165,116,0.05)" d="M0,300 Q300,100 600,300 T1200,300 L1200,600 L0,600 Z"/></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(212, 165, 116, 0.2), transparent 50%);
}

.hero-content {
    text-align: center;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: 3px;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--light-color);
    margin-bottom: 10px;
    font-weight: 300;
}

.hero-author {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 40px;
    font-style: italic;
}

.cta-button {
    display: inline-block;
    padding: 18px 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--dark-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(212, 165, 116, 0.4);
    letter-spacing: 1px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(212, 165, 116, 0.6);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary-color);
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ===== SECTION À PROPOS DU LIVRE ===== */
.about-book {
    padding: 100px 0;
    background: var(--white);
}

.book-showcase {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.book-cover-wrapper {
    position: relative;
    perspective: 1000px;
}

.main-cover {
    width: 100%;
    max-width: 400px;
    border-radius: 15px;
    box-shadow: 20px 20px 60px rgba(139, 90, 60, 0.3);
    transition: var(--transition);
}

.main-cover:hover {
    transform: rotateY(-10deg) rotateX(5deg);
}

.book-shadow {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 30px;
    background: radial-gradient(ellipse, rgba(139, 90, 60, 0.3), transparent);
    filter: blur(15px);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.section-title.center {
    display: block;
    text-align: center;
}

.section-title.center::after {
    left: 50%;
    transform: translateX(-50%);
}

.quote {
    background: linear-gradient(135deg, var(--light-color), rgba(212, 165, 116, 0.2));
    border-left: 5px solid var(--primary-color);
    padding: 25px;
    margin: 30px 0;
    font-style: italic;
    font-size: 1.1rem;
    border-radius: 8px;
}

.quote cite {
    display: block;
    text-align: right;
    margin-top: 15px;
    color: var(--secondary-color);
    font-weight: 600;
}

.book-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature {
    text-align: center;
    padding: 25px;
    background: var(--light-color);
    border-radius: 12px;
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.feature-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
}

.feature h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

/* ===== SECTION EXTRAITS ===== */
.extracts {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--light-color), var(--white));
}

.extracts-grid {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.extract-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.extract-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(139, 90, 60, 0.2);
}

.extract-card.reverse {
    grid-template-columns: 1fr 1fr;
}

.extract-card.reverse .extract-content {
    order: -1;
}

.extract-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(139, 90, 60, 0.15);
}

.cover-back {
    max-width: 350px;
    margin: 0 auto;
    display: block;
}

.placeholder-img {
    background: linear-gradient(135deg, var(--light-color), rgba(212, 165, 116, 0.2));
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--primary-color);
}

.extract-content h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

/* ===== SECTION COMMANDER ===== */
.order {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--secondary-color), var(--dark-color));
    color: var(--white);
}

.order .section-title {
    color: var(--primary-color);
}

.order .editable-zone {
    background: rgba(212, 165, 116, 0.1);
    border-left-color: var(--primary-color);
    color: var(--light-color);
}

.order-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.order-card {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    box-shadow: var(--shadow);
}

.order-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(212, 165, 116, 0.4);
}

.order-card.featured {
    border: 3px solid var(--primary-color);
    transform: scale(1.05);
}

.badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--dark-color);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
}

.order-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.order-card h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.order-card p {
    color: var(--text-color);
    margin-bottom: 10px;
}

.price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 20px 0;
}

.order-button {
    display: inline-block;
    width: 100%;
    padding: 15px 30px;
    margin-top: 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    letter-spacing: 0.5px;
}

.order-button.kindle {
    background: linear-gradient(135deg, #FF9900, #FFB347);
    color: var(--dark-color);
}

.order-button.paper {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--dark-color);
}

.order-button.pdf {
    background: linear-gradient(135deg, #DC3545, #E85563);
    color: var(--white);
}

.order-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ===== SECTION AUTEUR ===== */
.author {
    padding: 100px 0;
    background: var(--white);
}

.author-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

.author-image {
    text-align: center;
}

.author-image img {
    width: 100%;
    max-width: 350px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.author-bio h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark-color);
    color: var(--light-color);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--light-color);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(212, 165, 116, 0.2);
    color: var(--accent-color);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(44, 24, 16, 0.98);
        width: 100%;
        padding: 30px;
        transition: var(--transition);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .burger {
        display: flex;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .book-showcase,
    .extract-card,
    .extract-card.reverse,
    .author-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .extract-card.reverse .extract-content {
        order: 0;
    }
    
    .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
}
