/* === Fond Renaissance === */

.home-page {
    margin: 0;
    height: 100vh;
    font-family: 'Cinzel', serif;
    background: url("/images/leo.webp") no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
}

body {
    margin: 0;
    font-family: 'Cinzel', serif;
}

/* Voile sombre pour lisibilité */
.overlay {
    background: rgba(0, 0, 0, 0.6);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* === Titre === */

.title {
    color: #d4af37;
    font-size: 4em;
    text-align: center;
    letter-spacing: 3px;
    text-shadow: 2px 2px 15px black;
    margin-bottom: 50px;
}

/* === Bouton Renaissance === */

.renaissance-btn {
    text-decoration: none;
    padding: 15px 40px;
    font-size: 1.3em;
    color: #fff;
    background: linear-gradient(145deg, #8b5e3c, #a97449);
    border: 3px solid #d4af37;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(212,175,55,0.6);
    transition: all 0.4s ease;
}

.renaissance-btn:hover {
    background: linear-gradient(145deg, #a97449, #8b5e3c);
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(212,175,55,1);
}

/* === Bouton Retour Accueil === */

.home-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 100;
    transition: transform 0.3s ease;
}

.home-btn img {
    width: 50px;
    height: auto;
    filter: drop-shadow(0 0 5px gold);
}

.home-btn:hover {
    transform: scale(1.15);
}

/* ===== Page Intro ===== */

.intro-page {
    background: #1b1b1b;
    padding: 80px 0;
    text-align: center;
}

.page-title {
    font-family: 'Cinzel', serif;
    color: #d4af37;
    font-size: 3em;
    margin-bottom: 80px;
    text-shadow: 0 0 15px black;
}

/* Galerie verticale */

.gallery {
    width: 80%;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 100px;
}

/* Cadre Renaissance */

.renaissance-frame {
    background: #f4e7c5;
    padding: 20px;
    border: 12px solid #8b5e3c;
    box-shadow: 
        0 0 40px rgba(0,0,0,0.8),
        inset 0 0 10px rgba(0,0,0,0.5);
    max-width: 900px;
    margin: auto;
    opacity: 0;
    transform: translateY(50px);
    transition: all 4.2s ease;
}

.renaissance-frame img {
    width: 100%;
    display: block;
}

/* Apparition */

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Bouton Page Suivante ===== */

.next-section {
    margin-top: 120px;
    margin-bottom: 80px;
}

.renaissance-next-btn {
    font-family: 'Cinzel', serif;
    text-decoration: none;
    padding: 18px 45px;
    font-size: 1.2em;
    color: #fff;
    background: linear-gradient(145deg, #8b5e3c, #a97449);
    border: 3px solid #d4af37;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(212,175,55,0.5);
    transition: all 0.4s ease;
}

.renaissance-next-btn:hover {
    background: linear-gradient(145deg, #a97449, #8b5e3c);
    transform: scale(1.1);
    box-shadow: 0 0 35px rgba(212,175,55,1);
}

.map-frame {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #f4e7c5;
    border: 12px solid #8b5e3c;
    box-shadow: 
        0 0 40px rgba(0,0,0,0.8),
        inset 0 0 10px rgba(0,0,0,0.5);
}

.map-frame iframe {
    border-radius: 4px;
    filter: sepia(35%) contrast(95%);
}

/* Question section */

.quiz-section {
    margin-top: 120px;
    text-align: center;
    color: #d4af37;
}

.quiz-section button {
    margin: 10px;
    padding: 10px 25px;
    font-family: 'Cinzel', serif;
    background: #8b5e3c;
    color: white;
    border: 2px solid gold;
    cursor: pointer;
    transition: 0.3s;
}

.quiz-section button:hover {
    transform: scale(1.1);
    background: #a97449;
}

.hidden {
    display: none;
}

.question-block button {
    margin: 10px;
    padding: 10px 25px;
    font-family: 'Cinzel', serif;
    background: #8b5e3c;
    color: white;
    border: 2px solid gold;
    cursor: pointer;
    transition: 0.3s;
}

/* Bouton sélectionné */
.selected {
    transform: scale(1.1);
}

/* Bonne réponse */
.correct-answer {
    background: linear-gradient(145deg, #b8860b, #d4af37);
    box-shadow: 0 0 20px gold;
}

/* Mauvaise réponse */
.wrong-answer {
    background: #8b0000;
    box-shadow: 0 0 20px crimson;
}

.question-block button:disabled {
    opacity: 0.8;
    cursor: not-allowed;
}

.next-container {
    margin-top: 20px; /* espace au-dessus */
    padding-top: 40px;
    text-align: center;
}

/* Animation d’apparition douce */
#nextButton {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

#nextButton:not(.hidden) {
    opacity: 1;
    transform: translateY(0);
}

.renaissance-frame h3 {
    font-family: 'Cinzel', serif;
    color: #d4af37;
    margin-bottom: 20px;
}

/* Page finale plus solennelle */
.final-page {
    background: linear-gradient(to bottom, #1b1b1b, #000000);
}

/* Texte final */
.final-text {
    width: 70%;
    margin: 80px auto;
    color: #f5e6c8;
    font-size: 1.2em;
    line-height: 1.8;
}

.final-quote {
    margin: 60px 0;
    font-size: 1.5em;
    color: #d4af37;
    text-align: center;
    font-style: italic;
    text-shadow: 0 0 15px gold;
}

.final-tribute {
    margin-top: 40px;
    font-size: 1.3em;
    text-align: center;
    color: #d4af37;
}

/* ===== Video Finale ===== */

.video-section {
    margin: 120px auto;
    width: 80%;
    text-align: center;
}

.renaissance-video-frame {
    background: #f4e7c5;
    padding: 25px;
    border: 15px solid #8b5e3c;
    box-shadow:
        0 0 50px rgba(0,0,0,0.8),
        inset 0 0 15px rgba(0,0,0,0.5);
    max-width: 1000px;
    margin: auto;
}

.renaissance-video-frame video {
    width: 100%;
    display: block;
    border-radius: 5px;
}

.video-controls {
    margin-top: 20px;
}

.video-controls button {
    font-family: 'Cinzel', serif;
    padding: 10px 25px;
    margin: 10px;
    background: linear-gradient(145deg, #8b5e3c, #a97449);
    border: 2px solid gold;
    color: white;
    cursor: pointer;
    transition: 0.3s;
}

.video-controls button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px gold;
}