/* =============================
   GLOBAL RESET & BASE
============================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", Arial, sans-serif;
  background: #fff;
  color: #222;
  line-height: 1.6;
  scroll-behavior: smooth;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5em;
}

section {
  padding: 4em 0;
}

.center {
  text-align: center;
  margin-top: 2em;
}

/* =============================
   HEADER & NAVIGATION
============================= */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: linear-gradient(90deg, #00264d, #004080);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: background 0.4s ease, box-shadow 0.4s ease, transform 0.3s ease;
}

/* Header caché quand on scroll down */
header.hide {
  transform: translateY(-100%);
}

header.scrolled {
  background: linear-gradient(90deg, #001a33, #003366);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90px;
  padding: 0 2em;
}

/* header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: linear-gradient(90deg, #00264d, #004080);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

header.scrolled {
  background: linear-gradient(90deg, #001a33, #003366);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90px;
  padding: 0 2em;
} */

.logo img {
  height: 85px;
  /* Larger logo */
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);
}

nav ul {
  display: flex;
  list-style: none;
}

nav li {
  margin: 0 1em;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5em 0.8em;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
}

nav a:hover,
nav a.active {
  border-bottom: 2px solid #ff6600;
}

.menu-toggle {
  display: none;
  font-size: 2em;
  color: #fff;
  cursor: pointer;
}

/* MOBILE NAVIGATION */
@media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 90px;
    right: 0;
    background: #00264d;
    width: 220px;
    padding: 1em;
    border-radius: 0 0 0 8px;
  }

  nav ul.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}

/* =============================
   Botton
============================= */
.btn {
  background: linear-gradient(90deg, #007BFF, #0056b3);
  color: #fff;
  padding: 0.95em 2.2em;
  border-radius: 35px;
  /* pill shape */
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  box-shadow: 0 8px 20px rgba(0, 123, 255, 0.25), inset 0 -2px 6px rgba(255, 255, 255, 0.1);
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  display: inline-block;
}

.btn::after {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  border-radius: 40px;
  background: linear-gradient(45deg, rgba(0, 123, 255, 0.2), rgba(0, 86, 179, 0.2));
  filter: blur(12px);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: -1;
}

.btn:hover::after {
  opacity: 1;
}

.btn:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 14px 30px rgba(0, 123, 255, 0.35), inset 0 -2px 6px rgba(255, 255, 255, 0.15);
}

/* =============================
   HERO CENTERING + VISUAL BALANCE
============================= */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  z-index: 0;
  margin-top: 0;
  padding-top: 0;
}

.hero-slide {
  display: none;
  position: relative;
  width: 100%;
  min-height: 90vh;
  /* taller hero for full impact */
  background-size: cover;
  background-position: center;
  transition: opacity 1s ease-in-out;
  opacity: 0;
}

.hero-slide.active {
  display: block;
  opacity: 1;
}

/* Overlay perfectly centers content */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* centers vertically */
  text-align: center;
  color: #fff;
  background: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35));
  padding: 0 1em;
}

/* Centered text block */
.hero-text {
  max-width: 800px;
  margin: 0 auto;
}

.hero-text h1 {
  font-size: 3em;
  font-weight: 700;
  margin-bottom: 0.5em;
  color: #fff;
}

.hero-text p {
  font-size: 1.2em;
  margin-bottom: 1em;
  opacity: 0.9;
}

/* CTA button */
.hero-text .btn {
  background: linear-gradient(90deg, #007BFF, #0056b3);
  /* blue gradient */
  color: #fff;
  padding: 0.9em 2em;
  /* wider for elegance */
  border-radius: 30px;
  /* pill-shaped */
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 6px 18px rgba(0, 123, 255, 0.3);
  /* soft shadow */
  transition: all 0.3s ease;
  /* smooth hover */
}

.hero-text .btn:hover {
  background: linear-gradient(90deg, #0056b3, #007BFF);
  /* reversed gradient on hover */
  transform: translateY(-3px) scale(1.05);
  /* subtle lift + scale */
  box-shadow: 0 10px 25px rgba(0, 86, 179, 0.4);
  /* stronger shadow on hover */
}

/* .hero-text .btn {
  background: #ff6600;
  color: #fff;
  padding: 0.9em 1.8em;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
}

.hero-text .btn:hover {
  background: #e65c00;
  transform: scale(1.05);
} */

/* ====== Catalogue Produit ====== */
.catalogue {
  padding: 3rem 0;
  background: #f8f9fa;
}

.catalogue h1 {
  text-align: center;
  font-size: 2rem;
  color: #002b5c;
  margin-bottom: 2rem;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.product-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  text-align: center;
  padding: 20px;
  transition: all 0.3s ease;

}

.product-card {
  opacity: 2;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.product-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.product-card img {
  max-width: 100%;
  height: 200px;
  object-fit: contain;
  border-radius: 6px;
  margin-bottom: 1rem;
}


.product-card p {
  color: #555;
  font-size: 0.95rem;
  min-height: 60px;
}

/* .product-card .btn {
  display: inline-block;
  margin-top: 10px;
  background: #ff6600;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.product-card .btn:hover {
  background: #e55a00;
} */

.cat-title {
  font-size: 1.6em;
  font-weight: bold;
  color: #003366;
  margin-top: 40px;
  margin-bottom: 15px;
  border-bottom: 2px solid #ff6600;
  display: inline-block;
  padding-bottom: 5px;
}

/* ZOOM EFFECT ON PRODUCT IMAGES */
.product-img {
  overflow: hidden;
  border-radius: 6px;
}

.product-img img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.product-card:hover .product-img img {
  transform: scale(1.1);
}



.product-card .category {
  color: #555;
  font-size: 0.95em;
  margin-top: -5px;
  margin-bottom: 10px;
}

.product-card p {
  margin-top: 0.5em;
  font-size: 0.95em;
  color: #555;
}

/* .product-card .btn {
  display: inline-block;
  background: #ff6600;
  color: #fff;
  padding: 0.6em 1.2em;
  margin-top: 1em;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.product-card .btn:hover {
  background: #e65c00;
} */

/* =============================
   SERVICES
============================= */
/* Titre */
.services h2 {
  color: #003366;
  text-align: center;
  margin-bottom: 2em;
  font-size: 2.4em;
  font-weight: 700;
}

/* Grille */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2em;
  padding: 0 1em;
}

/* Cartes */
.service-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 2em 1.5em;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  border-top: 5px solid #003366;
}

/* Icônes */
.service-card .icon {
  font-size: 2.6em;
  margin-bottom: 0.5em;
}

/* Titres des services */
.service-card h3 {
  color: #003366;
  font-size: 1.3em;
  margin-bottom: 0.5em;
  font-weight: 600;
}

/* Description */
.service-card p {
  color: #444;
  font-size: 1em;
  line-height: 1.5em;
}

/* Effet au survol */
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

/* .home-services h2 {
  color: #003366;
  text-align: center;
  margin-bottom: 2em;
}

.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5em;
}

.service-card {
  flex: 1 1 280px;
  background: #f8f8f8;
  border-radius: 6px;
  padding: 1.5em;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
} */

/* =============================
   FOOTER
============================= */
footer {
  background: #00264d;
  color: #ccc;
  text-align: center;
  padding: 2em 1em;
  margin-top: 3em;
  font-size: 0.9em;
}

footer a {
  color: #ff6600;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* =========================================
   FINAL HEADER FIX (ALWAYS VISIBLE)
========================================= */
#main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  z-index: 9999;
  background: linear-gradient(90deg, #00264d, #004080) !important;
  /* Force dark gradient */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

#main-header.scrolled {
  background: linear-gradient(90deg, #001a33, #003366) !important;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0 2em;
}

#main-header .logo img {
  height: 90px;
  /* larger and visually balanced */
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

#main-header .logo img:hover {
  transform: scale(1.05);
}

#main-header nav ul {
  display: flex;
  list-style: none;
}

#main-header nav li {
  margin: 0 1em;
}

#main-header nav a {
  color: #00264d !important;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5em 0.8em;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
}

#main-header nav a:hover,
#main-header nav a.active {
  border-bottom: 2px solid transparent;
  background-image: linear-gradient(90deg, #007BFF, #0056b3);
  background-repeat: no-repeat;
  background-size: 100% 2px;
  background-position: bottom left;
}

.menu-toggle {
  display: none;
  font-size: 2em;
  color: #fff;
  cursor: pointer;
}



