/* Base Styles */
	:root {
	  --primary-color: #1E3A5F; /* Bleu foncé */
	  --secondary-color: #A3CFA0; /* Vert clair */
	  --accent-color: #F5F2E7; /* Beige */
	  --text-color: #333; /* Texte principal */
	  --background-color: #FFFFFF; /* Fond principal */
	  --font-title: 'Arial', sans-serif;
	  --font-body: 'Open Sans', sans-serif;
	}
	

	* {
	  margin: 0;
	  padding: 0;
	  box-sizing: border-box;
	}

	body {
	  font-family: var(--font-body);
	  color: var(--text-color);
	  background-color: var(--background-color);
	  line-height: 1.6;
	  font-size: 16px;
	  display: flex;
	  flex-direction: column;
	  min-height: 100vh;
	}

	h1, h2, h3, h4, h5, h6 {
	  font-family: var(--font-title);
	  margin-bottom: 0.5em;
	  color: var(--primary-color);
	}

	.logo {
	  position: absolute;
	  right: 10px;
	  top: 10px;
	  width: 10rem;
	  height: auto;
	}

	a {
	  color: var(--primary-color);
	  text-decoration: none;
	  transition: color 0.3s ease;
	}

	a:hover {
	  color: var(--secondary-color);
	}

	/* Empêche le défilement global */
	  body.no-scroll {
	  overflow: hidden; /* Désactive la scrollbar */
	}

	/* Barre de progression */
	#progress-bar {
	  position: absolute;
	  top: 0;
	  left: 0;
	  width: 0;
	  height: 5px;
	  background: linear-gradient(to right, #000428, #00e1ff);
	  z-index: 2000;
	  transition: width 0.1s ease-out;
	}

	nav {
		position: fixed;
		top: 0;
		left: -100vw; /* Cache le menu en dehors de l'écran */
		width: 100vw;
		max-width: 450px; /* Largeur maximale pour desktop */
		height: 100%;
		padding: 10px 0;
		border-radius: 10px;
		background: linear-gradient(332deg, #004e92, #000428);
		overflow-y: auto;
		z-index: 900;
		transition: left 0.3s ease; /* Transition fluide */
	}

	nav.open {
		left: 0;
		
	}


	/* Style général */
	nav ul {
		list-style: none; /* Pas de puces */
		margin: 0;
		padding: 10px;
	}

	nav li {
		/*margin: 15px 0;*/
		text-align: left;
		position: relative; /* Nécessaire pour placer correctement les flèches */
	}

	nav a {
		text-decoration: none; /* Pas de soulignement */
		color: white;
		padding: 5px 10px;
		font-size: 1.2em;
		display: inline-block;
	}

	/* Boutons d'expansion */
	.expend {
		background: none;
		border: none;
		color: #00ffff;
		cursor: pointer;
		font-size: 1.5em;
		margin-left: 5px;
	}
	.expend:hover {
		color: #00e1ff;
	}

	.hamburger {
	  position: fixed;
	  top: 10px; /* Centré verticalement */
	  left: 10px; /* Place légèrement hors de l'écran */
	  background: linear-gradient(135deg, #004e92, #000428);
	  border: none;
	  border-radius: 50px; /* Coins arrondis côté droit */
	  color: white;
	  font-size: 1.5em;
	  width: 50px; /* Largeur de l'onglet */
	  height: 50px; /* Hauteur de l'onglet */
	  cursor: pointer;
	  z-index: 1000;
	  display: flex;
	  align-items: center;
	  justify-content: center;
	  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;; /* Transition fluide */
	}

	/* Bouton Hamburger en mode ouvert */
	.hamburger.close {
	  left: calc(100% - 60px); /* Place légèrement hors de l'écran */
	  border-radius: 50px; /* Coins arrondis côté droit */
	  background: #111; /* Couleur différente pour indiquer qu'il est actif */
	}
	
	/* Main content */
	.content {
	  padding: 20px;
	  padding-bottom: 80px; /* Space for the bottom menu */
	}


		
/* Modal styling */
	.modal {
	  display: none;
	  position: fixed;
	  color:black;
	  top: 0;
	  left: 0;
	  width: 100%;
	  height: 100%;
	  background-color: rgba(0, 0, 0, 0.5);
	  justify-content: center;
	  align-items: center;
	}
	
	.modal-content {
	  background-color: #FFFFFF;
	  padding: 20px;
	  border-radius: 8px;
	  width: 90%;
	  max-width: 400px;
	  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	}
	
	.modal-content h2 {
	  margin-top: 0;
	}

/* Style pour les sous-menus */
	nav ul ul {
		max-height: 0; /* Masqué par défaut */
		opacity: 0; /* Invisible par défaut */
		overflow: hidden;
		display: none;
		padding-left: 20px; /* Décalage pour effet d'escalier */
		transition: max-height 0.3s ease, opacity 0.3s ease; /* Transition fluide */
	}
	
	nav ul ul.active {
		display:block;
		max-height: 900px; /* Ajustez en fonction du contenu réel */
		opacity: 1; /* Rendre visible */
	}
	
	nav ul ul a {
	
	}
	
	nav ul ul ul a {
	
	}
		
/* Overlay pour clic à l'extérieur */
	.overlay {
	  position: fixed;
	  top: 0;
	  left: 0;
	  width: 100%;
	  height: 100%;
	  background: rgba(0, 0, 0, 0.5);
	  visibility: hidden; /* Par défaut, invisible */
	  opacity: 0;
	  transition: visibility 0.3s, opacity 0.3s;
	  z-index: 900; /* Sous le menu */
	}
	
	.overlay.active {
	  visibility: visible;
	  opacity: 1;
	}
	
	header {
	  display: flex;
	  justify-content: space-between;
	  align-items: center;
       }
	
	main {
	width:100%;
	  max-width: 1200px;
	  margin: 1em auto;
	  padding: 1em;
	}
	
	aside {
	width:100%;
	  max-width: 1200px;
	  margin: 2em auto;
	  padding: 1em;
	}
	
	footer {
	  background-color: var(--primary-color);
	  color: var(--accent-color);
	  text-align: center;
	  padding: 1em 2em;
	  margin-top: 2em;
	}



/* Ajustement pour le contenu principal */
    main {
      padding-top: 70px; /* Compense la hauteur du header */
    }

	section {
	  width:100%;
	  background: #fff;
	  border: 1px solid #ddd;
	  border-radius: 5px;
	  padding: 1rem;
	  margin-bottom: 1rem;
	  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	}
	
/* Metallic Effect Section */
	.metallic-section {
	  background: linear-gradient(
		135deg,
		#d7d7d7 0%,
		#e7e7e7 25%,
		#c7c7c7 50%,
		#e7e7e7 75%,
		#d7d7d7 100%
	  );
	  background-size: 400% 400%;
	  color: #333;
	  text-align: left;
	  border: 1px solid #aaa;
	  border-radius: 10px;
	  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), inset 0 2px 4px rgba(255, 255, 255, 0.5);
	  animation: metallic-shine 3s linear infinite;
	}

	/* Text Style */
	.metallic-section h2 {
	  color: #555;
	  font-family: 'Montserrat', sans-serif;
	  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5), 0 -1px 2px rgba(0, 0, 0, 0.3);
	}

	/* Animation for the Metallic Shine Effect */
	@keyframes metallic-shine {
	  0% {
		background-position: 0% 50%;
	  }
	  100% {
		background-position: 100% 50%;
	  }
}

