:root {
  --white: #ffffff;
  --light: #f8f9fa; /*#f8f9fa*/
  --light-gray: #e0e0e0;
  --gray: #aaaaaa;
  --black: #000000;
  --dark: #212529;
  --text-color-title :#1a1a1a;
  --text-color: #333;
  --accent: #ff7e5f;
  --color-orange: #f57c00;
  --button-hover: #d86600; /*#c04800*/
  --light-orange: #ffe0c2;
  --light-orange1: #fff9f2; /*#fffdfa*/
}

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

body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  background-color: var(--white);
  color: var(--text-color);
}
a {
  text-decoration: none;
  color: var(--text-color);
}
a:hover {
  color: var(--color-orange);
}

/* Top Nav Bar */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8333vw 2.7778vw;
  background-color: var(--light);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 999;
}

.topbar nav {
  display: flex;
  gap: 2.0833vw;
  margin-left: auto;
  margin-right: 6vw;
}

.topbar nav a {
  color: var(--text-color-title);
  margin-left: 1.7361vw;
  text-decoration: none;
  font-weight: bold;
  font-family: 'Open Sans', sans-serif;
  transition: 0.25s ease;
}

.topbar nav a:hover {
  color: var(--color-orange);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6944vw;
}

.logo img {
  height: auto;
  max-height: 60px;  /* good size on desktop */
  width: auto;
}

/* .logo span {
  font-weight: bold;
  font-size: 1.1rem;
  font-family: 'Montserrat', sans-serif;
  color: var(--text-color);
} */

/* HEADER avec image de fond */
header {
  background: url('gallery/workerr.png') center/cover no-repeat;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--white);
  position: relative;
  margin-top: 0;
  padding-top: 0;
}

.hero-content {
  background: rgba(0, 0, 0, 0.4);
  padding: 2.7778vw 2.0833vw;
  border-radius: 0.6944vw;
  max-width: 45.1389vw;
  width: 90%;
}

.hero-content h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 3rem;
  margin-bottom: 1.3889vw;
}

.hero-content p {
  font-size: 1.25rem;
  margin: 0.6944vw 0;
}

.hero-content button {
  margin-top: 1.7361vw;
  padding: 0.9722vw 1.9444vw;
  background: var(--color-orange);
  border: none;
  color: var(--light-orange);
  font-weight: bold;
  font-size: 1rem;
  border-radius: 0.4167vw;
  cursor: pointer;
  transition: 0.25s ease;
}

.hero-content button:hover {
  background: var(--button-hover);
  transform: translateY(-3px);
  box-shadow: 0 0.4vw 0.6vw rgba(255, 152, 0, 0.3);
}

/* SECTIONS */
.services, .about, .gallery, .contact {
  padding: 5vw 1.5vw;
  scroll-margin-top: 5vw;
  text-align: center;
}

.service {
  width: 11.1111vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.service img {
  width: 8.3333vw;
  height: auto;
  margin-bottom: 0.8333vw;
  transition: transform 0.3s ease;
}

.service:hover img {
  transform: scale(1.1);
}

.service h3 {
  font-size: 1rem;
  line-height: 1.4;
}

.services h2, .about h2, .gallery h2, .contact h2 {
  font-size: 2.8rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  margin-top: -20.0vw;
  color: var(--text-color-title);
  position: relative;
  display: inline-block;
  margin-bottom: 3.4722vw;
}

.services h2::after,
.about h2::after,
.gallery h2::after,
.contact h2::after {
  content: '';
  display: block;
  width: 4.1667vw;
  height: 0.2778vw;
  background-color: var(--color-orange);
  margin: 0.8333vw auto 0;
  border-radius: 0.1389vw;
}

/* Grille des services */
.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 59.0278vw;
  margin: 0 auto;
  gap: 3.4722vw 5.5556vw;
  margin-top: 5vw;
}

/* À propos */
.about-wrapper {
  max-width: 62.5vw;
  margin: auto;
  padding: 4.8611vw 1.3889vw;
  text-align: center;
}

.about-wrapper h2 {
  margin-bottom: 3.4722vw;
}