/* Ensure hero starts below fixed header */
.hero {
  margin-top: 90px;
}

/* ==============================================
   FINAL HEADER FIX — ALWAYS VISIBLE, ACTIVE MENU
============================================== */
#main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  z-index: 9999;
  background: linear-gradient(360deg, #f8f9fc 0%, #dff8ff 100%) !important;
  border-bottom: 2px solid #f8f9fc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

#main-header.scrolled {
  background: linear-gradient(90deg, #001a33, #003366) !important;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0 2em;
}

.logo img {
  height: 90px;
  width: auto;
  object-fit: contain;
}

nav ul {
  display: flex;
  list-style: none;
}

nav li {
  margin: 0 1em;
}

nav a {
  color: #fff !important;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5em 0.8em;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
}

nav a:hover,
nav a.active {
  border-bottom: 2px solid;
  border-image: linear-gradient(90deg, #007BFF, #0056b3) 1;
}

.menu-toggle {
  display: none;
  font-size: 2em;
  color: #fff;
  cursor: pointer;
}

@media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 90px;
    right: 0;

    /* Solid, beautiful gradient — NOT transparent */
    background: linear-gradient(145deg, #ecf6ff 0%, #d8f2ff 35%, #bfefff 65%, #92c4f7 100%) !important;

    width: 220px;
    padding: 1em;
    border-radius: 0 0 0 12px;
  }

  nav ul.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}


/* Ensure hero starts below fixed header */
.hero {
  margin-top: 90px;
}

/* =====================================
   FIX: header overlap & spacing control
===================================== */

/* Default: content pages without hero */
main {
  padding-top: 110px;
  /* leaves room under fixed header */
}

/* If a hero exists, remove that extra padding */
.hero~* {
  margin-top: 0;
}

/* But hero itself always starts below header */
.hero {
  margin-top: 90px;
}

/* =====================================
   HEADER SPACING FIX – FINAL VERSION
===================================== */

/* Default for all pages: leave room under fixed header */
main {
  padding-top: 110px;
}

/* On homepage with hero, remove extra padding and align hero properly */
body.index main {
  padding-top: 0;
}

.hero {
  margin-top: 90px;
  /* ensures hero starts just below header */
}

#main-header.scrolled {
  background: linear-gradient(90deg, #001a33, #003366);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

/* =====================================
   HEADER + HERO SPACING — FINAL CLEAN
===================================== */

/* Default for all pages (prevents header overlap) */
main {
  padding-top: 110px;
}

/* Homepage only — hero touches the header */
body.index main {
  padding-top: 0;
}

/* Hero flush against header */
.hero {
  margin-top: 0;
  /* removes gap */
  padding-top: 90px;
  /* adds internal offset so text is visible under header */
}

/* ======= MAKE EXISTING HEADER RESPONSIVE (SAFE VERSION) ======= */

/* Show burger only on mobile */
#main-header .menu-toggle {
  display: none;
}

/* Mobile breakpoint */
@media (max-width: 850px) {

  /* Show burger icon */
  #main-header .menu-toggle {
    display: block;
    font-size: 2.2rem;
    color: #00264d !important;
    cursor: pointer;
  }

  /* Hide menu by default */


  /* Show menu on toggle */


  /* Make logo smaller on mobile */
  #main-header .logo img {
    height: 70px;
  }
}

/* Force menu toggle to stay on the right */
#main-header .menu-toggle {
  margin-left: auto;
}

/* =============================
   IMAGE MODAL (ZOOM & SCROLL)
============================= */
.image-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.image-modal.active {
  display: flex;
}

.image-modal .modal-content {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-modal:hover {
  color: #ff6600;
}

/* Navigation Arrows */
.nav-arrow {
  position: absolute;
  top: 50%;
  font-size: 3em;
  color: #fff;
  cursor: pointer;
  user-select: none;
  padding: 0 15px;
  transform: translateY(-50%);
  transition: color 0.3s ease;
}

.nav-arrow:hover {
  color: #ff6600;
}

.nav-arrow.left {
  left: 30px;
}

.nav-arrow.right {
  right: 30px;
}

#caption {
  text-align: center;
  color: #ddd;
  margin-top: 10px;
  font-size: 1em;
  font-style: italic;
}

/* =============================
   PRODUCT DETAIL GALLERY
============================= */
.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 1em;
  margin-bottom: 2em;
}

.product-main-image {
  max-width: 600px;
  /* largeur max de l'image */
  margin: 0 auto;
  /* centre l'image */
}

