body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

h1 {
    display: flex;
    font-size: 2em;
    margin-block-start: 0.67em;
    margin-block-end: 0.67em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
    unicode-bidi: isolate;
	align-items:center;
}

header {
  background: #white;
  color: #black;
  padding: 10px 0;
  font-weight:bold;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

header a:hover{
	background-color:#e84f1c;
	padding:30px;
}

header h1 {
  margin: 0;
  color:#e84f1c;
}

header nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

header nav ul li {
  margin-left: 20px;
}

header nav ul li a {
  color: #000;
  text-decoration: none;
  padding: 30px;
}

.hero {
  background: #e84f1c;
  color: #black;
  text-align: center;
  padding:20px;
}

.hero .btn {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 10px;
  background: #000;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
}

.hero .btn:hover {
  background: #0056b3;
}

section {
  padding: 40px 20px;
  text-align: center;
}

.header-content {
  display: flex;
  justify-content: center; /* Centre horizontalement */
  align-items: center; /* Centre verticalement */
  gap: 20px;
  height: 100%; /* Assure que le conteneur prend toute la hauteur */
}

.header-table {
  display: flex;
  flex-direction: column; /* Met les éléments en colonne */
  justify-content: center; /* Centre verticalement */
  text-align: left; /* Centre le texte */
  height: 100%; /* Remplit toute la hauteur */
}

.services-container {
  display: flex;
  justify-content: center;
  gap: 20px; 
}

.service-header {
  background: #444;
  color: #fff;
  padding: 1px 1px;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}

.service-header h3 {
  font-size: 1.5em;
  margin-top: 5px;
}

.service{
	width:100%;
}

.service ul {
  list-style-position: inside; /* Garde les puces bien alignées */
  display: flex;
  flex-direction: column; /* Force un alignement vertical */
  align-items: center; /* Centre la liste horizontalement */
  padding: 0;
}

.service li{
	list-style-type:none;
	text-align:left;
	line-height:2;
	width: fit-content;
}

.service p {
  background: #eaeaea; 
  padding: 15px;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  color: #000; 
  margin:0;
  word-wrap:break-word;
}

.link-gallery {
  display: block;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.link-gallery img {
  width: 250px;  
  cursor: pointer;
}

.link-gallery img:hover {
  transform: scale(1.05);
}

/*************/
/* Diaporama */
/*************/

.slideshow-container {
  position: relative;
  max-width: 800px;
  margin: auto;
  overflow: hidden;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content : center;
  background-color: transparent;
}

.slideshow-container img {
  max-width: 100%;
  max-height:100%;
  object-fit: cover;
  border-radius: 10px;
}

/* Boutons de navigation */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 24px;
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

.prev:hover, .next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Footer */
footer {
  background: #e84f1c; /* Fond orange */
  color: white; /* Texte en blanc */
  text-align: center; /* Centre le texte */
  padding: 15px 0; /* Ajoute de l’espace en haut et en bas */
  font-size: 16px;
}

/* Ajustement du texte */
footer p {
  margin: 0; /* Supprime la marge par défaut */
}

/*************************/
/* Formulaire de contact */
/*************************/

/* Conteneur du formulaire */
form {
  max-width: 500px; /* Largeur maximale du formulaire */
  margin: 0 auto; /* Centre le formulaire */
  padding: 20px;
  background: #f9f9f9; /* Fond légèrement gris */
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); /* Effet d'ombre */
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Labels */
form label {
  font-weight: bold;
  color: #333;
}

/* Champs de saisie */
form input,
form textarea {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  margin-bottom:10px;
  box-sizing: border-box;
}

/* Effet focus sur les champs */
form input:focus,
form textarea:focus {
  border-color: #e84f1c;
  outline: none;
  box-shadow: 0px 0px 5px rgba(232, 79, 28, 0.5);
}

/* Bouton d'envoi */
form button {
  background: #e84f1c;
  color: white;
  border: none;
  padding: 12px;
  font-size: 18px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

/* Effet hover sur le bouton */
form button:hover {
  background: #c93e16;
}

/* Alignement du reCAPTCHA */
.g-recaptcha {
  display: flex;
  justify-content: center;
  margin: 10px 0;
}

/******************/
/* Galerie        */
/******************/

.galerie {
	display: flex;
	flex-wrap: wrap; /* Permet le retour à la ligne si besoin */
	justify-content: center; /* Centre les images horizontalement */
	gap: 15px; /* Espacement entre les images */
}

.galerie img{
	height:250px;
}

.link-galerie{
	display: inline-block; /* Permet aux liens de s'aligner sur la même ligne */
	width: auto; /* Ajuste automatiquement la taille au contenu */
}

.link-galerie img{
	width: auto; 
	height: 250px;  
	object-fit: cover;
}

.exit{
	top:10px;
	right:10px;
	width:50px
}

.nav-left{
	left:10px;
	top:50%;
	transform:translateY(-50%);
	width:50px;
}

.nav-right{
	right:10px;
	top:50%;
	transform:translateY(-50%);
	width:50px;
}

.exit, .nav-left, .nav-right{
	position:absolute;
	cursor:pointer;
	z-index:10;
}

.exit img{
	width:10%;
	max-width:100px;
	height:auto;
	top:5px;
	right:5px;
}


.link-galerie{
	display:block;
	width:200px;
}

.link-galerie img{
	width:100%;
}

#lightbox{
	position:fixed;
	top:0;
	left:0;
	right:0;
	bottom:0;
	background:rgba(0,0,0,0.8);
	align-items:center;
	justify-content:center;
	display:none;
	flex-direction:column;
}

#lightbox.active{
	display:flex;
}

#lightbox img{
	max-height: 700px; /* Limite la hauteur à 500px */
	max-width:900px;
	width: auto; /* Ajuste automatiquement la largeur en fonction de la hauteur */
	object-fit: contain; /* Assure que l'image ne sera pas coupée */
}

/******************/
/* CSS Responsive */
/******************/

/* 🌍 Version Mobile : Pour les écrans de moins de 768px */
@media (max-width: 768px) {

  /* Header : Centrer les éléments */
  header .container {
    flex-direction: column;
    text-align: center;
  }
  
  header h1{
	  font-size:0.9em;
  }

  header h1 img {
    width: 120px; /* Réduire la taille du logo */
    height: auto;
  }

  /* Menu de navigation */
  header nav ul {
    flex-direction: column; /* Afficher les liens en colonne */
    padding: 0;
  }

  header nav ul li {
    margin: 10px 0;
  }

  /* Hero Section */
  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  /* Sections et Texte */
  .services-container,
  .projects-gallery,
  .header-content {
    flex-direction: column;
    gap: 15px;
  }

  .service {
    width: 100%;
  }
  
  .service ul {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centre la liste */
    width: 100%; /* Assure un alignement cohérent */
  }

  .service li {
    text-align: center; /* Centre le texte */
    width: 100%; /* Forcer une largeur uniforme */
  }

  /* Formulaire */
  form {
    max-width: 100%;
    padding: 15px;
  }

  /* Diaporama */
  .slideshow-container {
    height: 300px; /* Réduire la hauteur pour mobile */
  }

  .slideshow-container img {
    object-fit: contain; /* Ne pas couper les images */
  }

  /* Boutons du diaporama */
  .prev, .next {
    font-size: 18px;
    padding: 8px;
  }
  
  #realisations img{
	  width:300px;
  }
  
  #lightbox img {
	max-width: 90%; /* L'image prendra 90% de l'écran */
  }
  
  .exit img {
	max-width: 40px; /* Bouton plus petit sur mobile */
  }
}
}
