/* =========================================
   VARIABLES & PALETTE DE COULEURS
========================================= */
:root {
    --color-bg-main: #FDF9F1;      /* Crème très clair */
    --color-bg-alt: #F3EAE0;       /* Beige chaleureux */
    --color-text-main: #3C2A21;    /* Marron très foncé (presque noir) */
    --color-text-muted: #6A5B53;   /* Marron moyen grisâtre */
    --color-primary: #8B5E3C;      /* Marron roux (cuir) */
    --color-primary-hover: #6E492D;
    --color-accent: #D4A373;       /* Beige doré */
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lora', serif;
}

/* =========================================
   RESET & TYPOGRAPHIE GLOBALE
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-main);
    background-color: var(--color-bg-main);
    line-height: 1.6;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--color-text-main);
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

section h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-accent);
    border-radius: 3px;
}

/* =========================================
   COMPOSANTS / BOUTONS
========================================= */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    border-radius: 999px;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(139, 94, 60, 0.2);
}

.btn-primary {
    background-color: var(--color-primary);
    color: #FFF;
    border: 2px solid var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    color: #FFF;
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: #FFF;
}

/* =========================================
   NAVBAR
========================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 50px;
    background-color: rgba(253, 249, 241, 0.95);
    border-bottom: 1px solid rgba(227, 205, 189, 0.8);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 45px rgba(60, 42, 33, 0.08);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.95rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 0.08em;
}

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-links li a {
    font-family: var(--font-body);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: var(--color-text-main);
}

.nav-links li a:hover {
    color: var(--color-accent);
}

/* =========================================
   HÉROS (HERO SECTION)
========================================= */
.hero {
    height: 72vh;
    min-height: 520px;
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.12), transparent 45%), linear-gradient(rgba(60, 42, 33, 0.78), rgba(60, 42, 33, 0.78)), url('https://images.unsplash.com/photo-1507842217343-583bb7270b66?q=80&w=2000&auto=format&fit=crop') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-bg-main);
    padding: 0 20px;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(253, 249, 241, 0.05), rgba(60, 42, 33, 0.25));
}

.hero-content {
    max-width: 760px;
    z-index: 1;
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 24px;
    backdrop-filter: blur(10px);
}

.hero h1 {
    font-size: 3.8rem;
    color: var(--color-bg-main);
    margin-bottom: 1rem;
    font-style: italic;
    letter-spacing: 0.02em;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(253, 249, 241, 0.92);
}

/* =========================================
   PRÉSENTATION (ABOUT)
========================================= */
.about {
    padding: 80px 0;
    background-color: var(--color-bg-main);
}