.product-main-image img {
  width: 100%;
  max-height: 450px;
  /* limite la hauteur */
  object-fit: contain;
  /* garde les proportions */
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

.main-image img {
  width: 100%;
  max-width: 450px;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.main-image img:hover {
  transform: scale(1.02);
}

.thumbnails {
  display: flex;
  gap: 0.5em;
  flex-wrap: wrap;
}

.thumbnails img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.thumbnails img:hover {
  transform: scale(1.1);
  border-color: #ff6600;
}

/* =============================
   IMAGE MODAL
============================= */
.image-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.image-modal.active {
  display: flex;
}

.image-modal .modal-content {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-modal:hover {
  color: #ff6600;
}

.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3em;
  color: #fff;
  cursor: pointer;
  user-select: none;
  transition: color 0.3s ease;
}

.nav-arrow:hover {
  color: #ff6600;
}

.nav-arrow.left {
  left: 30px;
}

.nav-arrow.right {
  right: 30px;
}

#caption {
  text-align: center;
  color: #ccc;
  font-size: 1em;
  margin-top: 15px;
}

.category-filter {
  text-align: center;
  margin-bottom: 30px;
}

/* .filter-btn {
  background-color: #eee;
  border: none;
  color: #003366;
  padding: 10px 20px;
  margin: 5px;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.2s;
}

.filter-btn:hover {
  background-color: #ff6600;
  color: white;
} */

/* .filter-btn.active {
  background-color: #003366;
  color: white;
} */
/* --- Fix image viewer overlapping header --- */
header,
.navbar,
.site-header {
  z-index: 1000;
  /* stays below modal/lightbox */
}

.modal,
.modal-backdrop,
.lightbox,
.carousel,
.gallery-overlay {
  z-index: 2000 !important;
  /* ensures images are on top */
}

/* optional: prevent body scroll when modal open */
body.modal-open {
  overflow: hidden;
}

/* Fix: ensure lightbox overlays on top of header */
header,
nav.navbar,
.site-header,
.tpt-header {
  position: relative;
  z-index: 10 !important;
  /* keep header below overlay */
}

/* Generic lightbox / modal overlays */
.lightbox,
.lightboxOverlay,
.modal,
.modal-backdrop,
.glightbox-container,
.fancybox-container,
.mfp-bg,
.mfp-wrap {
  z-index: 9999 !important;
  position: relative;
}

.contact-page {
  padding: 60px 0;
  background: #f8f9fc;
  font-family: 'Segoe UI', sans-serif;
}

.contact-page h1 {
  text-align: center;
  margin-bottom: 30px;
  color: #003366;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  padding: 30px 40px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: #222;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #007bff;
  outline: none;
}

/* .btn {
  display: inline-block;
  background: #007bff;
  color: #fff;
  padding: 12px 24px;
  border-radius: 6px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.btn:hover {
  background: #0056b3;
} */

.success {
  text-align: center;
  color: #2e8b57;
  background: #e6ffed;
  border: 1px solid #2e8b57;
  padding: 10px;
  border-radius: 5px;
}

.error {
  text-align: center;
  color: #c0392b;
  background: #fdecea;
  border: 1px solid #c0392b;
  padding: 10px;
  border-radius: 5px;
}

body {
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  background-color: #f4f6f9;
  color: #222;
  line-height: 1.7;
  letter-spacing: 0.3px;
}

h1,
h2,
h3,
h4 {
  font-weight: 600;
  color: #002b5c;
}

section {
  padding: 80px 0;
}

[data-animate] {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease-out;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

[data-animate] {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease-out;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

header {
  background: rgba(0, 38, 77, 0.85);
  backdrop-filter: blur(6px);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

header.scrolled {
  background: linear-gradient(90deg, #001a33, #003366);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-text h1 {
  font-size: 3.2em;
  animation: fadeInDown 1s ease forwards;
}

.hero-text p {
  animation: fadeInUp 1.2s ease forwards;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}



.category-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-btn {
  background: #fff;
  /* fond clair pour inactif */
  color: #007BFF;
  /* texte bleu */
  border: 2px solid #007BFF;
  /* contour bleu */
  padding: 10px 20px;
  border-radius: 20px;
  /* arrondi léger */
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 123, 255, 0.1);
  /* léger relief */
}

.filter-btn:hover {
  background: linear-gradient(90deg, #007BFF, #0056b3);
  /* gradient au hover */
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.25);
  /* shadow plus visible */
  transform: translateY(-2px);
  /* léger lift */
}

.filter-btn.active {
  background: linear-gradient(90deg, #007BFF, #0056b3);
  /* gradient quand actif */
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.25);
}

/* .filter-btn {
  border: 1px solid #ccc;
  background: #fff;
  color: #003366;
  padding: 10px 20px;
  border-radius: 30px;
  transition: all 0.3s ease;
}
.filter-btn:hover, .filter-btn.active {
  background: #ff6600;
  color: #fff;
  border-color: #ff6600;
} */
.contact-form {
  background: #fff;
  padding: 40px 50px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #ff6600;
  box-shadow: 0 0 5px rgba(255, 102, 0, 0.3);
}

/* .btn {
    width: fit-content;
    padding: 12px 35px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50px;
    background: linear-gradient(90deg, #007BFF, #0056b3);
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0,123,255,0.2);
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0,86,179,0.3);
} */
/* .btn {
  background: linear-gradient(90deg, #ff6600, #ff8533);
  border: none;
}
.btn:hover {
  background: linear-gradient(90deg, #e65c00, #ff7a1a);
} */
footer {
  background: #001f3f;
  color: #ddd;
  padding: 50px 0;
  text-align: center;
}

footer .social-icons a {
  margin: 0 10px;
  font-size: 1.3em;
  color: #ff6600;
  transition: color 0.3s;
}

footer .social-icons a:hover {
  color: #fff;
}

a,
button,
input,
textarea {
  transition: all 0.3s ease;
}

/* ===========================
   PRODUITS VEDETTES
=========================== */
.featured-products {
  background: #f8f9fc;
  padding: 20px 0;
}

.featured-products .section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: #002b5c;
  margin-bottom: 2.5rem;
  position: relative;
}

.featured-products .section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #007BFF, #0056b3);
  margin: 10px auto 0;
  border-radius: 2px;
}

.featured-products .product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  justify-content: center;
  align-items: stretch;
}

.featured-products .product-card {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.featured-products .product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.featured-products .product-img {
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 15px;
}

.featured-products .product-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.featured-products .product-card:hover .product-img img {
  transform: scale(1.1);
}

.featured-products h3 {
  font-size: 1.1rem;
  color: #002b5c;
  font-weight: 600;
  margin: 0.8rem 0;
}

.featured-products p {
  font-size: 0.95rem;
  color: #555;
  min-height: 20px;
}

.featured-products .btn {
  width: fit-content;
  padding: 12px 35px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 50px;
  background: linear-gradient(90deg, #007BFF, #0056b3);
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.2);
}





/* ===========================
   A PROPOS
=========================== */

/* Section background */
.about {
  margin-top: 100px;
  padding: 5em 1.5em;
  background: linear-gradient(135deg, #003366, #004080);
}

/* Conteneur principal */
.about-content {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15);
  transform: translateY(0);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.about-content:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

/* Image professionnelle à gauche */
.about-image {
  background: url("../images/aboutpic.jpg") center/cover no-repeat;
  min-height: 300px;
}

/* Zone de texte */
.about-text {
  padding: 3em 2.5em;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 6px solid #003366;
}

/* Titre */
.about-text h2 {
  color: #003366;
  font-size: 2.3em;
  margin-bottom: 0.6em;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Paragraphe */
.about-text p {
  color: #333;
  font-size: 1.15em;
  line-height: 1.7em;
}

/* Version mobile */
@media (max-width: 900px) {
  .about-content {
    grid-template-columns: 1fr;
  }

  .about-text {
    border-left: none;
    border-top: 6px solid #003366;
    text-align: center;
  }
}

/* ===========================
   Related Products
=========================== */
/* --- Related Products --- */
.related {
  /* margin-top: 60px;  */
  text-align: center;
  /* centre le titre */
}

/* ===========================
   About Home Section
=========================== */
/* --- About Home Section --- */
.about-home {
  padding: 100px 20px;
  background: linear-gradient(135deg, #f0f4f8 0%, #d9e2f1 100%);
  position: relative;
  overflow: hidden;
}

.about-home .container {
  max-width: 1200px;
  margin: 0 auto;
}

.about-card {
  display: flex;
  flex-wrap: wrap;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
}

.about-left,
.about-right {
  flex: 1 1 50%;
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-left h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #0d1b2a;
  position: relative;
}

.about-left h2::after {
  content: '';
  width: 60px;
  height: 4px;
  background: #007BFF;
  border-radius: 2px;
  position: absolute;
  bottom: -10px;
  left: 0;
}

.about-left p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 30px;
}

.about-left .btn {
  width: fit-content;
  padding: 12px 35px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 50px;
  background: linear-gradient(90deg, #007BFF, #0056b3);
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.2);
}

.about-left .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(0, 86, 179, 0.3);
}

.about-right img {
  width: 100%;
  border-left: 1px solid #eee;
  object-fit: cover;
  border-radius: 0 20px 20px 0;
  transition: transform 0.3s ease;
}

.about-right img:hover {
  transform: scale(1.03);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .about-card {
    flex-direction: column;
  }

  .about-left,
  .about-right {
    flex: 1 1 100%;
    padding: 30px;
  }

  .about-right img {
    border-radius: 0 0 20px 20px;
    border-left: none;
  }

  .about-left h2 {
    font-size: 2.2rem;
  }
}

/* ===========================
   Button
=========================== */
/* .btn {
    width: fit-content;
    padding: 12px 35px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50px;
    background: linear-gradient(90deg, #007BFF, #0056b3);
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0,123,255,0.2);
} */

/* Bouton "voir tout" */

.btn-secondary {
  background: linear-gradient(90deg, #007BFF, #0056b3);
  /* blue gradient */
  color: #fff;
  padding: 0.9em 2em;
  /* wider for elegance */
  border-radius: 30px;
  /* pill-shaped */
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 6px 18px rgba(0, 123, 255, 0.3);
  /* soft shadow */
  transition: all 0.3s ease;
  /* smooth hover */
}

.btn-secondary:hover {
  background: linear-gradient(90deg, #0056b3, #007BFF);
  /* reversed gradient on hover */
  transform: translateY(-3px) scale(1.05);
  /* subtle lift + scale */
  box-shadow: 0 10px 25px rgba(0, 86, 179, 0.4);
  /* stronger shadow on hover */
}

/* .btn-secondary {
    width: fit-content;
    padding: 12px 35px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50px;
    background: linear-gradient(90deg, #007BFF, #0056b3);
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0,123,255,0.2);
}

.btn-secondary:hover {
      transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0,86,179,0.3);
} */
/* .btn-secondary {
  background: #003366;
  color: #fff;
}

.btn-secondary:hover {
  background: #00264d;
} */
.btn-submit {
  background: linear-gradient(90deg, #007BFF, #0056b3);
  color: #fff;
  padding: 0.95em 2.2em;
  border-radius: 35px;
  font-weight: 600;
  font-size: 1.05rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 123, 255, 0.3);
  transition: all 0.35s ease;
  position: relative;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-submit:hover {
  background: linear-gradient(90deg, #0056b3, #007BFF);
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 14px 30px rgba(0, 123, 255, 0.35);
}

.home-services .section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: #002b5c;
  margin-bottom: 2.5rem;
  position: relative;
}

.home-services .section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #007BFF, #0056b3);
  margin: 10px auto 0;
  border-radius: 2px;
}




/* ---------- Social icons (real logos) - integration ---------- */
.site-footer-social {
  width: 100%;
  padding: 12px 20px 6px;
  box-sizing: border-box;
}

.site-footer-social .sfs-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* title */
.site-footer-social .sfs-title {
  color: inherit;
  font-weight: 700;
  letter-spacing: 0.6px;
  margin-right: 6px;
  font-size: 0.95rem;
}

/* icons list */
.site-footer-social .sfs-list {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* common button */
.sfs-btn {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.35);
  transition: transform .28s cubic-bezier(.2, .9, .2, 1), box-shadow .28s ease;
  position: relative;
  overflow: visible;
  padding: 0;
  background-clip: padding-box;
}

/* show label (hidden by default) */
.sfs-label {
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translate(12px, -50%);
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

/* platform colors (use gradients consistent with site) */
.sfs-fb {
  background: linear-gradient(90deg, #0d8bf2, #0667c8);
}

.sfs-tt {
  background: linear-gradient(90deg, #000000, #111827);
}

.sfs-wa {
  background: linear-gradient(90deg, #25d366, #128c7e);
}

/* SVG sizing */
.sfs-btn svg {
  width: 22px;
  height: 22px;
  display: block;
}

/* Hover: show label and subtle lift. When hovering an icon,
   shift the icons that are *to the right* to make room (sibling selector) */
.sfs-btn:hover,
.sfs-btn:focus {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.45);
  z-index: 30;
  outline: none;
}

/* reveal its label */
.sfs-btn:hover .sfs-label,
.sfs-btn:focus .sfs-label {
  opacity: 1;
  transform: translate(6px, -50%);
}

/* SHIFT icons to the right when a previous icon is hovered:
   when an icon is hovered, all following siblings move right a bit so label is readable */
.sfs-btn:hover~.sfs-btn {
  transform: translateX(10px);
  transition: transform .28s cubic-bezier(.2, .9, .2, 1);
}

.sfs-btn:focus~.sfs-btn {
  transform: translateX(10px);
  transition: transform .28s cubic-bezier(.2, .9, .2, 1);
}

/* also ensure that if hovered icon itself had transform from hover we keep both effects */
.sfs-btn:hover~.sfs-btn,
.sfs-btn:focus~.sfs-btn {
  box-shadow: 0 14px 34px rgba(2, 6, 23, 0.2);
}

/* For keyboard users: allow focus to show label */
.sfs-btn:focus .sfs-label {
  opacity: 1;
  transform: translate(6px, -50%);
}

/* small screens adjustments */
@media (max-width:720px) {
  .sfs-btn {
    width: 48px;
    height: 48px;
    border-radius: 10px;
  }

  .sfs-label {
    display: none;
  }

  /* hide floating labels on very small screens to keep layout clean */
  .sfs-btn:hover~.sfs-btn {
    transform: translateX(6px);
  }
}

/* produit vedette slider */
/* produit vedette slider */
/* produit vedette slider */
/* produit vedette slider */

/* ===== Featured Products Slider - UPDATED ===== */
/* Featured Products Slider - Uniform Design */
.featured-slider-wrapper {
  position: relative;
  width: 100%;
  padding: 30px 0 60px;
  overflow: hidden;
}

.fp-viewport {
  width: 100%;
  overflow: hidden;
}

.fp-track {
  display: flex;
  gap: 20px;
  will-change: transform;
}

.fp-slide {
  flex: 0 0 340px;
  max-width: 340px;
  height: 520px;
  /* Increased taller height for better image display */
  display: flex;
  padding: 10px;
}

.featured-products .product-card {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #f2f2f2;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.featured-products .product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 40, 100, 0.12);
  border-color: #007BFF;
}

.featured-products .product-image {
  height: 240px;
  /* Generous height for images */
  background: #fdfdfd;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
}

.featured-products .product-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.6s ease;
}

.featured-products .product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px;
  text-align: center;
}

.featured-products .product-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #00264d;
  height: 3.6em;
  /* Fixed height instead of min-height for perfect alignment */
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.featured-products .product-info p {
  font-size: 0.9rem;
  color: #666;
  margin: 10px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
  /* Pushes button to the bottom */
}

.featured-products .product-info .btn {
  margin-top: auto;
  align-self: center;
  /* Centered as requested */
  padding: 10px 25px;
  border-radius: 12px;
  font-size: 0.95rem;
  width: fit-content;
}

.fp-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #007BFF;
  color: #fff;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.fp-prev {
  left: 10px;
}

.fp-next {
  right: 10px;
}

@media (max-width: 900px) {
  .fp-slide {
    flex: 0 0 280px;
    height: 480px;
  }
}

@media (max-width: 520px) {
  .fp-slide {
    flex: 0 0 100%;
    height: 460px;
  }
}


/* ------------------- Fully responsive dropdown ------------------- */
/* ------------------- Fully responsive dropdown ------------------- */
/* ------------------- Fully responsive dropdown ------------------- */


/* Ensure box sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Dropdown container */
.has-dropdown {
  position: relative;
}

/* Arrow */
.has-dropdown>a .arrow {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.7em;
  line-height: 0;
  transition: transform .18s ease;
}

/* Dropdown panel */
.has-dropdown .dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: -200%;
  min-width: 180px;
  max-width: min(90vw, 800px);
  background: #f8f9fc !important;
  /* background: linear-gradient(180deg, #f8f9fc  0%, #dff8ff 100% ) !important; */
  border-bottom: 2px solid #f8f9fc;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  margin: 0;
  padding: 6px 0;
  list-style: none;
  z-index: 1200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Dropdown items */
.has-dropdown .dropdown li a {
  display: block;
  padding: 10px 14px;
  white-space: normal;
  text-decoration: none;
  color: inherit;
}

.has-dropdown .dropdown li a:hover {
  background: rgba(0, 0, 0, 0.04);
}

/* Desktop hover */
@media (hover: hover) {
  .has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .has-dropdown:hover>a .arrow {
    transform: rotate(-135deg);
  }
}

/* JS open state for both desktop & mobile */
.has-dropdown.open .dropdown {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

.has-dropdown.open>a .arrow {
  transform: rotate(-135deg);
}

/* Mobile adjustments */
@media (max-width: 900px) {
  .menu-toggle {
    display: inline-block;
    cursor: pointer;
  }



  /* ✅ FIXED: Mobile dropdown - STARTS COLLAPSED */
  .has-dropdown .dropdown {
    position: static !important;
    display: block !important;
    /* ← FORCE DISPLAY */
    max-height: 0 !important;
    /* ← STARTS HIDDEN */
    overflow: hidden !important;
    padding: 0 !important;
    /* ← NO PADDING WHEN CLOSED */
    transition: all 0.3s ease !important;
    margin: 0 !important;
  }

  /* ✅ FIXED: Mobile dropdown - OPENS FULLY */


  /* Items styling */
  .has-dropdown .dropdown li a {
    padding: 14px 20px !important;
    display: block !important;
  }
}





/* Hero styles - paste into assets/css/style.css */
/* Hero styles - paste into assets/css/style.css */
/* Hero styles - paste into assets/css/style.css */



.hero-wrapper {
  margin-top: 90px;
  /* adjust based on your header height */
  position: relative;
  width: 100%;
  overflow: hidden;
  min-height: 300px;
  /* adjust as needed */
  display: block;
}

/* full-width background image */
.hero-image {
  width: 100%;
  height: 500px;
  /* desktop height */
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* overlay that holds the text */
.hero-overlay {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  pointer-events: none;
  /* so text doesn't block clicks */
}

/* hero text styling */
/* .hero-text {
    pointer-events: auto;
    max-width: 1100px;
    padding: 12px 18px;
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 0 2px 6px rgba(0,0,0,0.45);
    line-height: 1.1;
} */

/* Position helpers */
.pos-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.pos-top-left {
  position: absolute;
  left: 30px;
  top: 30px;
  transform: none;
  text-align: left;
}

.pos-top-right {
  position: absolute;
  right: 30px;
  top: 30px;
  transform: none;
  text-align: right;
}

.pos-bottom-left {
  position: absolute;
  left: 30px;
  bottom: 30px;
  transform: none;
  text-align: left;
}

.pos-bottom-right {
  position: absolute;
  right: 30px;
  bottom: 30px;
  transform: none;
  text-align: right;
}

/* Responsive tweaks */
@media (max-width: 900px) {
  .hero-image {
    height: 300px;
  }

  .hero-text {
    font-size: 1.6rem;
    padding: 10px 14px;
    max-width: calc(100% - 60px);
  }
}

@media (max-width: 480px) {
  .hero-image {
    height: 220px;
  }

  .hero-text {
    font-size: 1.1rem;
    padding: 8px 10px;
  }

  .pos-top-left,
  .pos-top-right,
  .pos-bottom-left,
  .pos-bottom-right {
    left: 12px;
    right: 12px;
    bottom: 12px;
    top: 12px;
  }
}







/* Layout for catalogue with left sidebar + right product area */
/* Layout for catalogue with left sidebar + right product area */
/* Layout for catalogue with left sidebar + right product area */



/* Layout for catalogue with left sidebar + right product area */
.catalogue .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.catalogue-wrapper {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  /* align sidebar & main content to top */
}

/* Sidebar */
/* .catalogue-sidebar {
  flex: 0 0 260px;
  min-width: 200px;
}

.category-filter {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.category-filter .filter-btn {
  display: block;
  padding: 0.6rem 0.8rem;
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: background-color .15s;
}

.category-filter .filter-btn.active,
.category-filter .filter-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
} */
/* ======================================
   LEFT SIDEBAR – SIMPLE & PROFESSIONAL
   ISOLATED VERSION (NO :root)
   ====================================== */

/* Sidebar container */
.catalogue-sidebar {
  /* Variables locales UNIQUEMENT à la sidebar */
  --blue-main: #1e40af;
  --border-light: #e5e7eb;
  --text-blue: #1e40af;
  --text-default: #1f2937;

  position: relative;
  width: 260px;
  min-height: calc(100vh - 200px);

  padding: 1.5rem 1.25rem;

  background-color: #ffffff;
  border-right: 1px solid var(--border-light);

  /* Effet bleu simple et élégant */
  box-shadow: inset 4px 0 0 var(--blue-main);
  /* 🔹 DÉPLACEMENT VERS LA GAUCHE */
  margin-left: -5em;
}

/* Category list */
.category-filter {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* Category links – TEXT ONLY */
.category-filter .filter-btn {
  display: block;

  padding: 0.35rem 0 0.35rem 0.5rem;
  /* 🔹 léger décalage à droite */
  text-align: left;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;

  color: var(--text-blue) !important;
  text-decoration: none;

  background: none;
  border: none;
  border-radius: 0px;
}

/* Hover – very subtle */
.category-filter .filter-btn:hover {
  text-decoration: underline;
}

/* Active category */
.category-filter .filter-btn.active {
  font-weight: 600;
}

/* ======================================
   RESPONSIVE (MOBILE)
   ====================================== */

@media (max-width: 900px) {
  .catalogue-sidebar {
    width: 100%;
    margin-left: 0;
    min-height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    box-shadow: inset 0 -3px 0 var(--blue-main);
  }
}

/* Main content */
.catalogue-main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding-top: 0;
  /* or small value if needed */
}


.catalogue-main h1 {
  margin: 0 0 1.5rem 0;
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.product-card {
  background: #fff;
  border-radius: 8px;
  padding: 0.9rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.product-img {
  width: 100%;
  padding-top: 56%;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: #f5f5f5;
}

.product-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-card .btn {
  margin-top: auto;
  display: inline-block;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Responsive: stack sidebar above products */
@media (max-width: 860px) {
  .catalogue-wrapper {
    flex-direction: column;
  }

  /* .catalogue-sidebar {
    width: 100%;
  } */
}

.catalogue-main h1,
.catalogue-main h2 {
  margin-top: 0;
  /* remove top margin */
  margin-bottom: 1.5rem;
  /* optional: space below */
}







/* category buttons as block links */
/* .category-filter .filter-btn {
  display: block;
  padding: 0.6rem 0.8rem;
  text-decoration: none;
  border-radius: 6px;
  background: linear-gradient(90deg, #007BFF, #0056b3);
  transition: background-color .15s, transform .06s;
  border: 1px solid rgba(0, 0, 0, 0.06);
} */

/* active / hover states — adjust to fit your theme colors */
/* .category-filter .filter-btn.active,
.category-filter .filter-btn:hover {
  background: linear-gradient(120deg, #007BFF, #0056b3, #007BFF);
  background-size: 250% 250%;
  animation: liquidGradient 1.5s ease infinite;
  color: #fff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
  transition: transform 220ms ease;
}

@keyframes liquidGradient {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
} */

/* ===== MEGA DROPDOWN (Tunisianet style) ===== */

.has-dropdown {
  position: relative;
}

.mega-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: min(1100px, 95vw);
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, .15);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: .25s ease;
  z-index: 1000;
}

.has-dropdown:hover .mega-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-column h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
}

.mega-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mega-column ul li a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  color: #444;
  text-decoration: none;
}

.mega-column ul li a:hover {
  color: #000;
  text-decoration: underline;
}

.mega-column .empty {
  font-size: 13px;
  color: #aaa;
}


/* ===== MOBILE ===== */



.mega-category {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #111;
  text-decoration: none;
}

.mega-category:hover {
  text-decoration: underline;
}

/* ================= MOBILE MEGA MENU FIX ================= */





/* ===== FORCE CATEGORY VS PRODUCT COLORS ===== */

/* CATEGORY */
header nav .has-dropdown .mega-dropdown .mega-column .mega-category {
  color: #0b3a8f !important;
  font-weight: 700 !important;
}

/* PRODUCTS */
header nav .has-dropdown .mega-dropdown .mega-column ul li a {
  color: #555 !important;
  font-weight: 400 !important;
}

/* HOVER */
header nav .has-dropdown .mega-dropdown .mega-column ul li a:hover {
  color: #007bff !important;
}

header nav .has-dropdown .mega-dropdown .mega-column .mega-category:hover {
  color: #000 !important;
}

/*  =============================
     MAP
============================= -*/
.location-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 40px;
  background-color: var(--white);
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}


.location-header h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: #002b5c;
  margin-bottom: 2.5rem;
  position: relative;
}

.location-header h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #007BFF, #0056b3);
  margin: 10px auto 0;
  border-radius: 2px;
}

.location-header p {
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto;
}

.location-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 40px;
}

.map-container {
  width: 100%;
  height: 420px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #ddd;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.location-actions {
  text-align: center;
}

.map-button {
  display: inline-block;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-color), #3a6cf4);
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(31, 60, 136, 0.3);
}

.map-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(31, 60, 136, 0.4);
}