.about-box {
  position: relative;
   margin-top: 3.5vw;
  background: var(--light-orange1);
  padding: 3.4722vw 2.7778vw;
  border-left: 0.4167vw solid var(--color-orange);
  border-radius: 0.8333vw;
  box-shadow: 0 0.5556vw 1.7361vw rgba(0, 0, 0, 0.2);
  font-size: 1.25rem;
  line-height: 1.9;
  color: var(--text-color);
  margin-bottom: 3.4722vw;
  animation: fadeInUp 0.8s ease both;
}

.about-box .highlight {
  background: var(--light-orange);
  padding: 0.1389vw 0.4167vw;
  border-radius: 0.2778vw;
  font-weight: bold;
  color: var(--button-hover);
}

.core-values {
 margin-top: 6vw;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.4vw;
}

.core-values .value {
  background: var(--light-orange1);
  padding: 1.0417vw 1.7361vw;
  border-radius: 2.0833vw;
  font-weight: bold;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6944vw;
  box-shadow: 0 0.1389vw 0.4167vw rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.core-values .value:hover {
  transform: translateY(-5px);
}

/* Formulaire contact */
.contact form {
  max-width: 41.6667vw;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 1.3889vw;
  padding: 3.125vw 2.7778vw;
  background: var(--light-orange1);
  border-radius: 1.25vw;
  box-shadow: 0 1.25vw 2.4306vw rgba(0, 0, 0, 0.1);
  animation: fadeInUp 0.8s ease both;
  transition: transform 0.3s ease;
}

.contact form:hover {
  transform: translateY(-2px);
}

.contact input,
.contact textarea {
  padding: 1.1111vw 1.3889vw;
  border-radius: 0.6944vw;
  border: 0.0694vw solid var(--light-gray);
  font-size: 1rem;
  font-family: 'Open Sans', sans-serif;
  transition: 0.3s ease;
  background-color: var(--white);
  box-shadow: inset 0 0.1389vw 0.2778vw rgba(0, 0, 0, 0.1);
}

.contact input::placeholder,
.contact textarea::placeholder {
  color: var(--gray);
  font-style: italic;
}

.contact input:focus,
.contact textarea:focus {
  border-color: var(--color-orange);
  transition: 0.3s ease;
  box-shadow: 0 0.8vw 0.8vw rgba(216, 102, 0, 0.1);
  outline: none;
}

.contact textarea {
  resize: vertical;
  min-height: 9.0278vw;
}

.contact button {
  align-self: center;
  padding: 0.9722vw 2.5vw;
  font-size: 1rem;
  font-weight: 600;
  color: var(--light-orange1);
  background: var(--color-orange);
  border: none;
  border-radius: 2.7778vw;
  box-shadow: 0 0.4167vw 1.25vw rgba(255, 152, 0, 0.4);
  cursor: pointer;
  transition: 0.25s ease;
}

.contact button:hover {
  background: var(--button-hover);
  transform: translateY(-3px);
  box-shadow: 0 0.6944vw 1.2vw rgba(255, 152, 0, 0.6);
}

/* Pied de page */
footer {
  background: var(--text-color-title);
  color: var(--white);
  text-align: center;
  padding: 0.5vw;
}
footer p {
  padding: 0;
  margin: 0;
}

.contact-cards {
  display: flex;
  width: 100%;
  height: 230px;
  position: relative;
  overflow: hidden;
  margin-top: 4vw;
}

.icon-text {
  display: flex;
  align-items: flex-start;
  gap: 1vw;
}

.icon-text img.icon {
  width: 2.5vw;
  height: auto;
  margin-top: 1vw;
  margin-right: 2vw;
}

.icon-text p {
  font-size: 1.1rem;
  font-weight: bold;
  line-height: 1.8;
  margin: 0;
}

/* Ligne blanche inclinée gauche */
/* Section Notre Équipe */
.team-section {
  padding: 6vw 2vw;
  /* background: #fffdfa; */
  background: var(--light);
  text-align: center;
}

.team-section h2 {
  font-size: 2.8rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  margin-bottom: 2vw;
  position: relative;
}

.team-section h2::after {
  content: '';
  display: block;
  width: 4vw;
  height: 0.4vw;
  background-color: var(--color-orange);
  margin: 1vw auto 0;
  border-radius: 0.2vw;
}

.team-quote {
  font-style: italic;
  font-size: 1.3rem;
  /* color: #555; */
  color: var(--text-color);
  margin-bottom: 2vw;
  animation: fadeInUp 1s ease both;
}

.team-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-color);
  max-width: 900px;
  margin: auto;
  animation: fadeInUp 1.2s ease both;
}

