* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #1a7a7a;
  --secondary-color: #e8a87c;
  --text-dark: #2c3e50;
  --text-light: #ffffff;
  --bg-light: #f8f5f2;
  --bg-white: #ffffff;
}

body {
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.7;
  color: var(--text-dark);
  font-weight: 400;
  letter-spacing: 0.3px;
}
html,
body {
  overflow-x: hidden; /* Empêche tout débordement horizontal */
  width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Navigation */
nav {
  background: var(--bg-white);
  padding: 1.8rem 5%;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

nav.visible {
  opacity: 1;
  transform: translateY(0);
}

nav .container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo img {
  width: 180px; /* Légèrement réduit de 200px */
  height: 70px; /* Légèrement réduit de 80px */
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text h1 {
  font-size: 1.8rem;
  color: var(--primary-color);
  font-weight: 700;
}

.logo-text span {
  font-size: 0.9rem;
  color: var(--primary-color);
  opacity: 0.8;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1.05rem;
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

nav a:hover,
nav a.active {
  color: var(--primary-color);
  transform: translateY(-2px);
}

.cta-button {
  background: var(--primary-color);
  color: var(--text-light) !important;
  padding: 0.8rem 1.8rem;
  border-radius: 25px;
  transition: all 0.3s;
}

.cta-button:hover {
  background: #146666;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(26, 122, 122, 0.3);
}

/* Hero Section */
.hero {
  background: transparent;
  color: var(--text-light);
  padding: 8rem 5% 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1.2s ease-out;
}

.hero.visible {
  opacity: 1;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.05) 0%,
    transparent 70%
  );
  border-radius: 50%;
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.03) 0%,
    transparent 70%
  );
  border-radius: 50%;
  z-index: 1;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 122, 122, 0.85) 0%,
    rgba(20, 102, 102, 0.85) 100%
  );
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h2 {
  font-size: 3.8rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.hero p {
  font-size: 1.35rem;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.btn-primary,
.btn-secondary {
  padding: 1.2rem 3rem;
  border-radius: 35px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: var(--text-light);
  color: var(--primary-color);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(255, 255, 255, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--text-light);
  border: 2px solid var(--text-light);
}

.btn-secondary:hover {
  background: var(--text-light);
  color: var(--primary-color);
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(255, 255, 255, 0.25);
}

/* Section générique */
section {
  padding: 5rem 5%;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title h2 {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.section-title .subtitle {
  font-size: 0.95rem;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.section-title p {
  font-size: 1.15rem;
  color: var(--text-dark);
  opacity: 0.75;
  max-width: 700px;
  margin: 0 auto;
  font-weight: 300;
  line-height: 1.8;
}

/* Values Section */
.values {
  background: var(--bg-light);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.value-card {
  background: var(--bg-white);
  padding: 3rem 2.5rem;
  border-radius: 20px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(26, 122, 122, 0.08);
}

.value-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 25px 50px rgba(26, 122, 122, 0.2);
  border-color: rgba(26, 122, 122, 0.3);
}

.value-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--primary-color), #0d5252);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.value-icon::before {
  content: "";
  position: absolute;
  width: 30px;
  height: 30px;
  border: 3px solid white;
  border-radius: 8px;
}

.value-card h3 {
  color: var(--primary-color);
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.value-card p {
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--bg-white);
  padding: 3.5rem;
  border-radius: 25px;
  box-shadow: 0 8px 35px rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(26, 122, 122, 0.1);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary-color), #0d5252);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: 0 25px 60px rgba(26, 122, 122, 0.2);
  border-color: rgba(26, 122, 122, 0.25);
}

.service-card:hover::before {
  width: 10px;
}

.service-card h3 {
  color: var(--primary-color);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.service-card ul {
  list-style: none;
  margin-top: 1.5rem;
}

.service-card ul li {
  padding: 0.7rem 0;
  padding-left: 1.8rem;
  position: relative;
  font-size: 1.05rem;
}

.service-card ul li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.2rem;
}

/* White Bird Section */
.white-bird {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0d5252 100%);
  color: var(--text-light);
}

.white-bird .section-title h2,
.white-bird .section-title .subtitle {
  color: var(--text-light);
}

.white-bird .section-title p {
  color: var(--text-light);
  opacity: 0.9;
}

.stats-grid {
  display: flex;             /* flex au lieu de grid */
  flex-wrap: wrap;           /* retour à la ligne automatique */
  justify-content: center;   /* centre les cartes horizontalement */
  gap: 2.5rem;               /* conserve l’espace entre les cartes */
  margin-top: 3rem;
}

.stat-card {
  flex: 1 1 250px;           /* largeur min 250px, peut grandir */
  max-width: 300px;          /* limite largeur max */
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(10px);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--secondary-color);
}