@media (max-width: 768px) {
  .location-section {
    margin: 30px 15px;
    padding: 25px;
  }

  .location-header h2 {
    font-size: 1.8rem;
  }

  .map-container {
    height: 320px;
  }
}

.spec-table-wrapper {
  margin-top: 25px;
  overflow-x: auto;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.spec-table th,
.spec-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  text-align: left;
}

.spec-table th {
  width: 35%;
  background: #f8f9fb;
  font-weight: 600;
  color: #333;
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
  border-bottom: none;
}


/* ===== TABLEAU TECHNIQUE HORIZONTAL ===== */
/* ===== TABLEAU TECHNIQUE HORIZONTAL ===== */
/* ===== TABLEAU TECHNIQUE HORIZONTAL ===== */
/* ===== TITRE ===== */
.specs-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 25px 0 15px;
}

/* ===== TABLEAU DESKTOP ===== */
.product-specs-horizontal {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* 3 colonnes desktop */
  gap: 16px;
  background: #f8fafc;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
}

.spec-item {
  background: #fff;
  border-radius: 10px;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
}

.spec-label {
  display: block;
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.spec-value {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
}

.product-info .product-specs-wrapper {
  display: none;
}

/* ===== TABLET ===== */
@media (max-width: 1024px) {
  .product-specs-horizontal {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {

  /* CACHER sous les images */
  .product-gallery .product-specs-wrapper {
    display: none;
  }

  /* AFFICHER sous la description */
  .product-info .product-specs-wrapper {
    display: block;
    margin: 25px 0;
  }

  .product-specs-horizontal {
    grid-template-columns: 1fr;
  }
}

/* ==================================================
   Footer – AUDLEY Style (Clean & Organized)
================================================== */

/* ---------- Base ---------- */
.site-footer {
  background: #00264d;
  color: #cbd5e1;
  padding: 60px 20px 20px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, max-content));
  gap: 28px;
  justify-content: space-between;
}

.footer-container>* {
  align-self: start;
}

/* ---------- Brand ---------- */
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  /* ← CRUCIAL */
  text-align: center;
}