#chatbot-container {
    position: fixed;
    top: 0px;
    right: -100vw;
	width: 100vw; /* Pleine largeur pour mobile */
    max-width: 400px; /* Largeur maximale pour desktop */
    height: 100%;
    z-index: 3000;

	overflow-y: auto;
		border-radius: 10px;
}




/* Par défaut, le chatbot est hors de l'écran à droite */
#chatbot-window {
    position: fixed;
    top: 0;
    right: -100vw; /* Hors de l'écran */
    width: 100vw; /* Pleine largeur pour mobile */
    max-width: 400px; /* Largeur maximale pour desktop */
    height: 100%;
    background-color: #ffffff; /* Fond blanc moderne */
    border-radius: 20px; /* Arrondir les coins */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Ombre subtile */
    display: flex;
	overflow-y: auto;
    flex-direction: column;
    z-index: 3000;
    transition: right 0.3s ease; /* Transition fluide */
}


/* Quand le chatbot est visible */
#chatbot-window.open {
    right: 0; /* Le chatbot devient visible */
}

.chatbot-section {
    display: none; /* Masqué par défaut */
}

.chatbot-section.active {
    display: block; /* Affiché uniquement lorsque sélectionné */
}

.chatbot-option {
    display: inline-block;
    margin: 10px 5px;
    padding: 10px 20px;
    background-color: #1E3A5F; /* Couleur principale */
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.chatbot-option:hover {
    background-color: #8AB68F; /* Couleur au survol */
    transform: scale(1.05);
}


.chatbot-option:active {
    background-color: #1C5670; /* Couleur active */
}



/* Header du chatbot */
#chatbot-header {
    background-color: #1e3a5f; /* Couleur moderne */
    color: #ffffff;
    font-size: 16px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* Conteneur général des messages */
#chatbot-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Style général pour chaque message */
.chat-message {
    max-width: 70%;
    padding: 10px 15px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
    position: relative;
    margin: 5px 0;
    display: inline-block;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	word-wrap: break-word;
	opacity: 0;
	transform: translateY(10px);
	animation: message-slide-in 0.3s ease forwards;
}

@keyframes message-slide-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Message de l'utilisateur (aligné à droite) */
.chat-message.user {
    align-self: flex-end;
    background-color: #1E3A5F;
    color: #FFFFFF;
    border-top-right-radius: 18px;
    border-bottom-right-radius: 5px;
}

/* Pointe en forme de virgule pour utilisateur */
.chat-message.user::before {
    content: '';
    position: absolute;
    bottom: 2px; /* Ajustement précis de la position verticale */
    right: -10px; /* Décalage horizontal par rapport à la bulle */
    width: 14px;
    height: 14px;
    background-color: #ffffff;
    border-radius: 50%; /* Cercle parfait pour créer la base de la virgule */
    clip-path: ellipse(100% 50% at 50% 50%); /* Transformation pour un effet de "virgule" */
    box-shadow: -2px 2px 0 #F5F2E7; /* Relie proprement à la bulle */
}

/* Message de l'assistant (aligné à gauche) */
.chat-message.assistant {
    align-self: flex-start;
    background-color: #A3CFA0;
    color: #FFFFFF;
    border-top-left-radius: 18px;
    border-bottom-left-radius: 5px;
}

/* Pointe en forme de virgule pour assistant */
.chat-message.assistant::before {
    content: '';
    position: absolute;
    bottom: 2px; /* Ajustement précis de la position verticale */
    left: -10px; /* Décalage horizontal par rapport à la bulle */
    width: 14px;
    height: 14px;
    background-color: #ffffff;
    border-radius: 50%;
    clip-path: ellipse(100% 50% at 50% 50%); /* Transformation pour un effet de "virgule" */
    box-shadow: 2px 2px 0 #F5F2E7; /* Relie proprement à la bulle */
}


/* Input et bouton pour envoyer le message */
#chatbot-input-container {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background-color: #f1f1f1; /* Fond clair */
    border-top: 1px solid #ddd;
}

