/* ======================================= */
/*          STYLE GLOBAL - MSK SITE        */
/* ======================================= */

/* --- RESET DE BASE --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Open Sans", sans-serif;
  background-color: #ffffff;
  color: #222;
  line-height: 1.6;
}

/* --- CONTAINERS ET TITRES --- */
section {
  padding: 80px 20px;
  text-align: center;
}

h1,
h2 {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  color: #4169e1; /* Bleu principal */
  margin-bottom: 20px;
}

p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* ======================================= */
/*                NAVBAR                   */
/* ======================================= */

header {
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* --- Logo du header --- */
.navbar .logo img {
  width: 110px; /* taille plus raffinée et équilibrée */
  height: auto;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
  margin-top: 5px; /* petit ajustement vertical pour alignement */
}

.navbar .logo img:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.2));
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav-links a {
  text-decoration: none;
  color: #222;
  font-weight: 600;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #4169e1;
}

/* ======================================= */
/*           SECTION HERO (BANNIÈRE)       */
/* ======================================= */
/*.hero-section {
  position: relative;
  height: 90vh;
  background: linear-gradient(
      135deg,
      rgba(65, 105, 225, 0.85),
      rgba(30, 50, 100, 0.8)
    ),
    url("../images/hero-bg.jpg") center/cover no-repeat;
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 0 20px;
}*/

.hero-section {
  position: relative;
  height: 90vh;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("../images/new2.JPG") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 0 20px;
  background-attachment: fixed; /* effet parallax léger */
}

/*.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(1px);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}*/

/*.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--x, 50%) var(--y, 50%),
    rgba(255, 255, 255, 0.15),
    transparent 40%
  );
  transition: background 0.2s ease;
}*/

.hero-content {
  max-width: 800px;
}

.hero-logo {
  width: 380px; /* Taille large et visible */
  margin-bottom: 35px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
  transition: transform 0.3s ease;
}

.hero-logo:hover {
  transform: scale(1.05);
}

.hero-section h1 {
  font-family: "Montserrat", sans-serif;
  font-size: 2.4rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #fff;
}

.hero-section p {
  font-size: 1.2rem;
  margin-bottom: 25px;
  color: #f0f0f0;
}

.btn-hero {
  background-color: #fff;
  color: #4169e1;
  text-decoration: none;
  padding: 15px 40px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

/* --- Boutons du hero côte à côte --- */
.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 15px;
}

/* Variante du bouton (10 ans déjà) */
.btn-outline {
  background-color: transparent;
  border: 2px solid #fff;
  color: #fff;
}

.btn-outline:hover {
  background-color: #fff;
  color: #4169e1;
  transform: translateY(-3px);
}

.btn-hero:hover {
  background-color: #4169e1;
  color: #fff;
  transform: translateY(-3px);
}

/* ======================================= */
/*           SECTION PRÉSENTATION          */
/* ======================================= */
.section-presentation {
  background-color: #f5f5f5;
}

/* ======================================= */
/*           SECTION SERVICES              */
/* ======================================= */
.section-services {
  background-color: #ffffff;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* ✅ 2 colonnes fixes */
  gap: 20px;
  max-width: 700px; /* largeur centrée plus harmonieuse */
  margin: 40px auto 0;
}

.service-btn {
  display: block;
  background-color: #4169e1;
  color: #fff;
  text-decoration: none;
  padding: 20px;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.service-btn:hover {
  background-color: #2f4acf;
  transform: translateY(-3px);
}

/* ======================================= */
/*           SECTION CONTACT               */
/* ======================================= */
.section-contact {
  background-color: #f5f5f5;
}

.btn-contact {
  display: inline-block;
  background-color: #4169e1;
  color: white;
  text-decoration: none;
  padding: 15px 40px;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: 600;
  transition: background-color 0.3s;
}

.btn-contact:hover {
  background-color: #2f4acf;
}

/* ======================================= */
/*               FOOTER                    */
/* ======================================= */
footer {
  background-color: #4169e1;
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
}

footer p {
  padding: 10px 20px;
  font-size: 0.85rem;
}

/* ======================================= */
/*           SECTION ABOUT/SERVICES        */
/* ======================================= */
.service-header h1 {
  color: #4169e1;
}

.service-content h2 {
  color: #222;
}

/* ======================================= */
/*           ANIMATIONS DOUCES             */
/* ======================================= */
.service-image img:hover,
.about-image img:hover {
  transform: scale(1.03);
}

.logo img:hover {
  transform: scale(1.05);
}

/* ======================================= */
/*           RESPONSIVE DESIGN             */
/* ======================================= */

/* Tablettes */
@media (max-width: 1024px) {
  .navbar .logo img {
    width: 140px;
  }

  .hero-section {
    height: 75vh;
  }

  .hero-logo {
    width: 280px;
  }
}

/* Mobiles */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 10px;
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .navbar .logo img {
    width: 120px;
  }

  .hero-section {
    height: 70vh;
    padding: 20px;
  }

  .hero-logo {
    width: 220px;
    margin-bottom: 25px;
  }

  .hero-section h1 {
    font-size: 1.6rem;
  }

  .hero-section p {
    font-size: 1rem;
  }

  .btn-hero {
    font-size: 1rem;
    padding: 12px 25px;
  }

  footer {
    font-size: 0.85rem;
    padding: 15px;
  }
}