.highlight-orange {
  background-color: var(--light-orange);
  padding: 0.2vw 0.5vw;
  border-radius: 0.4vw;
  font-weight: bold;
  /* color: #c04800; */
  color: var(--button-hover);
}

.team-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3vw;
  margin-top: 7vw;
}

.team-card {
  background: white;
  border-radius: 1.2vw;
  box-shadow: 0 0.5vw 1.5vw rgba(0, 0, 0, 0.1);
  padding: 2vw;
  width: 250px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.7vw 2vw rgba(0, 0, 0, 0.15);
}

.team-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 0.8vw;
  margin-bottom: 1vw;
}

.team-card h3 {
  font-size: 1.2rem;
  font-family: 'Montserrat', sans-serif;
  margin: 0.5vw 0 0.3vw;
  color: var(--text-color);
}

.team-card p {
  font-size: 1rem;
  color: #777;
}

/* ----------------------- footer contact------------ */
/* Conteneur principal */
.container {
  width: 100vw;
  height: 100vh; /* Hauteur totale de la page */
  background-color: #f9f9f9;
  position: relative;
}

/* Zone 2 - orange, s'arrête avant le séparateur */
.div2 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* Pleine hauteur */
  background-color: var(--color-orange);
  clip-path: polygon(
    0% 0%,
    calc(50% - 1%) 0%, /* 1% de marge avant le séparateur en haut */
    calc(70% - 1%) 100%, /* 1% de marge en bas */
    0% 100%
  );
  z-index: 1;
}

/* Séparateur diagonal - ex: doré ou blanc */
.div-separator {
  position: absolute;
  top: 50%; /* Centrer verticalement */
  left: 0;
  width: 100%;
  height: 20%; /* Réduit la hauteur du séparateur */
  background-color: #fff; /* Couleur du séparateur */
  clip-path: polygon(
    calc(50% - 1%) 0%, /* Début en haut (après DIV2) */
    60% 0%,
    70% 100%,
    calc(70% - 1%) 100%
  );
  z-index: 1;
}

/* Zone 3 - noir, commence après le séparateur */
.div3 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* Pleine hauteur */
  background-color: #2e2e2e;
  clip-path: polygon(
    50% 0%,
    100% 0%,
    100% 100%,
    70% 100%
  );
  z-index: 1;
}

/* Texte dans chaque zone */
.content {
  position: absolute;
  color: white;
  font-size: 2rem;
  font-weight: bold;
  text-align: left;
  z-index: 2;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.6);
}

.content-div2 {
  width: 50%;
  top: 10%; /* Centrer verticalement */
  left: 10%;
  transform: translateY(-50%);
}

.content-div3 {
  width: 40%;
  top: 10%; /* Centrer verticalement */
  right: 0%;
  transform: translateY(-50%);
}

/* Texte dans le séparateur (optionnel) */
.content-separator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--text-color);
  font-size: 1.2rem;
  font-weight: bold;
  z-index: 2;
  text-align: center;
  pointer-events: none; /* Pour ne pas bloquer les clics */
}

/* ---------------------------- slider css ------------- */

.container_slider {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
}

.swiper-container {
    width: 100%;
    padding: 30px 0;
    position: relative;
}