#chatbot-input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 20px;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    outline: none;
    font-size: 14px;
}

#chatbot-send {
    margin-left: 10px;
    background-color: #1e3a5f; /* Couleur principale */
    color: white;
    border: none;
    border-radius: 50%; /* Bouton rond */
    width: 40px; /* Taille du bouton */
    height: 40px; /* Taille du bouton */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}


#chatbot-close {
	float: right; 
	background-color: #1e3a5f;
	border: none; 
	cursor: pointer; 
	margin-right: 10px;
}

#chatbot-send:hover {
    background-color: #527ba0; /* Couleur au survol */
}

#chatbot-send svg {
    width: 24px;
    height: 24px;
    fill: white; /* Couleur de l'icône */
}



@media (max-width: 768px) {
    #click-to-call-button {
        display: block;
    }
}

@media (min-width: 769px) {
    #click-to-call-button {
        display: none;
    }
}

#cookie-banner {
  display: none; /* Par défaut masqué, affiché avec JS */
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #1E3A5F; /* Couleur de fond du bandeau */
  color: white; /* Couleur du texte */
  padding: 20px;
  text-align: center;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2); /* Ombre subtile */
  z-index: 1000; /* Toujours au-dessus */
  font-size: 16px;
}

#cookie-banner p {
  margin: 0 0 10px; /* Espacement entre texte et boutons */
}

#cookie-banner a {
  color: #A3CFA0;
  text-decoration: underline;
}

#cookie-banner button {
  margin: 5px;
  padding: 10px 15px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

#cookie-banner #accept-all-cookies {
  background: #A3CFA0;
  color: white;
}

#cookie-banner #accept-all-cookies:hover {
  background: #8AB68F;
  transform: scale(1.05);
}

#cookie-banner #customize-cookies {
  background: white;
  color: #1E3A5F;
  border: 1px solid #1E3A5F;
}

#cookie-banner #customize-cookies:hover {
  background: #F5F2E7;
  transform: scale(1.05);
}

#cookie-preferences-icon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: #1E3A5F; /* Couleur de fond */
  color: white; /* Couleur de l'icône */
  border-radius: 50%; /* Forme ronde */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, transform 0.2s ease;
  z-index: 1001; /* Toujours visible au-dessus */
}

#cookie-preferences-icon:hover {
  background-color: #8AB68F;
  transform: scale(1.1);
}

#cookie-preferences-icon svg {
  width: 24px; /* Taille de l'icône */
  height: 24px;
  fill: white; /* Couleur de l'icône SVG */
  transition: fill 0.3s ease; /* Transition douce */
}

#cookie-preferences-icon:hover svg {
  fill: #1E3A5F; /* Couleur de l'icône au survol */
}

#cookie-preferences-modal {
  display: none; /* Masqué par défaut, activé via JS */
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%; /* Largeur mobile-friendly */
  max-width: 400px; /* Largeur maximale */
  background: white; /* Fond blanc */
  border: 1px solid #ccc; /* Bordure légère */
  border-radius: 8px; /* Coins arrondis */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Ombre subtile */
  z-index: 1002; /* Au-dessus de tout */
  padding: 20px;
}

#cookie-preferences-modal h2 {
  margin-top: 0; /* Pas de marge supérieure */
  font-size: 18px;
  color: #1E3A5F;
}

#cookie-preferences-modal form {
  display: flex;
  flex-direction: column;
  gap: 15px; /* Espacement entre les éléments */
}

#cookie-preferences-modal label {
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 10px; /* Espacement entre le texte et la case */
}

#cookie-preferences-modal input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

