/* Bannière */
body {
    background: url('../img/index.jpg');
    background-attachment: fixed;
    background-position: top;
    background-size: cover;
    background-repeat: no-repeat;
}

.banner {
    color: #f4f4f4;
    width: 100%;
    height: 1.5rem;
    position: relative;
    overflow: hidden;
}

.container {
    padding-bottom: 50px;
}

.container h1,
.container h2 {
    width: 40%;
    padding: 8px;
    font-size: 1rem;
    text-transform: uppercase;
    font-family: 'Baron neue';
    color: #f4f4f4;
}

.container p {
    margin-left: 1rem;
    width: 35%;
    text-align: justify;
    color: #f4f4f4;
}

.banner img {
    width: 100%;
    height: auto;
    display: block;
}

.banner button {
    position: absolute;
    top: 40%;
    left: 8%;
    transform: translate(-50%, -50%);
    color: #d4af37;
    padding: 12px 20px;
    box-shadow: unset 1px 0 2px 4px rgba(225, 240, 8, 0.3);
    border: 1.5px solid #d4af37;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.banner button:hover {
    color: #fff;
    border: none;
    background-color: #d4af37;
}

/* Modale */

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 900px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

/* Formulaire */

.form-container {
    display: flex;
    gap: 20px;
}

.form-side {
    width: 50%;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
}

.form-section {
    display: none;
}

.form-section.active {
    display: block;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
}

input[type="text"],
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.nav-btn {
    color: #d4af37;
    padding: 10px 20px;
    border: 2px solid #d4af37;
    border-radius: 10px;
    cursor: pointer;
    margin-right: 10px;
    transition: background-color 1s ease-in-out;
}

.nav-btn:hover {
    background-color: #d4af37;
    box-shadow: 10px 10px 20px #fff00000;
    color: #000;
    border: none;
    transition: all 1s ease-in-out;
}

/* Style pour les images dans le formulaire */

.form-side img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px auto;
}

#inscrire {
    animation: pulse 5s infinite;
}

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

    50% {
        transform: scale(1.05);
    }

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

/********* Section Défilement *********/
.defilement {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: 100vh;
    border-radius: 6px;
}

.container {
    position: relative;
    width: 100%;
    height: 100vh;
}

/********* Bande *********/
.bande {
    position: absolute;
    top: 63%;
    left: 0;
    width: 100%;
    height: 150vh;
}

.images-defilement {
    display: flex;
    width: 100%;
}

.item-defilement {
    flex: 1;
}

.item-defilement img {
    width: 10vw;
    height: auto;
}

.images-defilement {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    position: relative;
    z-index: -1000;
}


.item-defilement {
    height: 100vh;
    width: 10vw;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url("../resultats/fem.jpg");
    background-position: top;
    background-size: cover;
    backdrop-filter: blur(10px);
}

.item-defilement img {
    width: 60%;
    height: 100%;
    object-fit: cover;
    object-position: 0 -100px;
    margin: 0 05% 0 20%;
}

/********* Indicateurs *********/
.indicateurs {
    position: absolute;
    bottom: 2cm;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.point {
    width: 15px;
    height: 15px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.point:hover {
    background-color: #FFD700;
}

/********* Description *********/
.description {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.6);
    color: #d4af37;
    padding: 20px;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 1000;
}

/********* Bouton Télécharger *********/
.container .btn-telecharger {
    position: absolute;
    right: 2cm;
    bottom: 2cm;
    background-color: rgba(0, 0, 0, 0.6);
    color: #d4af37;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1.5em;
    height: 10vh;
    padding: 0 10px 0 10px;
    cursor: pointer;
}

.btn-telecharger:hover {
    background-color: rgba(212, 175, 55, 0.1);
    color: black;
    transition: 1s;
}



/********* Responsivité *********/
.indicateurs {
    text-align: center;
    position: absolute;
    bottom: 10px;
    width: 100%;
}

.point {
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
    cursor: pointer;
}

.point.actif {
    background-color: #d4af37;
}

/********* Boîte de Dialogue Style Manga *********/
.boite-dialogue {
    position: relative;
    background-color: rgba(0, 0, 0, 0.8);
    color: #d4af37;
    padding: 0 20px 0 20px;
    border-radius: 15px;
    margin: 0;
    height: 75vh;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    text-align: justify;
    opacity: 0;
    transform: scale(0);
    animation: apparition 0.5s forwards;
    overflow: hidden;
}

/* Queue de la boîte de dialogue */
.boite-dialogue::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: 40px;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 20px solid rgba(0, 0, 0, 0.8);
}

