/* ------------------------------
   Global Styles
------------------------------ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  color: #111;
  background-color: #f7f7f7;
  line-height: 1.6;
  text-align: justify; /* ✅ texte justifié partout */
}

/* ------------------------------
   Containers
------------------------------ */
.container {
  width: 92%;
  max-width: 1100px;
  margin: auto;
}

/* -------------------------------
   Top Header 
-------------------------------- */

.top-header {
  background-color: #c1121f; /* red */
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  white-space: nowrap; /* keep text on one line */
  font-size: clamp(0.7rem, 3vw, 1rem); /* text shrinks smoothly with screen size */
}

.top-header .top-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.top-header a {
  color: white;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.top-header a:hover {
  opacity: 0.8;
}

/* Responsive */
@media (max-width: 600px) {
  .top-header .top-header-content {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }
}



/* ------------------------------
   Navbar
------------------------------ */
.navbar {
  background: #000;
  color: #fff;
  padding: 10px 0;
  border-bottom: 3px solid #e50914;
  position: sticky;
  top: 0;
  z-index: 10;
}

.navbar .container {
  display: flex;
  justify-content: space-between; /* ✅ Logo left, nav right */
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  height: 45px;
  margin-right: auto; /* ✅ force it to stay left */
}

/* Navigation links */
.navbar nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  transition: all 0.3s ease;
}

.navbar nav a {
  color: white;
  margin: 8px 15px;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar nav a:hover {
  color: #e50914;
}

/* Burger menu button */
.burger {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
}

/* ------------------------------
   Responsive Navbar
------------------------------ */
@media (max-width: 768px) {
  .burger {
    display: block; /* show the burger */
  }

  .navbar nav {
    display: none; /* hide nav by default */
    flex-direction: column;
    width: 100%;
    background: #111;
    border-top: 2px solid #e50914;
  }

  .navbar nav.active {
    display: flex; /* show menu when active */
  }

  .navbar nav a {
    margin: 12px 0;
    text-align: center;
  }

  .logo {
    margin-bottom: 5px;
  }
}


/* Navbar links container */
.nav-links {
  display: flex;
  gap: 20px; /* space between links */
  align-items: center;
}

/* Dropdown Container behaves like a nav item */
.dropdown {
  position: relative;
}

/* Dropdown Button */
.dropbtn {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Dropdown Content (hidden by default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #000000;
  min-width: 180px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
  z-index: 1000;
  flex-direction: column;
}

/* Dropdown Links */
.dropdown-content a {
  display: block;
  padding: 10px 15px;
  text-decoration: none;
  color: #000;
}

/* Hover effect */
.dropdown-content a:hover {
  background-color: #f2f2f2;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-content {
  display: flex;
}








/* ------------------------------
   Hero Section
------------------------------ */
.hero {
  height: 80vh;
  background: url('assets/hero.png') center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  position: relative;
}

.hero .overlay {
  background: rgba(0, 0, 0, 0.3);
  padding: 30px;
  border-radius: 10px;
  border: 2px solid #e50914;
  max-width: 700px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  text-align: center; /* titre centré */
}

.hero p {
  font-size: 1.1rem;
  text-align: center;
}

.btn {
  background: #e50914;
  color: white;
  padding: 10px 22px;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  margin-top: 15px;
  display: inline-block;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #b00610;
}


/* 🔴 Service Page Hero */
.hero-service {
  height: 50vh; /* 50% of viewport height */
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
}

.hero-service .overlay {
  background: rgba(0, 0, 0, 0.6);
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero-service h1 {
  font-size: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 3px solid #e50914;
  padding-bottom: 10px;
}

/* 📱 Responsive adjustments */
@media (max-width: 768px) {
  .hero-service h1 {
    font-size: 1.8rem;
  }
}


/* ------------------------------
   slider Sections
------------------------------ */
/* Styling for the Partner section and the carousel */
.partenaires {
  padding: 40px 0;
  text-align: center;
}

.partenaires h2 {
  margin-bottom: 30px;
}

/* Ensure the swiper container has a defined width/max-width */
.elementor-image-carousel-wrapper {
  max-width: 1200px; /* Adjust as needed */
  margin: 0 auto;
}

/* 🛑 FIX 1: Ensure the container controls the overflow and width 🛑 */
.swiper-container {
  max-width: 1200px; /* Adjust max width as needed */
  margin: 0 auto;
  overflow: hidden; /* THIS IS KEY to prevent horizontal overflow/swipe out */
  position: relative; /* Often required for Swiper arrows/dots positioning */
}

/* Style for the logo images */
.logo-partenaire {
  width: 100px; /* Adjust size of your logo */
  height: 100px; /* Must match width for a perfect circle */
  object-fit: contain;
  border: 1px solid #eee;
  padding: 5px;
  /* Optional: Center the image within the slide if the slide is larger */
  display: block; 
  margin: 0 auto; 
}


/* ------------------------------
   Sections
------------------------------ */
section {
  padding: 40px 0;
}

h2 {
  text-align: center;
  margin-bottom: 25px;
  color: #e50914;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ------------------------------
   About
------------------------------ */
#about p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1rem;
  text-align: justify; /* ✅ texte justifié */
}

/* ------------------------------
   Services
------------------------------ */
/* 🔗 Make entire card clickable */
.card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
}

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

.card-link .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 15px rgba(229, 9, 20, 0.3);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  align-items: stretch; /* ensures equal height */
}

.card {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  border-top: 4px solid #e50914;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* pushes text evenly */
  text-align: justify;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex: 1; /* ensures all cards fill the same height */
}

.card h3 {
  color: #e50914;
  margin-bottom: 10px;
  text-align: center;
}

.card p {
  flex-grow: 1;
  color: #333;
  font-size: 0.95rem;
  margin-bottom: 0;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(229, 9, 20, 0.3);
}

/*---------------------------------
 Contact Section 
 ----------------------------------*/
.contact {
  background-color: #f8f9fa;
  padding: 80px 20px;
  border-radius: 10px;
  margin-top: 60px;
  text-align: justify;
}

.contact h2 {
  text-align: center;
  font-size: 2em;
  margin-bottom: 30px;
  color: #111;
  letter-spacing: 1px;
}

.contact form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact label {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  color: #333;
  font-size: 1rem;
}

.contact input,
.contact textarea {
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact input:focus,
.contact textarea:focus {
  border-color: #940a00;
  box-shadow: 0 0 5px rgba(121, 44, 0, 0.3);
  outline: none;
}

.contact button {
  align-self: center;
  background-color: #f70404;
  color: #fff;
  border: none;
  padding: 12px 25px;
  border-radius: 6px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.contact button:hover {
  background-color: #5e0300;
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
  .contact {
    padding: 60px 15px;
  }

  .contact form {
    width: 100%;
  }
}


/* ------------------------------
   Footer
------------------------------ */
footer {
  background: #000;
  color: white;
  text-align: center;
  padding: 15px;
  font-size: 0.9em;
  border-top: 3px solid #e50914;
}

/* ------------------------------
   Responsive Design
------------------------------ */

/* Tablets */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  .hero .overlay {
    padding: 20px;
  }
  section {
    padding: 35px 0;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .navbar .container {
    flex-direction: row;
  }
  .navbar nav a {
    margin: 5px 10px;
  }
  .hero {
    height: 50vh;
  }
  .hero h1 {
    font-size: 1.7rem;
  }
  .btn {
    padding: 8px 18px;
  }
  section {
    padding: 30px 0;
  }
}