#cookie-preferences-modal button {
  padding: 10px 15px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

#cookie-preferences-modal button[type="submit"] {
  background: #A3CFA0;
  color: white;
}

#cookie-preferences-modal button[type="submit"]:hover {
  background: #8AB68F;
  transform: scale(1.05);
}

#cookie-preferences-modal button[type="button"] {
  background: white;
  color: #1E3A5F;
  border: 1px solid #1E3A5F;
}

#cookie-preferences-modal button[type="button"]:hover {
  background: #F5F2E7;
  transform: scale(1.05);
}

#cookie-preferences-modal {
  opacity: 0;
  visibility: hidden;
  display: block; 
  position: fixed; 
  top: 50%; 
  left: 50%; 
  transform: translate(-50%, -50%); 
  width: 90%; 
  max-width: 400px; 
  background: white; 
  border: 1px solid #ccc; 
  border-radius: 8px; 
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
  z-index: 1001; 
  padding: 20px;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#cookie-preferences-modal.show {
  opacity: 1;
  visibility: visible;
}

#floating-buttons {
  position: fixed;
  bottom: 80px; /* Ajustez selon la position du chatbot */
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px; /* Espace entre les boutons */
  z-index: 1000; /* Toujours visible au-dessus */
}

#floating-buttons div {
  width: 50px;
  height: 50px;
  background-color: #1E3A5F; /* Couleur du fond */
  border-radius: 50%; /* Boutons circulaires */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

#floating-buttons div:hover {
  background-color: #8AB68F; /* Couleur au survol */
  transform: scale(1.1); /* Zoom au survol */
}

#floating-buttons div svg {
  width: 24px;
  height: 24px;
  fill: white; /* Couleur de l'icône */
}

#chatbot-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Fond semi-transparent */
    z-index: 1000;
    visibility: hidden; /* Caché par défaut */
    opacity: 0;
    transition: visibility 0.3s, opacity 0.3s; /* Transition fluide */
}

#chatbot-overlay.active {
    visibility: visible;
    opacity: 1;
}

/* Animation de swipe indicatif */
#swipe-hint {
            position: fixed;
			top:20vh;
			left: 0;
            width: 100vw; /* Largeur de la page */
            height: 200px;
            overflow: hidden;
        }

        .circle {
            position: absolute;
            top: 50%; /* Centré verticalement */
            left: 0; /* Départ à gauche */
            transform: translate(-50%, -50%); /* Centré par rapport à lui-même */
            width: 30px; /* Taille du cercle */
            height: 30px;
            background-color: rgba(93, 100, 109, 0.5); /* Couleur initiale */
            border-radius: 50%;
            box-shadow: 0 0 20px 10px rgba(30, 58, 95, 0.2); /* Flou autour */
            animation: swipe-motion 4s infinite ease-in-out; /* Animation fluide */
        }

        /* Animation pour le mouvement du cercle */
        @keyframes swipe-motion {
            0% {
                transform: translateX(20vw) scale(1); /* Départ à gauche */
                opacity: 0;
                box-shadow: 0 0 20px 10px rgba(30, 58, 95, 0); /* Flou invisible */
            }
            15% {
                transform: translateX(20vw) scale(1.2); /* Léger zoom et déplacement */
                opacity: 1;
                box-shadow: 0 0 30px 15px rgba(30, 58, 95, 0.5); /* Flou visible */
            }
            35% {
                transform: translateX(80vw) scale(1.2); /* Vers 80% de la largeur */
                opacity: 1;
                box-shadow: 0 0 30px 15px rgba(30, 58, 95, 0.5); /* Flou visible */
            }
            50% {
                transform: translateX(80vw) scale(1); /* Arrivée à droite */
                opacity: 0;
                box-shadow: 0 0 20px 10px rgba(30, 58, 95, 0); /* Flou estompé */
            }
            65% {
                transform: translateX(80vw) scale(1.2); /* Retour léger */
                opacity: 1;
                box-shadow: 0 0 30px 15px rgba(30, 58, 95, 0.5); /* Flou visible */
            }
            85% {
                transform: translateX(20vw) scale(1.2); /* Retour vers la gauche */
                opacity: 1;
                box-shadow: 0 0 30px 15px rgba(30, 58, 95, 0.5); /* Flou visible */
            }
            100% {
                transform: translateX(20vw) scale(1); /* Retour au départ */
                opacity: 0;
                box-shadow: 0 0 20px 10px rgba(30, 58, 95, 0); /* Flou invisible */
            }
        }

#swipe-message {
    position: fixed;
    top: 40vh;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 14px;
    opacity: 0;
    z-index: 2500;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#swipe-message.show {
    opacity: 1;
}

#click-to-call-button {
position :fixed;
bottom: 10px;
left: 10px;
    display: flex; /* Active le mode flexbox */
    align-items: center; /* Centre verticalement */
    justify-content: center; /* Centre horizontalement */
    background-color: #A3CFA0; /* Couleur de fond (si nécessaire) */
    border-radius: 50%; /* Bouton rond */
    width: 50px; /* Largeur du bouton */
    height: 50px; /* Hauteur du bouton */
	z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Optionnel : ombre portée */
    cursor: pointer; /* Change le curseur au survol */
    transition: transform 0.3s ease, background-color 0.3s ease; /* Transitions fluides */
}