/* Animation d'apparition */
@keyframes apparition {
    0% {
        opacity: 0;
        transform: scale(0);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Style du texte */
.boite-dialogue h1 {
    text-align: left;
    font-size: 2em;
    margin: 20px 0 20px 5%;
    width: 100%;
}

.boite-dialogue p {
    font-size: 1.2em;
    line-height: 1.5;
    margin-top: 3%;
    text-align: justify;
    color: #d4af37;
    opacity: 0.6;
    padding: 0 20px 0 20px;
    width: 90%;
}

@media (min-width:2156px) {

    /*******************CARROUSL EN 4K********************** */
    .container {
        width: 100%;
    }

    .container .defilement .boite-dialogue {
        position: absolute;
        left: 5%;
        top: 5%;
        width: 30%;
    }

    .container .btn-telecharger {
        position: absolute;
        bottom: 10%;
        right: 10%;

        font-size: 120%;
        height: 7vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    main .overlay-text {
        font-size: 400%;

    }

    .carousel-slide {
        margin: 0;
    }

    main #position .carousel-caption {

        height: 80vh;
        display: flex;
        flex-direction: column;
        justify-content: end;
        align-items: center;
        margin: 0;
        background-color: rgba(0, 0, 0, 0.3);
        top: 0;
        padding-bottom: 5%;
    }

    .carousel-caption h2 {
        padding-bottom: 5%;
    }

    .carousel-caption button {

        width: 50%;
        height: 10vh;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        margin: 0;
    }

    /*****************PIERRE PRECIEUSE ****************** */
    #pierre h1 {
        font-size: 400%;
    }

    #pierre button {
        height: 10vh;
        width: auto;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        margin: 0;
        font-size: 200%;
        font-family: "baron";

    }
}


/***************** RESPONSIVE MOBILE ***************** */
@media (min-width: 300px) and (max-width: 568px) {
    .container {
        margin-bottom: 4%;
    }

    .defilement {
        position: relative;
        height: 100%;
    }

    .container .description {
        width: 100%;
        padding: 0;
    }

    .images-defilement .item-defilement {
        width: 100%;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .images-defilement .item-defilement img {
        width: 100%;
        height: auto;
        object-fit: cover;
        object-position: center;
        margin: 0;
    }

    .container .description .boite-dialogue {
        padding: 2px;
        width: max-content;
        left: 2px;
        top: 2%;
    }

    .boite-dialogue {
        height: 60vh;
    }

    .boite-dialogue p {
        overflow: auto;
        height: 30vh;
        padding-bottom: 20px;
    }

    .container .btn-telecharger {
        bottom: 2px;
        right: 0;
        font-size: 0.6em;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 70%;
        height: 15vh;
        word-spacing: 0.1em;
        display: none;
    }

    .video-container video {
        height: 100%;
    }

    .carousel-caption {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        top: 30%;
    }

    .carousel-caption h2 {
        font-size: 1.5em;
    }

    #pierre {
        height: 40vh;
        margin-bottom: 2%;
    }

    #pierre h1 {
        font-size: 1.5em;
    }

    #pierre button {
        height: 7vh;
    }

    .icon img,
    i {
        width: 20%;
        font-size: 20px;
    }

    .info-text span {
        width: 57%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0;
    }

    .container .description .boite-dialogue {
        padding: 2px;
        width: 76%;
        left: 2px;
        top: 2%;
    }

}

