/* --- VARIABLES --- */
:root {
    --bg-creme: #FDFCF1;
    --bg-noir: #1b1b1b; /* Le fond très sombre des scènes 3D */
    --texte-bleu: #283851;
    --font-titre: 'Cinzel', serif;
    --font-texte: 'Marcellus', serif;
}

body {
    margin: 0;
    font-family: var(--font-texte);
    background-color: var(--bg-creme);
    color: var(--texte-bleu);
    overflow-x: hidden;
}

/* --- EN-TÊTE --- */
/* --- EN-TÊTE --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 40px; /* <-- TAILLE DOUBLÉE (était à 15px) */
    background-color: var(--bg-creme);
}


.logo {
    flex: 1; /* Permet de pousser le menu parfaitement au centre */
    font-size: 28px;
    line-height: 1.4;
}

.menu-centre {
    flex: 1; /* Prend plus de place pour rester au milieu */
    display: flex;
    justify-content: center;
}

.menu-centre ul {
    display: flex;
    list-style: none;
    gap: 105px;
    margin: 0;
    padding: 0;
}

.menu-centre a {
    text-decoration: none;
    color: var(--texte-bleu);
    font-size: 25px;
    transition: color 0.3s;
}

.menu-centre a:hover {
    color: #0038FF;
}

.bouton-droite {
    flex: 1; /* Équilibre avec le logo pour le centrage */
    display: flex;
    justify-content: flex-end;
}

.btn {
    text-decoration: none;
    color: var(--texte-bleu);
    border: 1px solid var(--texte-bleu);
    padding: 8px 25px;
    font-size: 28px;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--texte-bleu);
    color: var(--bg-creme);
}

/* --- IMAGE DE COUVERTURE (HERO) --- */
.hero {
    /* N'oublie pas de glisser ton image à la racine du dossier et de mettre son nom exact ici (ex: fond.jpg) */
    background-image: url('./Quizz/Covers/flowerBoy.png');
    background-size: cover;
    background-position: center center;
    height: 100vh; /* 85% de la hauteur de l'écran, ce qui rend l'image immense comme sur ta maquette */
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 60px;
}

.hero h1 {
    font-family: var(--font-titre);
    font-size: 100px;
    color: white;
    margin: 0;
    font-weight: 400;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.4); /* Ombre pour rendre le texte lisible */
}

/* --- BANDEAUX DE TITRES --- */
.bandeau-titre {
    background-color: var(--bg-creme);
    text-align: center;
    padding: 50px 20px;
}

.bandeau-titre h2 {
    font-family: var(--font-titre);
    font-size: 60px;
    font-weight: 400;
    margin: 0;
    color: var(--texte-bleu);
}

/* --- ZONES 3D SOMBRES --- */
.zone-sombre {
    background-color: var(--bg-noir);
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center; /* Important pour bien centrer */
}

/* Le petit texte au dessus des CD */
.sous-titre-collection {
    text-align: center;
    color: #A9A9A9;
    font-family: var(--font-texte);
    font-size: 12px;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.iframe-container {
    width: 100%;
    display:block;
    height: 75vh; /* Grosse hauteur pour l'immersion */
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* --- PIED DE PAGE --- */
footer {
    text-align: right;
    padding: 30px; /* <-- TAILLE DOUBLÉE (était à 30px) */
    background-color: var(--bg-creme);
    color: var(--texte-bleu);
    font-size: 30px;
    border-top: 1px solid rgba(40, 56, 81, 0.1);
}

/* ========================================= */
/* --- ADAPTATION MOBILE (SMARTPHONES) ---   */
/* ========================================= */

/* ======================================================= */
/* --- ADAPTATION MOBILE (FORMAT ORDINATEUR MINIATURE) --- */
/* ======================================================= */

@media (max-width: 768px) {
    /* 1. En-tête (Header) conservé sur une seule ligne */
    header {
        flex-direction: row; /* Force l'affichage côte à côte */
        padding: 10px 5px; /* Marges réduites au minimum */
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        font-size: 12px; /* Taille très réduite pour rentrer */
        flex: 0 0 auto; /* Empêche le logo de prendre trop de place */
    }

    .menu-centre {
        flex: 1;
    }

    .menu-centre ul {
        flex-direction: row; /* Menu côte à côte */
        gap: 8px; /* Espace millimétré entre les liens */
        justify-content: center;
    }

    .menu-centre a {
        font-size: 10px; /* Police miniature */
    }

    .bouton-droite {
        flex: 0 0 auto;
    }

    .btn {
        font-size: 10px;
        padding: 5px 8px;
    }

    /* 2. Image principale (Hero) et gros titres */
    .hero {
        padding-top: 30px;
        height: 60vh; /* Un peu moins haut sur mobile */
    }

    .hero h1 {
        /* L'unité "vw" (viewport width) permet au texte de grandir ou rétrécir exactement selon la largeur de l'écran */
        font-size: 12vw;
        text-align: center;
    }

    .bandeau-titre {
        padding: 20px 10px;
    }

    .bandeau-titre h2 {
        font-size: 8vw; /* Adapte le titre à la largeur de l'écran */
    }

    /* 3. Pied de page */
    footer {
        font-size: 12px;
        text-align: right;
        padding: 15px;
    }

    /* 4. Adaptation des scènes 3D (Iframes) */
    .iframe-container {
        height: 45vh; /* Ajuste la hauteur de la 3D pour ne pas bloquer tout l'écran tactile */
    }
}