#click-to-call-button:hover {
    transform: scale(1.1); /* Zoom léger au survol */
    background-color: #8AB68F; /* Couleur au survol */
}

#click-to-call-button svg {
    fill: white; /* Couleur du symbole */
    width: 24px; /* Taille du symbole */
    height: 24px; /* Taille du symbole */
}
	
#chatbot-button {
position :fixed;
bottom: 10px;
right: 10px;
    display: block; /* Active Flexbox */
    align-items: center; /* Centre verticalement */
    justify-content: center; /* Centre horizontalement */
    background-color: #1E3A5F; /* Couleur de fond */
    color: white; /* Couleur du texte (si nécessaire) */
    border: none; /* Supprime les bordures */
    border-radius: 50%; /* Bouton rond */
    width: 50px; /* Largeur du bouton */
    height: 50px; /* Hauteur du bouton */
	z-index: 1000;
    cursor: pointer; /* Change le curseur au survol */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Ombre pour le style */
    transition: transform 0.3s ease, background-color 0.3s ease; /* Transition fluide */
    padding: 0; /* Supprime tout espace intérieur */
}

#chatbot-button svg {
    width: 24px; /* Taille du symbole */
    height: 24px; /* Taille du symbole */
    fill: white; /* Couleur du symbole */
}

#chatbot-button:hover {
    background-color: #8AB68F; /* Couleur au survol */
    transform: scale(1.1); /* Zoom léger au survol */
}

/* Conteneur pour les trois points */
.dots-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px; /* Espace entre les points */
    height: 20px;
}

/* Style des points */
.dots-container .dot {
    width: 8px;
    height: 8px;
    background-color: #1E3A5F; /* Couleur des points */
    border-radius: 50%; /* Forme ronde */
    animation: blink 1.5s infinite; /* Animation clignotante */
    animation-fill-mode: both;
}

/* Délais différents pour chaque point */
.dots-container .dot:nth-child(1) {
    animation-delay: 0s;
}
.dots-container .dot:nth-child(2) {
    animation-delay: 0.2s;
}
.dots-container .dot:nth-child(3) {
    animation-delay: 0.4s;
}

/* Animation clignotante */
@keyframes blink {
    0%, 100% {
        opacity: 0.2;
    }
    50% {
        opacity: 1;
    }
}

		/* Bouton principal */
.action-button {
    background-color: var(--primary-color);
    color: var(--accent-color);
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.action-button:hover {
    background-color: var(--secondary-color);
    transform: scale(1.05);
}




:root {
  /* Variables globales */
  --modal-bg-overlay: rgba(0, 0, 0, 0.5); /* Fond semi-transparent */
  --modal-bg-content: #ffffff; /* Fond du contenu */
  --modal-border-radius: 8px; /* Arrondi des coins */
  --modal-header-bg: #1E3A5F; /* Couleur d'en-tête */
  --modal-header-color: #ffffff; /* Couleur du texte d'en-tête */
  --modal-button-bg: #A3CFA0; /* Boutons principaux */
  --modal-button-color: #ffffff; /* Couleur des boutons */
  --modal-button-hover-bg: #8AB68F; /* Couleur au survol */
  --modal-cancel-bg: #ccc; /* Bouton Annuler */
  --modal-cancel-hover-bg: #ddd; /* Couleur au survol du bouton Annuler */
  --modal-close-color: #EB0606; /* Couleur de la croix */
  --modal-close-hover-color: #A3CFA0; /* Couleur au survol de la croix */
  --input-bg: #f9f9f9; /* Fond des champs */
  --input-border: #ddd; /* Bordure des champs */
  --input-focus-border: #1E3A5F; /* Bordure en focus */
  --text-color: #333; /* Couleur du texte */
  --label-color: #555; /* Couleur des labels */
}

/* Overlay de la modale */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--modal-bg-overlay);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  opacity: 0;
  visibility: hidden;
}

/* Afficher la modale */
.modal-overlay.active {
  display: flex;
  opacity: 1;
  visibility: visible;
}

/* Contenu principal de la modale */
.modal-content {
  background-color: var(--modal-bg-content);
  border-radius: var(--modal-border-radius);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  padding: 20px;
  width: 90%;
  max-width: 500px; /* Largeur maximale */
  max-height: 90%; /* Empêche de dépasser l'écran */
  display: flex;
  flex-direction: column; /* Structure verticale */
  animation: modal-slide-in 0.3s ease forwards;
}

