/* === STYLES GÉNÉRAUX === */
body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: #fff;
  color: #000;
  line-height: 1.6;
}

* {
  -webkit-overflow-scrolling: auto;
}

html, body {
  overflow-x: hidden;
}

/* === HEADER === */
header {
  background-image: url("photo/banniere.jpg");
  color: white;
  text-align: center;
  transition: transform 0.4s ease;
}

#main-header.hidden {
  transform: translateY(-100%); /* Fait glisser tout le header vers le haut */
  transition: transform 0.5s ease;
  opacity: 0;
}

.logo {
  padding: 15px 0;
}

.logo img {
  height: 220px;
}

.nav-menu {
  background: #292929;
  border-top: 1px solid #ff6600;
  border-bottom: 3px solid #ff6600;
  transition: box-shadow 0.3s ease;
}

.nav-menu ul {
  display: flex;
  justify-content: center;
  margin: 1px;
  padding: 0;
  list-style: none;
  /*border: 1px solid;
  border-color: silver transparent silver transparent;*/
}

.nav-menu a {
  display: block;
  padding: 12px 65px;
  color: #ff6600;
  text-decoration: none;
  transition: 0.3s;
  font-size: 16px;
  font-weight: bold;
  border: 1px solid;
  border-color: transparent silver transparent silver;
}

.nav-menu a:hover,
.nav-menu a.active {
  background: #ff6600;
  color: white;
}

.burger {
  display: none; /* caché sur grand écran */
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  padding: 0px 15px;
  background-color: #ff6600;
  border-radius: 10px;
  cursor: pointer;
  position: absolute;  /* permet de le placer précisément */
  top: 20px;           /* distance du haut du header */
  right: 30px;         /* collé à droite */
  z-index: 1001;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .burger {
    display: block; /* affiché sur mobile */
  }

  .nav-menu {
    position: absolute;
    top: 0px;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 15px 30px;
    transform: translateY(-100%);
    z-index: 999;
  }
  
.nav-menu ul {
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0px 30px;
    position: absolute;
    top: 245px;
    right: 0;
    transform: translateY(-200%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
	background: #292929;
	border-top: 3px solid #ff6600;
	border-bottom: 3px solid #ff6600;
  }

  .nav-menu.open ul{
    transform: translateY(0); /* le menu descend */
	opacity: 1;
  }

  .nav-menu a {
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
    #main-nav.sticky {
    position: static; /*menu etat normal - pas de sticky */
  }
}

/*-------------------------------------------------------------------*/
/* Effet d’ombre quand le menu devient fixe */
#main-nav.sticky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Pour éviter que le contenu passe sous le menu */
main {
  padding-top: 293px;
}

/* CARROUSEL */
.carousel {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background-color: #fce6d8;
}

.carousel-images {
  width: 40%;
  position: relative;
  aspect-ratio: 16 / 9;
}

/* .carousel img { */
  /* width: 100%; */
  /* display: none; */
  /* opacity: 1; */
  /* transition: opacity 1s ease-in-out; */
/* } */

.carousel img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease-in-out; /* 👈 fondu plus doux */
  z-index: 0;
}

/* .carousel img.active { */
  /* display: block; */
  /* opacity: 1; */
/* } */

.carousel img.active {
  opacity: 1;
  z-index: 1; /* l’image visible passe devant */
}

.carousel button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 20px;
  color: white;
  font-size: 30px;
  cursor: pointer;
  padding: 10px 15px;
  z-index: 10;
}

.carousel button:hover {
  color: #ff6600;
  background-color: #292929;
}

.prev { left: 25px; }
.next { right: 25px; }

/* === INTRO === */
.intro {
  text-align: left;
  padding: 40px 60px;
}

.intro h2 {
  font-size: 1.9em;
  margin-bottom: 0.3em;
  text-align: center;
  letter-spacing: 1px;
}

.intro h3 {
  font-size: 1.5em;
  letter-spacing: 1px;
  text-align: center;
}

/* --- SECTION SERVICES --- */
main {
  max-width: 80%;
  margin: auto;
  padding: 15px;
}

.services {
  text-align: center;
  padding: 10px 60px;
  background-color: #fff;
  border-top: 3px solid #ff6600;
  border-bottom: 3px solid #ff6600;
  padding-bottom: 25px;
}

.services h2 {
  color: #ff6600;
  font-size: 2.2em;
  margin-bottom: 40px;
  letter-spacing: 1px;
}

/* --- GRILLE DE SERVICES --- */
.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px 0px;
  justify-items: center;
  align-items: stretch;       /* force tous les items à la même hauteur */
  grid-auto-rows: 1fr;        /* chaque ligne a la même hauteur */
}

/* --- ÉLÉMENT DE SERVICE --- */
.service-item {
  background: #000; /* fond noir */
  border-radius: 15px;
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  width: 90%;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* équilibre le contenu verticalement */
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 25px rgba(255, 102, 0, 0.25);
  background: #111;
}

/* --- TITRE DE CHAQUE SERVICE --- */
.service-item h4 {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1em;
  color: #fff;
  margin-bottom: 10px;
  gap: 10px;
  text-transform: uppercase;
  text-align: center;
}

