/* Importation du fichier fontfaces.css */
@import "fontfaces.css";

* {
    font-family: Roboto, sans-serif;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
}

header#main-header {
    width: 100%;
    height: 130px;
    background-image: url('/css/icons/img_fd_plan.jpg');
    background-repeat: no-repeat;
    background-size: cover;
}

div.header-wrapper {
    width: 100%;
    height: 100%;
    padding: 0 2%;
    background-color: #333333BF;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

div.leftside {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 30px;
    flex: 2;
}

#logo img {
    width: 100px; /* Ajuster selon la taille de votre logo */
    padding: 10px;
    height: auto;
    border-radius: 5px;
    color: #e5e5e5;
}

h1 {
    color: white;
    margin: 0;
    font-size: 20pt;
}

#searchbox {
    width: 100%;
    display: flex;
    gap: 20px;
}

.easy-autocomplete {
    width: 100%;
    min-width: 100px;
    max-width: 500px;
}

#searchbar {
    width: 100%;
    min-width: 100px;
    max-width: 500px;
    border: none; /* Pas de bordure */
    border-radius: 15px; /* Rayon de bordure */
    box-shadow: none; /* Pas d'ombre */
    color: #073763; /* Couleur du texte */
    padding: 10px; /* Rembourrage */
    background-color: #fff; /* Couleur de fond */
    font-size: 14px; /* Taille de police */
    font-family: "Roboto"; /* Police de caractère */
    font-weight: 400; /* Poids de la police */
    flex-grow: 1; /* L'entrée de recherche occupera tout l'espace disponible */
    height: 60px; /* Hauteur de la searchbar (augmentée à 40px) */
}

.easy-autocomplete ul li {
    color: #073763; /* Couleur du texte */
    background-color: #fff; /* Couleur d'arrière-plan */
    float: none;
    padding: 10px;
    background-color: #fff;
    font-size: 14px;
    font-family: "Roboto";
    font-weight: 400;
  }

header#main-header button,
header#main-header input[type="submit"] {
    background-position: 50% 50%; /* Position de l'image de fond */
    background-repeat: no-repeat; /* Pas de répétition de l'image de fond */
    background-color: #073763;
    height: 60px; /* Hauteur */
    width: 60px; /* Largeur */   
    border-radius: 15px;
    border: none;
    text-indent: 60px;
    overflow: hidden;
    cursor: pointer;
}

header#main-header button:hover,
header#main-header input[type="submit"]:hover {
    background-color: #385E82;
}

#search {
    background-image: url('/css/icons/plan_loupe.svg'); /* Image de fond */
    background-size: 20px 20px; /* Taille de l'image de fond */
}
  
header#main-header #clearsearch {
    background-color: transparent;
    background-image: url('/css/icons/cross-svgrepo-com.svg'); /* Image de fond */
    background-size: 20px 20px; /* Taille de l'image de fond */
    margin-left: -80px;
    z-index: 2;
}

header#main-header:has(#searchbar:placeholder-shown) #clearsearch {
    display: none;
}

#print {
    background-image: url('/css/icons/printer.svg');
    background-size: 30px 30px; /* Taille de l'image de fond */
}

#wrapper {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    display: flex;
}
  
#main-nav {
    width: 20%;
    position: relative;
    background: #F4F5F5;
}

#main-nav .reset_wrapper {
    padding-top: 20px;
    display: flex;
    justify-content: center;
}

#main-nav button {
    color: white;
    background-color: #073763;
    padding: 10px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

#main-nav button:hover {
    background-color: #385E82;
}

#main-nav ul {
    overflow-y: auto;
    overflow-x: visible;
    height: 100%;
    margin: 0;
    padding: 0;
}

#main-nav li {
    list-style: none;
}

#main-nav li a {
    color: black;
    text-decoration: none;
}

#main-nav li a:hover {
    background-color: #ABCDEF80;
}

#main-nav .nav_main > a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 20px;
    transition: padding 0.3s;
    position: relative;
}

#main-nav .nav_main.hasActive > a::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 10px;
    width: 10px;
    height: 10px;
    border-radius: 10px;
    background: red;
    transition: left 0.3s;
}

#main-nav .nav_main > a.active  {
    padding-left: 40px;
    background-color: #ABCDEF80;
}

#main-nav .nav_main.hasActive > a.active::before {
    left: 30px;
}

#main-nav .nav_main > a > img {
    width: 20px;
    max-height: 30px;
}

#main-nav .nav-second-level {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    background: #E4E5E5;
    opacity: 0;
    pointer-events: none;
    transition: left 0.5s, opacity 0.5s;
}

#main-nav .nav-second-level li a {
    padding: 16px;
    display: flex;
}