/******************** RESPONSIVE TABLETTE ************* */
@media (min-width: 768px) and (max-width: 1024px) {
    .menu-contextuel {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: row;
        width: auto;
        padding-left: 4%;
        padding-top: 2%;
    }

    .custom-select {
        width: 40px;
        margin-left: -10px;
        padding-bottom: 30%;
    }

    .custom-select-container .flag {
        width: 100%;
    }

    .custom-select-container .option {
        width: 100%;
    }

    .custom-select-container .selected-option {
        width: 100%;
    }


    .defilement .item-defilement img {
        width: 50%;
        border: none;
        object-fit: cover;
        object-position: center;
    }

    .defilement .description .boite-dialogue h1 {
        font-size: 130%;
    }

    .boite-dialogue p {
        height: 40vh;
        overflow-y: scroll;
    }

    #pierre h1 {
        font-size: 100%;
    }

    #pierre button {
        height: 8vh;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 60%;
    }

    .carousel-caption {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        width: 100%;
    }

    .carousel-caption h2 {
        font-size: 2em;
    }

    .carousel-caption button {
        margin: 0;
    }
}

/*----------------------*/
.video-container {
    position: relative;
    width: 100%;
    margin: auto;
    padding-top: 5%;
    margin-top: 10%;
    padding-bottom: 5%;
}

.video-container video {
    width: 100%;
    height: auto;
}

.video-container .overlay-text {
    position: absolute;
    font-family: "baron";
    top: 60%;
    left: 50%;
    width: 100%;
    letter-spacing: 0.5em;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 200%;
    padding: 3% 0 3% 0;
    background-color: rgba(0, 0, 0, 0.5);
    text-align: center;
    text-transform: uppercase;
    transition: opacity 0.5s ease;
    margin-bottom: 10%;
}

@media (min-width: 320px) and (max-width: 568px) {
    .description .btn-telecharger {
        bottom: 2px;
        right: 0;
        font-size: 0.6em;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 70%;
        height: 15vh;
        word-spacing: 0.1em !important;
        display: none;
    }

    .video-container video {
        height: 100%;
    }

    /* .overlay-text {
        display: none;
    } */
}

/*------------------------*/
#pierre {
    width: 100%;
    height: 60vh;
    padding: 10%;
    color: white;
    background-image: url("../img/pierre.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    margin-top: 10%;
    opacity: 0.86;
    margin-bottom: 0;
}

#pierre h1 {
    margin-top: 0;
    font-size: 200%;
    line-height: 1.5em;
    letter-spacing: 0.5%;
}

/*-----------------------------*/
#position {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin-top: 10%;
}

/* Indicateurs de défilement */
.carousel-indicators {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.carousel-indicator {
    width: 30px;
    height: 10px;
    background-color: #FFD700;
    border-radius: 5px;
    transition: width 0.3s ease;
    cursor: pointer;
}

.carousel-indicator.active {
    width: 50px;
    background-color: #FFD700;
}

.carousel {
    width: 65%;
    height: 90vh;
    overflow: hidden;
    position: relative;
    margin-top: 5%;
    padding-top: 2%;
    margin: auto;
    border-radius: 20px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    box-shadow: 5px 5px 5px #B4A23E;
}

.carousel-slide img {
    max-width: 100%;
    max-height: 80vh;
    width: 100%;
    height: 60%;
    object-fit: cover;
    object-position: top;
    margin: 0;
    padding: 0;
}

.carousel-caption {
    position: absolute;
    bottom: 30%;
    left: 0;
    right: 0;
    top: 0;
    color: #FFD700;
    font-size: 70%;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.carousel-caption h2 {
    font-size: 3em;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
}

/* Boutons de navigation */
.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 2em;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
}