/* styles.css */
:root {
    --menu-width: 350px;
	--banner-color: #FFF;
	--bgnd-color: #FFFFFF;
	--lot-color: #F4F4F4;
	--lot-color2: #DDD;
	--lot-selected: #FFF;
	--highlight: #007BFF;
	--text-color: #666;
	--border-color: #CCC;
}

.dark-mode {
    --menu-width: 350px;
	--banner-color: #000;
	--bgnd-color: #000;
	--lot-color: #181818;
	--lot-selected: #000;
	--lot-color2: #222;
	--highlight: #007BFF; 
	--text-color: #999;
	--border-color: #333;
}



*{ /* Empeche la selection */
	user-select: none;
}

html, body { /* Empeche les flash bleue quand on click en mode mobile */
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    display: flex;
    height: 100vh;
    overflow: hidden;
}


#loader-overlay {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: var(--bgnd-color);
	padding: 15px 25px;
	border-radius: 10px;
	color: var(--text-color);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	text-transform: uppercase;
	font-family: "Segoe UI", sans-serif;
	font-size: 1rem;
	z-index: 9999;
	transition: opacity 0.4s ease;
	max-width: 90vw;     /* ✅ limite la largeur à 90 % de l’écran */
	text-align: center;  /* ✅ centre le texte si il passe sur 2 lignes */
	box-sizing: border-box;
}

.spinner {
	width: 35px;
	height: 35px;
	border: 4px solid rgba(255, 255, 255, 0.2);
	border-top: 4px solid var(--text-color);
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin-bottom: 10px;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

#loader-overlay.hidden {
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.5s ease;
}





.credit-logo {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 12;
}

.credit-logo img {
  width: 150px;
  height: auto;
}





/* --- POPUP CONTAINER PRINCIPAL --- */
#popupFormContainer {
	position: fixed;
	inset: 0; /* top, right, bottom, left = 0 */
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: rgba(0, 0, 0, 0.4); /* fond assombri */
	backdrop-filter: blur(3px);
	padding: 2vw; /* marge responsive autour du formulaire */
	box-sizing: border-box;
	z-index: 9000;
	overflow: auto; /* permet le scroll vertical si contenu trop grand */
	transition: opacity 0.4s ease, transform 0.4s ease;
	opacity: 0;
	pointer-events: none;
}

/* ✅ visible (affiché) */
#popupFormContainer.form-slide-visible {
	opacity: 1;
	pointer-events: auto;
}

/* ✅ caché (invisible) */
#popupFormContainer.form-slide-hidden {
	opacity: 0;
	pointer-events: none;
}

/* --- CONTENU DU POPUP --- */
#popupFormContainer .form-content {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 480px;
	min-width: 280px;
	box-sizing: border-box;
}

/* --- FORMULAIRE PRINCIPAL --- */
.form-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	background: var(--lot-color);
	border-radius: 15px;
	border: 1px solid var(--border-color);
	box-shadow: 0 0 10px rgba(0,0,0,0.4);
	padding: 20px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	color: var(--text-color);
	box-sizing: border-box;
}

/* --- TITRE DU LOT --- */
.form-container h2 {
	width: 100%;
	margin-bottom: 20px;
	font-size: 1.5em;
	font-weight: bold;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: var(--text-color);
	position: relative;
}
.form-container h2::after {
	content: "";
	display: block;
	width: 100%;
	height: 2px;
	background: var(--border-color);
	margin-top: 6px;
	border-radius: 2px;
}

/* --- CHAMPS --- */
.form-container label {
	font-size: 0.8em;
	margin-bottom: 5px;
	color: var(--text-color);
	text-align: left;
	width: 100%;
}
.form-container input,
.form-container textarea {
	background: var(--lot-selected);
	color: var(--text-color);
	width: 100%;
	padding: 10px;
	margin-bottom: 10px;
	border: 1px solid var(--border-color);
	border-radius: 8px;
	font-size: 14px;
	box-sizing: border-box;
	resize: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-container input:focus,
.form-container textarea:focus {
	border-color: var(--highlight);
	box-shadow: 0 0 4px var(--highlight);
}

/* --- ORGANISATION DES CHAMPS --- */
.form-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	width: 100%;
}
.form-group {
	flex: 1;
	display: flex;
	flex-direction: column;
}

/* --- BOUTON ENVOYER --- */
.Send-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 10px;
	padding: 12px 24px;
	font-size: 16px;
	font-weight: bold;
	color: var(--text-color);
	background-color: var(--lot-selected);
	border: none;
	border-radius: 30px;
	box-shadow: 0 4px 8px rgba(0,0,0,0.2);
	cursor: pointer;
	transition: all 0.3s ease;
}
.Send-button:hover {
	color: var(--highlight);
	box-shadow: 0 6px 12px rgba(0,0,0,0.3);
	transform: translateY(-2px);
}






/* --- BOUTON FERMETURE --- */
.close-form-button {
	position: absolute;
	top: 10px;
	right: 10px;
	font-size: 2em;
	color: var(--text-color);
	background: none;
	border: none;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: color 0.3s ease, transform 0.3s ease;
}
.close-form-button:hover {
	color: red;
	/* transform: scale(1.1); */
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 600px) {
	.form-row {
		flex-direction: column;
	}
	.form-container {
		padding: 15px;
		max-width: 95vw;
	}
	.Send-button {
		width: 100%;
	}
}

