/* 3D Button Style
 This CSS creates a 3D button effect with a gradient background and hover effects.
*/


.btn-3d {
  --color1: #c82925;
  --color2: wh;
  perspective: 1000px;
  padding: 1em 1.5em;
  background: linear-gradient(var(--color1), var(--color2));
  border: none;
  outline: none;
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #fff;
  text-shadow: 0 8px 8px #000;
  cursor: pointer;
  transform: rotateX(70deg) rotateZ(30deg);
  transform-style: preserve-3d;
  transition: transform 0.5s;
  position: relative;
  display: inline-block;
  text-decoration: none;
  border-radius: 6px;
}

.btn-3d::before {
  content: "";
  width: 100%;
  height: 15px;
  background-color: var(--color2);
  position: absolute;
  bottom: 0;
  left: 0;
  transform: rotateX(90deg);
  transform-origin: bottom;
}

.btn-3d::after {
  content: "";
  width: 15px;
  height: 100%;
  background-color: var(--color1);
  position: absolute;
  top: 0;
  right: 0;
  transform: rotateY(-90deg);
  transform-origin: right;
}

.btn-3d:hover {
  transform: rotateX(30deg) rotateZ(0);
}

/* Header Style */

.main-header {
  position: absolute;
  top: 0;
  width: 100%;
  padding: 20px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

.logo img {
  height: 45px;
}

.nav-center {
  display: flex;
  gap: 25px;
  transition: all 0.3s ease;
}

.nav-center a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  font-size: 16px;
  transition: color 0.3s;
}

.nav-center a:hover {
  color: #c82925;
}

.header-button .contact-button {
  padding: 10px 22px;
  background-color: #c82925;
  border: none;
  color: black;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.contact-button:hover {
  background-color:#c82925;
}

/* Burger style */
.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1100;
  transition: transform 0.3s ease;
}

.burger span {
  width: 25px;
  height: 3px;
  background-color: white;
  border-radius: 3px;
  transition: all 0.4s ease;
}

/* Burger "X" transformation */
.burger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-center {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    gap: 20px;
    padding: 30px 0;
    display: none;
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
  }

  .nav-center.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .burger {
    display: flex;
  }

  .header-button {
    display: none;
  }
}

  

/* Realisations Section Style */

    .realisations-container {
      width: 100%;
      background-color: #fff;
    }

    .realisations-title {
      max-width: 1200px;
      margin: 60px auto 0 auto;
      padding: 0 20px;
    }

    .realisations-title h2 {
      color: #c82925;
      font-size: 36px;
      font-weight: 800;
      position: relative;
      display: inline-block;
    }

    .realisations-title h2::after {
      content: '';
      position: absolute;
      bottom: -8px;
      left: 0;
      width: 100px;
      height: 4px;
      background-color: #c82925;
    }

    .realisations-content {
      display: flex;
      flex-wrap: wrap;
      margin-top: 40px;
      width: 100%;
    }

    .realisations-left {
      background-color: #c82925;
      color: #fff;
      flex: 1;
      min-width: 300px;
      padding: 50px 50px;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    .realisations-left ul {
      list-style: none;
      margin-bottom: 40px;
      align-self: flex-start;
    }

    .realisations-left li {
      font-size: 16px;
      font-weight: 600;
      margin-bottom: 20px;
    }

    
  

    .realisations-right {
      flex: 1;
      min-width: 300px;
    }

    .realisations-right img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
.btn-special {
  display: inline-block;
  position: relative;
  padding:  1em;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  color: white;
  background-color: #c82925;
  border-radius: 8px;
  overflow: hidden;
  transition: color 0.4s ease-in-out;
  z-index: 1;
}

.btn-special::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: white;
  transform: skewX(-20deg);
  z-index: -1;
  transition: left 0.5s ease;
}

.btn-special:hover::before {
  left: 0;
}

.btn-special:hover {
  color: black;
}


    @media (max-width: 768px) {
      .realisations-title h2 {
        font-size: 28px;
      }

      .realisations-left {
        padding: 40px 20px;
        align-items: flex-start;
      }

      .realisations-left li {
        font-size: 14px;
      }

      .realisations-left a {
        font-size: 14px;
      }
    }


    /*Partenaires Section Style*/
    .logo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  padding: 20px 0;
}

.logo-grid img {
  height: 115px;
 

  object-fit: contain;
  max-width: 150px;
}

.logo-grid img:hover {
  filter: grayscale(0%);
}

/* Responsive : masque les logos après 6 sur mobile */
@media (max-width: 768px) {
  .logo-grid img:nth-child(n+7) {
    display: none;
  }
}


  /* About Section Style */


.btp-section {
  position: relative;
  background: url('images/bg_2.jpg') center/cover no-repeat;
  color: #fff;
  padding: 80px 0;
  font-family: 'Segoe UI', sans-serif;
}

.btp-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(12, 22, 36, 0.75);
  z-index: 1;
}

.btp-content {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: auto;
  padding: 0 30px;
}

/* Partie gauche */
.btp-left {
  flex: 1 1 50%;
  padding-right: 40px;
}

.btp-heading .subheading {
  font-size: 0.9rem;
  color: #c82925;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 15px;
  display: block;
}

.btp-heading h2 {
  font-size: 2.2rem;
  font-weight: bold;
  margin-bottom: 20px;
  color: white;
}

.btp-heading h4 {
  font-size: 1.2rem;
  font-weight: 500;
  color: #dcdcdc;
  margin-bottom: 20px;
}

.btp-heading p {
  font-size: 1rem;
  line-height: 1.7;
  color: #cccccc;
}

/* Partie droite */
.btp-right {
  flex: 1 1 45%;
  margin-top: 30px;
}

.counter {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.counter-box {
  background-color: #f8f9fa;
  color: #c82925;
  padding: 20px 25px;
  border-radius: 10px;
  flex: 1 1 45%;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.counter-box.primary {
  background-color: #c82925;
  color: #fff;
}

.counter-box:hover {
  transform: translateY(-5px);
}

.counter-box .icon {
  font-size: 2rem;
  margin-right: 15px;
}

.counter-box .number {
  font-size: 1.8rem;
  font-weight: bold;
  display: block;
}

.counter-box span {
  font-size: 0.95rem;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 991px) {
  .btp-content {
    flex-direction: column;
  }

  .btp-left,
  .btp-right {
    flex: 1 1 100%;
    padding: 0;
  }

  .counter {
    flex-direction: column;
  }

  .counter-box {
    width: 100%;
  }
}





