html,
body {
  width: 100%;
  overflow-x: hidden;
}

/* âœ… Burger menu de base, masquÃ© par dÃ©faut */
.burger-menu {
  display: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  /* petit espace sur mobile */
}


header {
  text-align: left;
  background-color: rgb(27, 27, 27);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: rgb(27, 27, 27);
  width: 100%;
  max-width: 1200px;
  margin: auto;
  position: sticky;
  top: 0;
  z-index: 1000;
  flex-wrap: wrap;
}

.logo img {
  height: 80px;
  max-width: 100%;
}

.navbar {
  flex: 1;
  max-width: 100%;
}

.navbar ul {
  list-style: none;
  display: flex;
  justify-content: space-evenly;
  /* Ã‰quilibre lâ€™espace */
  flex-wrap: wrap;
  gap: 10px;
  /* rÃ©duit le gap */
  margin: 0;
  padding: 0;
}

.navbar li a {
  text-decoration: none;
  color: #ffffff;
  font-weight: bold;
  transition: color 0.3s;
  white-space: nowrap;
  /* empÃªche les sauts Ã  la ligne */
  padding: 5px 10px;
}

.navbar li a:hover {
  color: #000;
}

body {
  background-color: rgb(27, 27, 27);
  /* ou rgb(0, 0, 0) */
  color: white;
  /* pour que le texte reste lisible */
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  /* optionnel */
  overflow-x: hidden;
  /* Ã©vite les scrolls horizontaux */

}

.cartes {
  display: flex;
  width: 100%;
  height: 600px;
  overflow: hidden;
  padding: 0;
  margin: 0 auto;
  gap: 8px;
  max-width: 1200px;
}

.cartes a {
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: 0;
  height: 100%;
  overflow: hidden;
  transition: flex 0.5s ease-in-out;
  border-radius: 10px;
  /* bord arrondi optionnel */
  border: 2px solid white;
  /* ðŸ‘‰ bordure blanche */
  box-sizing: border-box;
  /* pour que la bordure ne casse pas la taille */
}

.cartes a.active {
  flex-grow: 2;
  max-width: 800px;
}

.cartes img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: none;
}

.textehaut {
  margin: 10px auto;
  padding: 0 20px;
  text-align: center;
  border-radius: 10px;
  border: 2px solid white;
}

.textehaut h2 {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: white;
}

.textehaut p {
  font-size: 1.1em;
  line-height: 1.6;
  color: #ddd;
}

.image-texte {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  padding: 50px;
  max-width: 100%;
}

.image-gauche img {
  width: 500px;
  height: 500px;
  border-radius: 10px;
  border: 3px solid white;
  object-fit: cover;
  display: block;
}

.texte-droite {
  max-width: 600px;
  text-align: left;
  font-size: 1.1em;
  line-height: 1.6;
}

.btn-action {
  display: inline-block;
  margin-top: 30px;
  padding: 15px 30px;
  background-color: white;
  color: black;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
}

.btn-action:hover {
  background-color: #555;
  color: white;
}

.image-texte-droite {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  padding: 50px;
  max-width: 100%;
}

.image-droite img {
  width: 500px;
  height: 500px;
  border-radius: 10px;
  border: 3px solid white;
  object-fit: cover;
  display: block;
}

.texte-gauche {
  max-width: 600px;
  text-align: left;
  font-size: 1.1em;
  line-height: 1.6;
}

.banniere-outils {
  background-color: #1b1b1b;
  padding: 20px 0;
  overflow: hidden;
}

.slider {
  width: 100%;
  overflow: hidden;
}

.track {
  display: flex;
  animation: scroll 30s linear infinite;
  width: max-content;
}

.track img {
  height: 60px;
  margin: 0 20px;
  flex-shrink: 0;
  object-fit: contain;
}

/* Animation qui se rÃ©pÃ¨te sans jamais s'arrÃªter */
@keyframes scroll {
  0% {
    transform: translateX(20%);
  }

  100% {
    transform: translateX(-30%);
  }
}

.seo {
  width: 100%;
  padding: 40px 0;
  background-color: #1b1b1b;
  text-align: center;
}

.image-seo img {
  width: 100%;
  max-width: 1600px;
  height: auto;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  border-radius: 15px;
  border: 5px solid white;
}

.texte-seo {
  max-width: 1000px;
  margin: 40px auto 0;
  padding: 0 10px;
  color: #fff;
}

.texte-seo h2 {
  font-size: 2.2em;
  margin-bottom: 20px;
}

.texte-seo p {
  font-size: 1.1em;
  line-height: 1.6;
  color: #ddd;
}