#main-nav .nav-second-level li a.case {
    background-image: url('icons/checkbox_off.svg');
    background-repeat: no-repeat;
    background-size: 15px;
    background-position: 10px center;
    padding-left: 35px;
}

#main-nav .nav-second-level li a.case.active {
    background-image: url('icons/checkbox_on.svg');
} 

#main-nav .nav-second-level.active {
    left: 100%;
    opacity: 1;
    pointer-events: all;
}

#main-nav .nav-third-level {
    background: #D4D5D5;
    width: 100%;
    transition: height 0.5s;
    display: block;
    overflow: hidden;
    height: 0;
}

#map {
    width: 80%;
    height: 100%;
}

#mapoverlay {
    position: absolute;
    z-index: 1;
    width: 100%;
    height: 100%;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

#mapoverlay > div {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#mapoverlay > div.center {
    gap: 0;
}

#mapoverlay button, button#mobilemenu, .maplibregl-popup-content button, .overlay-element, #sharepopup button {
    border: none;
    cursor: pointer;
    padding: 10px 20px;
    background-color: white;
    color: #073763;
    font:16px/20px Helvetica Neue,Arial,Helvetica,sans-serif;
    pointer-events: all;
}

button#go3d {
    font-weight: bold;
}

.maplibregl-popup-content button {
    padding: 5px 10px;
    line-height: 100%;
    font-size: 100%;
    position: absolute;
    right: 5px;
    top: 5px;
}

#mapoverlay button:hover, button#mobilemenu:hover, .overlay-element:hover, .maplibregl-popup-content button:hover, #sharepopup button:hover {
    background-color: #F8F8F8;
}

#mapoverlay button span:not(.tooltiptext), button#mobilemenu span:not(.tooltiptext), .overlay-element span:not(.tooltiptext), #sharepopup button span:not(.tooltiptext) {
    font-size: 1.2em;
}

.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 140px;
  background-color: #555;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  top: 120%;
  left: 50%;
  margin-left: -75px;
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color:  transparent transparent #555 transparent;
}

.tooltip .tooltiptext.shown {
  visibility: visible;
  opacity: 1;
}

#reinit {
    display: none;
}
html.hashash #reinit {
    display: block;
}

#campusTrigger {
    display: none;
}

#campusChoice button.active, #go3d.active {
    background-color: #073763;
    color: white;
}

#mobilemenu {
    display: none;
}

#map {
    background-color: lightgray;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 1200px) {
    #main-nav {
        width: 33%;
    }
    #map {
        width: 67%;
    }
    #map.embedded {
        width: 100%;
    }
    
}
@media (max-width: 800px) {
    #logo img {
        width: 30px;
        padding: 0;
    }
    h1 {
        font-size: 10pt;
    }
    #print {
        display: none;
    }
    button#mobilemenu {
        display: block;
        position: absolute;
        left: 100%;
        top: 10px;
        border-radius: 0 10px 10px 0;
    }
    #main-nav {
        width: 50%;
        left: -50%;
        position: absolute;
        transition: left 0.5s;
        z-index: 2;
    }
    #main-nav .nav_main > a {
        font-weight: 60%;
        padding: 0 10px;
    }
    #main-nav .nav_main > a >img {
        width: 16px;
    }
    #main-nav.active {
        left: 0;
    }
    #main-nav.active > button#mobilemenu span:before {
        content: "\e014";
    }
    #map {
        width: 100%;
    }
    #mapoverlay .left {
        padding-top: 50px;
    }
    #map.embedded #mapoverlay .left {
        padding-top: 0;
    }
    #campusChoice {
        display: flex;
        flex-direction: column;
        height: 0;
        transition: 0.5s height;
        overflow-y: hidden;
    }
    #campusTrigger {
        display: block;
    }
    #campusTrigger:before {
        content: "\e114";
        font-family: 'Glyphicons Halflings';
        font-style: normal;
        font-weight: normal;
        line-height: 2;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        padding-right: 10px;
    }
    #campusTrigger.active:before {
        content: "\e113";
    }
    #campusTrigger.active + #campusChoice {
        height: auto;
    }
}


#popupOverlay {
    display: none;
    position: absolute;
    z-index: 2;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.2);
}
#popupOverlay.shown {
    display: flex;
}
#sharepopup {
    background: white;
    margin: auto;
    padding: 20px;
    min-width: 50%;
}
#sharepopup .close {
    float: right;
    padding: 5px;
}
#sharepopup button {
    background-color: #073763;
    color: white;
}
#sharepopup button:hover {
    background-color: #385E82;
}
#sharepopup h3 {
    margin-top: 0;
}
.sharegroup {
    width: 100%;
    display: flex;
    font-size: 1.5em;
}
#sharepopup .checkbox-container {
    margin: 5px 0;
}
.sharegroup input {
    width: 100%;
}
#sharepopup textarea {
    width: 100%;
}
#sharepopup p.detail {
    margin: 0;
}
#sharepopup p.detail ul {
    margin: 5px 0;
}

