/* Réinitialisation de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    background-color: #000;
}

/* Styles communs à toutes les pages */
body {
    color: #fff;
    font-family: Arial, sans-serif;
    /* overflow: hidden; */
}

/* ===== Styles communs pour les boutons ===== */
#button-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.5s ease-in-out, visibility 0s linear 1.5s;
    z-index: 500;
    animation: slide-top 1s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
    animation-delay: 6s;
}

@keyframes slide-top {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50px);
    }
}

#button-container.visible {
    opacity: 1;
    visibility: visible;
    transition: opacity 1.5s ease-in-out, visibility 0s;
}

.redirect-button {
    display: inline-block;
    padding: 16px 40px;
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.6);
    border: 2px solid #fff;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: Arial, sans-serif;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.redirect-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}



/* ===== Page d'accueil (index.html) ===== */

/* Loader vidéo qui s'affiche en plein écran */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 1s ease-in-out;
}

#loader video {
    width: 50%;
    height: 50%;
    /* object-fit: cover; */
}

/* ===== Page de diaporama (slides.html) ===== */

/* Conteneur du diaporama en plein écran */
.slideshow-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    transition: opacity 1.5s ease-in-out;
}

/* Chaque slide occupe tout l'écran et est superposée */
.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: grid;
}

/* La slide active est visible */
.slide.active {
    opacity: 1;
}

/* L'image prend tout l'espace du slide */
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
}

/* Animation de zoom appliquée lors de l'activation */
.slide.active img {
    animation: zoom 10s ease-in-out forwards;
    animation-delay: 0s;
    /* Assure que l'animation commence immédiatement */
}

@keyframes zoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

/* Style du sous-titre positionné en bas et centré */
.caption {
    place-self: center;
    position: absolute;
    bottom: 50px;
    width: 70%;
    text-align: center;
    font-size: 1.5rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}






/* ===== Page de contenu (content.html) ===== */
#intro {
    width: 100%;
    height: 100vh;
}

#intro img {
    width: 100%;
}

#partie1 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 1fr;
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    width: 100%;
    height: 100vh;
    background: rgb(0, 0, 0) url("/images/image3.png") no-repeat fixed center;
}

#partie1 img {
    width: 60%;
}

.div1 {
    grid-area: 1 / 1 / 2 / 2;
    justify-self: center;
    align-self: center;
}

.div1 p {
    width: 80%;
    padding-left: 15%;
    font-size: 1.2em;
}

.div2 {
    grid-area: 1 / 2 / 2 / 3;
    place-self: center;
}