/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/* 
    Created on : 19 août 2024, 15:33:12
    Author     : galaxy
*/

.modal-support {
    display: none;
    flex-direction: row;
    width: 58%;
    max-height: none;
    min-height: 420px;
    border-radius: 15px;
    background: #a64747;
    font-family: "Open Sans", sans-serif;
    position: absolute;
    margin: 0 20%;
    z-index: 10050;
    box-shadow: 0px 0px 35px #2f2f30;
    cursor: default;
}

.modal-backdrop-support {
    display: none;
}

#modal-tutoriel .close--button {
    position: absolute;
    top: 20px; /* Distance depuis le haut */
    right: 20px; /* Distance depuis la droite */
    font-size: 19px; /* Taille de l'icône */
    cursor: pointer; /* Curseur en forme de pointeur */
    color: #4A4A4A;
}

.modal-sl {
    display: flex;
    flex-direction: column;
    background: #f9fbff; /* blue #1568EC */
    border-radius: 10px 0 0 10px;
    width: 35%;
    padding: 2%;
}

.modal-sl-content {
    border-radius: 10px;
    width: 100%;
    background: #444D58;
    height: 100%;
    padding: 0% 3% 3% 3%;
}

.modal-sl--element {
    padding: 18px 25px 18px 25px;
}

.modal-sl--element, .modal-sl-title {
    color: #f9fbff;
    border-bottom: 1px solid #969696;
    font-size: 16px;
}

.modal-sl--element:hover {
    background: #6C747E;
}

/*.modal-sr--text, .modal-sl {
    color: #2F2F2F;

}*/

.active-support {
    font-weight: bold;
    background-color: #6C747E!important;

}

.modal-sl-title {
    font-size: 20px;
    font-weight: 800;
    line-height: 27px;
    border-bottom: 1px solid white; /* Ligne blanche en dessous du titre */
    border-radius: 1px;
    padding: 20px 25px 20px 25px;
    margin: 0; /* Espacement entre le texte et la ligne */
}