.maplibregl-popup {
    opacity: 1;
    top: 40px;
    max-width: 550px;
    max-height: 400px;
}

.maplibregl-popup.popup-bati,
.maplibregl-popup.popup-bati * {
    pointer-events: none;
}

.maplibregl-popup img {
    height: auto;
    max-width: 100%;
}

.maplibregl-popup img.popup-image-default {
    height : 60px;
    left : 50%;
}
.maplibregl-popup img.popup-image-department {
    position : absolute;
    right : 0;
    top:0;
    height : 60px;
}
.maplibregl-popup img.popup-image-oeuvre {
    height : auto;
    width : 96%;
    margin-left:2%;
    margin-right:2%;
    margin-bottom: 4px; 
}

.maplibregl-popup-content {
    box-shadow: none;
    border-radius: 0;
    font-size: 14px;
    font-family: "Roboto";
    font-weight: 400;
    line-height: 16px;
    color: #434A54;
    padding: 0;
}
.maplibregl-popup-content h1 {
    background-color: #434A54;
    font-size: 14px;
    font-family: "Roboto";
    font-weight: 500;
    padding: 10px;
    color: #fff;
    border-radius: 0;
}
.maplibregl-popup-content h1:has(button) {
    padding-right: 50px;
}
.maplibregl-popup-content .description {
    padding: 10px;
}
.maplibregl-popup-content p {
    font-size: 14px;
    margin: 10px;
}

.maplibregl-ctrl-bottom-left, .maplibregl-ctrl-bottom-right, .maplibregl-ctrl-top-left, .maplibregl-ctrl-top-right {
    z-index: 1;
}

.maplibregl-ctrl-bottom-right  {
    margin-bottom: 15px;
}

.maplibregl-ctrl-group button {
  width: 32px;
  height: 32px;
}

.attribution-container {
    z-index: 1;
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: rgba(255,255,255,0.7);
    padding: 0 5px;
    font-size: 12px;
    line-height: 20px;
}

@font-face {
    font-family: 'Glyphicons Halflings';
    
    src: url('https://static.univ-rennes2.fr/bootstrap/3.3/fonts/glyphicons-halflings-regular.eot');
    src: url('https://static.univ-rennes2.fr/bootstrap/3.3/fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'),
         url('https://static.univ-rennes2.fr/bootstrap/3.3/fonts/glyphicons-halflings-regular.woff2') format('woff2'),
         url('https://static.univ-rennes2.fr/bootstrap/3.3/fonts/glyphicons-halflings-regular.woff') format('woff'),
         url('https://static.univ-rennes2.fr/bootstrap/3.3/fonts/glyphicons-halflings-regular.ttf') format('truetype'),
         url('https://static.univ-rennes2.fr/bootstrap/3.3/fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg');
  }

@font-face {
    font-family: 'ForkAwesome';

    src: url('https://static.univ-rennes2.fr/fork-awesome/fonts/forkawesome-webfont.eot');
    src: url('https://static.univ-rennes2.fr/fork-awesome/fonts/forkawesome-webfont.eot?#iefix') format('embedded-opentype'),
         url('https://static.univ-rennes2.fr/fork-awesome/fonts/forkawesome-webfont.woff2') format('woff2'),
         url('https://static.univ-rennes2.fr/fork-awesome/fonts/forkawesome-webfont.woff') format('woff'),
         url('https://static.univ-rennes2.fr/fork-awesome/fonts/forkawesome-webfont.ttf') format('truetype'),
         url('https://static.univ-rennes2.fr/fork-awesome/fonts/forkawesome-webfont.svg#glyphicons_halflingsregular') format('svg');
}
  
.glyphicon {
    position: relative;
    top: 1px;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    font-style: normal;
    font-weight: normal;
    line-height: 1;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.fa, .fab, .fa-brands {
    display: inline-block;
    font: normal normal normal 14px/1 ForkAwesome;
    font-size: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    vertical-align: top;
}
.glyphicon-menu-hamburger:before {
    content: "\e236";
}
.glyphicon-share:before {
    content: "\e066";
}
.glyphicon-chevron-left:before {
    content: "\e079";
}
.glyphicon-chevron-right:before {
    content: "\e080";
}  
.glyphicon-remove:before {
    content: "\e014";
}
.glyphicon-refresh:before {
    content: "\e031";
}
.glyphicon-fast-backward:before {
    content: "\e070";
}
.glyphicon-screenshot:before {
    content: "\e087";
}
.glyphicon-new-window::before {
    content: "\e164";
}
.glyphicon-copy::before {
    content: "\e205";
}
.glyphicon-close::before {
    content: "\e014"
}
.fa-share-alt:before {
  content: "\f1e0";
}