:root {
    /* Couleurs */
    --color-primary: #004d40;
    --color-secondary: #ffc107;
    --color-text: #333;
    --color-background: #f8f8f8;
    --color-light: #fff;

    /* Typographie */
    --font-family-sans: 'Poppins', sans-serif;
    --font-family-serif: Georgia, serif;
    --font-size-base: 1.125rem;
    --spacing-unit: 1rem;
}

/* ------------------------------------------------ */
/* RESET & BASE */
/* ------------------------------------------------ */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family-sans);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    padding-top: 110px; /* Espace pour la barre de navigation fixe */
}

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

a:hover {
    color: var(--color-secondary);
}

/* ------------------------------------------------ */
/* HEADER & NAVIGATION */
/* ------------------------------------------------ */

.site-header {
    background-color: var(--color-light);
    border-bottom: 2px solid var(--color-primary);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 1px;
    margin-right: 1.5rem;
}

.site-subtitle {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.25rem;
}

.main-nav {
    background-color: var(--color-primary);
}

.nav-list {
    max-width: 1200px;
    margin: 0 auto;
    list-style: none;
    display: flex;
    justify-content: flex-start;
    padding: 0 1.5rem;
    overflow-x: auto; /* Pour les petits écrans si trop de liens */
}

.nav-list li a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--color-light);
    font-weight: 400;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.nav-list li a:hover,
.nav-list li a.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--color-secondary);
}

/* ------------------------------------------------ */
/* MAIN CONTENT LAYOUT */
/* ------------------------------------------------ */

.content-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

h1 {
    font-size: 2.2rem;
    color: var(--color-primary);
    border-bottom: 3px solid var(--color-secondary);
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

h2 {
    font-size: 1.8rem;
    color: var(--color-text);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.2rem;
    color: var(--color-primary);
    margin-top: 0.5rem;
}

p {
    margin-bottom: 1.2rem;
}

/* ------------------------------------------------ */
/* SPECIFIC SECTIONS */
/* ------------------------------------------------ */

.hero-quote {
    margin: 3rem 0;
    background-color: var(--color-light);
    border-left: 5px solid var(--color-secondary);
    padding: 1.5rem;
    font-family: var(--font-family-serif);
}

.intro-block p {
    font-size: 1.5rem;
    line-height: 1.4;
    font-style: italic;
    color: #444;
    margin: 0;
}

.book-tome-1 {
    background-color: var(--color-light);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    margin: 3rem 0;
    border: 1px solid #ddd;
}

.book-tome-1 h2 {
    color: var(--color-primary);
    font-size: 2rem;
    text-transform: uppercase;
    border: none;
    margin-bottom: 0.5rem;
}

.book-tome-1 h3 {
    color: #666;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.sub-note {
    font-size: 0.9rem;
    font-style: italic;
    color: #888;
    margin-bottom: 1.5rem;
    display: block;
}

.details {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px dashed #ccc;
}

.author-bio-section {
    margin-top: 3rem;
    padding: 1.5rem;
    background-color: #eee;
    border-radius: 4px;
}

/* Mise en page de la carte : Image à gauche, Texte à droite */
.book-content-wrapper {
    display: flex;
    gap: 25px; /* Espace entre l'image et le texte */
    align-items: flex-start; /* Aligne le haut du texte avec le haut de l'image */
}

.book-cover {
    width: 150px; /* Taille fixe pour l'image de couverture */
    min-width: 150px; /* Assure que l'image ne se rétrécit pas */
    height: auto;
    border: 1px solid #ddd;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
}

/* Amélioration de la liste des caractéristiques (Prix, ISBN...) */
.details ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 1rem;
    
    /* Utilisation de Grid ou Flexbox pour aligner les doubles points */
    display: grid; 
    grid-template-columns: 1fr 1fr; /* Peut être changé en 150px 1fr pour un alignement strict */
    gap: 8px 15px;
}

.details ul li {
    display: contents; /* Permet aux enfants d'agir comme des items de la grille */
    font-size: 0.95rem;
}

.details ul li strong {
    font-weight: 500;
    color: var(--color-primary);
    text-align: right; /* Aligne les libellés à droite */
}

/* RESPONSIVE : Sur petit écran, l'image passe au-dessus du texte */
@media (max-width: 768px) {
    .book-content-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .book-cover {
        margin-bottom: 15px;
    }
    .details ul {
        grid-template-columns: 1fr; /* Revenir à une liste simple */
        text-align: left;
    }
    .details ul li strong {
        text-align: left;
        display: block;
    }
}

/* ------------------------------------------------ */
/* FOOTER */
/* ------------------------------------------------ */

.site-footer {
    background-color: var(--color-text);
    color: var(--color-light);
    padding: 2rem 1.5rem;
    text-align: center;
    font-size: 0.9rem;
}

.site-footer a {
    color: var(--color-light);
    text-decoration: underline;
    margin: 0 0.5rem;
}

.site-footer a:hover {
    color: var(--color-secondary);
}

.separator {
    margin: 0 0.25rem;
}

.footer-links {
    margin-top: 0.5rem;
}

/* ------------------------------------------------ */
/* RESPONSIVE (Mobile First) */
/* ------------------------------------------------ */

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }
    
    .header-container {
        flex-direction: column;
        text-align: center;
    }

    .site-title, .site-subtitle {
        margin: 0.25rem 0;
    }

    .nav-list {
        justify-content: space-between;
        padding: 0;
    }

    .nav-list li a {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }

    h1 {
        font-size: 1.8rem;
    }
    
    .intro-block p {
        font-size: 1.2rem;
    }

    .book-tome-1 {
        padding: 1rem;
    }

    .book-tome-1 h2 {
        font-size: 1.5rem;
    }
}

.order-info {
    background-color: #e6f7ff; /* Bleu très clair pour mettre en évidence */
    border: 1px solid #004d40;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 6px;
    text-align: center;
}

.order-info address {
    font-style: normal;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.book-tome-1 { 
    /* Renommé pour plus de clarté dans le CSS */
    background-color: var(--color-light);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    margin: 3rem 0;
    border: 1px solid #ddd;
} 

.contact-form {
    background-color: var(--color-light);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: var(--font-family-sans);
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-secondary);
    outline: none;
    box-shadow: 0 0 5px rgba(255, 193, 7, 0.5);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-button {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-light);
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: var(--color-secondary);
    color: var(--color-primary);
}

.cgv-section h2 {
    font-size: 1.3rem; /* Légèrement plus petit qu'un H2 standard */
    color: var(--color-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.cgv-list {
    list-style-type: none; /* Supprime la numérotation par défaut */
    padding-left: 0;
}

.cgv-list li {
    padding: 1.5rem 0;
    border-bottom: 1px dashed #ddd;
}

.cgv-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.buy-link {
    margin-top: 20px;
}

.buy-link a {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--color-secondary);
    color: var(--color-primary); /* Texte en vert foncé sur fond jaune/or */
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    border: 2px solid var(--color-secondary);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.buy-link a:hover {
    background-color: var(--color-primary); /* Inversion des couleurs au survol */
    color: var(--color-secondary);
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}
