:root {
    --bg-color: #0f172a; 
    --card-bg: #1e293b; 
    --text-color: #e2e8f0; 
    --accent-color: #FFC125; 
    --nav-bg: rgba(15, 23, 42, 0.95); 
    --amazon-color: #ff9900; 
}

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

html { 
    scroll-behavior: smooth; 
}

body {
    background-color: var(--bg-color);
    background-image: url('../images/background.jpeg');
    background-size: cover; 
    background-position: center;
    background-attachment: fixed;
    color: var(--text-color);
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    padding-bottom: 80px;
}

h1, h2, h3 { 
    font-family: 'Cinzel', serif; 
    color: var(--accent-color); 
    text-align: center; 
}

.lang-switch {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.lang-btn {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.9rem;
    opacity: 0.7;
    margin-left: 10px;
    border: 1px solid transparent;
    padding: 5px 10px;
    border-radius: 20px;
    transition: 0.3s;
}

.lang-btn.active {
    border-color: #E6C875;
    color: #E6C875;
    opacity: 1;
    font-weight: bold;
    box-shadow: 0 0 10px #E6C875, inset 0 0 5px #E6C875; 
    transition: all 0.3s ease;
}

section {
    padding: 40px 20px;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.logo-img {
    max-width: 250px;
    width: 80%;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 15px rgba(251, 191, 36, 0.3));
}

.book-cover {
    width: 90%;
    max-width: 300px;
    height: auto;
    border-radius: 5px;
    margin: 25px 0; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.5), 0 0 10px var(--accent-color); 
    transform: rotateZ(-1deg);
    transition: transform 0.3s;
}

.book-cover:hover {
    transform: scale(1.05) rotateZ(0deg);
}

.synopsis-card {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #334155;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    width: 100%;
    text-align: left; 
}

.synopsis-card h2 {
    text-align: center;
    margin-bottom: 20px;
}

/* NOUVELLE CLASSE POUR VOTRE PHRASE ACCROCHE */
.tagline-italic {
    font-family: 'Lato', sans-serif !important; /* Utilise Lato pour permettre les minuscules */
    font-style: italic;
    color: var(--accent-color);
    text-transform: none; /* Désactive la mise en majuscules forcée */
    font-weight: 400;
}

.genre-text {
    text-align: center;
    margin-top: 20px;
    display: block;
    font-style: italic;
    color: var(--accent-color);
    opacity: 0.7;
    font-size: 0.95rem;
}

.cta-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: #000;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-family: 'Cinzel', serif;
    transition: transform 0.2s;
    white-space: nowrap;
}

.cta-button:hover { 
    transform: scale(1.05); 
}

.amazon-button {
    background-color: var(--card-bg);
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

.amazon-button:hover {
    background-color: var(--accent-color);
    color: #000;
}

.prologue-text {
    text-align: left;
    max-width: 600px;
    margin: 20px auto;
    padding: 30px;
    background-color: var(--card-bg);
    border-left: 5px solid var(--accent-color);
    border-radius: 0 10px 10px 0;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.4);
    font-style: italic;
    opacity: 0.9;
    white-space: pre-wrap;
}

.author-photo {
    width: 150px;
    height: 150px;
    background-color: #334155;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 3px solid var(--accent-color);
    object-fit: cover;
}

#auteur p {
    margin-bottom: 30px;
    max-width: 700px;
    text-align: center;
    margin-left: auto; 
    margin-right: auto; 
}

#auteur p:last-of-type {
    margin-bottom: 0;
}

.social-links {
    margin-top: 20px;
    font-size: 1.5rem;
}

.social-links a {
    color: white;
    margin: 0 10px;
    transition: color 0.3s ease; 
}

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

.legal-text { 
    font-size: 0.8rem; 
    opacity: 0.6; 
}

.legal-text a {
    color: inherit;
    text-decoration: none;
}

.legal-text a:hover {
    text-decoration: underline;
    color: var(--accent-color);
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: var(--nav-bg);
    backdrop-filter: blur(10px);
    border-top: 1px solid #334155;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.75rem;
    opacity: 0.6;
    transition: 0.3s;
}

.nav-item i {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.nav-item:hover, .nav-item:active {
    opacity: 1;
    color: var(--accent-color);
}

.wizpop-img {
    position: fixed;
    z-index: 995;
    bottom: 70px;
    right: 0px;
    height: 220px;
    width: auto;
    pointer-events: none;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.5));
}

.banner-container {
    width: 100%;
    max-width: 400px;
    margin: 30px auto;
    padding: 0 10px;
}

.book-banner {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 193, 37, 0.3);
}

.book-banner img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1584 / 382;
}

.book-banner:hover {
    transform: scale(1.03);
    border-color: var(--accent-color);
}

.book-page section {
    min-height: auto;
    padding-bottom: 10px;
}

.book-page body {
    padding-bottom: 90px;
}

.book-page .logo-img {
    margin-top: 20px;
}

.copyright-footer {
    width: 100%;
    text-align: center;
    font-style: italic;
    opacity: 0.5;
    font-size: 0.8rem;
    margin: 20px 0 40px 0;
    color: var(--text-color);
    display: block;
}

@media (max-width: 768px) {
    .wizpop-img {
        height: 150px;
        right: 10px;
    }
    .banner-container {
        max-width: 96%;
    }
}