/* --- ajustement spécial pour mobile paysage --- */
@media (max-height: 500px) and (orientation: landscape) {
  #popupFormContainer {
    /*align-items: flex-start;   /* ✅ place le formulaire en haut, plus sûr */
    /*overflow-y: auto;          /* ✅ autorise le scroll */
    /*padding: 10px;             /* un peu de marge autour */
  }

  #popupFormContainer .form-content {
    /* margin-top: 20px;          /* petit espacement du haut */ */
  }

  .form-container {
    max-height: none;          /* ✅ ne bloque plus à 90vh */
    height: auto;              /* s'adapte au contenu */
  }
}

@media (max-height: 600px) {
	.form-container {
		transform: scale(0.9); /* réduit légèrement */
	}
}
@media (max-height: 500px) {
	.form-container {
		transform: scale(0.8);
	}
}
@media (max-height: 420px) {
	.form-container {
		transform: scale(0.6);
	}
}




/* ✅ Container principal */
.success-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;

    background-color: var(--bgnd-color); /* 🟢 s’adapte au thème */
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 15px;

    padding: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
    animation: fadeIn 0.5s ease-out;
}

/* ✅ Titre */
.success-container h2 {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--text-color);
    margin: 10px 0;
}

/* ✅ Paragraphe */
.success-container p {
    font-size: 1em;
    color: var(--text-color);
    margin: 5px 0 0;
}

/* ✅ SVG + animation */
.svg-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

/* ✅ Cercle vert */
.circle {
    fill-opacity: 0;
    stroke: #28a745; /* ✅ vert permanent */
    stroke-width: 16px;
    transform-origin: center;
    transform: scale(0);
    animation: grow 1s cubic-bezier(.25, .25, .25, 1.25) forwards;
}

/* ✅ Check blanc à contraste fixe */
.tick {
    stroke-opacity: 0;
    stroke-dasharray: 29px;
    stroke-dashoffset: 29px;
    stroke: #ffffff; /* ✅ blanc permanent */
    stroke-width: 6;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: draw 0.5s cubic-bezier(.25, .25, .25, 1) forwards;
    animation-delay: 0.6s;
}

/* ✅ Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes grow {
    60% {
        transform: scale(.8);
        stroke-width: 4px;
        fill-opacity: 0;
    }
    100% {
        transform: scale(.9);
        stroke-width: 8px;
        fill-opacity: 1;
        fill: #28a745; /* ✅ vert permanent */
    }
}

@keyframes draw {
    0%, 100% { stroke-opacity: 1; }
    100% { stroke-dashoffset: 0; }
}







#scrollerMask {
	position: absolute; /* Contenu uniquement dans le conteneur Three.js */
	top: 0;
	left: 0;
	width: 100%; /* Occupe la largeur du conteneur */
	height: 100%; /* Occupe la hauteur du conteneur */
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 1000; /* Au-dessus du canvas */
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: 24px;
	opacity: 1;
	transition: opacity 0.5s ease;
	pointer-events: all;
	cursor: pointer;
}

#scrollerMask.active {
    pointer-events: all; /* Active les événements nécessaires si besoin */
}

#scrollerMask.hidden {
    opacity: 0;
    pointer-events: none; /* Désactive complètement les interactions */
}

#main-container {
	flex-grow: 1;
    position: relative;
    width: 100%;
    height: 100%;
	overflow: hidden;
}

#threejs-container {
	width: 100%;
	height: 100%;
	overflow: hidden;
	position: relative;
	pointer-events: auto; /* Interactions activées par défaut */
	transition: filter 0.15s ease; /* sert pour le flou */
}

#threejs-container.disabled {
    pointer-events: none; /* Interactions désactivées */
}

#threejs-container:focus {
    outline: none; /* Supprime le contour noir */
    scroll-behavior: auto; /* Empêche le centrage automatique */
}





#iframe-container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 95%;
    height: 95%;
	opacity: 0;
    transform: translate(-50%, -50%);
	transition: transform 0.5s ease-out, opacity 0.5s ease-out;
    display: none; 
	border: none;
	border-radius: 20px; 
	background-color: transparent;
	overflow: hidden;
	z-index: 11;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

#iframe-container.show {
    transform: translate(-50%, -50%); /* ✅ Remonte pour être bien centré */
    opacity: 1;
}

iframe {
	width: 100%;
	height: 100%;
	/* border: 2px solid rgba(255, 255, 255, 0.5);  */
	/* border-radius: 20px;  */
	/* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);  */
}


#btn_Close_Iframe {
    position: absolute;
    top: -5px;
    right: 5px; 
    z-index: 2000;
    background-color: transparent; 
    border: none;
    cursor: pointer;
    display: none;
    font-size: 4em; 
    color: gray;
	opacity: 0;
	transform: translateY(200px);
	transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

#btn_Close_Iframe:hover {
	color: red;
}

/* Classe pour afficher avec l'animation */
#btn_Close_Iframe.show {
    opacity: 1;
    transform: translateY(0); /* Remonte à sa position normale */
}