.stat-label {
  font-size: 1.1rem;
  opacity: 0.95;
}

.features-list {
  display: flex;             /* flex au lieu de grid */
  flex-wrap: wrap;           /* retour à la ligne automatique */
  justify-content: center;   /* centre les items horizontalement */
  gap: 2rem;                 /* espace entre les items */
  margin-top: 3rem;
}

.feature-item {
  flex: 1 1 300px;           /* largeur min 300px, peut grandir */
  max-width: 350px;          /* limite largeur max */
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}


.feature-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon::before {
  content: "";
  width: 20px;
  height: 20px;
  border: 2px solid white;
  border-radius: 5px;
}

.feature-text h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

/* About Section */
.about {
  background: var(--bg-light);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 3rem;
}

.about-text h3 {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.about-highlights {
  list-style: none;
  margin-top: 2rem;
}

.about-highlights li {
  padding: 1rem 0;
  padding-left: 2rem;
  position: relative;
  font-size: 1.1rem;
  border-bottom: 1px solid rgba(26, 122, 122, 0.1);
}

.about-highlights li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.3rem;
}

.team-card {
  background: var(--bg-white);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.team-card h4 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.team-card p {
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
}
.contact-info {
  background: var(--bg-light);
  padding: 3rem;
  border-radius: 20px;
}

.contact-info h3 {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--bg-white);
  border-radius: 10px;
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon::before {
  content: "";
  width: 25px;
  height: 25px;
  border: 2px solid white;
  border-radius: 6px;
}

.contact-details h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.contact-details p {
  font-size: 1.05rem;
  line-height: 1.6;
}

.contact-details a {
  color: var(--text-dark);
  text-decoration: none;
}

.contact-details a:hover {
  color: var(--primary-color);
}

.contact-form {
  width: 100%;
  height: 100%;
  min-height: 400px;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

.contact-form img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  /* Effet de flou sur les bords */
  -webkit-mask-image: radial-gradient(
    circle at center,
    black 70%,
    transparent 100%
  );
  mask-image: radial-gradient(circle at center, black 70%, transparent 100%);
}
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 1.05rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.submit-btn {
  background: var(--primary-color);
  color: var(--text-light);
  padding: 1.2rem 3rem;
  border: none;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  width: 100%;
  margin-top: 10px;
}

.submit-btn:hover {
  background: #146666;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(26, 122, 122, 0.3);
}

/* Correction du style des boutons */
.submit-btn,
.login-container .submit-btn {
  display: block; /* Change inline-block to block */
  width: 100%;
  text-align: center;
  margin: 1rem 0; /* Augmente la marge verticale entre les boutons */
  padding: 1.2rem 2rem;
  border: none;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-light);
  background: var(--primary-color);
  transition: all 0.3s ease;
}

.submit-btn:hover,
.login-container .submit-btn:hover {
  background: #146666;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(26, 122, 122, 0.3);
}

/* Supprimez ou modifiez cette règle qui force les boutons en colonne */
@media (max-width: 768px) {
  .hero-buttons {
    /* Supprimez flex-direction: column; */
    gap: 1rem;
    justify-content: center;
  }

  /* Ajoutez des styles spécifiques pour les boutons sur mobile */
  .submit-btn,
  .login-container .submit-btn {
    width: 100%;
    margin: 0.5rem 0;
    padding: 1rem 1.5rem;
  }
}