.about-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

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

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.image-placeholder {
    width: 100%;
    max-width: 400px;
    height: 500px;
    background-color: var(--color-bg-alt);
    border: 1px solid #E6D5C3;
    border-radius: 8px;
    box-shadow: 10px 10px 0px var(--color-accent);
    background-image: url('https://images.unsplash.com/photo-1481627834876-b7833e8f5570?q=80&w=800&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
}

/* =========================================
   SERVICES
========================================= */
.services {
    padding: 80px 0;
    background-color: #FFF;
}

.services h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--color-primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.service-card {
    padding: 34px 28px;
    border-radius: 20px;
    background-color: var(--color-bg-main);
    box-shadow: 0 18px 40px rgba(60, 42, 33, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 50px rgba(60, 42, 33, 0.12);
}

.service-icon {
    display: inline-flex;
    width: 72px;
    height: 72px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(212, 163, 115, 0.15);
    color: var(--color-primary);
    font-size: 2rem;
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--color-text-main);
}

.service-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* =========================================
   ÉVÉNEMENTS
========================================= */
.events {
    padding: 80px 0;
    background-color: var(--color-bg-main);
}

.events h2 {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 50px;
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.event-card {
    background-color: var(--color-bg-alt);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(60, 42, 33, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 40px rgba(60, 42, 33, 0.1);
}

.event-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.event-date {
    display: inline-block;
    margin-bottom: 18px;
    padding: 8px 16px;
    background-color: rgba(139, 94, 60, 0.1);
    border-radius: 999px;
    color: var(--color-primary);
    font-size: 0.95rem;
}

.event-card p {
    color: var(--color-text-muted);
    line-height: 1.75;
}

/* =========================================
   CONTACT
========================================= */
.contact {
    padding: 80px 0;
    background-color: var(--color-bg-alt);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: stretch;
}

.contact-details,
.contact-card {
    background-color: var(--color-bg-main);
    padding: 35px 40px;
    border-radius: 22px;
    box-shadow: 0 15px 35px rgba(60, 42, 33, 0.06);
}

.contact-details h2,
.contact-card h3 {
    color: var(--color-primary);
}

.contact-details p,
.contact-card p {
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.contact-card a {
    margin-top: 20px;
    display: inline-block;
}

/* =========================================
   GRILLE DE LIVRES (FEATURED BOOKS)
========================================= */
.featured-books {
    padding: 80px 0;
    background-color: var(--color-bg-alt);
}

.featured-books h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.book-card {
    background-color: var(--color-bg-main);
    padding: 28px 24px 24px;
    border-radius: 22px;
    text-align: center;
    box-shadow: 0 18px 35px rgba(60, 42, 33, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    position: relative;
    overflow: hidden;
}

.book-card:hover {
    transform: translateY(-14px);
    box-shadow: 0 28px 50px rgba(60, 42, 33, 0.12);
}

.badge {
    position: absolute;
    top: 15px;
    right: -25px;
    background-color: var(--color-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 5px 30px;
    transform: rotate(45deg);
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 10;
}

.badge-gold {
    background-color: var(--color-accent);
    color: var(--color-text-main);
}

.book-cover {
    width: 150px;
    height: 225px;
    margin: 0 auto 20px auto;
    background-color: #DDD;
    box-shadow: 3px 3px 10px rgba(0,0,0,0.1);
    border-radius: 2px 6px 6px 2px;
}

/* Faux visuels pour les couvertures */
.cover-1 { background: linear-gradient(135deg, #4A5D23, #2B3A1A); }
.cover-2 { background: linear-gradient(135deg, #7C2A2A, #4E1515); }
.cover-3 { background: linear-gradient(135deg, #2D4C63, #152B3C); }
.cover-4 { background: linear-gradient(135deg, #1A1A1A, #3A3A3A); }

.book-card h3 {
    font-size: 1.25rem;
    margin-bottom: 5px;
}

.book-card .author {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-style: italic;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.book-card .desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

/* =========================================
   AVIS CLIENTS (REVIEWS)
========================================= */
.reviews {
    padding: 80px 0;
    background-color: var(--color-bg-main);
}

.reviews h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    background-color: #FFF;
    border: 1px solid rgba(227, 205, 189, 0.8);
    padding: 36px 32px;
    border-radius: 24px;
    text-align: center;
    position: relative;
    box-shadow: 0 22px 50px rgba(60, 42, 33, 0.06);
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.review-card::before {
    content: "«";
    font-family: var(--font-heading);
    font-size: 4.2rem;
    color: var(--color-accent);
    position: absolute;
    top: 20px;
    left: 24px;
    opacity: 0.18;
}

.quote {
    font-size: 1.05rem;
    font-style: italic;
    margin-bottom: 20px;
    color: var(--color-text-main);
    position: relative;
    z-index: 1;
}

.customer-name {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-primary);
}

/* =========================================
   NEWSLETTER
========================================= */
.newsletter {
    padding: 80px 0;
    background-color: var(--color-bg-alt);
    border-top: 1px solid #E6D5C3;
}

.newsletter h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.newsletter p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 12px;
    max-width: 540px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.newsletter-form input {
    flex: 1 1 220px;
    padding: 14px 20px;
    border: 1px solid #C4B29E;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    background-color: #fff;
}

.newsletter-form button {
    min-width: 180px;
}

.newsletter-form input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 5px rgba(139, 94, 60, 0.3);
}

.quote {
    font-size: 1.05rem;
    font-style: italic;
    margin-bottom: 20px;
    color: var(--color-text-main);
    position: relative;
    z-index: 1;
}

.customer-name {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-primary);
}

/* =========================================
   FOOTER
========================================= */
.footer {
    background-color: var(--color-text-main);
    color: var(--color-bg-main);
    padding: 60px 0 20px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h4 {
    color: var(--color-accent);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-section p {
    color: #CCC;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #4A3A31;
    padding-top: 20px;
    color: #999;
    font-size: 0.85rem;
}

/* =========================================
   RESPONSIVE DESIGN
========================================= */
@media (max-width: 768px) {
    section {
        padding: 50px 0;
    }

    .navbar {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .nav-links li a {
        font-size: 0.8rem;
    }

    .hero {
        min-height: 400px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .about-container {
        flex-direction: column;
        gap: 30px;
    }

    .about-image {
        width: 100%;
    }

    .image-placeholder {
        height: 300px;
        width: 100%;
        max-width: 100%;
    }

    .event-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-details,
    .contact-card {
        padding: 30px 24px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form button {
        width: 100%;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
}
