:root {
  --pri-color: #ad8a16;
  --sec-color: #2ecc71;
  --niv2-color: #f6f3e7 ;
  --hover-color: #ded0a1;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
  border: 0 solid transparent;
}

html {
  -webkit-text-size-adjust: 100%;
  font-family: Arial, Helvetica, sans-serif;
}
html{  
height: 100vh; 
}

body {
  min-height: 100vh;
  max-height: 100vh;
  line-height: 1;
  text-rendering: optimizeSpeed;
  color: white;
  margin: 0px;
  overflow: hidden;
}

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  max-width: 100%;
}

a {
  cursor: pointer;
  color: inherit;
  text-decoration: inherit;
  -webkit-tap-highlight-color: transparent;
}

ol,
ul {
  list-style: none;
}

button {
  background-color: inherit;
  cursor: pointer;
}

/* Navbar styling */

header nav {
  position: relative;
  background-color: black;
  display: flex;
  background-color: var(--pri-color);
  overflow: hidden;
  -webkit-box-shadow: 0px 5px 20px 0px rgba(0, 0, 0, 0.3);
  -moz-box-shadow: 0px 5px 20px 0px rgba(0, 0, 0, 0.3);
  box-shadow: 0px 5px 20px 0px rgba(0, 0, 0, 0.3);
  z-index: 90;
}

header nav .menu {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  flex-shrink: 0;
}

header .menu svg {
  color: white;
  width: 28px;
  height: 28px;
}

header nav ul {
  display: flex;
  align-items: center;
  gap: 15px;
}