#menu, canvas {
    user-select: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

#left-menu {
	width: 350px;
	background-color: #333;
	color: var(--bgnd-color);
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100vh;
	transition: width 0.3s, height 0.3s; /* Transition pour le redimensionnement */
	cursor: pointer;
	flex-shrink: 0;
	overflow: hidden;
}

/* État rétracté du menu */
#left-menu.retracted {
	width: 0px; /* Réduit la largeur à 0 pour cacher le menu */
	height: 100%;
	/*display: none; /* Cacher complètement le menu */
}














#overlayMenu {
	position: fixed;
	top: 0px;
	right: 0px;
	width: 300px;
	height: 100%;
	/* background: rgba(255, 0, 0, 0.8); */
	background: var(--bgnd-color);
	/* color: white; */
	color: var(--text-color);
	padding: 0px 20px;
	border-radius: 10px 0 0 10px;
	z-index: 1000;
	box-shadow: 0 0 15px rgba(0,0,0,0.5);
	max-width: 300px;
}

#closeOverlay {
	position: absolute;
	top: 10px;
	right: 10px;
	background: transparent;
	border: none;
	color: var(--text-color);
	font-size: 2em;
	cursor: pointer;
}

#closeOverlay:hover {
	color: var(--accent-color, #00aaff);
}


.category-section {
	margin-top: 10px;
	padding-bottom: 10px;
}

.category-content {
	overflow: hidden;
	max-height: 0;
	transition: max-height 0.3s ease;
}


.category-title {
	cursor: pointer;
	font-size: 1.0em;
	font-weight: bold;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 5px 0;
	color: var(--text-color);
}

.category-title:hover {
	color: var(--accent-color, #00aaff);
}

.arrow {
	margin-left: 10px;
	transition: transform 0.3s ease;
}

.subcategory-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	cursor: pointer;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: var(--text-color);
	margin: 10px 0 5px;
}

.subcategory-title:hover {
	color: var(--accent-color, #00aaff);
}


.thumbs-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(65px, 1fr));
	gap: 10px;
	padding: 10px 0 0 0;
	margin: 0;
	list-style: none;
	overflow: hidden;
}

.thumbs-list.expanded {
	max-height: none;
}

.thumbs-item {
	aspect-ratio: 1 / 1;
	background-color: var(--bgnd-color);
	border: 1px solid var(--border-color);
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	cursor: pointer;
	transition: border 0.2s ease, background-color 0.2s ease;
	overflow: visible;
	padding: 5px;
}

.thumbs-item:hover {
	border-color: var(--accent-color, #00aaff);
	background-color: var(--accent-color-transparent, rgba(0, 170, 255, 0.1));
}

.thumbs-preview {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}


.thumbs-preview:hover {
	transform: scale(1.05);
	transition: transform 0.2s ease;
}

.thumbs-item.selected {
	border: 3px solid var(--accent-color, #00aaff);
}






.toolbox {
	position: absolute;
	/* background: rgba(30,30,30,0.9); */
	background-color: var(--lot-color); 
	padding: 6px;
	border-radius: 8px;
	box-shadow: 0 0 10px rgba(0,0,0,0.5);
	z-index: 999;
	display: flex;
	gap: 6px;
}
.toolbox button {
	background: none;
	border: none;
	color: var(--text-color);
	cursor: pointer;
	font-size: 1.2em;
}
.toolbox button:hover {
	color: #00aaff;
}

.toolbox button.active {
	color: var(--accent-color, #00aaff);
	transform: scale(1.1);
}

.rot-deg {
	font-style: italic;
	font-weight: bold;
	font-size: 1.2em;
}

#measureTools {
	/* margin-top: 10px; */
	border-top: 1px solid var(--border-color);
	border-bottom: 1px solid var(--border-color);
	padding: 10px 0px;
}
#measureTools button {
	display: block;
	margin-bottom: 5px;
	width: 100%;
	cursor: pointer;
}

.toggle-MeasureBtn.active {
	background-color: var(--accent-color, #00aaff);
	color: white;
	border: 1px solid var(--accent-color, #00aaff);
}


.measure-label {
	font-size: 14px;
	font-weight: bold;
	background: rgba(0,0,255,0.1); 
	padding: 2px 6px;
	border: 1px solid #007BFF;
	border-radius: 4px;
	pointer-events: all;
	cursor: pointer;
}

.measure-label.selected {
	border: 1px dashed #00ff00;
	padding: 2px 6px;
	background: rgba(0, 255, 0, 0.1);
	border-radius: 4px;
}


.tabs {
	display: flex;
	gap: 4px;
}

.tab-button {
	flex: 1;
	padding: 5px 10px;
	cursor: pointer;
	border: 1px solid #ccc;
	background: #eee;
	border-radius: 4px 4px 0 0;
}

.tab-button.active {
	background: #fff;
	font-weight: bold;
	border-bottom: none;
}

.tab-content {
	display: none;
	border: 1px solid #ccc;
	padding: 10px;
	border-top: none;
}

.tab-content.active {
	display: block;
}





.preview-wrapper {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100%; /* ou fixe */
}











#toggle-menu-div {
  position: absolute;
  top: 0;
  left: 0;
  height: 75px;
  width: 30px;

  display: flex;
  flex-direction: column;     /* Empile les boutons verticalement */
  align-items: center;        /* Centre horizontalement les boutons */
  justify-content: center;    /* Centre verticalement si tu veux */
  gap: 4px;                   /* espace entre les boutons */

  background-color: var(--lot-color);
  border-radius: 0 10px 10px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);

  z-index: 1001;
  cursor: pointer;
}

#toggle-menu-div button {
  background: transparent;
  border: none;
  color: var(--text-color);
  font-size: 0.8em;
  cursor: pointer;
  transition: color 0.3s;
}

