/* =======================================
   GLOBAL HEADER
======================================= */
header {
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 10px !important;
  color: white;
  transition: all 0.3s ease;
  position: fixed !important;
  top: 0; left: 0; right: 0;
  z-index: 1000;
}

header.shrink {
  background-color: rgba(0, 0, 0, 0.7) !important;
}

/* =======================================
   HEADER BUTTONS
======================================= */
#header-btns .btn {
  min-height: 40px;
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px; /* Espace entre icône et texte */
}

#header-btns {
  gap: 10px; /* Espace entre les boutons */
}

@media (max-width: 991.98px) {
  #header-btns {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  #header-btns .btn {
    width: 100%;
    max-width: 250px;
  }
}

/* =======================================
   MOBILE MENU
======================================= */
@media (max-width: 991.98px) {
  #navbar-mobile {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    display: none;
    z-index: 1200;
  }

  #navbar-mobile.open {
    display: block;
  }

  #navbar-mobile .menu-wrapper {
    width: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  #navbar-main {
    list-style: none;
    margin: 0; padding: 0;
    width: 100%;
  }

  #navbar-main .nav-item {
    text-align: center;
    margin-bottom: 10px;
  }

  #navbar-main .nav-link {
    display: block;
    padding: 15px 0;
    color: white !important;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }
}

/* =======================================
   JUMBOTRON
======================================= */
#jumbotron {
  background: url(../img/header-cleaning.png) center center/cover no-repeat;
  min-height: 550px;
  position: relative;
  min-height: 75vh; /* moitié de l'écran */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

#jumbotron::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.2); /* overlay pour contraste */
}

#jumbotron .container {
  position: relative;
  z-index: 2;
  padding: 0 20px;
}

#jumbotron h1 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

#jumbotron h2 {
  font-size: 1.2rem;
  margin-bottom: 15px;
}

#jumbotron p {
  font-size: 1rem;
  margin-bottom: 25px;
}

#jumbotron .btn {
  padding: 12px 24px;
  font-size: 1.1rem;
  border-radius: 50px;
}

@media (min-width: 768px) {
  #jumbotron {
    min-height: 550px; /* Desktop normal */
  }
  #jumbotron h1 {
    font-size: 2.5rem;
  }
  #jumbotron h2 {
    font-size: 1.8rem;
  }
  #jumbotron p {
    font-size: 1.2rem;
  }
}


/* =======================================
   SERVICES SECTION
======================================= */
#services {
  background-color: #007BFF;
}

#services h2,
#services p.lead {
  color: #fff;
}

#services .card {
  border: none;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

#services .card img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
}

#services .card-body {
  padding: 15px;
}

#services .card-text {
  font-size: 1.05rem;   /* Légèrement plus gros */
  font-weight: 500;     /* Semi-bold pour + d’impact */
  line-height: 1.5;     /* Plus aéré */
  color: #333;          /* Garde une couleur lisible */
  text-align: left;     /* Optionnel : aligner à gauche pour + pro */
}

/* =======================================
   SECTEURS D'ACTIVITÉ
======================================= */
#secteurs-activite .bg-light {
  background-color: #f8f9fa;
  transition: box-shadow 0.3s ease;
}

#secteurs-activite .bg-light:hover {
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
}

#secteurs-activite .icon-bulle {
  background: #007BFF;
  color: #fff;
  border-radius: 50%;
  display: flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

#secteurs-activite h3 i {
  margin-right: 5px;
}

/* Icone bulle générique */
.icon-bulle {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  border-radius: 50%;
  background: #007BFF;
  color: #fff;
  flex-shrink: 0;
  font-size: 1rem;
}

.icon-square {
  min-width: 40px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.icon-square.rounded-circle {
  border-radius: 50%;
}

h3 i {
  margin-right: 5px;
}

/* =======================================
   SECTEURS 3 PARTS (GRID)
======================================= */
.secteurs-3parts {
  padding: 60px 20px;
  text-align: center;
}

.secteurs-3parts h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  border-bottom: 2px solid #007BFF;
  display: inline-block;
}

