
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f4f4f4;
  scroll-behavior: smooth;
}

header {
  background-image: linear-gradient(to right, #0f2027, #203a43, #2c5364);
  color: white;
}

.entreprise-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.carousel-caption {
  background: rgba(0, 0, 0, 0.5);
  padding: 1rem;
  border-radius: 10px;
}

body {
  scroll-behavior: smooth;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f9f9f9;
}

section {
  padding: 60px 0;
}

header {
  background: linear-gradient(135deg, #0d1117 0%, #1f2937 100%);
  color: #fff;
  text-align: center;
}

h1, h2 {
  font-weight: bold;
}

.carousel-inner img {
  height: 75vh;
  object-fit: cover;
  filter: brightness(0.8);
}

.carousel-caption {
  background: rgba(0, 0, 0, 0.6);
  padding: 1rem;
  border-radius: 0.5rem;
}

#entreprises .card {
  cursor: pointer;
  border: none;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s;
  background-color: #ffffff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#entreprises .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

#entreprises .card img {
}

.navbar {
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
  font-weight: bold;
  font-size: 1.5rem;
}

.nav-link {
  font-weight: 500;
  transition: color 0.2s ease-in-out;
}

.nav-link:hover {
  color: #0dcaf0;
}

.modal-content {
  border-radius: 1rem;
}

.modal-header {
  background-color: #5cc4d7;
  color: white;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
}

footer {
  background-color: #212529;
  color: white;
  padding: 2rem 0;
  text-align: center;
}

@media (max-width: 767px) {
  .carousel-inner img {
    height: 50vh;
  }

  #entreprises .card img {
    height: 150px;
  }
}
#navbarBic {
  transition: top 0.4s ease-in-out;
  position: sticky;
  top: 0;
  z-index: 1030;
}
.header-hero {
  position: relative;
  height: 100vh;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
              url('https://images.unsplash.com/photo-1581093588401-c70b1e1b939d?auto=format&fit=crop&w=1500&q=80') no-repeat center center/cover;
}

.header-hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0.1);
}

.header-hero h1,
.header-hero p {
  z-index: 2;
}


@media (max-width: 768px) {
  section, header {
    min-height: auto;
    overflow: visible;
  }
}




/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  scroll-behavior: smooth;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Header avec image et fade */
.header-hero {
  position: relative;
  height: 100vh;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), 
              url('img/facade.png') center/cover no-repeat;
  text-shadow: 0 2px 10px rgba(0,0,0,0.7);
}

.header-hero h1 {
  font-size: 4rem;
  z-index: 2;
}

.header-hero .overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 1;
}

/* Section pleine hauteur */
section {
  min-height: 100vh;
  padding: 60px 0;
}

/* Alternance de couleurs de fond */
.section-alt-white {
  background-color: #ffffff;
  color: #000;
}

.section-alt-dark {
  background-color: #3C3C3C;
  color: #fff;
}

/* Navbar */
#navbarBic.navbar-hidden {
  transform: translateY(-100%);
  transition: transform 0.3s ease-in-out;
}

/* Carousel */
.carousel-item img {
  object-fit: cover;
  height: 75vh;
}

.carousel-caption {
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  padding: 1rem;
}

/* Cartes entreprises */
#entrepriseCards .card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

#entrepriseCards .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Modale entreprise */
.modal-body img {
  max-width: 100%;
  height: auto;
  margin-bottom: 15px;
}

/* Contact */
#contact {
  background: #f9f9f9;
  padding: 60px 15px;
}

.carousel-item img {
  width: 100%;
  height: auto; /* garde l'aspect ratio */
  max-height: 85vh; /* limite la hauteur sur grands écrans */
  object-fit: cover;
}

/* Images du carrousel */
.carousel-item img {
  width: 100%;
  height: auto;
  max-height: 85vh;
  object-fit: cover;
  transition: opacity 1s ease-in-out;
}

/* Caption animation */
.carousel-caption {
  animation: fadeInCaption 1s ease-in-out;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  padding: 1rem;
}