#toggle-menu-div button:hover i {
  color: var(--highlight);
}

#toggle-menu-div i {
  pointer-events: none; /* évite que l’icône bloque les clics sur le bouton */
}



/*
#toggle-menu {
	position: absolute;
    color: var(--text-color);
    cursor: pointer;
	border: 1px solid var(--border-color); 
	border-radius: 0 10px 10px 0;
	font-size: 1em;
	top: 0px;
	height: 75px;
	width: 30px;
	font-weight: bold;
	background-color: var(--lot-color); 
	align-items: center;
    justify-content: center;
	z-index: 1001; 
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); 
}

#toggle-menu i {
    position: relative;
    top: -20px;
}

#toggle-menu:hover {
	color: var(--highlight);
}

#dark-mode-toggle {
	position: absolute;
    background: none;
    border: none;
	top: 30px;
	left: 1px;
    font-size: 1em;
    cursor: pointer;
    color: var(--text-color);
    transition: color 0.3s;
	z-index: 1002;
}
#dark-mode-toggle:hover {
    color: #ffeaa7;
}

#splat-mode-toggle {
	position: absolute;
    background: none;
    border: none;
	top: 52px;
	left: 1px;
    font-size: 1em;
    cursor: pointer;
    color: var(--text-color);
    transition: color 0.3s;
	z-index: 1002;
}
#splat-mode-toggle:hover {
    color: #ffeaa7;
}
*/

aside {
    position: relative;
	display: flex;
    width: 100%; /* Utiliser la variable pour définir la largeur */
    background-color: var(--bgnd-color);
    border-right: 1px solid var(--lot-color2);
    /* transform: translateX(-100%); */
    /* transition: transform 0.3s ease; */
    z-index: 1001;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4); /* ombre légère pour la profondeur */
}

aside.open {
    /* transform: translateX(env(safe-area-inset-left, 0)); /* Ajuste la position du menu en fonction de la safe area */ */
}

#menu {
	height: 100vh;
    display: flex;
    flex-direction: column;
}

#menu-content {
    flex: 1; /* Prend tout l'espace disponible en hauteur */
    overflow-y: scroll; 
    display: flex;
    flex-direction: column;
}


canvas {
	display: block;
	width: 100%;
	height: 100%;
}


#Close_Iszoomed {
    position: absolute;
    top: 35px; /* Décalage par rapport au haut */
    right: -20px;
    /* padding: 10px 15px; */
	background-color: transparent;
    /*background-color: #4CAF50; /* Couleur du bouton */
    color: var(--text-color); /* Couleur du texte */
    border: none;
    border-radius: 5px; /* Coins arrondis */
    cursor: pointer;
    font-size: 2em;
    z-index: 1000; /* Assure que le bouton est au-dessus du contenu */
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease; /* Animation pour le survol */
	display: none;
}

#Close_Iszoomed img {
    width: 50%;
    height: 50%;
    transition: transform 0.3s ease;
}

/* Effet au survol */
#Close_Iszoomed:hover img {
    transform: rotate(360deg); /* Zoom léger + rotation */
}

/* Style pour le label HTML attaché au pin */
.pin-label {
  position: relative;
  display: flex;
  gap: 20px;
  background-color: var(--bgnd-color);
  border: 1px solid #ccc;
  border-radius: 20px;
  padding: 5px 25px;
  white-space: nowrap;
  pointer-events: auto;
  overflow: visible;
}

.pin-label::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -12px;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 12px solid #ccc;
}

.pin-label::after {
  /* Triangle pour le fond */
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -10px;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid var(--bgnd-color);
}




.icon-button {
  /* Pour centrer l'icône à l'intérieur du bouton */
  display: inline-flex; 
  align-items: center; 
  justify-content: center;

  /* Taille fixe pour le bouton */
  width: 35px;
  height: 35px;

  /* Apparence et comportement */
  background: none;
  border: none;
  color: var(--text-color);
  cursor: pointer;
  font-size: 30px;
  transition: color 0.3s ease;
}

.icon-button:hover {
  color: var(--highlight); /* Changement de couleur au survol */
}


/* Changement de style pour l'orientation portrait */
@media (orientation: portrait), (max-width: 768px) {
	body {
		flex-direction: column;
	}
	
	/* Contient tout les boutons... */
	#toggle-menu-div {
		transform: rotate(90deg);
		top: -23px;
		left: 22px;
	}
	
	#toggle-menu-div i {
		transform: rotate(-90deg);
	}
	
	#menu {
		top: 0;
		height: 100%;
	}
	
	#left-menu {
		top: 0;
		height: 45%;
		width: 100%;
	}
	
	#left-menu.retracted {
		height: 0px;
		width: 100%;
	}
