/* =================================================================
   RESET ET BASE
   ================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6; 
    color: #333;
    background-color: #fefefe;
}

/* =================================================================
   NAVIGATION
   ================================================================= */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 0 1rem;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
}

nav a:hover {
    color: #8B4513;
}

/* Menu hamburger pour mobile */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #333;
}

.nav-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 0 1rem;
    list-style: none;
}

/* =================================================================
   SECTIONS GÉNÉRALES
   ================================================================= */
section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero {
    margin-top: 80px;
    text-align: center;
    padding: 6rem 2rem 4rem;
    background: linear-gradient(135deg, #f8f4f0 0%, #ede7e0 100%);
}

/* =================================================================
   TYPOGRAPHIE
   ================================================================= */
h1 {
    font-size: 2.5rem;
    color: #8B4513;
    margin-bottom: 1rem;
    font-weight: 400;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2rem;
    color: #8B4513;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background: #8B4513;
    margin: 0.5rem auto;
}

h3 {
    font-size: 1.3rem;
    color: #555;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    text-align: justify;
    line-height: 1.7;
}

/* =================================================================
   IMAGES
   ================================================================= */
.book-cover {
    width: 300px;
    height: 400px;
    margin: 0 auto 2rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    position: relative;
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.author-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin: 0 auto 2rem;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.author-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
}

/* =================================================================
   BOUTONS
   ================================================================= */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: #8B4513;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    margin: 0.5rem;
}

.btn:hover {
    background: #6B3410;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #8B4513;
    border: 2px solid #8B4513;
}

.btn-secondary:hover {
    background: #8B4513;
    color: white;
}

/* =================================================================
   LAYOUT SPÉCIFIQUES
   ================================================================= */
.book-intro {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 3rem;
}

.author-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
}

/* =================================================================
   SECTION PRESSE
   ================================================================= */
.press-item {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #8B4513;
}

.press-item h3 {
    color: #8B4513;
    margin-bottom: 0.5rem;
}

/* Lecteur audio */
.audio-player {
    margin-top: 1.5rem;
    text-align: center;
}

.audio-player audio {
    width: 100%;
    max-width: 400px;
    height: 40px;
    border-radius: 8px;
    outline: none;
}

.audio-player audio::-webkit-media-controls-panel {
    background-color: #f9f9f9;
    border-radius: 8px;
}

/* =================================================================
   SECTION CONTACT
   ================================================================= */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.contact-item {
    background: #f8f4f0;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.contact-item h3 {
    color: #8B4513;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.contact-item a {
    color: #333;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #8B4513;
}

/* =================================================================
   FOOTER
   ================================================================= */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

/* =================================================================
   ANIMATIONS
   ================================================================= */
.fade-in {
    animation: fadeIn 0.8s ease-in;
}

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

/* =================================================================
   RESPONSIVE - MOBILE
   ================================================================= */
@media (max-width: 768px) {
    /* Navigation mobile */
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        gap: 0;
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 0.5rem 0;
    }

    .nav-menu a {
        font-size: 1.1rem;
        padding: 0.8rem 2rem;
        display: block;
        border-radius: 8px;
        margin: 0 2rem;
        transition: all 0.3s ease;
    }

    .nav-menu a:hover {
        background: rgba(139, 69, 19, 0.1);
        color: #8B4513;
    }

    /* Typographie mobile */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    /* Sections mobile */
    section {
        padding: 3rem 1rem;
    }

    .hero {
        padding: 4rem 1rem 3rem;
    }

    /* Layout mobile */
    .book-intro,
    .author-section {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    /* Images mobile */
    .book-cover {
        width: 250px;
        height: 333px;
    }

    .author-photo {
        width: 150px;
        height: 150px;
    }

    /* Boutons mobile */
    .btn {
        display: block;
        margin: 0.5rem auto;
        text-align: center;
    }

    /* Contact mobile */
    .contact-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-item {
        padding: 1.5rem;
    }

    /* Audio mobile */
    .audio-player audio {
        max-width: 100%;
    }
}