.contact-section {
  width: 100vw;
  background-color: rgb(27, 27, 27);
  padding: 80px 20px;
  color: white;

  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.contact-wrapper {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 4px 30px rgba(255, 255, 255, 0.376);
  border-radius: 20px;
  /* pour un arrondi plus doux */
  padding: 40px;
}

.contact-wrapper h3 {
  font-size: 2.8em;
  margin-bottom: 10px;
}

.contact-wrapper p {
  font-size: 1.2em;
  color: #ccc;
  margin-bottom: 40px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.form-row input {
  flex: 1;
  padding: 15px;
  border-radius: 10px;
  border: none;
  background-color: rgb(36, 36, 36);
  color: white;
  font-size: 1em;
}

.contact-form textarea {
  padding: 15px;
  border-radius: 10px;
  border: none;
  background-color: #1e1e1e;
  color: white;
  font-size: 1em;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid white;
}

.contact-form button {
  background-color: white;
  color: black;
  border: none;
  padding: 18px 30px;
  border-radius: 12px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.contact-form button:hover {
  background-color: #444;
  color: white;
}

.site-footer {
  background-color: rgb(27, 27, 27);
  color: #ccc;
  text-align: center;
  padding: 30px 20px;
  font-size: 0.95em;
  border-top: 1px solid rgba(27, 27, 27);
}

.site-footer p {
  margin: 20 0;
}

@keyframes slideDownFade {
  0% {
    transform: translateY(-50px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.cartes a {
  /* ton style existant */
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: 0;
  height: 100%;
  overflow: hidden;
  transition: flex 0.5s ease-in-out;
  border-radius: 10px;
  border: 2px solid white;
  box-sizing: border-box;

  /* animation ajoutÃ©e */
  opacity: 0;
  animation: slideDownFade 0.6s ease-out forwards;
}

.cartes a:nth-child(1) {
  animation-delay: 0.2s;
}

.cartes a:nth-child(2) {
  animation-delay: 0.5s;
}

.cartes a:nth-child(3) {
  animation-delay: 0.8s;
}

.cartes a:nth-child(4) {
  animation-delay: 1.1s;
}

.cartes a:nth-child(5) {
  animation-delay: 1.4s;
}

.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* page Ã  propos */

@keyframes slideDownFade {
  0% {
    transform: translateY(-50px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.impact-image {
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.impact-image img {
  width: 99%;
  height: 100%;
  object-fit: cover;
  display: block;
  animation: slideDownFade 0.9s ease-out forwards;
  border-radius: 50px;
  border: 5px solid white;

}

.image-maintenant img {
  width: 100%;
  max-width: 1600px;
  height: auto;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  border-radius: 15px;
  border: 5px solid white;
}

.contact-section {
  padding: 100px 20px;
  background-color: #1b1b1b;
  color: white;
  font-family: 'Segoe UI', sans-serif;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  justify-content: center;
  align-items: flex-start;
  max-width: 1200px;
  margin: auto;
}

.contact-info-card,
.contact-form-wrapper {
  flex: 1 1 300px;
  background-color: #2a2a2a;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.12);
  /* âœ… ombre blanche subtile */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info-card:hover,
.contact-form-wrapper:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 45px rgba(255, 255, 255, 0.18);
  /* âœ… ombre blanche au survol */
}

.contact-title {
  font-size: 2.5em;
  margin-bottom: 10px;
  color: white;
}

.contact-subtitle {
  font-size: 1.1em;
  color: #ccc;
  margin-bottom: 30px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1em;
  color: #ddd;
}

.detail-item i {
  background-color: white;
  color: black;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-style: normal;
}

.contact-coords {
  background-color: #1b1b1b;
  padding: 60px 20px;
  color: white;
  text-align: center;
}

.coord-wrapper {
  max-width: 700px;
  margin: 0 auto;
  border-radius: 16px;
  padding: 40px;
  background-color: #2a2a2a;
  border: 2px solid white;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.coord-wrapper h2 {
  font-size: 2.2em;
  margin-bottom: 30px;
  color: white;
}

.coordonnees-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 1.1em;
  color: #ccc;
}

.coordonnees-list li {
  margin-bottom: 15px;
}

.coordonnees-list a {
  color: #fff;
  text-decoration: underline;
}

.coordonnees-list a:hover {
  color: #aaa;
}

@media screen and (max-width: 768px) {
  .burger-menu {
    display: block;
  }

  .navbar ul {
    display: none;
    flex-direction: column;
    background-color: #1b1b1b;
    position: absolute;
    top: 80px;
    right: 20px;
    width: 200px;
    border: 2px solid white;
    padding: 10px;
    z-index: 1000;
  }

  .navbar ul.open {
    display: flex;
  }
}

@media screen and (max-width: 768px) {
  .cartes {
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 20px;
    scroll-padding-left: 20px;
    -webkit-overflow-scrolling: touch;
    height: auto; /* Supprime la hauteur fixe de 600px sur mobile */
  }

  .cartes::-webkit-scrollbar {
    display: none;
  }

  .cartes a {
    flex: 0 0 80%;
    scroll-snap-align: start;
    transition: none !important;
    height: 400px; /* Hauteur explicite pour la carte */
    position: relative;
  }

  .cartes a.active {
    flex-grow: 0;
    max-width: 100%;
  }

  .cartes img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
  }
}


@media screen and (max-width: 768px) {

  .image-texte,
  .image-texte-droite {
    flex-direction: column;
    align-items: center;
    padding: 30px 15px;
  }
}

@media screen and (max-width: 768px) {

  .image-texte,
  .image-texte-droite {
    flex-direction: column;
  }

  .image-texte .texte-droite,
  .image-texte-droite .texte-gauche {
    order: 2;
  }

  .image-texte .image-gauche,
  .image-texte-droite .image-droite {
    order: 1;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}