.footer-brand img {
  margin-bottom: 14px;
}

.footer-tagline {
  font-size: 14px;
  line-height: 1.6;
  max-width: 300px;
  margin-bottom: 12px;
  color: #94a3b8;
}

/* Footer section titles – unified style */
.footer-title {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 18px;
  color: #ffffff;
  /* même couleur pour tous */
  opacity: 0.9;
  position: relative;
}

/* subtle underline */
.footer-title::after {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  margin-top: 6px;
  background: rgba(102, 60, 255, 0.6);
  border-radius: 2px;
}


/* ---------- Navigation & Links ---------- */
.footer-links,
.footer-categories,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a,
.footer-categories a,
.footer-contact a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-categories a:hover,
.footer-contact a:hover {
  color: #38bdf8;
}

/* ---------- Contact list ---------- */
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ---------- Footer Contact Form ---------- */
.footer-contact-form {
  margin-top: 20px;
  max-width: 260px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}


.footer-contact-form input,
.footer-contact-form textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #e5e7eb;
  font-size: 13px;
  outline: none;
}

.footer-contact-form input::placeholder,
.footer-contact-form textarea::placeholder {
  color: #94a3b8;
}

.footer-contact-form textarea {
  resize: none;
}

/* Button */
.footer-contact-form button {
  margin-top: 6px;
  padding: 9px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-contact-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
}

