/* --- Réinitialisation et styles globaux --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #1a120b; /* Brun très sombre, comme du bois ancien */
    color: #e0dacc; /* Couleur parchemin clair pour le texte */
    font-family: 'Lora', serif; /* Police élégante et lisible */
    line-height: 1.6;
}

/* --- Effet de fondu (Fade-in) --- */
body.fade-in {
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

body.fade-in.visible {
    opacity: 1;
}

/* --- Typographie --- */
h1, h2, h3 {
    font-family: 'Cinzel', serif; /* Police plus stylisée pour les titres */
    color: #d4af37; /* Couleur or/laiton */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.2rem; margin-bottom: 1rem; }
h3 { font-size: 1.8rem; margin-bottom: 1rem; }

p {
    margin-bottom: 1rem;
}

strong {
    color: #d4af37;
    font-weight: 700;
}

/* --- En-tête (Header) --- */
.introduction-header {
    position: relative;
    width: 100%;
    height: 60vh; /* Hauteur de 60% de la fenêtre */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.header-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* L'image couvre tout l'espace sans se déformer */
    z-index: 1;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Superposition sombre pour la lisibilité */
    z-index: 2;
}

.header-title {
    position: relative;
    z-index: 3;
    padding: 20px;
}

/* --- Contenu Principal --- */
.content-wrapper {
    max-width: 960px;
    margin: 4rem auto; /* Marge en haut/bas et centrage horizontal */
    padding: 0 2rem;
}

/* Section d'introduction de l'histoire */
.story-intro {
    display: flex;
    align-items: center;
    gap: 3rem; /* Espace entre le texte et l'image */
    margin-bottom: 5rem;
}

.story-text {
    flex: 2; /* Le texte prend 2/3 de l'espace */
}

.story-image {
    flex: 1; /* L'image prend 1/3 de l'espace */
    text-align: center;
}

.story-image img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.5);
    transform: rotate(-3deg); /* Donne un effet "posé sur la table" */
}

blockquote {
    border-left: 4px solid #d4af37;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #c7bda2;
}

/* Section d'appel à l'action */
.call-to-action {
    text-align: center;
    padding: 3rem;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border: 1px solid #4a3f35;
}

.society-logo {
    width: 100px;
    margin-bottom: 1.5rem;
}

.start-button {
    display: inline-block;
    background-color: transparent;
    border: 2px solid #d4af37;
    color: #d4af37;
    padding: 15px 35px;
    margin-top: 1.5rem;
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease-in-out;
}

.start-button:hover {
    background-color: #d4af37;
    color: #1a120b;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
    transform: translateY(-3px);
}

/* --- Contrôle de la musique --- */
.music-control {
    position: fixed; /* Reste visible même en scrollant */
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid #d4af37;
    border-radius: 50%; /* Cercle parfait */
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000; /* S'assure qu'il est au-dessus des autres éléments */
    transition: background-color 0.3s ease;
}

.music-control:hover {
    background-color: rgba(212, 175, 55, 0.2); /* S'illumine au survol */
}

.music-control svg {
    width: 28px;
    height: 28px;
    color: #d4af37;
}

/* --- Pied de page (Footer) --- */
footer {
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
    border-top: 1px solid #4a3f35;
    font-size: 0.9rem;
    color: #8a817c;
}

/* --- Responsive pour les mobiles --- */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; }
    
    .introduction-header {
        height: 40vh;
    }

    .story-intro {
        flex-direction: column; /* Les éléments se placent l'un en dessous de l'autre */
    }

    .story-image {
        margin-top: 2rem;
    }
}