/* Espace Client Section */
.client-space {
  background: var(--bg-light);
}

.login-container {
  max-width: 500px;
  margin: 3rem auto;
  background: var(--bg-white);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.login-container h3 {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.login-container p {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.space-features {
  display: flex;             /* Flex au lieu de grid */
  flex-wrap: wrap;           /* Retour à la ligne automatique */
  justify-content: center;   /* Centre toutes les cartes horizontalement */
  gap: 2rem;                 /* Conserve l’espacement entre les cartes */
  margin-top: 4rem;
}

.space-feature {
  flex: 1 1 280px;           /* Largeur minimum 280px, peut grandir */
  max-width: 320px;          /* Limite la largeur max */
  background: var(--bg-white);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.space-feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--primary-color), #0d5252);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(26, 122, 122, 0.3);
}

.space-feature-icon::before {
  content: "";
  width: 35px;
  height: 35px;
  border: 3px solid white;
  border-radius: 10px;
}

.space-feature h4 {
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

/* Footer */
footer {
  background: var(--text-dark);
  color: var(--text-light);
  padding: 3rem 5% 2rem;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.footer-section p,
.footer-section a {
  color: var(--text-light);
  text-decoration: none;
  line-height: 2;
  opacity: 0.9;
}

.footer-section a:hover {
  opacity: 1;
  color: var(--secondary-color);
}

.footer-section ul {
  list-style: none;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.7;
}

/* Hamburger Menu Styles */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10;
  margin: auto 0; /* Centre verticalement avec le logo */
}

.hamburger span {
  width: 30px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 10px;
  transition: all 0.3s linear;
  position: relative;
  transform-origin: 1px;
}

/* Navigation Wrapper */
.nav-wrapper {
  display: flex;
  align-items: center;
}

/* Media Query pour le menu responsive */
@media (max-width: 968px) {
  .hamburger {
    display: flex;
    z-index: 1001; /* au-dessus du menu */
  }

  @media (max-width: 968px) {
    .nav-wrapper {
      position: fixed;
      top: 0;
      right: 0;
      width: 100%; /* prend toute la largeur de l’écran */
      max-width: 400px; /* limite la taille sur grands écrans */
      height: 100vh;
      background: var(--bg-white);
      padding: 80px 1.5rem 2rem; /* padding sûr sans débordement */
      transition: transform 0.28s ease-in-out, visibility 0.28s;
      transform: translateX(100%); /* caché hors écran */
      visibility: hidden;
      z-index: 1000;
      box-sizing: border-box;
      overflow-y: auto;
    }

    .nav-wrapper.active {
      transform: translateX(0);
      visibility: visible;
    }

    .about-content {
      display: flex;
      flex-direction: column;
    }
  }

  /* overlay : unique définition */
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    pointer-events: none;
    transition: opacity 0.28s ease-in-out, visibility 0.28s;
  }

  .nav-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  body.menu-open {
    overflow: hidden;
  }

  nav ul {
    flex-direction: column;
    gap: 2rem;
    width: 100%;
  }

  nav ul li {
    width: 100%;
  }

  nav ul li a {
    display: block;
    width: 100%;
    padding: 0.8rem 0;
    text-align: left;
  }

  /* Animation du hamburger */
  .hamburger.active span:first-child {
    transform: rotate(45deg);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:last-child {
    transform: rotate(-45deg);
  }

  /* Overlay pour le menu mobile */
  /* (défini ci‑dessus) */

  /* Ajustement de la grille d'images et des services */
  .image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
  }

  .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 1200px) {
  .services-grid {
    gap: 2rem;
  }
}

@media (max-width: 968px) {
  .contact-form {
    display: none;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
  }

  .contact-info {
    max-width: 100%;
    margin: 0 auto;
  }

  .contact-item {
    margin-bottom: 1.5rem;
    padding: 1.2rem;
  }

  .contact-details h4 {
    font-size: 1.1rem;
  }

  .contact-details p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .contact-grid {
    gap: 1.5rem;
  }

  .contact-info {
    padding: 1.5rem;
  }

  .contact-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
  }

  .contact-icon {
    margin-bottom: 1rem;
  }
}

@media (max-width: 968px) {
  html {
    font-size: 90%;
  }

  nav ul {
    gap: 1.5rem;
  }

  .hero h2 {
    font-size: 2.5rem;
  }

  .section-title h2 {
    font-size: 2.5rem;
  }

  .value-card h3,
  .service-card h3 {
    font-size: 1.4rem;
  }
}

@media (max-width: 768px) {
  nav .container {
    flex-direction: column;
    gap: 1.5rem;
  }

  .value-card {
    flex-direction: column;
    gap: 1.5rem;
  }
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    padding: 5rem 5% 4rem;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  section {
    padding: 3rem 5%;
  }

  html {
    font-size: 85%;
  }

  .hero p,
  .section-title p {
    font-size: 1rem;
  }

  .value-card,
  .service-card {
    padding: 2rem 1.5rem;
  }

  .contact-form,
  .contact-info {
    padding: 2rem;
  }
  .contact-form {
    display: none;
  }

  /* Ajustement de la grille d'images et des services */
  .image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Aligner les value-card en ligne sur petits écrans (défilement horizontal) */
@media (max-width: 968px) {
  .values-grid {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.75rem; /* espace pour le scroll */
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    margin-top: 1.5rem;
  }

  .values-grid .value-card {
    min-width: 260px; /* largeur minimale de chaque carte */
    max-width: 320px; /* optionnel, garde un ratio lisible */
    flex: 0 0 auto; /* empêche le wrapping, reste en ligne */
    scroll-snap-align: start;
  }
  .container-images {
    display: none;
  }
}

/* Ajustement pour très petits écrans */
@media (max-width: 480px) {
  .values-grid .value-card {
    min-width: 220px;
    max-width: 280px;
  }
}

@media (max-width: 900px) {
  .image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 80%;
  }

  .hero h2 {
    font-size: 1.8rem;
  }

  .section-title h2 {
    font-size: 1.8rem;
  }

  /* Ajustement de la grille d'images et des services */
  .image-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* Page visibility */
.page {
  display: none;
}

.page.active {
  display: block;
}

/* Loader */
#loader {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* ✅ centre parfaitement le loader */
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(26, 122, 122, 1) 0%,
    rgba(13, 82, 82, 1) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.45s ease-out, visibility 0.45s ease-out;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-logo {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-logo img {
  height: 70px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  -webkit-filter: brightness(0) invert(1);
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid var(--primary-color);
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

/* Animations d'entrée pour le contenu */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(50px);
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in {
  animation: fadeIn 0.8s ease-out both;
}

.slide-in-left {
  animation: slideInLeft 0.8s ease-out both;
}

.slide-in-right {
  animation: slideInRight 0.8s ease-out both;
}

.slide-in-up {
  animation: slideInUp 0.8s ease-out both;
}

.scale-in {
  animation: scaleIn 0.8s ease-out both;
}

.rotate-in {
  animation: rotateIn 0.8s ease-out both;
}

.stagger-1 {
  animation-delay: 0.1s;
}
.stagger-2 {
  animation-delay: 0.2s;
}
.stagger-3 {
  animation-delay: 0.3s;
}
.stagger-4 {
  animation-delay: 0.4s;
}
.stagger-5 {
  animation-delay: 0.5s;
}
.stagger-6 {
  animation-delay: 0.6s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-80px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(80px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes rotateIn {
  from {
    opacity: 0;
    transform: rotate(-10deg) scale(0.9);
  }
  to {
    opacity: 1;
    transform: rotate(0) scale(1);
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}