@keyframes fadeInCaption {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Smooth fading between slides */
.carousel .carousel-item {
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.carousel .carousel-item.active {
  opacity: 1;
  position: relative;
  z-index: 2;
}

/* Flèches de navigation du carrousel : visibles, animées et lumineuses */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  box-shadow: 0 0 15px rgba(0, 123, 255, 0.6); /* effet glow bleu */
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

/* Animation au survol */
.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
  transform: scale(1.3) rotate(10deg);
  background-color: rgba(255, 255, 255, 1);
  box-shadow: 0 0 25px rgba(0, 123, 255, 1);
}

/* Meilleur positionnement */
.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  z-index: 10;
}
.section-bg-presentation {
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.6)), url('img/bicvalmy.jpg') center/cover no-repeat;
  min-height: 100vh;
  width: 100%;
  padding: 60px 20px;
}
.entreprise-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 200px;
  transition: transform 0.4s ease-in-out;
  display: block;
  margin: 0 auto;
}

footer {
  background-color: #1a1a1a;
  color: white;
  font-size: 0.9rem;
}
footer a {
  color: #ffffff;
  transition: color 0.3s ease;
}
footer a:hover {
  color: #cccccc;
}
/* Assurer que chaque section occupe bien la hauteur de l’écran */
section,
header {
  min-height: 100vh;
  overflow: hidden;
  padding-top: 60px;
  padding-bottom: 60px;
  box-sizing: border-box;
}

/* Pour éviter que les tuiles débordent sur mobile */
#entreprises .card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

#entreprises .card-img-top {
  width: 80%;
  height: 80%;
  object-fit: contain;
  aspect-ratio: 16/9;
  padding: 10px;
}

/* Carousel responsive et image redimensionnée sans déformation */
.carousel-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Sections alternées fond gris/fond blanc */
.section-alt-white {
  background-color: #ffffff;
}
.section-alt-dark {
  background-color: #3C3C3C;
  color: white;
}

/* Footer toujours en bas sans chevauchement */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
footer {
  background-color: #1a1a1a;
  color: white;
  font-size: 0.9rem;
  margin-top: auto;
  padding: 1.5rem 0;
}
footer a {
  color: #ffffff;
}
footer a:hover {
  color: #cccccc;
}

/* Navbar animation on scroll to hide */
#navbarBic.navbar-hidden {
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}
/* Assurer que chaque section occupe bien la hauteur de l’écran */
section,
header {
  min-height: 100vh;
  overflow: hidden;
  padding-top: 60px;
  padding-bottom: 60px;
  box-sizing: border-box;
}

/* Pour éviter que les tuiles débordent sur mobile */
#entreprises .card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

#entreprises .card-img-top {
  width: 100%;
  object-fit: contain;
  aspect-ratio: 16/9;
  padding: 10px;
}

/* Carousel responsive et image redimensionnée sans déformation */
.carousel-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Sections alternées fond gris/fond blanc */
.section-alt-white {
  background-color: #ffffff;
}
.section-alt-dark {
  background-color: #3C3C3C;
  color: white;
}

/* Footer toujours en bas sans chevauchement */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
footer {
  background-color: #1a1a1a;
  color: white;
  font-size: 0.9rem;
  margin-top: auto;
  padding: 1.5rem 0;
}
footer a {
  color: #ffffff;
}
footer a:hover {
  color: #cccccc;
}

/* Navbar animation on scroll to hide */
#navbarBic.navbar-hidden {
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}
/* Pour s'assurer que le carrousel ne déborde pas */
#carouselIndustrie {
  padding-top: 2rem;
  padding-bottom: 2rem;
  background-color: #3C3C3C;
  overflow: hidden;
}

/* Les images du carrousel doivent garder leur ratio */
.carousel-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 80vh;
}

/* Marge entre carrousel et section entreprise */
#entreprises {
  margin-top: 2rem;
}

/* Sur petit écran, vérifie bien le comportement */
@media (max-width: 767px) {
  .carousel-item img {
    max-height: 50vh;
  }

  #carouselIndustrie {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  #entreprises {
    margin-top: 1.5rem;
  }
}
/* Section entreprises – espacement correct */
#entreprises {
  padding-top: 4rem;
  padding-bottom: 4rem;
  background-color: #fff; /* ou alterner avec #3C3C3C si tu veux */
  position: relative;
  z-index: 1;
}