/*	
}


@media (max-width: 1024px) {	*/
	#project-header {
		max-height: 100px !important;
		flex-direction: row !important;
	}

	#project-banner {
		width: 50% !important;
	}

	#indicators {
		display: flex !important;
		height: 100% !important;
		width: 50% !important;
		padding: 0px 5px !important;
		flex-direction: row !important;
		align-items: stretch !important;
		align-items: center !important;
		justify-content: space-between !important;
	}
	  
	.indicator {
		display: none !important;
		margin: 2.5px !important;
		display: flex !important;                 /* active Flexbox */
		align-items: center !important;           /* centre verticalement */
		justify-content: center !important;       /* centre horizontalement */
		text-align: center !important;            /* garde le texte bien centré */
		flex: 1 !important;                       /* répartit la hauteur dans le parent (optionnel) */
		overflow: hidden !important;
	}
	
    .indicator-number { 
        font-size: 1.2rem !important;
		margin-right: 5px !important;
    }
    .indicator-label {
        font-size: 0.5rem !important;
		
    }

	.indicator-content {
		/* display: flex !important; */
		/* flex-direction: row !important; */
		align-items: center !important; 
		justify-content: center !important;
		gap: 5px;
	}



	
	.toggle-section {
		padding: 0px !important;
		margin: 5px !important;
		font-size: 0.7em !important;
		/* width: calc(100% - 15px) !important; */
		text-align: center !important;
	}

	.filter-content h4 { /*les titre des filtres*/
		margin-top: 10px !important;
		margin-bottom: 2px !important; /* Espacement inférieur entre les titres et les éléments */
		font-size: 0.6em !important; /* Ajuster la taille des titres */
	}
	
	#menu-content h4 { /*les titre des filtres*/
		margin-top: 10px !important;
		margin-bottom: 2px !important; /* Espacement inférieur entre les titres et les éléments */
		font-size: 0.6em !important; /* Ajuster la taille des titres */
	}
	
	
    .checkbox-container {
		margin-top: -18px !important;
    }
	
	.checkbox-label {
		padding: 4px 8px !important;
		font-size: 0.7em !important; /* Texte plus petit */
	}
	
	.lot {
		padding: 5px 10px !important;
	}
	
	.styled-select {
		padding: 5px 5px !important;
	}
	
	#slider-round {
		height: 20px !important;
	}
	
		
	.value-detail {
		font-size: 0.8em !important;
	}
		
	.separator {
		height: 20px !important;
	}

	.lot-button i {
		font-size: 16px !important; /* Taille de l'icône */
	}
	
	
	
	
}




/*START Style de la barre de défilement entière */
#menu-content::-webkit-scrollbar {
    width: 12px; /* Largeur de la barre de défilement */
}
/* Style de la piste de défilement */
#menu-content::-webkit-scrollbar-track {
    background: var(--bgnd-color);/*#f1f1f1;  Couleur de fond de la piste */
    border-radius: 10px; /* Arrondir les coins de la piste */
}
/* Style de la poignée de défilement */
#menu-content::-webkit-scrollbar-thumb {
    background: var(--lot-color2); /*#d4d4d4;*/
    border-radius: 10px; /* Arrondir les coins de la poignée */
    border: 3px solid var(--bgnd-color);/*#f1f1f1; /* Ajouter une bordure pour un effet de séparation */
}
/* Style de la poignée au survol */
#menu-content::-webkit-scrollbar-thumb:hover {
    background: var(--text-color);/*#c0c0c0; /* Couleur de la poignée au survol */
}
/*END Style de la barre de défilement entière */


#project-header {
	display: flex;
	width: 100%;
	flex-direction: column; 
	background: var(--banner-color);
}

#project-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  overflow: hidden;
}

#project-banner img {
  width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 80px !important;
}

#indicators {
    display: flex;
    justify-content: space-between;
    align-items: center;
	padding: 10px 5px;
    font-weight: bold;
    text-align: center;
}


/*
#project-header {
  display: flex;
  flex-direction: column; 
  align-items: center;
  justify-content: center;
  background: var(--banner-color);
  width: 100%;
}


#project-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  overflow: hidden;
}


#project-banner img {
  width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 100%;
}


#indicators {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  padding: 10px 5px;
}
*/

.indicator {
	display: none !important;
    padding: 10px 5px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.6em;
    flex: 1;
    margin: 0 5px; /* espace entre les indicator */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: background-color 0.2s, color 0.2s, filter 0.2s;
}
.indicator-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.indicator-number {
    font-size: 2em; /* Taille du chiffre */
    font-weight: bold; /* Mettre le chiffre en gras */
}
.indicator-label {
    font-size: 1.3em; /* Taille du texte */
    margin-top: 2px; /* Espacement entre le chiffre et le texte */
    font-weight: bold;
}
.indicator:hover {
    /*border-color: #888; /* Changer la couleur du contour au survol */
	filter: brightness(105%); /* Réduit la luminosité à 80% */
	/*filter: saturate(50%); /* Réduit la luminosité à 80% */ 
}