/* ======================================= */
/*           PAGE SERVICE DÉTAILLÉE         */
/* ======================================= */

.service-page {
  padding: 100px 20px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

/* --- En-tête du service --- */
.service-header h1 {
  font-family: "Montserrat", sans-serif;
  color: #4169e1;
  margin-bottom: 20px;
}

.service-header p {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 50px;
  line-height: 1.8;
}

/* --- Contenu principal --- */
.service-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  background: #f8f9fc;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  margin-top: 30px;
}

/* --- Texte de la section --- */
.service-text {
  flex: 1;
  text-align: left;
}

.service-text h2 {
  color: #4169e1;
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.service-text ul {
  margin-left: 20px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 15px;
}

.service-text li::marker {
  color: #4169e1;
}

/* --- Image illustrative --- */
.service-image {
  flex: 1;
  text-align: center;
}

.service-image img {
  width: 100%;
  max-width: 450px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-image img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* --- Bouton retour --- */
.back-home {
  text-align: center;
  margin-top: 50px;
}

.back-home a {
  display: inline-block;
  background-color: #4169e1;
  color: #fff;
  text-decoration: none;
  padding: 12px 30px;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.back-home a:hover {
  background-color: #2f4acf;
  transform: translateY(-3px);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .service-content {
    flex-direction: column-reverse;
    text-align: center;
    padding: 30px;
  }

  .service-text {
    text-align: left;
  }

  .service-image img {
    max-width: 100%;
  }

  .service-header p {
    font-size: 1rem;
  }
}

/* ======================================= */
/*         PAGE NOS RÉALISATIONS           */
/* ======================================= */

.video-container {
  text-align: center;
  margin: 40px 0;
}

.video-container video {
  width: 100%;
  max-width: 900px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

/* Effet zoom léger au survol */
.video-container video:hover {
  transform: scale(1.02);
}

/* --- Galerie d'images --- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.gallery img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
}

/* --- Responsive vidéo et galerie --- */
@media (max-width: 900px) {
  .video-container video {
    max-width: 100%;
  }

  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
  }
}

/* --- Pour petits écrans (mobiles) --- */
@media (max-width: 600px) {
  .service-header h1 {
    font-size: 1.6rem;
  }

  .service-header p {
    font-size: 1rem;
  }

  .video-container {
    margin: 20px 0;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
  }
}

/* ======================================= */
/*         PAGE QUI SOMMES-NOUS            */
/* ======================================= */

.about-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  background: #f8f9fc;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  margin-top: 30px;
}

/* --- Texte --- */
.about-text {
  flex: 1;
  text-align: left;
}

.about-text h2 {
  color: #4169e1;
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.about-text p,
.about-text ul {
  color: #444;
  line-height: 1.7;
  font-size: 1.05rem;
}

.about-text ul {
  margin-left: 20px;
  list-style: disc;
}

.about-text li strong {
  color: #2f4acf;
}

/* --- Image --- */
.about-image {
  flex: 1;
  text-align: center;
}

.about-image img {
  width: 100%;
  max-width: 450px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-image img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* --- Bouton retour (même style que les autres pages) --- */
.back-home {
  text-align: center;
  margin-top: 50px;
}

.back-home a {
  display: inline-block;
  background-color: #4169e1;
  color: #fff;
  text-decoration: none;
  padding: 12px 30px;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.back-home a:hover {
  background-color: #2f4acf;
  transform: translateY(-3px);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .about-content {
    flex-direction: column-reverse;
    text-align: center;
    padding: 30px;
  }

  .about-text {
    text-align: left;
  }

  .about-image img {
    max-width: 100%;
  }

  .about-text h2 {
    text-align: center;
  }
}

/* ======================================= */
/*           SECTION AVIS CLIENTS          */
/* ======================================= */

.section-avis {
  background-color: #f5f6fa;
  padding: 80px 20px;
  text-align: center;
  overflow: hidden;
}

.section-avis h2 {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  color: #4169e1;
  margin-bottom: 40px;
  font-size: 2rem;
}

/* --- Slider container --- */
.avis-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* --- Ligne d'avis défilants --- */
.avis-track {
  display: flex;
  width: calc(300px * 8);
  animation: scrollAvis 30s linear infinite;
}

/* --- Cartes individuelles --- */
.avis-card {
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  padding: 25px 20px;
  margin: 0 15px;
  min-width: 300px;
  flex-shrink: 0;
  text-align: left;
  transition: transform 0.3s ease;
}

.avis-card:hover {
  transform: scale(1.03);
}

.avis-card p {
  font-size: 1rem;
  color: #333;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 15px;
}

.avis-card h4 {
  font-size: 1rem;
  color: #4169e1;
  font-weight: 600;
  text-align: right;
}

/* --- Animation du défilement --- */
@keyframes scrollAvis {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .avis-card {
    min-width: 250px;
    padding: 20px 15px;
  }

  .section-avis h2 {
    font-size: 1.5rem;
  }

  .avis-track {
    animation: scrollAvis 40s linear infinite; /* plus lent sur mobile */
  }
}

/* ======================================= */
/*             SECTION CONTACT              */
/* ======================================= */

.section-contact {
  background-color: #f5f6fa;
  padding: 80px 20px;
  text-align: center;
}

.section-contact h2 {
  font-family: "Montserrat", sans-serif;
  color: #4169e1;
  font-weight: 600;
  margin-bottom: 20px;
  font-size: 2rem;
}

.section-contact p {
  max-width: 700px;
  margin: 0 auto 40px auto;
  color: #333;
  font-size: 1.1rem;
}

.contact-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 50px;
  max-width: 1000px;
  margin: 0 auto;
  flex-wrap: wrap;
}

/* --- Formulaire --- */
.contact-form {
  flex: 1;
  min-width: 300px;
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  font-family: "Open Sans", sans-serif;
  transition: border 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #4169e1;
  outline: none;
}

/* --- Bouton d'envoi --- */
.btn-contact {
  background-color: #4169e1;
  color: white;
  border: none;
  padding: 15px 40px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-contact:hover {
  background-color: #2f4acf;
  transform: translateY(-2px);
}

/* --- Bloc coordonnées --- */
.contact-info {
  flex: 1;
  min-width: 280px;
  text-align: left;
}

.contact-info h3 {
  color: #4169e1;
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.contact-info p {
  margin-bottom: 10px;
  font-size: 1rem;
  color: #333;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
    align-items: center;
  }

  .contact-form,
  .contact-info {
    width: 100%;
    max-width: 500px;
  }

  .section-contact h2 {
    font-size: 1.6rem;
  }
}

/* Corrige le scroll des ancres à cause du header sticky */
:target {
  scroll-margin-top: 100px; /* ajuste selon la hauteur de ton header */
}

/* Bouton "Nous contacter" dans la section présentation */
.presentation-btn-container {
  margin-top: 30px;
}

.btn-presentation {
  display: inline-block;
  background-color: #4169e1;
  color: #fff;
  text-decoration: none;
  padding: 14px 35px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn-presentation:hover {
  background-color: #2f4acf;
  transform: translateY(-3px);
}

/* ======================================= */
/*         SECTION SECTEUR D’INTERVENTION  */
/* ======================================= */
.section-secteur {
  background-color: #f5f6fa;
  padding: 80px 20px;
  text-align: center;
}

.section-secteur h2 {
  font-family: "Montserrat", sans-serif;
  color: #4169e1;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.secteur-description {
  max-width: 700px;
  margin: 0 auto 50px auto;
  color: #333;
  font-size: 1.1rem;
  line-height: 1.7;
}

.secteur-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
}

/* --- Vidéo --- */
.secteur-video video {
  width: 100%;
  max-width: 500px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}

.secteur-video video:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* --- Image --- */
.secteur-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.secteur-image img:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .secteur-container {
    flex-direction: column;
  }

  .secteur-video video,
  .secteur-image img {
    max-width: 90%;
  }
}

/* ======================================= */
/*          MENU HAMBURGER (RESPONSIVE)    */
/* ======================================= */

/* --- Icône hamburger --- */
.hamburger {
  display: none; /* caché sur desktop */
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  cursor: pointer;
  z-index: 110;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #222;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* --- Menu latéral (mobile) --- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%; /* caché par défaut */
  width: 70%;
  max-width: 320px;
  height: 100vh;
  background-color: #ffffff;
  box-shadow: 4px 0 10px rgba(0, 0, 0, 0.15);
  padding: 60px 30px;
  transition: left 0.3s ease;
  z-index: 105;
}

.mobile-menu.active {
  left: 0; /* s’ouvre depuis la gauche */
}

/* --- Bouton de fermeture --- */
.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2rem;
  cursor: pointer;
  color: #4169e1;
  font-weight: bold;
  transition: transform 0.2s ease;
}

.close-btn:hover {
  transform: scale(1.1);
}

/* --- Liens du menu --- */
.mobile-menu ul {
  list-style: none;
  margin-top: 50px;
}

.mobile-menu ul li {
  margin-bottom: 25px;
}

.mobile-menu ul li a {
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  color: #222;
  transition: color 0.3s ease;
}

.mobile-menu ul li a:hover {
  color: #4169e1;
}

/* --- Fond assombri quand le menu est ouvert --- */
body.menu-open::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 100;
  backdrop-filter: blur(2px);
}

/* --- Responsive : affichage hamburger --- */
@media (max-width: 900px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none; /* on cache le menu normal */
  }
}

.menu-open .hamburger {
  display: none;
}

.mobile-menu {
  z-index: 120;
}

body.menu-open {
  overflow: hidden;
}

/* ======================================= */
/* ⚙️ Correction : Boutons du HERO sur mobile */
/* ======================================= */
@media (max-width: 768px) {
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .btn-hero {
    display: block;
    width: 80%;
    max-width: 300px;
    text-align: center;
    margin: 8px 0; /* espace entre les 2 boutons */
  }

  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }
}