.swiper {
    width: 100%;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    /* box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3); */
    /* background: rgba(255, 255, 255, 0.05); */
    backdrop-filter: blur(10px);
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.swiper-slide:hover img {
    transform: scale(1.05);
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.swiper-slide:hover .slide-content {
    transform: translateY(0);
}

.slide-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.swiper-button-prev,
.swiper-button-next {
    color: #fff !important;
    background: rgba(0, 0, 0, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.swiper-pagination {
    bottom: 10px !important;
}

.swiper-pagination-bullet {
    background: #fff !important;
    opacity: 0.5 !important;
    width: 12px !important;
    height: 12px !important;
    margin: 0 8px !important;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: var(--accent) !important;
    opacity: 1 !important;
    transform: scale(1.2);
}

.mobile-tip {
    display: none;
    text-align: center;
    margin-top: 20px;
    font-size: 1rem;
    color: #feb47b;
    font-weight: 500;
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(1.3889vw);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .swiper {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .swiper {
        height: 350px;
    }

    .swiper-button-prev,
    .swiper-button-next {
        display: none !important;
    }

    .mobile-tip {
        display: block;
    }
}

@media (max-width: 480px) {
    .swiper {
        height: 300px;
    }

    .slide-title {
        font-size: 1.2rem;
    }
}

/* --- GENERAL FONT SCALING --- */
body {
  font-size: 16px;
}

/* Make headings scale better */
h1, h2, h3 {
  line-height: 1.3;
  word-wrap: break-word;
}

/* --- TOPBAR RESPONSIVE --- */
@media (max-width: 768px) {
  .topbar {
    flex-direction: column;
    padding: 10px;
  }
  .topbar nav {
    flex-direction: column;
    gap: 10px;
    margin: 10px 0 0 0;
  }
  .logo img {
    height: 50px;
  }
}

/* --- HERO SECTION --- */
@media (max-width: 768px) {
  header {
    height: auto;
    padding: 80px 10px 60px;
  }
  .hero-content {
    max-width: 95%;
    padding: 20px;
  }
  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
  .hero-content button {
    padding: 10px 20px;
    font-size: 1rem;
  }
}

/* --- SERVICES SECTION --- */
@media (max-width: 768px) {
  .services-grid {
    flex-direction: column;
    align-items: center;
    gap: 30px;
    max-width: 90%;
  }
  .service {
    width: auto;
  }
  .service img {
    width: 120px;
  }
}

/* --- ABOUT BOX --- */
@media (max-width: 768px) {
  .about-wrapper {
    padding: 20px;
  }
  .about-box {
    font-size: 1rem;
    padding: 20px;
  }
  .core-values .value {
    font-size: 0.9rem;
    padding: 10px 15px;
  }
}

/* --- TEAM SECTION --- */
@media (max-width: 768px) {
  .team-cards {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
}

/* --- CONTACT FORM --- */
@media (max-width: 768px) {
  .contact form {
    max-width: 95%;
    padding: 20px;
    gap: 15px;
  }
  .contact input,
  .contact textarea {
    font-size: 1rem;
    padding: 12px;
  }
  .contact button {
    padding: 12px 20px;
    font-size: 1rem;
  }
}

/* --- FOOTER CONTACT CARDS --- */
@media (max-width: 768px) {
  .contact-cards {
    flex-direction: column;
    height: auto;
    position: relative;
  }
  .div2, .div3, .div-separator {
    position: relative;
    clip-path: none;
    height: auto;
    background: none;
  }
  .content {
    position: static;
    color: #333;
    font-size: 1rem;
    text-shadow: none;
    padding: 10px 0;
  }
  .icon-text img.icon {
    width: 30px;
  }
}
/* --- Hamburger Menu --- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
  cursor: pointer;
  margin-top: 10px;
  /* margin-right: 20px; */
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--text-color-title);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Animate into X when open */
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 5px);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -5px);
}

/* Mobile nav hidden by default */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  #main-nav {
    position: absolute;
    top: 70px;
    right: 0;
    background: var(--light);
    flex-direction: column;
    width: 200px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: none; /* hide by default */
    z-index: 1000;
  }

  #main-nav a {
    padding: 10px 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--light-gray);
  }

  #main-nav.show {
    display: flex;
  }
}

@media (max-width: 1024px) {
  .logo img {
    max-height: 50px;
  }
}

@media (max-width: 768px) {
  .logo {
    justify-content: center; /* center logo on mobile if needed */
  }
  .logo img {
    max-height: 45px; /* slightly smaller for mobile */
  }
}

@media (max-width: 480px) {
  .logo img {
    max-height: 40px; /* still readable but not too big */
  }
}