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

body {
    font-family: 'Inter', sans-serif;
    background: #faf8f5;
    color: #1e1a16;
    padding: 2rem 1.5rem;
    line-height: 1.8;
}

.container {
    max-width: 820px;
    width: 100%;
    background: white;
    padding: 3.5rem 3rem;
    border-radius: 24px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.06);
    margin: 0 auto;
}


/* ============================================
   EN-TÊTE
   ============================================ */
.header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #f0ebe5;
}

.header .author-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #c9b8a8;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    margin-bottom: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #1e1a16;
    margin-bottom: 0.25rem;
}

.header .subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    color: #8a7e72;
    letter-spacing: 0.08em;
}

.header .contact-link {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    font-weight: 400;
}

.header .contact-link a {
    color: #6b5f53;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 1.4rem;
    border-radius: 30px;
    background: #f5f0ea;
    border: 1px solid transparent;
    display: inline-block;
    font-weight: 500;
}

.header .contact-link a:hover {
    color: #ffffff;
    background: #a68d7a;
    border-color: #a68d7a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(166, 141, 122, 0.3);
}


/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    text-align: center;
    margin: 2.5rem 0 1.5rem 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.nav a {
    position: relative;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: #6b5f53;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 0.25rem;
    height: 2px;
    background: #a68d7a;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.nav a:hover {
    color: #a68d7a;
}

.nav a:hover::after {
    transform: scaleX(1);
}

.nav a.active {
    color: #a68d7a;
    font-weight: 500;
}

.nav a.active::after {
    transform: scaleX(1);
}


/* ============================================
   TITRE DU ROMAN
   ============================================ */
.book-title {
    text-align: center;
    margin-bottom: 1.8rem;
}

.book-title h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.6rem;
    font-weight: 700;
    font-style: italic;
    color: #2c2420;
    letter-spacing: -0.01em;
}

.book-title .divider {
    display: inline-block;
    width: 60px;
    height: 3px;
    background: #c9b8a8;
    margin-top: 0.6rem;
    border-radius: 4px;
}

.book-title .book-meta {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    color: #6b5f53;
    margin-top: 0.75rem;
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.4rem 0.9rem;
    letter-spacing: 0.02em;
}

.book-title .book-meta .genre {
    font-weight: 500;
    color: #a68d7a;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.book-title .book-meta .editor {
    font-weight: 400;
    color: #6b5f53;
}

.book-title .book-meta .availability {
    font-weight: 400;
    color: #8a7e72;
    font-style: italic;
}

.book-title .book-meta .separator {
    color: #c9b8a8;
    font-weight: 300;
    font-size: 0.85rem;
}


/* ============================================
   BLOC D'ACCROCHE EN DEUX COLONNES
   ============================================ */
.presentation-wrap {
    display: flex;
    align-items: flex-start;
    gap: 2.5rem;
    margin: 0 auto 3rem auto;
    max-width: 760px;
}

/* La couverture à gauche */
.book-cover {
    flex: 0 0 200px;
}

.book-cover-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* La colonne de texte à droite */
.presentation-content {
    flex: 1 1 auto;
    min-width: 0;
}

/* Tous les paragraphes de la colonne de texte */
.presentation-content p {
    font-size: 1.1rem;
    font-weight: 300;
    color: #2c2420;
    text-align: justify;
    margin: 0 0 1rem 0;
    padding: 0;
    line-height: 1.8;
}

.presentation-content p:last-of-type {
    margin-bottom: 1.8rem;
}

/* Lettine : uniquement sur le premier paragraphe */
.presentation::first-letter {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    float: left;
    line-height: 1;
    margin-right: 0.4rem;
    color: #a68d7a;
}


/* ============================================
   BOUTONS D'ACTION (CTA)
   ============================================ */
.cta-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    text-align: left;
}

.cta-button {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: #ffffff;
    background: #a68d7a;
    text-decoration: none;
    padding: 0.75rem 1.8rem;
    border-radius: 30px;
    border: 2px solid #a68d7a;
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    background: #8a7462;
    border-color: #8a7462;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(166, 141, 122, 0.35);
}

/* Variante secondaire : contour plutôt que plein */
.cta-button--secondary {
    background: transparent;
    color: #a68d7a;
}