/* ======================================= */
/*      FOOTER — Liens réseaux sociaux     */
/* ======================================= */
.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 5px;
}

.social-links img {
  width: 28px;
  height: 28px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
}

.social-links img:hover {
  transform: scale(1.15);
  opacity: 0.8;
}

/* ========================= */
/* GALERIE PHOTOS REDIMENSIONNÉE */
/* ========================= */
.gallery-section {
  padding: 80px 10%;
  background-color: #f8f9fa;
  text-align: center;
}

.gallery-section h2 {
  font-size: 2rem;
  color: #222;
  margin-bottom: 40px;
}

/* ========================= */
/* CARROUSEL (BUREAU / TABLETTE) */
/* ========================= */
.gallery-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 20px;
}

.gallery-carousel {
  overflow: hidden;
  width: 100%;
}

.gallery-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease;
}

.gallery-track figure {
  min-width: 300px;
  flex: 0 0 auto;
  text-align: center;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-track figure:hover {
  transform: scale(1.03);
}

.gallery-track img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.gallery-track figcaption {
  padding: 10px 15px;
  font-size: 0.95rem;
  color: #333;
  background: #fff;
  text-align: center;
  line-height: 1.3em;
}

/* ========================= */
/* BOUTONS DU CARROUSEL */
/* ========================= */
.gallery-btn {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 10px 15px;
  border-radius: 50%;
  z-index: 10;
  transition: background 0.3s;
}

.gallery-btn:hover {
  background: #ddd;
}

.gallery-btn.prev {
  left: 10px;
}

.gallery-btn.next {
  right: 10px;
}

/* ========================= */
/* LIGHTBOX (AGRANDISSEMENT IMAGE) */
/* ========================= */
.lightbox {
  position: fixed;
  display: none;
  justify-content: center;
  align-items: center;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  cursor: zoom-out;
}

.lightbox.active {
  display: flex;
}

.lightbox-img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  object-fit: contain;
  transition: transform 0.3s ease;
}