/* ---------- Bottom Bar ---------- */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 40px;
  padding-top: 16px;
  display: flex;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
}

.footer-bottom a {
  color: #94a3b8;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #38bdf8;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {

  /* Navigation & Categories → Horizontal */
  .footer-links,
  .footer-categories {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
  }

  .footer-links a,
  .footer-categories a {
    white-space: nowrap;
    font-size: 13px;
  }
}

@media (max-width: 600px) {
  .footer-container {
    gap: 30px;
  }
}


/* HARD FIX: force form to stay under text */
.footer-brand {
  height: auto !important;
  justify-content: flex-start !important;
}

.footer-contact-form {
  margin-top: 20px !important;
  margin-bottom: 0 !important;
}

.footer-brand * {
  flex-shrink: 0;
}

/* === FINAL FIX: footer columns alignment === */
.footer-col {
  display: flex;
  flex-direction: column;
  justify-content: flex-start !important;
  align-items: stretch;
}

/* Form column */
.footer-form {
  align-items: stretch;
}

/* Form size control */
.footer-form .footer-contact-form {
  max-width: 260px;
}

/* Align footer columns content */
.footer-col {
  text-align: left;
}

.footer-container {
  gap: 28px;
  /* au lieu de 40px */
}

.footer-title {
  margin-bottom: 12px;
}

.footer-links,
.footer-categories,
.footer-contact {
  gap: 6px;
}

.footer-contact-form {
  max-width: 230px;
  /* plus petit */
  gap: 8px;
}

.footer-contact-form input,
.footer-contact-form textarea {
  padding: 6px 8px;
  font-size: 12.5px;
}

.footer-contact-form textarea {
  rows: 2;
}

.footer-contact-form button {
  padding: 7px;
  font-size: 12.5px;
}

.footer-contact-form {
  margin-top: 10px;
}


/* ===== MEGA MENU 2 COLONNES ===== */

.mega-2cols {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  padding: 0;
}

/* LEFT */
.mega-left {
  background: #f6f7f9;
  border-right: 1px solid #ddd;
}

.category-list {
  list-style: none;
  margin: 0;
  padding: 10px 0;
}

.category-item {
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 600;
  color: #333;
}

.category-item:hover,
.category-item.active {
  background: #fff;
  color: #0b3a8f;
}

/* RIGHT */
.mega-right {
  padding: 20px;
}

.product-panel {
  display: none;
}

.product-panel.active {
  display: block;
}

.product-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.product-panel ul li a {
  display: block;
  padding: 6px 0;
  color: #444;
  text-decoration: none;
}

.product-panel ul li a:hover {
  color: #007bff;
}


/* ======================================================
   ✅ MEGA MENU 2 COLONNES — VERSION STABLE
   ====================================================== */

/* parent must be reference */
header li.has-dropdown {
  position: relative;
}

/* dropdown container */
header .mega-audley {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, 95vw);
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
  display: grid;
  grid-template-columns: 260px 1fr;
  opacity: 0;
  visibility: hidden;
  z-index: 9999;
}

/* show on hover */
@media (hover: hover) {
  header li.has-dropdown:hover>.mega-audley {
    opacity: 1;
    visibility: visible;
  }
}

/* LEFT */
header .mega-audley .mega-left {
  background: #f6f7f9;
  border-right: 1px solid #e5e7eb;
}

header .mega-audley .category-list {
  list-style: none;
  margin: 0;
  padding: 12px 0;
}

header .mega-audley .category-item {
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 600;
  color: #1f2937;
}

header .mega-audley .category-item.active,
header .mega-audley .category-item:hover {
  background: #fff;
  color: #1e40af;
}

/* RIGHT */
header .mega-audley .mega-right {
  padding: 20px;
}

header .mega-audley .product-panel {
  display: none;
}

header .mega-audley .product-panel.active {
  display: block;
}

/* MOBILE */
@media (max-width: 900px) {
  header .mega-audley {
    position: static;
    transform: none;
    display: block;
    opacity: 1;
    visibility: visible;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }

  header li.has-dropdown.open>.mega-audley {
    max-height: 80vh;
  }

  header .mega-audley {
    grid-template-columns: 1fr;
  }
}




/* hero */
/* hero */
/* hero */
/* hero */
/* hero */
/* hero */

/* ===============================
   HERO BLUE OVERLAY
================================ */
/* =================================================
   HERO INTERNE (pages services, contact, etc.)
   NE TOUCHE PAS hero-home
================================================= */

.hero-wrapper {
  margin-top: 90px;
  position: relative;
  width: 100%;
  overflow: hidden;
  min-height: 300px;
}

.hero-wrapper .hero-image {
  width: 100%;
  height: 500px;
  background-size: cover;
  background-position-y: 20%;
  background-repeat: no-repeat;
  position: relative;
}

.hero-wrapper .hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;

  background: linear-gradient(90deg,
      rgba(10, 45, 120, 0.60) 0%,
      rgba(10, 45, 120, 0.45) 35%,
      rgba(10, 45, 120, 0.25) 65%,
      rgba(10, 45, 120, 0.00) 100%);
}

.hero-wrapper .hero-text {
  position: relative;
  z-index: 2;
  pointer-events: auto;

  max-width: 1100px;
  padding: 14px 22px;

  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;

  text-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);

  animation: heroFade 1.2s ease-out both;
}

@keyframes heroFade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.hero-wrapper .pos-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.hero-wrapper .pos-top-left {
  position: absolute;
  left: 30px;
  top: 30px;
  text-align: left;
}

.hero-wrapper .pos-top-right {
  position: absolute;
  right: 30px;
  top: 30px;
  text-align: right;
}

.hero-wrapper .pos-bottom-left {
  position: absolute;
  left: 30px;
  bottom: 30px;
  text-align: left;
}

.hero-wrapper .pos-bottom-right {
  position: absolute;
  right: 30px;
  bottom: 30px;
  text-align: right;
}

@media (max-width: 900px) {
  .hero-wrapper .hero-image {
    /* height: 300px; */
  }

  .hero-wrapper .hero-text {
    font-size: 1.8rem;
    padding: 12px 16px;
    max-width: calc(100% - 40px);
  }
}

@media (max-width: 480px) {
  .hero-wrapper .hero-image {
    height: 300px;
  }

  .hero-wrapper .hero-text {
    font-size: 1.2rem;
    padding: 10px 12px;
  }

  .hero-wrapper .pos-top-left,
  .hero-wrapper .pos-top-right,
  .hero-wrapper .pos-bottom-left,
  .hero-wrapper .pos-bottom-right {
    left: 12px;
    right: 12px;
    top: 12px;
    bottom: 12px;
  }
}

/* -------------------service----------------- */
/* -------------------service----------------- */
/* -------------------service----------------- */

/* =========================
   SERVICES VERSION IMAGES
========================= */

.services-v2 {
  padding: 90px 20px;
  background: #f7f9fc;
}

.services-v2 h2 {
  text-align: center;
  font-size: 2.6rem;
  margin-bottom: 70px;
  color: #003366;
}

.services-v2-list {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Carte */
.service-v2-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.service-v2-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
}

/* Image */
.service-v2-image {
  width: 320px;
  min-width: 320px;
  overflow: hidden;
}

.service-v2-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-v2-card:hover .service-v2-image img {
  transform: scale(1.08);
}