.indicator.active {
	/* on ne fait rien car c'est defini plus bas */
	/* filter: none; /* Pas de filtre, conserve les couleurs d'origine */
}
.indicator.inactive {
	background-color: #ececec !important;
    color: grey !important;
    border-color: grey !important;
	/* filter: grayscale(100%) brightness(50%); /* Convertit en gris et réduit la luminosité */	
}

/* version vert
#available-indicator {
	color: #4CAF50;
    background-color: #edf7ed;
	border: 2px solid #4CAF50;
}
*/

/* Version Bleue */
#available-indicator {
	color: #2a9c2a; /* Texte vert vif */
    background-color: #bdefbd; /* vert pastel */
    border: 2px solid #2a9c2a; /* Bordure vert vif */
}

#option-indicator {
	color: #ffa500; /* Orange */
    background-color: #fff6e6;
	border: 2px solid #ffa500;
}

#reserved-indicator {
	color: #ff0000;
    background-color: #ffe6e6;
	border: 2px solid #ff0000;
}


#sold-indicator {
	color: #ff0000;
    background-color: #ffe6e6;
	border: 2px solid #ff0000;
}

#rented-indicator {
	color: #ff0000;
    background-color: #ffe6e6;
	border: 2px solid #ff0000;
}

/*END INDICATEUR EN HAUT */





/* Il s'agit des bandeau Filtre et Liste des lots */
.toggle-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    color: var(--text-color);
    border: none;
    padding: 10px;
	margin: 5px;
    width: calc(100% - 10px); /* Prendre en compte les marges gauche et droite */
    text-align: left;
    cursor: pointer;
    border-radius: 0px;
    font-size: 0.8em;
    font-family: 'Helvetica', sans-serif;
    text-transform: uppercase;
    font-weight: bold;
    transition: background-color 0.2s;
}

.toggle-section:hover {
    /*background-color: #CCC;  Changer la couleur au survol */
	color: var(--highlight);
}

.toggle-icon {
	padding-left: 5px;
}

.toggle-title {
	flex-grow: 1;
	text-align: left;
	padding-left: 10px;
}

.toggle-chevron {
	margin-right: 5px; /* permet le decallage lors de la rotation sinon faire un margin-right: 15px */
	font-size: 16px;
	transition: transform 0.2s;
}

.toggle-section.open .toggle-chevron {
	transform: rotate(180deg);
}

/*
.fixe-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    color: #000;
    border: none;
    padding: 10px;
	margin: 5px;
    width: calc(100% - 10px);
    text-align: left;
    cursor: pointer;
    border-radius: 0px;
    font-size: 0.8em;
    font-family: 'Helvetica', sans-serif;
    text-transform: uppercase;
    font-weight: bold;
    transition: background-color 0.2s;
}
*/

/*Nouveau STYLE des checkbox pour remplissage automatique */
.checkbox-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* Espace entre les boutons */
    justify-content: center; /* Centrer les boutons horizontalement */
}
.checkbox-label {
    position: relative; /* Permet à l'enfant de prendre toute la place */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
	color: var(--text-color);
    background-color: var(--lot-color);
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
    text-transform: uppercase; /* Texte en uppercase */
    font-size: 12px; /* Texte plus petit */
    font-weight: bold; /* Texte en gras */
	/* margin-bottom: 5px; */
	/* margin: 2px; /* Réduire les marges */
}
.checkbox-label input[type="checkbox"] {
    display: none;
}
.checkbox-label.checked {
    color: var(--highlight);
    border-color: var(--highlight);
	background-color: var(--lot-selected);
	/* background-color: #B3E6FF; */
}
.checkbox-label:hover {
	color: var(--highlight);
    border-color: var(--highlight); /* Changer la couleur du contour au survol */
	background-color: var(--lot-selected); 
}


/*Sert pour le COMBOBOX */
.styled-select {
    position: relative; /* Permet à l'enfant de prendre toute la place */
	margin-top: 10px;
	margin-bottom: -5px;
	margin-left: 10px;
	margin-right: 10px;
    display: flex;
    align-items: center;
	text-align:center;
    justify-content: center;
    padding: 10px 30px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
	color: var(--text-color);
    background-color: var(--lot-color);
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
    text-transform: uppercase; /* Texte en uppercase */
    font-size: 12px; /* Texte plus petit */
    font-weight: bold; /* Texte en gras */
    appearance: none; /* Enlever le style par défaut du select */
    -webkit-appearance: none; /* Enlever le style par défaut du select pour Safari */
}

.styled-select option { /*trier par survol*/
    /* padding: 100px; */
    background-color: var(--lot-color);
}

.styled-select:hover {
    border-color: var(--highlight); /*trier par survol*/
	background-color: var(--lot-selected); 
}

/* Styles pour les textes des sliders */
.slider-values {
    font-size: 0.7em;
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    /* color: #4CAF50; */
    color: var(--text-color);
	transform: translateY(-18px); /* Ajustez cette valeur selon vos besoins */    
	text-align: center;
    font-weight: bold;
	padding-right: 15px;
	margin: 3px;
}
.slider-values > span { /* il s'agit du chf et du > entre les valeurs */
    margin-left: 3px;
    margin-right: 3px;
    color: var(--text-color);
    font-weight: bold;
}