.secteurs-3parts p {
  max-width: 700px;
  margin: 0 auto 40px;
  color: #555;
}

.secteurs-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}

@media (max-width: 768px) {
  .secteurs-grid-3 {
    grid-template-columns: 1fr;
  }
}

.secteur-card {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 30px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: left;
}

.secteur-card h3 {
  color: #007BFF;
  font-size: 1.4rem;
  margin-bottom: 15px;
}

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

.secteur-card li {
  margin: 10px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #333;
}

.secteur-card li h5 {
  margin: 0 0 5px 0;
  font-size: 1rem;
}

.secteur-card li p {
  margin: 0;
  font-size: 0.9rem;
}

/* =======================================
   ZONES D'INTERVENTION
======================================= */
#zones-intervention li i {
  color: #00FF90;
}

#zones-intervention img {
  max-width: 100%;
  height: auto;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

/* =======================================
   FOOTER
======================================= */
.footer-full img {
  max-height: 60px;
  width: auto;
}

.footer-full p,
.footer-full a {
  color: #000;
}

.footer-full a:hover {
  text-decoration: underline;
}

/* =======================================
   REVEAL ANIMATION
======================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Désactive la couleur bleue Bootstrap pour les nav-pills actifs */
.nav-pills .nav-link.active {
  background-color: transparent !important;
  color: inherit !important;
}



/* =======================================
   ANIMATIONS CUSTOM
======================================= */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animated-text,
.animated-subtext,
.animated-extra,
.animated-paragraph,
.animated-cta {
  opacity: 0;
  animation: fadeSlideUp 0.7s ease-out forwards;
}

.animated-text { animation-delay: 0.1s; }
.animated-subtext { animation-delay: 0.4s; }
.animated-extra { animation-delay: 0.7s; }
.animated-paragraph { animation-delay: 1s; }
.animated-cta { animation-delay: 1.3s; }

/* =======================================
   UTILITY
======================================= */
section { scroll-margin-top: 80px; }

.bg-primary { background-color: #007BFF !important; }
.text-primary { color: #007BFF !important; }
#secteurs-activite {
  min-height: 500px;
}

nav a {
  color: white;
  padding: 8px 16px;
  text-decoration: none;
}

nav a.active {
  background-color: #007bff; /* bleu */
  color: white;
  border-radius: 4px;
}


.reveal-zone {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal-zone.visible {
  opacity: 1;
  transform: translateY(0);
}


.reveal-secteur {
  opacity: 0;
  transform: perspective(800px) rotateY(15deg) scale(0.8);
  transition: 
    opacity 0.9s ease-out,
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.9s ease-out;
}

.reveal-secteur.visible {
  opacity: 1;
  transform: perspective(800px) rotateY(0deg) scale(1);
}


/* =======================================
   SECTEURS D'ACTIVITÉ - EFFET HOVER BLOC
======================================= */
#secteurs-activite .bg-light {
  transition:
    transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1),
    box-shadow 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

#secteurs-activite .bg-light:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 1.5rem 3rem rgba(0,0,0,0.15);
}

/* === ALIGNEMENT DU HEADER & BURGER === */
header .container {
  display: flex;
  align-items: center;          /* Centre logo + burger verticalement */
  justify-content: space-between;
  min-height: 60px;             /* Hauteur fixe pour caler tout */
}

header img {
  max-height: 60px;             /* Pour éviter qu’un logo trop grand ne pousse le bouton */
  height: auto;
}

/* ============================
   HEADER : fixe + hauteur claire
=============================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 90px;  /* Hauteur claire et fixe */
  z-index: 1000;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: center;  /* même hauteur que header */
}

#burger-toggle {
  align-self: center;
}

/* ============================
   NAVBAR MOBILE FIXE SOUS HEADER
=============================== */
#navbar-mobile {
  position: fixed;    /* et non absolute */
  top: 90px;          /* pile sous le header */
  left: 0;
  width: 100%;
  display: none;
  z-index: 1200;
}

#navbar-mobile.open {
  display: block;
}

#navbar-mobile .menu-wrapper {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  padding: 30px 20px;
}