/* Contenu */
.service-v2-content {
  padding: 40px 45px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-v2-content h3 {
  margin: 0 0 15px 0;
  font-size: 1.8rem;
  color: #003366;
}

.service-v2-content p {
  margin: 0;
  font-size: 1.05rem;
  color: #555;
  line-height: 1.7;
}

/* Alternance gauche / droite */
.service-v2-card:nth-child(even) {
  flex-direction: row-reverse;
}

@media (max-width: 768px) {

  .service-v2-card,
  .service-v2-card:nth-child(even) {
    flex-direction: column;
  }

  .service-v2-image {
    width: 100%;
    min-width: 100%;
    height: 220px;
  }

  .service-v2-content {
    padding: 30px;
  }
}


/* ------------ABOUT-US------------- */
/* ------------ABOUT-US------------- */
/* ------------ABOUT-US------------- */
/* =========================
   ABOUT V2
========================= */

.about-v2 {
  padding: 90px 20px;
  background: #f7f9fc;
}

.about-v2-container {
  max-width: 1100px;
  margin: 0 auto;
}

/* Intro */
.about-v2-intro {
  background: white;
  padding: 50px 60px;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  margin-bottom: 80px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.about-v2-intro::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 6px;
  height: 100%;
  background: #003366;
}

.about-v2-intro h2 {
  margin-top: 0;
  text-align: center;
}


/* Brands */
.about-v2-brands {
  margin-top: 70px;
  text-align: center;
}

.about-v2-brands h3 {
  font-size: 2rem;
  color: #003366;
  margin-bottom: 30px;
}

.about-v2-brands-logos {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.about-v2-brands-logos img {
  height: 130px;
  max-width: 220px;
  object-fit: contain;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.about-v2-brands-logos img:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.15));
}


/* Certificates */
.about-v2-certificates {
  margin-top: 90px;
}

.about-v2-certificates h3 {
  text-align: center;
  font-size: 2.2rem;
  color: #003366;
  margin-bottom: 50px;
}

.about-v2-cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 40px;
}


/* Card */
.cert-v2-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: 0.3s ease;
}

.cert-v2-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.12);
}

.cert-v2-card img {
  width: 100%;
  height: 320px;
  object-fit: contain;
  background: #f7f9fc;
  padding: 15px;
}

.cert-v2-card h4 {
  margin: 25px 25px 10px;
  color: #003366;
  font-size: 1.4rem;
}

.cert-v2-card p {
  margin: 0 25px 30px;
  color: #555;
  font-size: 1.05rem;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .about-v2-intro {
    padding: 35px 30px;
  }

  .about-v2-brands-logos img {
    height: 80px;
  }
}


/* =========================
   RESULTS PAGE
========================= */

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.result-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: #111;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: transform .25s ease, box-shadow .25s ease;
}

.result-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
}

/* Product image */
.result-card-img {
  height: 180px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.result-card-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Body */
.result-card-body {
  padding: 16px;
  text-align: center;
}

.result-card-body h4 {
  font-size: 1rem;
  font-weight: 700;
}

/* Category card – professional search result style */
.category-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  min-height: 90px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.category-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.category-card .result-card-body {
  padding: 0;
}

.category-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1f2937;
}

.category-card p {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 4px;
}


/* ------------------------------------------ */
/* ------------------------------------------ */
/* ------------------------------------------ */
/* ===== RELATED PRODUCTS CAROUSEL ===== */

/* .related-carousel {
  position: relative;
} */

/* .carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 20px 0;
} */
/* 
.carousel-track::-webkit-scrollbar {
  display: none;
} */

/* .product-card {
  flex: 0 0 260px;
  max-width: 260px;
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
} */

/* .product-card img {
  height: 160px;
  object-fit: contain;
  margin-bottom: 10px;
} */

/* Boutons */
/* .carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #007BFF;
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
} */

/* .carousel-btn.prev { left: -20px; }
.carousel-btn.next { right: -20px; } */
/* .related-carousel {
  position: relative;
  overflow: hidden;
} */

/* .carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: hidden;
  scroll-behavior: smooth;
  padding: 20px 60px;
} */

/* .carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #007BFF;
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
} */

/* .carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; } */
/* .carousel-track {
  padding-right: 120px; /* laisse de l'espace pour la dernière carte */
*/
/* .related-carousel {
  position: relative;
  display: flex;
  align-items: center;
} */

/* .carousel-viewport {
  overflow: hidden;
  width: 100%;
} */

/* .carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease;
  will-change: transform;
} */
/* 
.carousel-btn {
  background: #007BFF;
  color: #fff;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
} */

/* .carousel-btn:hover {
  background: #0056b3;
} */


/* .related-carousel {
  position: relative;
  overflow: hidden;
} */

/* .carousel-track {
  display: flex;
  gap: 20px;
  overflow: hidden;
  padding: 20px 80px; 
  scroll-behavior: smooth;
} */

/* .product-card {
  flex: 0 0 260px;
  max-width: 260px;
} */
/* .related-carousel {
  position: relative;
  display: flex;
  align-items: center;
} */

/* .carousel-viewport {
  overflow: hidden;
  width: 100%;
} */

/* .carousel-track {
  display: flex;
  gap: 20px;
  white-space: nowrap;
} */

/* .product-card {
  flex: 0 0 260px;
} */


/* ===== PRODUITS SIMILAIRES (ISOLÉ) ===== */
.related {
  margin-top: 0;
}

/* Conteneur plein écran */
.related-carousel {
  position: relative;
  width: 100vw;
  overflow: hidden;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* Track */
.related-track {
  display: flex;
  gap: 20px;
  padding: 20px 70px;
  overflow-x: scroll;
  scroll-behavior: auto;
}

.related-track::-webkit-scrollbar {
  display: none;
}

/* Card */
.related-card {
  flex: 0 0 260px;
  background: #fff;
  border-radius: 12px;
  padding: 16px 16px 24px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.related-card:hover {
  transform: translateY(-6px);
}

.related-card img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  margin-bottom: 15px;
}

.related-card a 
h3 {
  font-size: 1.05rem;
  line-height: 1.3;
  margin-bottom: 20px;
  color: #003366;
  flex-grow: 1;
  /* Permet au titre de prendre l'espace et pousse le bouton */
  display: flex;
  align-items: center;
  justify-content: center;
}
.related-card a  {
    text-decoration: none;
}

.related-card .btn {
  margin-top: auto;
}

/* Flèches */
.related-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #007BFF;
  color: #fff;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
}

.related-btn.prev {
  left: 15px;
}

.related-btn.next {
  right: 15px;
}

/* Mobile */
@media (max-width: 768px) {
  .related-track {
    padding: 20px;
    gap: 16px;
    scroll-snap-type: x mandatory;
  }

  .related-card {
    flex: 0 0 80%;
    scroll-snap-align: start;
  }

  .related-btn {
    display: none;
  }
}

/* ===== DOTS MOBILE ===== */
.related-dots {
  display: none;
  justify-content: center;
  gap: 10px;
  margin: 12px 0 20px;
}

.related-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #007BFF;
  opacity: 0.3;
  transition: all 0.3s ease;
}

.related-dots span.active {
  width: 12px;
  height: 12px;
  opacity: 1;
  background: #66B2FF;
  /* bleu clair */
}

@media (max-width: 768px) {
  .related-dots {
    display: flex;
  }
}


/* -----Carousel page d'accueil----- */
/* -----Carousel page d'accueil----- */
/* -----Carousel page d'accueil----- */

/* Featured Products styles removed from here and consolidated above in the 2000s range */

.featured-products .section-title {
  margin-bottom: 20px;
  /* avant souvent 40–60px */
}

.featured-products .fp-viewport {
  overflow: hidden;
  padding-bottom: 50px;
  /* 🔥 évite coupe visuelle */
}

.featured-products .section-title {
  margin-bottom: 20px;
}

.featured-products .fp-btn {
  position: absolute;
  /* 🔥 PAS fixed */
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  /* 🔥 raisonnable */
}

.related-btn {
  position: absolute;
  /* 🔥 PAS fixed */
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  /* 🔥 raisonnable */
}

section.related {
  padding: 0px;
}

section.product-detail {
  padding: 0px;
  padding-top: 80px;
}



.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox img {
  max-width: 90%;
  max-height: 80vh;
  transition: opacity 0.3s ease;
}

/* Flèches */
.lightbox .nav {
  position: absolute;
  top: 50%;
  font-size: 48px;
  color: white;
  cursor: pointer;
  user-select: none;
  padding: 10px;
  transform: translateY(-50%);
  opacity: 0.7;
}

.lightbox .nav:hover {
  opacity: 1;
}