.cta-button--secondary:hover {
    background: #a68d7a;
    color: #ffffff;
    border-color: #a68d7a;
    box-shadow: 0 6px 18px rgba(166, 141, 122, 0.25);
}


/* ============================================
   SECTIONS THEMATIQUES
   ============================================ */
.section {
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid #f0ebe5;
}

.section:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c2420;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.section h3 .number {
    display: inline-block;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: #a68d7a;
    background: #f5f0ea;
    padding: 0.15rem 0.8rem;
    border-radius: 20px;
    margin-right: 0.8rem;
    letter-spacing: 0.02em;
    cursor: default;
}

.section p {
    font-weight: 300;
    color: #2c2420;
    text-align: justify;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.section p:last-of-type {
    margin-bottom: 0;
}


/* ============================================
   LISTE DE PRESSE
   ============================================ */
.press-list {
    list-style: none;
    padding: 0;
    margin: 1rem auto 3rem auto;
    max-width: 700px;
}

.press-list li {
    padding: 1rem 0;
    border-bottom: 1px solid #f0ebe5;
}

.press-list li:first-child {
    border-top: 1px solid #f0ebe5;
}

.press-list a {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 400;
    color: #2c2420;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.press-list a::after {
    content: "↗";
    font-size: 0.85em;
    color: #a68d7a;
    transition: transform 0.2s ease;
}

.press-list a:hover {
    color: #a68d7a;
}

.press-list a:hover::after {
    transform: translate(2px, -2px);
}

.press-list em {
    font-style: italic;
    color: #6b5f53;
}


/* ============================================
   PIED DE PAGE
   ============================================ */
.footer-note {
    text-align: center;
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 2px solid #f0ebe5;
    font-size: 0.9rem;
    color: #a68d7a;
    letter-spacing: 0.04em;
}

.footer-note span {
    background: #f5f0ea;
    padding: 0.2rem 1.5rem;
    border-radius: 20px;
    font-weight: 400;
    cursor: default;
}


/* ============================================
   RESPONSIVE — TOUJOURS À LA FIN
   ============================================ */

/* --- Tablette / petits écrans --- */
@media (max-width: 768px) {
    .container {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }

    .header h1 {
        font-size: 2.4rem;
    }

    .book-title h2 {
        font-size: 2rem;
    }

    .presentation-content p {
        font-size: 1rem;
        text-align: left;
    }

    /* On annule complètement la lettrine sur mobile */
    .presentation::first-letter {
        font-family: inherit;
        font-size: inherit;
        font-weight: inherit;
        float: none;
        line-height: inherit;
        margin-right: 0;
        color: inherit;
    }

    .section h3 {
        font-size: 1.5rem;
    }

    .section h3 .number {
        display: block;
        margin-bottom: 0.4rem;
        margin-right: 0;
        width: fit-content;
    }

    .section p {
        font-size: 0.98rem;
    }
}

/* --- Mobile : photo plus petite --- */
@media (max-width: 640px) {
    .header .author-photo {
        width: 120px;
        height: 120px;
    }

    /* L'accroche s'empile : couverture au-dessus, texte en dessous */
    .presentation-wrap {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .book-cover {
        flex: 0 0 auto;
        width: 160px;
    }

    /* Les boutons s'empilent et prennent toute la largeur */
    .cta-wrapper {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .cta-button {
        width: 100%;
        text-align: center;
    }
}

/* --- Petits mobiles --- */
@media (max-width: 480px) {
    .nav {
        gap: 0.3rem;
        margin: 2rem 0 1rem 0;
        padding-top: 1.5rem;
    }

    .nav a {
        font-size: 0.85rem;
        padding: 0.4rem 0.9rem;
    }

    .book-title .book-meta {
        font-size: 0.85rem;
        flex-direction: column;
        gap: 0.35rem;
    }

    .book-title .book-meta .separator {
        display: none;
    }

    .book-title .book-meta .genre {
        font-size: 0.75rem;
    }
}

/* --- Très petits mobiles --- */
@media (max-width: 400px) {
    .container {
        padding: 1.5rem 1rem;
    }

    .header h1 {
        font-size: 1.8rem;
    }

    .book-title h2 {
        font-size: 1.6rem;
    }

    .section h3 {
        font-size: 1.3rem;
    }
}