.modal-sl--list {
    list-style-type: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.modal-sl--icon--active {
    margin-left: -10%;
    margin-right: 13px;
}

.modal-sr {
    display: flex;
    flex-direction: column;
    width: 67%;
    padding: 5% 12% 5% 5%;
    background: #f9fbff;
    color: #444D58;
    border-radius: 0px 10px 10px 0px;
}

.modal-sr--title {
    font-size: 24px;
    line-height: 32.68px;
    font-weight: 800;
    margin: 0;
}

.modal-sr--text {
    font-size: 19.32px;
    line-height: 26px;
    margin-top: 3%;
}

.modal-sr--card {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
    margin-top: 3%;
}

.modal-sr--button {
    display: inline-block;
    padding: 6px 12px;
    font-family: "Open Sans", sans-serif;
    font-size: 19.32px;
    font-weight: 600;
    line-height: 26.31px;

    border: none;
    background-color: #2977F7; /* Couleur de fond */
    color: #FFF; /* Couleur du texte */
    cursor: pointer;
    border-radius: 10px;
}

.modal-sr--button:hover {
    background: #2E63B8;
}

.modal-sr--button i {
    margin-left: 8px; /* Espace entre le texte et l'icône */
}

.iframe-video {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.iframe-tutoriel {
    width: 100%;
    min-height: 550px;
    border: none; /* optionnel, pour enlever les bordures */
}
.modal-sl--dropdown {
    display: none;
}

/* Conteneur principal du select personnalisé */
.custom-select-container {
    position: relative;
    width: 100%;
    border-radius: 10px;
    background: #444D58;
    font-size: 16px;
    color: white;
    cursor: pointer;
}

/* Élément affiché quand le select est fermé (zone cliquable) */
.custom-select-selected {
    padding: 10px 35px 10px 10px;
    border-radius: 10px;
    background-color: #444D58;
    color: white;
    position: relative;
    cursor: pointer;
    font-weight: bold;
}

/* Le texte visible dans la sélection (zone texte du select) */
.custom-select-text {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Style modifié de la sélection quand le menu est ouvert */
.custom-select-container.active .custom-select-selected {
    border-radius: 10px 10px 0 0;
}

/* Conteneur des options du menu déroulant */
.custom-select-options {
    display: none;
    position: absolute;
    width: 100%;
    top: 100%;
    left: 0;
    background-color: #444D58;
    border-radius: 0 0 10px 10px;
    z-index: 1000;
}

/* Chaque option du menu déroulant */
.custom-select-options div {
    padding: 10px;
    cursor: pointer;
}

/* Effet au survol d'une option */
.custom-select-options div:hover {
    background-color: #2E63B8;
}

/* Style de l'élément sélectionné dans la liste quand le menu est ouvert */
.custom-select-options div.selected {
    color: #6C747E;
    font-weight: bold;
    background-color: #6C747E;
    color: white;
}

/* Trait en haut du premier élément */
.custom-select-options div:first-child {
    border-top: 1px solid #969696;
}

/* Ajout d'un trait de séparation entre chaque option sauf la dernière */
.custom-select-options div:not(:last-child) {
    border-bottom: 1px solid #969696;
}

/* Forcer l'arrondi sur le dernier élément */
.custom-select-options div:last-child {
    border-radius: 0 0 10px 10px;
}

/* Augmentation des marges autour de chaque élément */
.custom-select-options div {
    padding: 15px 10px;
    cursor: pointer;
}

/* Flèche indiquant l'état du menu (ouverte/fermée) */
.custom-arrow {
    position: absolute;
    right: 3%;
    top: 46%;
    transform: translateY(-50%);
    color: white;
    font-size: 14px;
    transition: transform 0.2s ease, opacity 0.2s ease;
    pointer-events: none;
}

/* Quand le menu est ouvert, rotation et position ajustée de la flèche */
.custom-select-container.active .custom-arrow {
    transform: translateY(-50%) rotate(-180deg);
    top: 46%;
}

/* Image container styles */
.modal-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0;
}

/* Styles pour l'image affichée dans le modal */
.modal-image {
    max-width: 100%;
    max-height: 80vh;
    height: auto;
    width: auto;
    object-fit: contain;
    border-radius: 10px;
}

/* Conteneur de l'image dans le modal */
.modal-image-container {
    position: relative;
    display: inline-block;
}

/* Classe générique pour toutes les zones cliquables */
.click-zone {
    position: absolute;
    cursor: pointer;
}

/* Zone cliquable sur le mot "ICI" */
.ici-zone {
    position: absolute;
    bottom: 16%;
    right: 20%;
    width: 7%;
    height: 8%;
    border-radius: 10px;
    cursor: pointer;
    z-index: 10;
}

/* MEDIA QUERIES */
/****************** VERSIONS DESKTOP ET TABLETTE **************************/

@media (min-device-width : 768px) and (max-device-width : 1368px) and (orientation : landscape) {
    .modal-support {
        display: none;
        flex-direction: row;
        width: 90%;
        max-height: none;
        border-radius: 15px;
        background: #a64747;
        font-family: "Open Sans", sans-serif;
        position: absolute;
        margin: 0 5%;
        z-index: 10050;
        box-shadow: 0px 0px 35px #2f2f30;
        cursor: default;
    }

    .modal-sl {
        display: flex;
        flex-direction: column;
        background: #f9fbff; /* blue #1568EC */
        border-radius: 10px 0 0 10px;
        width: 38%;
        padding: 2%;
    }
}

@media (min-device-width : 768px) and (max-device-width : 1368px) and (orientation : portrait) {
    .modal-support {
        display: none;
        flex-direction: row;
        width: 90%;
        max-height: none;
        border-radius: 15px;
        background: #a64747;
        font-family: "Open Sans", sans-serif;
        position: absolute;
        margin: 0 5%;
        z-index: 10050;
        box-shadow: 0px 0px 35px #2f2f30;
        cursor: default;
    }

    .modal-sl {
        display: flex;
        flex-direction: column;
        background: #f9fbff; /* blue #1568EC */
        border-radius: 10px 0 0 10px;
        width: 38%;
        padding: 2%;
    }
}

/****************** VERSION MOBILE **************************/

@media (max-width: 768px) {
    .modal-support {
        display: none;
        flex-direction: row;
        width: 90%;
        max-height: none;
        min-height: 0px;
        border-radius: 15px;
        background: #a64747;
        font-family: "Open Sans", sans-serif;
        position: absolute;
        margin: 0 5%;
        z-index: 10050;
        box-shadow: 0px 0px 35px #2f2f30;
        cursor: default;
    }

    .ici-zone {
        bottom: 24%;
        right: 15%;
        width: 16%;
        height: 8%;
    }

    .modal-sl {
        display: none;
    }

    .modal-sr {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 5% 12% 5% 5%;
        background: #f9fbff;
        color: #444D58;
        border-radius: 10px 10px 10px 10px;
    }

    .modal-image {
        max-height: 85vh;
    }

    .modal-sl--dropdown {
        display: block !important;
        background: #f9fbff;
        padding: 0px 10px 30px 0px;
    }

    .modal-sl--dropdown label {
        display: block;
        margin-bottom: 5px;
        color: #444D58;
    }

    .modal-sl--dropdown select {
        width: 100%;
        padding: 8px 40px 8px 12px;
        border-radius: 10px;
        border: none;
        background-color: #444D58;
        color: #f9fbff;
        font-weight: bold;
        font-size: 16px;

        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;

        appearance: none; /* enlève la flèche par défaut */
        -webkit-appearance: none;
        -moz-appearance: none;

        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23FFFFFF' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 12px center;
        background-size: 25px; /* taille de la flèche */
        color: white;
    }

    .modal-sl--dropdown option {
        width: 80%;
    }

    .modal-sr--button {
        font-size: 17px;
    }
}

@media (max-width: 480px) {
    .modal-image {
        max-height: 95vh;
    }

    .ici-zone {
        bottom: 24%;
        right: 14%;
        width: 18%;
    }
}

/****************** MODE SANS TUTORIEL : le modal s'adapte uniquement à l’image **************************/
.modal-support.no-tuto {
    min-height: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: #f9fbff;
}

/* Image plein modal en mode "aucun tuto" */
.modal-support.no-tuto .modal-image {
    max-height: 100vh;
    width: auto;
    height: auto;
    object-fit: contain;
}