/**
 * This is CSS for the Explorer view.
 * @author Kuci Elvin
 */
:root {
    --explorer-map-height: 80vh;
    --svgMapRectFillColor: #ffffff60;
    /*bleu pour informatique*/
    /*FFFFFF20*/
    --svgMapRectFillColorHover: #ffffff60;
    /*réagis pas*/
    /*couleur en haut FFFFFF60*/
    --svgMapRectDisabledFillColor: #ffffff60;
    /*cache pour les éléments non sélctionné en haut 00000077*/
    /*00000040*/
    --svgMapRectDisabledFillColorHover: #ffffff60;
    /*filtre de sélection en haut 00000060*/
    /*00000060*/
    --svgMapRectHighlightFillColorInfo: #0099ff60;
    --svgMapRectHighlightFillColorMatu: #ff000060;
    --svgMapRectHighlightFillColorAdmin: #eeff0060;
    --svgMapRectHighlightFillColorElectro: #09ff0060;
    --svgMapRectHighlightFillColorPolymech: #09ff0060;
    --svgMapRectHighlightFillColorAuto: #09ff0060;
    /*couleur de sélection*/
    --vgaMapRectStrokeWidth: 1;
    --vgaMapRectActivityStroke: 2;
    --vgaMapRectStrokeColor: #000000;
    --svgMapRectActivityColor: #ff0000;
}

body {
    font-family: var(--header_font_family);
}

#professions,
#places,
#mySidenav {
    display: none !important;

}

#explorerView {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#explorerView .viewContent {
    display: flex;
    flex-direction: column;
    /*margin: 2vw;*/
    height: inherit;
}

/* Style pour les listes déroulantes */
.explorerInputs div div select {
    font-size: 15px;
    font-family: Arial, Helvetica, sans-serif;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: right 10px center;
    cursor: pointer;
    width: 20%;
    max-width: 875px;
    padding: 10px;
}

/* Style pour les options dans la liste déroulante */
.explorerInputs div div select option {
    padding: 100px;
}

.colorindicatorActivites {
    width: 15px;
    height: 15px;
    border: #ff0000;
    border-style: solid;
    border-width: 2px;
    display: inline-block;
}

.colorindicatorplaces,
.colorindicatorprofession {
    width: 15px;
    height: 15px;
    border: #000000;
    border-style: solid;
    border-width: 2px;
    display: inline-block;
}

.colorindicatorplaces {
    background-color: #09ff0060;
}

.colorindicatorprofession {
    background-color: #fffb004d;
}

.colorindicatorActivites {
    background-color: #ffffff;
}


/* Style pour les conteneurs des listes déroulantes */
#explorerInputStart div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 2px;
    margin-bottom: 2px;
    text-align: center;
}

/* Ajoutez un style personnalisé pour améliorer l'apparence globale */
#explorerInputsExplanationTxt,
#explorerredBoxExplanationTxt,
#explorerMapExplanationTxt {
    color: #000000;
    margin-top: 10px;
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
}

/* Styles pour les téléphones avec une largeur d'écran maximale de 767 pixels */
@media only screen and (max-width: 1500px) {

    #explorerInputsExplanationTxt,
    #explorerredBoxExplanationTxt,
    #professions,
    #places,
    #explorerMapExplanationTxt {
        font-size: 14px;

    }

    .explorerInputs div div select {
        font-size: 10px;
        width: 12%;
        border-radius: 2px;
        background-position: right 7px center;
        max-width: 575px;
        padding: 7px;
    }

    #explorerInputStart div {
        gap: 2px;
        margin-top: 2px;
        margin-bottom: 2px;
    }

    .colorindicatorActivites {
        width: 10px;
        height: 10px;

    }

    .colorindicatorplaces,
    .colorindicatorprofession {
        width: 10px;
        height: 10px;
    }

}

#mapContainer {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    /*overflow: hidden;  Empêche le défilement sur le conteneur principal*/
    /*overflow: auto;*/

}

#map {
    width: initial;
    display: grid !important;
}

#map img,
#map svg {
    object-fit: fill;
    width: 100%;
    height: 100%;
    grid-row: 1;
    grid-column: 1;
}

.auto-text {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
    line-height: 1.1;
    font-weight: bold;
}

.textAgenda {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: pre-line;
    overflow-wrap: break-word;
    word-break: break-word;
    line-height: 1.1;
    padding-top: 1%;
}



@media only screen and (max-width: 1000px) and (orientation: landscape) {

    #map img,
    #map svg {
        height: 100%;
        width: 100%;
    }

    #mapContainer {
        height: 100%;
        width: 100%;
    }
}