/* Animation d'apparition */
@keyframes modal-slide-in {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* En-tête de la modale */
.modal-header {
  background-color: var(--modal-header-bg);
  color: var(--modal-header-color);
  font-size: 18px;
  font-weight: bold;
  padding: 15px;
  border-top-left-radius: var(--modal-border-radius);
  border-top-right-radius: var(--modal-border-radius);
  margin: -20px -20px 15px;
}

/* Corps de la modale */
.modal-body {
  font-size: 14px;
  color: var(--text-color);
  flex: 1;
  margin-bottom: 10px;
   max-height: 400px; /* Limite la hauteur du contenu de la modale */
    overflow-y: auto; /* Ajoute une barre de défilement interne */
}

/* Pied de la modale */
.modal-footer {
  display: flex;
  justify-content: space-between; /* Les boutons sont espacés */
  background-color: var(--modal-bg-content); /* Fond identique */
  padding: 10px;
  border-top: 1px solid var(--input-border); /* Ligne de séparation pour démarquer les boutons */
  position: sticky; /* Les boutons restent visibles même si on scrolle */
  bottom: 0;
}

/* Boutons dans le pied */
.modal-footer button {
  padding: 10px 15px;
  font-size: 14px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Bouton principal */
.modal-footer .confirm {
  background: var(--modal-button-bg);
  color: var(--modal-button-color);
}

.modal-footer .confirm:hover {
  background: var(--modal-button-hover-bg);
}

/* Bouton Annuler */
.modal-footer .cancel {
  background: var(--modal-cancel-bg);
  color: #333;
}

.modal-footer .cancel:hover {
  background: var(--modal-cancel-hover-bg);
}

/* Bouton de fermeture */
.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 20px;
  color: var(--modal-close-color);
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: var(--modal-close-hover-color);
}

/* Styles des éléments courants dans la modale */

/* Titres */
.modal-body h2,
.modal-body h3 {
  font-family: Arial, sans-serif;
  color: var(--text-color);
  margin-bottom: 10px;
}

/* Texte */
.modal-body p {
  line-height: 1.6;
  margin-bottom: 15px;
}

/* Liens */
.modal-body a {
  color: var(--modal-header-bg);
  text-decoration: underline;
}

.modal-body a:hover {
  color: var(--modal-button-hover-bg);
}

/* Champs input */
.modal-body input[type="number"],
.modal-body input[type="text"],
.modal-body input[type="email"],
.modal-body input[type="password"],
.modal-body select,
.modal-body textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid var(--input-border);
    border-radius: 5px;
    background: var(--input-bg);
    font-size: 14px;
}

.modal-body input:focus,
.modal-body textarea:focus,
.modal-body select:focus {
    border-color: var(--input-focus-border);
    outline: none;
}


/* Checkbox et radios */
.modal-body input[type="checkbox"],
.modal-body input[type="radio"] {
  margin-right: 10px;
}

.modal-body label {
  font-size: 14px;
  color: var(--label-color);
  display: block;
  margin-bottom: 5px;
}

/* Listes */
.modal-body ul,
.modal-body ol {
  margin: 10px 0;
  padding-left: 20px;
}

.modal-body li {
  margin-bottom: 5px;
}

/* Conteneur pour l'animation de chargement */
/* Style de la modale */
        .modal-loading {
            display: none;
            position: fixed;
			top:0;
			left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(255, 255, 255, 0.4); /* Fond semi-transparent */
            z-index: 9999;
			border-radius: 6px;
            justify-content: center;
            align-items: center;
        }

        .modal-loading.active {
            display: block; /* Affiche la modale */
        }

        /* Style de l'animation */
        .loading-spinner {
		position: relative;
		top: 50%;
		justify-content: center;
		display: flex;
        gap: 10px;
        }

        .loading-spinner .circle {
		position: relative;
            width: 15px;
            height: 15px;
            background-color: var(--primary-color);
            border-radius: 50%;
            animation: bounce 1.5s infinite ease-in-out;
        }

        .loading-spinner .circle:nth-child(2) {
            animation-delay: -0.3s;
        }

        .loading-spinner .circle:nth-child(3) {
            animation-delay: -0.6s;
        }

        @keyframes bounce {
            0%, 80%, 100% {
                transform: scale(0.8);
                opacity: 0.5;
            }
            40% {
                transform: scale(1.2);
                opacity: 1;
            }
        }
#loan-chart {
    display: block;
    max-width: 100%; /* S'assure que le graphe s'adapte à la largeur */
    height: 250px; /* Hauteur fixe pour éviter que la modale ne s'étire */
    margin: 20px 0;
}

.form-row {
  display: flex;
  flex-wrap: wrap; /* Permet aux champs de passer à la ligne si l'espace est insuffisant */
  gap: 10px; /* Espacement entre les champs */
  margin-bottom: 15px;
}

.form-row > label {
  flex: 1; /* Tous les champs prennent un espace égal par défaut */
  display: flex;
  flex-direction: column; /* Alignement vertical du label et du champ */
  font-size: 14px;
  color: var(--label-color);
}

.form-row > input {
  flex: 1; /* Le champ prend tout l'espace disponible */
}

		/* Global Section Styles */
/* Espacement global entre les sections */
section {
    padding: 50px 20px;
    margin: 0 auto;
    max-width: 1200px;
	opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}