header nav ul li {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sous-menu */
.nivau2 {
  display: none;
  list-style-type: none;
  padding-left: 20px;
  background-color: var(--niv2-color);
}

.nivau2 li button {
  background-color: var(--niv2-color);
  width: 100%;
  padding: 8px;
  color: #d55827;
}

.nivau2 li button:hover {
  background-color: var(--hover-color);
  color: #d55827;
}
/* Affichage du sous-menu au survol*/
li.active .nivau2 {
  display: block;
}
/* Affichage du sous-menu au survol 
nav ul li:hover .nivau2 {
  display: block;
}
/* Sidebar styling */

aside {
  position: fixed;
  width: 200px;
  background: #ffff;
  height: calc(100vh - 28px);
  -webkit-box-shadow: 11px 0px 27px -17px rgba(0, 0, 0, 0.2);
  -moz-box-shadow: 11px 0px 27px -17px rgba(0, 0, 0, 0.2);
  box-shadow: 11px 0px 27px -17px rgba(0, 0, 0, 0.2);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 120;
}

aside.hidden {
  transform: translateX(0);
}

aside nav .logo-wrapper {
  width: 100%;
  height: 200px;
  align-content: center;
}

aside nav .logo-wrapper img {
  width: 100%;
 /* height: 100%;  */
}

aside nav ul {
  display: flex;
  flex-direction: column;
  width: 100%;
}

aside nav ul li {
  width: 100%;
  border-bottom: 1px solid #ffff;
  border-top: 1px solid #ffff;
}

aside nav ul li button {
  display: flex;
  padding: 12px 12px;
  background-color: var(--pri-color);
  justify-content: space-between;
  width: 100%;
  text-align: left;
  color: white;
}

aside nav ul li button span {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Main content styling */

main {
  width: 100%;
  max-width:100%;
  height: calc(100vh - 28px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.swiper {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  width: 100%;
  height: 100%;
  text-align: center;
  font-size: 18px;
  display: flex !important;
  justify-content: center;
  align-items: center;
}

.swiper-slide img{
max-height: calc(100% - 50px); ;
}

.center {
  text-align: center;
  display: flex !important;
  justify-content: center;
  align-items: center;
}

.swiper .swiper-pagination .swiper-pagination-bullet {
  background: var(--pri-color);
}

.swiper-button-next , .swiper-button-prev {
  color: var(--pri-color) !important;
}

/* Conteneur principal */
        .menuL-container {
            position: fixed;
            top: 50%;
            right: 0;
            transform: translateY(-50%);
            background: transparent; /* Fond transparent */
            border-radius: 10px 0 0 10px;
            padding: 20px;
			z-index: 100;
         /*   box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);*/
        }

        /* Menu de navigation */
        .menuL {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .menuL li {
            margin: 15px 0;
        }

        .menuL a {
            text-decoration: none;
            color: var(--pri-color);
            font-size: 24px;
            display: flex;
            align-items: center;
        }

        .menuL a:hover {
            color: var(--hover-color); /* Couleur au survol */
        }

        /* Icônes à gauche du texte */
        .menuL a i {
            margin-right: 5px;
        }


/* Conteneur principal */
        .menuR-container {
            position: absolute;
            top: 50px;
            left: 10px;
           /* transform: translateY(-50%); */
            background: #FFFF; /* Fond transparent */
            border-radius: 10px;
            padding: 0px;
			z-index: 100;
			
         /*   box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);*/
        }
		.menuR-container img {
            width: 100px;
			//height: 79px;
        }
		
        /* Menu de navigation */
        .menuR {
            /*list-style: none;*/
            padding: 0;
            margin: 0;
        }

        .menuR li {
            margin: 0;
			padding:4px;
			display: flex;
			justify-content: center;
			align-items: center;
			border: 1px solid #555;
			cursor: pointer;
			text-align: center;
        }

        .menuR a {
            text-decoration: none;
			text-align: center;
            color: black;
            font-size: 14px;
            display: flex;
			justify-content: center;
            align-items: center;
			
        }

        .menuR li:hover:not(.active) {
            background-color: rgba(113,136,66,0.25);
			color: white;
        }
		
		.menuR li.active {
            background-color: var(--pri-color);
            color: white;
        }

       
        /* Optional CSS to style the canvas compass */
        #compass {
            display: block;       /* Makes it a block-level element */
			bottom: 0px; 
			right: -10%;
			width: 20%;
			max-width:600px;
			min-width:100px;
			position: absolute; 
			z-index: 9; 
			user-select: none;
			visibility: inherit;
        }



.legend {
  position: absolute;
  top : 28px;
  right: 10px;
  height: 50px;
  transform-origin: 50% 50%;
  visibility: inherit;
  z-index: 100;
}

#ul1 {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.legend .item {
  display: inline-block;
  margin: 2px;
  border-radius: 25px;
}

.legend .item a {
  display: block;
  padding: 6px;
  color: white;
  text-shadow: 1px 1px 2px black;
  text-decoration: none;
  text-align: center;
  border-radius: 25px;
  font-family: calibre;
  font-weight: bold; 
  font-size:12px;
  
}


/* Styles pour l'état "actif" */
.legend .item a.active  {
  background-color: #778899;
}


/* Popup Styles */
.popup {
  position: absolute;
  left: 20px;
  top: 300px;
  visibility: hidden;
  transform-origin: 50% 50%;
  background-color: transparent;
  border-color: transparent;
  z-index: 100;
}

.popup #ul2 {
 /* border-top: 1px solid #cccccc; */
  list-style: none;
  padding: 0;
  margin: 0;
  position: absolute;
  background-color: transparent;
 /* box-shadow: -15px -5px 31px -20px #ffffff5D;    1*/   
  border-color: transparent;
}

/* Common Styles for Item */
.popup .item {
  background-color: #fff;
  cursor: pointer;
  font-size: 13pt;
  user-select: none;
  text-align: center;
 /* border-top: 1px solid #fff;*/
  display: flex;
  justify-content: center;
  align-items: center;
  /*border-radius:25px;*/
}

.popup .item a {
  display: block;
  padding: 0px;
  color: black;
  text-decoration: none;
  font-family: calibre;
  font-weight: bold; 
  font-size:12px;
}

.popup .item img {
  margin-right: 10px;
}

.popup .tri-down {
  width: 0;
  height: 0;
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
  border-top: 30px solid #fff;
  margin: 0 auto;
}

/* Special styling for certain items */
.popup .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* List Item Styles */
.popup li {
  width: 60px;
  height: 30px;
  line-height: 40px;
  font-size: 13px;
  text-align: center;
  border-bottom: 1px solid #cccccc;
  background-color: white;
}

.popup li.centre {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Superscript styles */
.popup sup {
  vertical-align: top;
  font-size: 8px;
  position: relative;
  top: -7px;
}

/* Button Styles */
.popup button {
  font-family: Questrial, sans-serif;
  font-size: 12px;
  position: absolute;
  left: 0;
  top: 84px;
  background-color: transparent;
  border: 1px solid #cccccc;
  padding: 0;
  margin: 0;
  height: 40px;
  width: 80px;
  color: white;
}

.popup button:hover {
  cursor: pointer;
}

/* Typologie and Reference Styling */
.popup .typologie {
  width: 24px;
  height: 23px;
  background-color: red;
  color: white;
  float: left;
}

.popup .reference {
  text-align: center;
}

/* SVG Icon Styles */
.popup svg {
  width: 36px;
  height: 36px;
}

/* Path inside the popup */
.popup path {
  fill: white;
  stroke: #000000;
  stroke-width: 1px;
}

/* Path inside the popup */
div.hotspot{
  position:absolute;
  width: 5px;
  height: 5px;
  transform-origin: 50% 50%;
  visibility: inherit;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  
}

div.hotspot h3 {
  font-family: calibre;
  color:white;
  font-weight: bold; 
  font-size:12px;
  text-shadow: 1px 1px 2px black;
  /*background-color: rgba(0, 0, 0, 0.6); /* Fond noir semi-transparent */
}

.tooltip {
  position: relative;
  text-decoration: none;
}

.tooltip-text {
  visibility: hidden;
  opacity: 0;
  width: max-content;
  background-color: black;
  color: white;
  text-align: center;
  padding: 5px 8px;
  border-radius: 4px;
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  transition: opacity 0.3s;
  z-index: 110;
}
.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}
/* style.css */

/* Conteneur de chargement */
.loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 200px;
    background-color: transparent;
    visibility: visible;
    text-align: center;
	z-index:500;
}

/* Arrière-plan de chargement */
.loading-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 250px;
    height: 90px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

/* Bordure de chargement */
.loading-brd {
    position: absolute;
    top: -1px;
    left: -1px;
    width: 250px;
    height: 90px;
    border: 2px solid #fff;
    border-radius: 10px;
    opacity: 0.5;
}

/* Texte de chargement */
.loading-text {
    position: absolute;
    top: 25px;
    left: 25px;
    width: 200px;
    color: white;
    font-family: sans-serif;
    font-size: 16pt;
}

/* Texte de pourcentage de chargement */
.loading-percent {
    font-size: 12px;
    margin-top: 5px;
}

/* Barre de progression */
.loading-bar {
    position: absolute;
    top: 70px;
    left: 25px;
    width: 200px;
    height: 12px;
    background-color: #fff;
    border: 1px solid #808080;
    border-radius: 5px;
}

.loading-bar-inner {
    width: 0%; /* Progression à ajuster dynamiquement */
    height: 100%;
    background-color: #00bfff;
    border-radius: 5px;
}

/* Logo */
.logo {
    position: absolute;
    top: 95px;
    left: 65px;
}

/* Masquer le conteneur de chargement après un clic */
.loading.hidden {
    visibility: hidden;
}