.svgPointActivity {
    stroke: var(--svgMapRectActivityColor) !important;
    stroke-width: var(--vgaMapRectActivityStroke) !important;
}

.mapSVGPoint {
    transition: all 0.1s;
    fill: var(--svgMapRectFillColor);
    stroke-width: var(--vgaMapRectStrokeWidth);
    stroke: var(--vgaMapRectStrokeColor);
    border: none;
    border-color: var(--vgaMapRectStrokeColor);
    pointer-events: auto;
}

.mapSVGPoint2 {
    transition: all 0.1s;
    fill: var(--svgMapRectFillColorGreen);
    stroke-width: var(--vgaMapRectStrokeWidth);
    stroke: var(--vgaMapRectStrokeColor);
    border: none;
    border-color: var(--vgaMapRectStrokeColor);
    pointer-events: auto;
}

.mapSVGPoint:hover {
    transition: all 0.2s;
    fill: var(--svgMapRectFillColorHover);
}

.svgPointDisabled {
    fill: var(--svgMapRectDisabledFillColor);
}

.svgPointHighlightInfo {
    transition: all 0.2s;
    fill: var(--svgMapRectHighlightFillColorInfo) !important;
}

.svgPointHighlightMatu {
    transition: all 0.2s;
    fill: var(--svgMapRectHighlightFillColorMatu) !important;
}

.svgPointHighlightAdmin {
    transition: all 0.2s;
    fill: var(--svgMapRectHighlightFillColorAdmin) !important;
}

.svgPointHighlightElectro {
    transition: all 0.2s;
    fill: var(--svgMapRectHighlightFillColorElectro) !important;
}

.svgPointHighlightPloymech {
    transition: all 0.2s;
    fill: var(--svgMapRectHighlightFillColorPolymech) !important;
}

.svgPointHighlightAuto {
    transition: all 0.2s;
    fill: var(--svgMapRectHighlightFillColorAuto) !important;
}

.svgPointDisabled:hover {
    transition: all 0.2s;
    fill: var(--svgMapRectDisabledFillColorHover);
}

#message {
    display: none;
    position: fixed;
    font-family: Arial, Helvetica, sans-serif;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    text-align: center;
    padding: 0px;
}

#gifLandscape {
    margin-top: 40px;
    width: 50%;
}

.sidenav {
    height: 15%;
    width: 0;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: #ffffff;
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
    display: none !important;
}

.sidenav a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 25px;
    color: #818181;
    display: block;
    transition: 0.3s;
}

.sidenav a:hover {
    color: #f1f1f1;
}

.sidenav .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
}

@media screen and (max-height: 450px) {
    .sidenav {
        padding-top: 35px;
        height: 20%;
    }

    .sidenav a {
        font-size: 18px;
    }
}

@media screen and (max-height: 900px) {
    .sidenav {
        padding-top: 35px;
        height: 15%;
    }

    .sidenav a {
        font-size: 18px;
    }
}

#openModal {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

#openModal:hover {
    background-color: #0056b3;
}

/* Le style du modal */
.modal {
    display: none;
    /* Caché par défaut */
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    border-radius: 5px;
    width: 90%;
    /* Ajuste la largeur du modal */
    height: 90%;
    max-width: 1200px;
    /* Limite la largeur maximale */
    box-sizing: border-box;
    overflow-x: auto;
    /* Ajoute un défilement horizontal si nécessaire */
}

/* Ajout d'un espace autour du contenu pour ne pas que l'agenda touche les bords du modal */
.agenda-container {
    padding: 10px;
    height: 800px;
}

#agenda {
    width: 100%;
    border-collapse: collapse;
    background: white;
    max-height: 800px;
    /* Ajoute une hauteur maximale */
    overflow-y: auto;
    /* Ajoute un défilement vertical si nécessaire */
}

th,
td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
}

th {
    background-color: #007bff;
    color: white;
}

td {
    cursor: pointer;
}

td.occupied {
    background-color: #ffcccb;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.day-nav-button {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 18px;
    padding: 8px 16px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    margin: 0 10px;
}

.day-nav-button {
    text-align: center;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 18px;
    padding: 8px 16px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    margin: 0 10px;
}

.day-nav-button:hover {
    background-color: #007bff;
    color: white;
    transform: scale(1.1);
    /* Effet au survol */
}

.day-nav-button:focus {
    outline: none;
}

/* Style du texte dynamique */
#day-name {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.day-navigation {
    align-items: center;
    text-align: center;
    width: 100%;
    padding-bottom: 25px;
}