/* State after entering the viewport */
section.visible {
    opacity: 1;
    transform: translateY(0);
}


/* Alternance des couleurs de fond */
section:nth-child(even) {
    background-color: #f5f2e7; /* Beige clair pour sections paires */
}

section:nth-child(odd) {
    background-color: #ffffff; /* Blanc pour sections impaires */
}

/* Ombres légères sur les cartes ou contenus */
.card, .property-item, .service-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Douce ombre */
    padding: 20px;
    margin-bottom: 20px;
}

/* Titres des sections */
section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #1E3A5F; /* Bleu foncé */
    border-bottom: 3px solid #A3CFA0; /* Ligne colorée sous le titre */
    display: inline-block;
    padding-bottom: 5px;
}

/* Sous-titres ou paragraphes */
section p {
    color: #666;
    line-height: 1.6;
    font-size: 1.1rem;
}

/* Séparateurs entre sections */
section + section::before {
    content: '';
    display: block;
    height: 4px;
    width: 80px;
    background-color: #A3CFA0;
    margin: 0 auto 30px auto;
    border-radius: 2px;
}


/* Services Grid */
.services-grid, .property-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.hero-image img {
max-width: 100%;
    height: auto;
}




/* Section Services */
.services {
    text-align: center;
    padding: 50px 20px;
    background-color: #f5f2e7;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Titres */
.services h2 {
    font-size: 2.5rem;
    color: #1E3A5F;
    margin-bottom: 20px;
}

.services p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
}

/* Grid Layout */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Service Item */
.service-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Icones des services */
.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background-color: #A3CFA0;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-icon img {
    width: 40px;
    height: 40px;
}

/* Titres des services */
.service-item h3 {
    font-size: 1.5rem;
    color: #1E3A5F;
    margin-bottom: 15px;
}

/* Description des services */
.service-item p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Boutons */
.service-item .btn {
    text-decoration: none;
    background-color: #EF4135;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.service-item .btn:hover {
    background-color: #c73229;
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .services h2 {
        font-size: 2rem;
    }

    .services p {
        font-size: 1rem;
    }

    .service-item h3 {
        font-size: 1.3rem;
    }

    .service-item p {
        font-size: 0.9rem;
    }
}






/* Buttons */
.btn {
    text-decoration: none;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 5px;
    display: inline-block;
}

.btn-primary {
    background-color: #A3CFA0;
    color: white;
}

.btn-primary:hover {
    background-color: #91b98b;
}

.btn-secondary {
    background-color: white;
    color: #1E3A5F;
    border: 2px solid #1E3A5F;
}

.btn-secondary:hover {
    background-color: #f5f2e7;
}

/* Testimonials */
.testimonials blockquote {
    font-style: italic;
    background: #f9f9f9;
    padding: 20px;
    border-left: 5px solid #A3CFA0;
}

/* Section : Biens en vedette */
.properties {
    padding: 50px 20px;
    margin: 0 auto;
    max-width: 1200px;
    text-align: center;
}

/* Carousel Container */
.carousel {
    position: relative;
    overflow: hidden; /* Cache les éléments qui sortent des limites */
    width: 100%; /* S'assure que le carrousel occupe toute la largeur */
    margin-top: 20px;
}

/* Track contenant les biens */
.carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.3s ease-in-out;
}

/* Article (bien immobilier) */
.property-item {
    flex: 0 0 300px; /* Largeur de chaque bien */
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: left;
    padding: 15px;
}

.property-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
	 transition: transform 0.3s ease;
	
}

.property-item:hover img {
    transform: scale(1.05);
}

/* Badge exclusivité ou nouveauté */
.property-item::before {
    content: "Exclusivité";
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #EF4135;
    color: #fff;
    padding: 5px 10px;
    font-size: 0.8rem;
    border-radius: 3px;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Controls */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 10;
	transition: transform 0.2s ease-in-out;
}

.carousel-control:hover {
    transform: scale(1.1);
}

.carousel-control.prev {
    left: 10px;
}

.carousel-control.next {
    right: 10px;
}

.carousel-control:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #A3CFA0; /* Vert clair */
    color: #fff;
}

.btn-primary:hover {
    background-color: #91b98b; /* Vert légèrement plus foncé */
    transform: translateY(-3px); /* Légère élévation au survol */
}

.btn-secondary {
    background-color: #fff;
    color: #1E3A5F; /* Bleu foncé */
    border: 2px solid #1E3A5F;
}

.btn-secondary:hover {
    background-color: #f5f2e7; /* Beige clair */
    color: #1E3A5F;
    transform: scale(1.05); /* Zoom léger au survol */
}

/* Conteneur des boutons dans la section Hero */
.hero-buttons {
    display: flex;               /* Activer Flexbox */
    flex-wrap: wrap;             /* Permettre le retour à la ligne sur mobile */
    justify-content: center;     /* Centre horizontalement */
    gap: 15px;                   /* Espacement entre les boutons */
    margin-top: 20px;
}

.hero-buttons .btn {
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
}