.service-item img {
  width: 55px;
  height: 55px;
  /* margin: -15px;  /*reduit l'espace entre icone et texte */
}

/* --- TEXTE DESCRIPTIF --- */
.service-item p {
  font-size: 0.95em;
  color: #ccc;
  margin: 0;
  flex-grow: 1;
}

/* --- BOUTON --- */
.btn {
  display: inline-block;
  margin-top: 30px;
  background: #ff6600;
  color: black;
  padding: 10px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-size:18px;
  font-weight: bold;
}

.btn:hover {
  background: #000;
  color: #ff6600;
  /* text-decoration: underline; */
}

/* --- RESPONSIVE --- */
@media (max-width: 1250px) {
  .service-grid {
    grid-template-columns: 1fr; /* 1 bloc par ligne sur mobile */
    grid-auto-rows: auto;       /* hauteur flexible sur mobile */
  }
  .service-item {
    height: auto;               /* laisse le contenu définir la hauteur */
  }
}

/* REALISATIONS */
.realisations {
  text-align: center;
  padding: 50px 20px;
  background-color: #ffffff;
}

.realisations h2 {
  font-size: 2em;
  color: #ff6600;
  margin-bottom: 30px;
}

.realisations-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1px; /* espace entre les images*/
}

/* --- IMAGE NORMALE --- */
.realisations-gallery img {
  width: calc(50% - 20px); /* 2 images par ligne */
  max-width: 600px; /* limite de taille */
  border-radius: 10px;
  transition: transform 1.3s ease, box-shadow 0.3s ease;
  object-fit: cover;
}

.realisations-gallery img:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

blockquote {
  font-style: italic;
  background: #f5f5f5;
  border-left: 4px solid #ff6600;
  padding: 1px;
  margin-top: 1px;
}

 .realisations-gallery figure {
  width: calc(50% - 20px);
  max-width: 600px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

/* --- FIGURE AVEC BLOCKQUOTE --- */
.realisations-quote {
  position: relative;
}

.realisations-quote img {
  display: block;
  width: 100%;
  height: auto;
  /* object-fit: cover; */
}

.realisations-quote blockquote {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding: 12px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-style: italic;
  font-size: 1.1em;
  line-height: 1.4;
  text-align: center;
  backdrop-filter: blur(3px);
  border-top: 2px solid #ff6600;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .realisations-gallery img,
  .realisations-gallery figure {
    width: 100%;
  }
  .realisations-quote blockquote {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 50%;           /* ✅ empêche de couvrir toute l’image */
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    font-size: 10px;
	box-sizing: border-box;
    overflow-y: auto;         /* ✅ scroll interne si texte trop long */
    margin: 0;
  }
   .realisations-quote {
    position: relative;
    overflow: hidden;
  }

}

/* BOUTON RETOUR EN HAUT */
#scrollTopBtn {
  display: flex;
  position: fixed;
  inset: auto 25px 20px auto;
  background-color: #ff6600;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  padding: 9px 16px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
  z-index: 99999;
}
@media (max-width: 600px) {
  #scrollTopBtn {
	inset: auto 15px 20px auto;
    font-size: 20px;
  }
}
@media (max-width: 390px) {
  #scrollTopBtn {
	inset: auto 25px 20px auto;
    font-size: 20px;
  }
}
body,
#main-header,
.carousel,
.services-grid,
.realisations,
.contact-grid {
  transform: none !important;
}





/* === FOOTER === */
footer {
  background: #292929;
  color: white;
  margin-top: 30px;
}

.footer-content {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  padding: 20px 15px;
  border-top: 3px solid #ff6600;
}

footer h5 {
  color: #ff6600;
  font-size: 16px;
  margin-bottom: 10px;
  text-align: left;
  /* text-decoration: underline #ff6600 */
}

footer a {
  color: #fff;
  text-decoration: none;
}

.social-footer{
	height:22px;
	margin-bottom:-5px;
	margin-right: 8px;
}

.sitemap {
  text-align: left; /* 👈 tout le bloc aligné à gauche */
}

.sitemap ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sitemap li {
  margin-bottom: 6px;
}

.sitemap a {
  color: white;
  text-decoration: none;
  transition: 0.3s;
}

.sitemap a:hover {
  color: #ff6600;
  text-decoration: underline #ff6600;
}

.footer-logo {
  height: 140px;
  margin-top: 10px;
}

.copyright {
  text-align: center;
  background: #292929;
  padding: 2px;
  font-size: 0.9em;
}

/* --- LOGO & CONTACT --- */
.contact, .sitemap, .social {
  min-width: 200px;
}

/* RESPONSIVE */
@media (max-width: 768px) {

  nav a {
    display: inline-block;
    margin: 5px 10px;
  }
  
   .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  footer h5 {
  text-align: center;
}

  .sitemap {
    text-align: center; /* 👈 redevient centré sur mobile */
  }

  .sitemap h5 {
    text-align: center;
  }

  .carousel button {
    font-size: 24px;
  }

  .intro, .services, .realisations {
    padding: 20px;
  }
}