.lightbox .prev {
  left: 30px;
}

.lightbox .next {
  right: 30px;
}

/* Dots */
.dots {
  position: absolute;
  bottom: 40px;
  display: flex;
  gap: 10px;
}

.dots span {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.dots span.active {
  width: 14px;
  height: 14px;
  background: white;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}




/* -------------- HERO ACCUEIL ---------------- */
/* -------------- HERO ACCUEIL ---------------- */
/* -------------- HERO ACCUEIL ---------------- */

.hero-cards {
  padding: 40px;
  background: #f5f5f5;
}

.cards-slider {
  display: flex;
  gap: 20px;
  height: 70vh;
}

.card {
  flex: 1;
  border-radius: 28px;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: flex 0.8s ease;
  position: relative;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.card.active {
  flex: 4;
}

.card-content {
  position: absolute;
  bottom: 40px;
  left: 40px;
  z-index: 2;
  color: #fff;
  max-width: 420px;
  /* opacity: 0;
  transform: translateY(20px); */
  transition: all 0.6s ease 0.3s;
}

.card.active .card-content {
  opacity: 1;
  /* transform: translateY(0); */
}

.card h2 {
  font-size: 2.4rem;
  margin-bottom: 10px;
}

.card p {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.btn {
  background: #007bff;
  padding: 12px 28px;
  border-radius: 30px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

@media (max-width: 768px) {
  .cards-slider {
    flex-direction: column;
    height: auto;
  }

  .card {
    height: 300px;
  }

  .card.active {
    flex: 1;
  }
}

.hero-cards {
  margin-top: 90px;
  /* ajuste selon la hauteur réelle du header */
}

.hero-cards {
  background: linear-gradient(180deg,
      #f4f7fb 0%,
      #eef3f8 100%);
  padding: 40px 40px 60px;
}

.cards-slider {
  display: flex;
  gap: 20px;
  height: 70vh;
}

/* CARD BASE */
.card {
  flex: 1;
  border-radius: 28px;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: flex 0.9s ease;
}

/* CARD ACTIVE */
.card.active {
  flex: 4;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
      rgba(0, 0, 0, 0.6),
      rgba(0, 0, 0, 0.2),
      rgba(0, 0, 0, 0.05));
  z-index: 1;
}

.card-content {
  position: absolute;
  bottom: 60px;
  left: 60px;
  z-index: 2;
  color: #fff;
  max-width: 520px;
  transition: all 0.6s ease;
}

.card-content h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;

  margin-bottom: 15px;
}

.card-content p {
  font-size: 1.1rem;
  margin-bottom: 25px;
}

.card:not(.active) .card-content {
  bottom: 50%;
  left: 50%;
  /* transform: translate(-50%, 50%) rotate(-90deg); */
  transform-origin: center;
  text-align: center;
  max-width: none;
}

.card:not(.active) .card-content p,
.card:not(.active) .card-content .btn {
  display: none;
}

.card:not(.active) .card-content h1 {
  font-size: 1.3rem;
  white-space: nowrap;
}

/* Slides fermés — DESKTOP */
@media (min-width: 769px) {
  .card:not(.active) .card-content {
    position: absolute;
    top: 50%;
    left: 50%;
    /* transform: translate(-50%, -50%) rotate(-90deg); */
    transform-origin: center;
    text-align: center;
    white-space: nowrap;
  }

  .card:not(.active) .card-content p,
  .card:not(.active) .card-content .btn {
    display: none;
  }
}

/* .card-content h1,
.card-content p,
.card-content .btn {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
} */
.card-content h1,
.card-content p,
.card-content .btn {
  opacity: 1;
  /* transform: none; */
  transition: none;
}


.card.active .card-content h1 {
  opacity: 1;
  /* transform: translateY(0); */
  transition-delay: 0.2s;
}

.card.active .card-content p {
  opacity: 1;
  /* transform: translateY(0); */
  transition-delay: 0.35s;
}

.card.active .card-content .btn {
  opacity: 1;
  /* transform: translateY(0); */
  transition-delay: 0.5s;
}

.hero-cards {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding: 60px 5vw;
}

.card {
  transition:
    flex 0.9s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.6s ease;
}

@media (min-width: 769px) {

  /* Contenu des slides fermés */
  .card:not(.active) .card-content {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
  }

  /* ❌ cacher titre et texte */
  .card:not(.active) .card-content h1,
  .card:not(.active) .card-content p {
    display: none;
  }

  /* ✅ afficher SEULEMENT le bouton */
  .card:not(.active) .card-content .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    font-size: 0.95rem;
    white-space: nowrap;
  }
}

@media (max-width: 768px) {
  .card-content {
    transform: none !important;
    left: 24px;
    bottom: 24px;
    text-align: left;
  }

  .card-content h1,
  .card-content p,
  .card-content .btn {
    display: block;
  }
}

/* Slides fermés : cacher tout sauf le bouton */
.card:not(.active) .card-content h1,
.card:not(.active) .card-content p {
  display: none;
}

.card:not(.active) .card-content {
  position: absolute;
  top: 50%;
  left: 50%;
  /* transform: translate(-50%, -50%); */
  width: auto;
  text-align: center;
}

.card:not(.active) .card-content .btn {
  display: inline-flex;
  padding: 12px 22px;
  font-size: 0.95rem;
  white-space: nowrap;
}

.card-content h1,
.card-content p,
.card-content .btn {
  opacity: 0;
  /* transform: translateX(-40px); */
  /* transition:
    opacity 0.6s ease, */
  /* transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); */
}

.card.active .card-content h1,
.card.active .card-content p,
.card.active .card-content .btn {
  opacity: 1;
  /* transform: translateX(0); */
}

.card.active .card-content h1 {
  transition-delay: 0.1s;
}

.card.active .card-content p {
  transition-delay: 0.2s;
}

.card.active .card-content .btn {
  transition-delay: 0.3s;
}

.card:not(.active) .card-content .btn {
  opacity: 1;
  /* transform: none; */
  /* transition: none; */
}

/* Slides fermés — bouton parfaitement centré */
.card:not(.active) .card-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  /* transform: none;      */
}

.card:not(.active) .card-content .btn {
  margin: 0;
}

@media (max-width: 768px) {
  .card-content .btn {
    width: 50%;
    max-width: 260px;
    padding: 14px 0;
    font-size: 1rem;
    text-align: center;
  }
}

@media (max-width: 768px) {

  /* ===== SLIDE ACTIF (NORMAL) ===== */
  .card.active .card-content {
    display: block;
    text-align: left;
  }

  /* ===== SLIDES FERMÉS ===== */
  .card:not(.active) .card-content {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  /* cacher titre + texte dans slides fermés */
  .card:not(.active) .card-content h1,
  .card:not(.active) .card-content p {
    display: none;
  }

  /* bouton – taille FIXE et centrée */
  .card:not(.active) .card-content .btn {
    width: 80%;
    max-width: 260px;
    padding: 14px 0;
    font-size: 1rem;
    text-align: center;
  }

}

@media (max-width: 768px) {

  /* SLIDES FERMÉS — CONTENEUR */
  .card:not(.active) .card-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* cacher titre + texte */
  .card:not(.active) .card-content h1,
  .card:not(.active) .card-content p {
    display: none;
  }

  /* 🔥 BOUTON SLIDE FERMÉ (MOBILE) */
  .card:not(.active) .card-content .btn {
    width: 40%;
    max-width: 240px;
    height: 44px;
    /* 🔑 hauteur FIXE */
    padding: 0;
    /* 🔑 supprime le gonflement */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    border-radius: 999px;
  }
}

/* ================================
   FADE IN PURE — HERO CONTENT
================================ */



/* =====================================
   RESET TOTAL DES ANIMATIONS DE CONTENU
===================================== */

/* aucun mouvement, jamais */
.card-content,
.card-content * {
  transform: none !important;
  animation: none !important;
}

/* fade only */
.card-content h1,
.card-content p,
.card-content .btn {
  opacity: 0;
  transition: opacity 0.8s ease !important;
}

/* visible UNIQUEMENT quand actif */
.card.active .card-content h1,
.card.active .card-content p,
.card.active .card-content .btn {
  opacity: 1;
}

/* bouton des slides fermés toujours visible */
.card:not(.active) .card-content .btn {
  opacity: 1 !important;
  transition: none !important;
}

.product-card a 
 {
text-decoration: none;
}