/* START SLIDER STYLING */
#slider-round {
    height: 30px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    margin-top: -15px;
	border-color: var(--border-color);
}

#slider-round .noUi-base {
    height: 10px;
    /* background: var(--lot-color2); */
	background: #DDD;
	border-color: var(--border-color);
}
#slider-round .noUi-target {
    height: 10px;
    background: var(--lot-color2); 
	border-color: var(--border-color);
}
#slider-round .noUi-connect {
    background: var(--highlight);
    height: 10px;
	border-color: var(--border-color);
}
#slider-round .noUi-handle {
    height: 20px;
    width: 20px;
    top: -5px;
    right: -10px;
    border-radius: 10px;
	background: var(--lot-color);
	border-color: var(--border-color);
	cursor: pointer;
	transition: transform 0.2s ease, background-color 0.2s ease; /* Ajoute la transition pour l'animation */
}
#slider-round .noUi-handle:before,
#slider-round .noUi-handle:after {
    content: none; /* Supprime les || sur les poignée */
}
#slider-round .noUi-handle:hover {
    transform: scale(1.1); /* Agrandit légèrement la poignée */
    border-color: var(--highlight);
}
/* END SLIDER STYLING */




.filters, .lot-list { /* Section Filtres et lot-liste */
	padding-top: 0px;
	padding-bottom: 0px; /* en dessous des differentes section */
    margin-top: 0px;
	margin-bottom: 0px;
	border-bottom: 1px solid var(--border-color);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.filter-content { /* Interne */
    display: none;
	padding-top: 0px;
	padding-bottom: 5px;
	padding-left: 10px;
	padding-right: 10px;
}

.filter-content h4 { /*les titre des filtres*/
	margin-top: 5px;
    margin-bottom: 5px; /* Espacement inférieur entre les titres et les éléments */
	margin-left: 5px;
    font-size: 0.7em; /* Ajuster la taille des titres */
    text-transform: uppercase;
    font-weight: bold;
	color: var(--text-color);
}

.sun_disclamer {
	margin-bottom:15px;
	align-items: center;
	text-align: center;
	color: red;
	font-size: 0.6em;
    font-weight: bold;
    text-transform: uppercase;
}

.filter-content.active, .lot-list-content.active {
    display: block;
}

.lot {
    padding: 10px;
    background-color: var(--lot-color);
    border: 1px solid var(--border-color);
	border-radius: 20px;
    margin-bottom: 5px; /* entre chaque lots */
    transition: background-color 0.2s, color 0.2s, border-color 0.2s, filter 0.2s;
    display: flex;
    flex-direction: column;
    position: relative; /* Pour permettre des ajustements de positionnement interne */
	color: var(--text-color);
}

.lot:hover {
	/*border-color: #4CAF50;*/
	/* border-color: white; */
	/* color: white; */
	border-color: var(--highlight);
	background-color: var(--lot-selected); /*#d5f6aa;*/
}

.lot.selected {
	/* border-color: #ccc; */
	/* color: white; */
	border-color: var(--highlight);
	background-color: var(--lot-selected); /*il s'agit du fond Selectionné */
}

.lot.highlight {
	border-color: var(--highlight);
	background-color: var(--lot-selected); /*#d5f6aa;*/
}


.lot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    width: calc(100% + 20px); /* Ajuster la largeur pour compenser le padding */
    margin: -10px; /* Réduire la taille totale */
    padding: 10px; /* Ajouter du padding pour élargir la zone cliquable */
    box-sizing: border-box; /* Inclure le padding dans la largeur totale */
	transition: background-color 0.2s, color 0.2s, border-color 0.2s, filter 0.2s;
	border-radius: 10px;
}


/* BANDEAU avec les infos */ 
.info-main {
  display: flex;
  align-items: center;
  font-size: 0.75em;
  font-weight: bold;
  text-transform: uppercase;
  margin-right: 5px;
}

/* Fixe une largeur pour chaque type de donnée */
.info-lot {
  flex: 0 0 90px; /* prend plus d'espace */
  text-align: left;
  white-space: nowrap;        /* 🔒 empêche le retour à la ligne */
  overflow: hidden;           /* 🔒 coupe le texte s’il dépasse */
  text-overflow: ellipsis;    /* 🔒 ajoute "..." si le texte est trop long */
}
.info-surface {
  flex: 0 0 60px;  /* largeur fixe */
  text-align: left;
}
.info-pieces {
  flex: 0 0 45px;  /* largeur fixe */
  text-align: center;
}
.prix-disponible,
.prix-reservé,
.prix-option,
.prix-vendus,
.prix-loué {
  flex: 0 0 90px; /* largeur fixe pour le prix */
  text-align: right;
}




.prix-disponible {
    /* color: #007BFF; BLEUE*/
    color: #2a9c2a; /* vert */
	text-align: right;
}
 
.prix-reservé {
    /*color: orange;*/
    color: red; /* rouge */
	font-style: italic;
	text-align: right;
}

.prix-option {
    color: orange; /* gris */
	font-style: italic;
	text-align: right;
}

.prix-vendus {
    color: grey; /* gris */
	font-style: italic;
	text-align: right;
}