/* Croix de fermeture */
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 2.5rem;
  color: white;
  cursor: pointer;
  z-index: 1100;
  transition: color 0.3s;
}

.lightbox-close:hover {
  color: #f2d701; /* jaune doré MSK */
}

/* Phrase d’introduction de la galerie */
.gallery-intro {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 25px;
  font-style: italic;
}

/* ========================= */
/* VERSION MOBILE */
/* ========================= */
@media (max-width: 768px) {
  .gallery-section {
    padding: 50px 5%;
  }

  .gallery-track figure {
    min-width: 240px;
    max-width: 240px;
    flex: 0 0 auto;
  }

  .gallery-track img {
    height: 160px; /* ✅ plus adaptée au mobile */
  }

  .gallery-track figcaption {
    font-size: 0.85rem;
    padding: 6px 8px;
    white-space: normal; /* ✅ texte sur plusieurs lignes */
    line-height: 1.2em;
    min-height: 38px; /* garde de la régularité */
    background: #fff;
  }

  .gallery-btn {
    top: 42%;
    font-size: 1.3rem;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.9);
  }

  .lightbox-img {
    max-width: 95%;
    max-height: 75%;
  }

  .back-home {
    margin-top: 25px;
  }
}

.hidden {
  display: none;
  visibility: hidden;
  height: 0;
  overflow: hidden;
}

.success-message {
  color: #2ecc71;
  font-weight: 600;
  margin-top: 10px;
  text-align: center;
}