/* Boutons sur mobile */
@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;  /* Empile les boutons verticalement sur mobile */
        align-items: center;     /* Centre les boutons verticalement */
        gap: 10px;               /* Réduit l’espacement sur mobile */
    }

    .hero-buttons .btn {
        width: 90%;             /* Les boutons prennent presque toute la largeur */
        max-width: 300px;       /* Largeur maximale des boutons */
    }
}
.carousel-track {
    cursor: grab;
}

.carousel-track:active {
    cursor: grabbing;
}



#hero-section {
  background-image: url('../image/Photo_fond_zen.JPG'); /* Chemin de l'image */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100vh; /* Pleine hauteur de la fenêtre */
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

#hero-section h1 {
	font-weight: 2000; /* Gras très épais */
	text-shadow: 
					-1px -1px 0 white, 
					1px -1px 0 white, 
					-1px 1px 0 white, 
					1px 1px 0 white;
	font-size: 38px;
}

#hero-section p {
	font-weight: 1000; /* Gras très épais */
	color: white;
}

.hero-content {
	max-width: 600px; /* Limite la largeur du contenu */
	padding: 20px; /* Ajoute de l’espace intérieur */
	background-color: rgba(0, 0, 0, 0.2);  /*Fond semi-transparent pour lisibilité */
	border-radius: 10px; /* Coins arrondis */
}
@media (max-width: 768px) {
  #hero-section {
    background-position: top;
    height: auto; /* Ajuste la hauteur à son contenu */
  }
}

/* Styles pour l'aside orienté blog */
.blog-aside {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-family: 'Arial', sans-serif;
}

/* Titre principal */
.blog-aside h2 {
    font-size: 22px;
    color: #0055A4;
    text-align: center;
    margin-bottom: 20px;
}

/* Grid container */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* Articles */
.blog-item {
    background-color: #f9f9f9;
    border-radius: 5px;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.blog-item:hover {
    transform: translateY(-5px);
}

/* Image */
.blog-image {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
}

/* Titre des articles */
.blog-item h3 {
    font-size: 18px;
    margin: 10px 0;
    color: #333;
}

.blog-item h3 a {
    text-decoration: none;
    color: #0055A4;
}

.blog-item h3 a:hover {
    text-decoration: underline;
}

/* Description */
.blog-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Section Bannière Blog */
.blog-banner {
    margin: 50px auto;
    position: relative;
    max-width: 1200px;
    text-align: center;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Image de fond de la bannière */
.blog-banner-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Conteneur pour le contenu */
.blog-banner-container {
    position: relative;
    background: linear-gradient(to bottom, rgba(0, 85, 164, 0.7), rgba(239, 65, 53, 0.7)); /* Dégradé moderne */
    color: #fff;
    padding: 30px 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Texte de la bannière */
.blog-banner-content h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.blog-banner-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* Bouton de la bannière */
.blog-banner-btn {
    background-color: #EF4135; /* Rouge moderne */
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    padding: 10px 25px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.blog-banner-btn:hover {
    background-color: #c73229;
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-banner-content h3 {
        font-size: 1.8rem;
    }

    .blog-banner-content p {
        font-size: 1rem;
    }

    .blog-banner-btn {
        font-size: 1rem;
        padding: 10px 20px;
    }
}

/* Ajout d'effets de variation sur les animations */
[data-animate="slide-left"] {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

[data-animate="slide-up"] {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

[data-animate="slide-right"] {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

[data-animate="slide-down"] {
    opacity: 0;
    transform: translateY(-50px);
    transition: all 0.8s ease;
}

[data-animate].animate {
    opacity: 1;
    transform: translateX(0) translateY(0);
}

/* Alternance de couleurs de fond pour différencier les services */
.service-item:nth-child(even) {
    background-color: #f9f9f9;
}

.service-item:nth-child(odd) {
    background-color: #ffffff;
}




.service-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform; /* Amélioration des performances */
}

.service-item:active {
    transform: scale(0.95); /* Réduit légèrement la taille */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); /* Accentue l'effet */
}

.service-item:hover,
.service-item:active {
    animation: pulse 0.5s ease;
}

/* Animation pulser */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Cercle vert pour le logo */
.service-circle {
    width: 120px;
    height: 120px;
    background-color: #A3CFA0; /* Vert clair */
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* Logo centré dans le cercle */
.service-circle img {
    max-width: 150%;
    max-height: 150%;
    transition: transform 0.3s ease; /* Transition pour un effet doux */
}

/* Agrandissement du logo au survol */
.service-circle:hover img {
    transform: scale(1.2); /* Agrandit légèrement le logo */
}

/* Titre H3 */
.service-item h3 {
    font-size: 1.5rem;
    color: #1E3A5F; /* Bleu foncé */
    margin: 15px 0 10px;
}

/* Texte de description */
.service-item p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 15px;
}

/* Bouton d'action */
.service-item .btn {
    font-size: 1rem;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    background-color: #1E3A5F; /* Bleu foncé */
    color: #fff;
    transition: background-color 0.3s ease;
}

.service-item .btn:hover {
    background-color: #163251;
}