/* Carousel section – évite chevauchement */
#carouselIndustrie {
  padding-top: 4rem;
  padding-bottom: 4rem;
  background-color: #3C3C3C;
  position: relative;
  z-index: 1;
}

/* Images carousel */
.carousel-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 80vh;
}

/* Tuiles entreprise – alignement propre */
#entrepriseCards .card {
  height: 100%;
}

#entrepriseCards img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Sur mobile : éviter chevauchement + bonne empilement */
@media (max-width: 768px) {
  #carouselIndustrie,
  #entreprises {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .carousel-item img {
    max-height: 50vh;
  }

  #entreprises .row {
    margin: 0;
  }

  .navbar.sticky-top {
    position: sticky;
    top: 0;
    z-index: 1020;
  }
}

/* Section entreprises - padding suffisant pour éviter chevauchement */
#entreprises {
  padding-top: 4rem;
  padding-bottom: 6rem; /* augmenté pour mobile */
  background-color: #fff;
  position: relative;
  z-index: 1;
}

/* Assure que chaque carte remplit bien sa colonne et s'aligne proprement */
#entrepriseCards .card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Images dans les cartes - redimensionnées mais ratio conservé */
#entrepriseCards img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Pour éviter les débordements sur petits écrans */
@media (max-width: 768px) {
  #entreprises {
    padding-bottom: 8rem; /* encore plus de marge sur mobile */
  }
}
#entreprises {
  padding-bottom: 6rem;
}
.card-img-top {
  height: 80%; /* ou une valeur qui te convient */
  object-fit: cover;
  object-position: center;
  width: 80%;
}



.logo-carousel {
  overflow: hidden;
  position: relative;
  
}

.logo-track {
  display: flex;
  animation: scroll-logos 25s linear infinite;
  align-items: center;
  gap: 4rem;
  width: max-content;
}

.logo-track img {
  height: 160px;
  max-height: 120%;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: transform 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
}

.logo-track img:hover {
  filter: grayscale(0%);
  opacity: 1;
}
/* Harmoniser la hauteur avec celle du footer */
.section-logos {
  /* height: 150px; */
  padding: 2rem 0;
  background-color: #3C3C3C;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
@keyframes scroll-logos {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}
.card-img-top {
  width: 100%;
  height: 200px; /* Ajustable selon la taille souhaitée */
  object-fit: cover;
  object-position: center;
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
}









.image-wrapper {
  width: 100%;
  height: 200px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9f9f9;
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
}

.image-wrapper img {
  height: 100%;
  width: auto;
  object-fit: contain;
}




#contact {
  background-color: #ffffff;
}

.map-wrapper {
  overflow: hidden;
  border-radius: 10px;
}

#contact h4 {
  font-weight: bold;
  margin-bottom: 1rem;
}

#contact p {
  font-size: 1rem;
  color: #333;
}

@media (max-width: 768px) {
  #contact .map-wrapper iframe {
    height: 200px;
  }
}



#contact {
  background-color: #ffffff;
  min-height: 350px;
}

.map-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
}

.map-wrapper:hover {
  transform: scale(1.02);
}

/* Texte */
#contact h4 {
  font-weight: bold;
  margin-bottom: 1rem;
}

#contact p {
  font-size: 1rem;
  color: #333;
  max-width: 500px;
}

/* Responsive */
@media (max-width: 768px) {
  #contact .map-wrapper iframe {
    height: 220px;
  }

  #contact {
    text-align: center;
  }
}

/* Effet glow + rebond au hover sur la navbar brand */
#navbarBrand {
  transition: all 0.3s ease;
  display: inline-block;
}

#navbarBrand:hover {
  
  transform: translateY(-3px);
}
.logo-track img {
  height: 60px;            /* Taille unifiée */
  width: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  max-width: 100%;
}
 background-color: white;
  padding: 0.5rem;
  border-radius: 8px;
  
 .btn-dark {
  background:#5cc4d7;
}