.prix-loué {
    color: red;
	font-style: italic;
	text-align: right;
}

.subtext {
    font-size: 0.65em; /* Taille plus petite pour le texte supérieur */
    vertical-align: super; /* Positionner le texte en haut */
	margin-left: -1px; /* decalage a gauche de 1px */
}


.lot-list-content {
    display: flex;
    flex-direction: column;
	/* display: none; */
	padding-top: 10px;
	padding-bottom: 5px;
	padding-left: 10px;
	padding-right: 10px;
}

.lot .toggle-lot-icon {
	margin-right: 1px;
    font-size: 16px;
    transition: transform 0.2s;
    /*margin-left: auto;  Pousser l'icône à l'extrémité droite */
}

.lot.open .toggle-lot-icon {
    transform: rotate(180deg);
}

/* Animation du chevron */
/*
	@keyframes hover-animation {
		0% {
			transform: translateY(0);
		}
		50% {
			transform: translateY(5px);
		}
		100% {
			transform: translateY(0);
		}
	}

	.toggle-lot-icon:hover { 
		animation: hover-animation 0.6s ease-in-out infinite;
	}
*/

.lot-details {
	border-top: 1px solid var(--lot-color2); /* Ajouter une ligne de séparation en bas */
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
	margin-top: 10px;
}

.lot-details-infos {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
	margin-top: 10px;
}

.detail-container {
    width: calc(25% - 10px); /* 4 éléments par ligne */
    text-align: center;
	margin-bottom: 10px;
}


.detail {
	font-size: 0.5em;
    /* font-weight: bold; */ /* plus lisible sans*/
    text-transform: uppercase;
}

.value-detail {
	margin-top: 5px;
    font-size: 0.8em;
    font-weight: bold;
    text-transform: uppercase;
}

.separator {
    width: 1px;
    height: 30px;
    background-color: var(--lot-color2); /* Ajuster la couleur de la barre */
    margin: 0 5px; /* Espacement autour des barres */
}

.lot-image-container {
    flex: 1 1 100%;
    text-align: center;
    /* margin-top: 20px; */
}

.lot-image {
	width: 70px;
	height: 70px;
    /* max-width: 100%; */
    height: auto;
	cursor: pointer;
}

.lot-image:hover {
	width: 80px;
	height: 80px;
}


.button-container {
    display: flex;
    justify-content: space-around;
	width: 100%;
    align-items: center;
    padding-top: 10px;
}



.lot-button {
    background-color: transparent; /* Suppression du fond de bouton par défaut */
    border: none; /* Pas de bordure */
    font-family: Arial, sans-serif;
    text-align: center;
    display: flex;
    flex-direction: column; /* Pour avoir l'icône au-dessus du texte */
    align-items: center;
    cursor: pointer;
    color: var(--text-color); /* Couleur du texte et de l'icône */
    text-transform: uppercase; /* Texte en majuscule */
    /*margin-top: 10px; /* Espacement autour des boutons */
}

.lot-button i {
    font-size: 24px; /* Taille de l'icône */
    margin-bottom: 5px; /* Espace entre l'icône et le texte */
}

.lot-button span {
    font-size: 8px; /* Taille du texte */
    font-weight: bold;
}

.lot-button:hover {
    color: var(--highlight); /* Changement de couleur au survol */
}


.no-lots-message {
    text-align: center;
    text-transform: uppercase;
    font-weight: bold;
    padding: 10px;
    font-size: 0.8em;
    color: var(--text-color);
    background-color: transparent;
    /* border: 1px solid #ccc; */
    /* border-radius: 5px; */
}

#scroll-to-top {
    display: none; /* Le bouton sera caché par défaut */
    position: relative;
    z-index: 2; /* Assurez-vous que le bouton est au-dessus de tout autre contenu dans le menu */
    font-size: 18px;
    background-color: var(--text-color); /* Couleur de fond */
    color: white; /* Couleur du texte */
    border: none;
    outline: none;
    cursor: pointer;
    padding: 8px;
    opacity: 0; /* Initialement invisible */
    transition: opacity 0.2s; /* Transition pour l'apparition/disparition */
}

#scroll-to-top i {
    margin-right: 5px; /* Espace entre l'icône et le texte */
}

#scroll-to-top.visible {
    display: block;
    opacity: 0.5; /* Complètement visible */ 
}

#scroll-to-top:hover {
    background-color: var(--border-color); /* Couleur de fond au survol */
}


#tooltip {
    position: absolute; 
    background-color: var(--lot-color);
    color: var(--text-color);
    padding: 10px; 
    border-radius: 20px;
    border: 1px solid var(--border-color);
    pointer-events: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8em; 
    z-index: 1000;
    display: block; /* Toujours dans le flux */
    opacity: 0; /* Par défaut invisible */
    visibility: hidden; /* Cache l'élément sans casser la mise en page */
    transition: opacity 0.3s ease, visibility 0.3s ease; /* Transition fluide */
}

#tooltip.show {
    opacity: 1; /* Rendre visible */
    visibility: visible; /* Visible pour le navigateur */
}

#tooltip .subtext {
    font-size: 0.6em;
    color: var(--text-color);
	font-weight: bold;
}
