/* style.css */

/* Style global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background-color: #f4f4f4;
  color: #333;
}

/* Menu de navigation */
.menu {
  background-color: white;
  padding: 20px 0;
}

.menu-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.menu ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu li {
  margin: 0 15px;
}

.menu a {
  color: #666;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s;
}

.menu a:hover {
  color: #3F71AC;
}

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

/* Centrer les logos et les boutons sous chaque logo */
.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.left-logo .btn {
  margin-top: 10px; /* Espace entre le logo et le bouton bleu */
}

.right-logo .btn {
  margin-top: 10px; /* Espace entre le logo et le bouton orange */
}

/* Style général pour les boutons */
.btn {
  display: inline-block;
  padding: 12px 24px; /* Plus grand padding pour des boutons plus visibles */
  font-size: 16px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  text-align: center;
  white-space: nowrap;
  background-color: #3F71AC; /* Couleur bleue par défaut */
  color: white !important;
  transition: background-color 0.3s ease; /* Effet de transition pour changement de couleur */
}

.btn-blue {
  background-color: #3F71AC; /* Bleu pour le bouton à gauche */
}

.btn-orange {
  background-color: orange; /* Orange pour le bouton à droite */
}

.btn:hover {
  background-color: #2f5982; /* Changer la couleur au survol pour le bouton bleu */
  opacity: 0.9; /* Effet au survol */
}

/* Style du carrousel */
.carousel {
  position: relative;
  width: 100%;
  height: 500px; /* Ajuste la hauteur selon ton besoin */
  overflow: hidden;
}

.carousel-container {
  width: 100%;
  height: 100%;
  display: flex;
}

.carousel-slide {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 30px;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
}

button:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

/* Section présentation */
.presentation {
  background-color: #f9f9f9;
  padding: 50px 20px;
}

.presentation-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.presentation-text {
  flex: 1; /* Prendre tout l'espace disponible */
  padding-right: 20px; /* Un peu d'espace à droite du texte */
}

.presentation-text h2 {
  font-size: 28px;
  font-weight: bold;
  text-transform: uppercase; /* Met en majuscules pour un effet plus marqué */
  color: #333;
  margin-bottom: 20px;
  animation: fadeInUpEnhanced 1.5s ease-out; /* Animation de 1.5 secondes avec une fonction d'accélération douce */
}

.presentation-text p {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}

.presentation-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.presentation-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px; /* Bords arrondis pour l'image */
}

/* Animation du titre améliorée avec couleur bleue */
@keyframes fadeInUpEnhanced {
  0% {
    opacity: 0;
    transform: translateY(50px) scale(0.8) rotate(10deg); /* Commence décalé et plus petit */
    color: #3F71AC; /* Bleu initial */
  }
  50% {
    opacity: 1;
    transform: translateY(-10px) scale(1.1) rotate(-5deg); /* Mouvement vers le haut avec une légère rotation */
    color: #3F71AC; /* Bleu pour la couleur au milieu */
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg); /* Retour à la position d'origine */
    color: #3F71AC; /* Bleu final */
  }
}

/* Style du footer */
.footer {
  background-color: #333;
  color: white;
  padding: 40px 20px;
  margin-top: 40px; /* Espace entre le contenu et le footer */
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-left,
.footer-center,
.footer-right {
  width: 33.33%;
  padding: 10px;
  box-sizing: border-box;
}

.footer-left h3 {
  font-size: 24px;
  margin-bottom: 15px;
}

.footer-left p {
  font-size: 16px;
  margin-bottom: 10px;
}

.social-links {
  list-style: none;
  padding: 0;
}

.social-links li {
  margin: 10px 0;
}

.social-links a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s;
}

.social-links a:hover {
  color: #3F71AC; /* Bleu pour le survol */
}

.footer-right {
  text-align: right;
}

.footer-right p {
  font-size: 14px;
  margin-top: 20px;
}

/* Responsivité pour les petits écrans */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
  }

  .footer-left,
.footer-center,
.footer-right {
  width: 33.33%;
  padding: 10px;
  box-sizing: border-box;
}
}

/* Section Catalogue */
.catalogue {
  background-color: #f9f9f9;
  padding: 50px 20px;
}

.catalogue-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.catalogue h2 {
  font-size: 28px;
  font-weight: bold;
  text-transform: uppercase;
  color: #333;
  margin-bottom: 20px;
  text-align: center; /* Centrer le titre */
}

.catalogue p {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 40px;
  text-align: center; /* Centrer le texte */
}

/* Style pour les cartes de produits */
.product {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.product:hover {
  transform: translateY(-10px); /* Effet de "survol" */
}

.product-image {
  flex: 1;
  max-width: 350px;
  margin-right: 20px;
}

.product-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.product-info {
  flex: 2;
  padding-left: 20px;
}

.product-info h3 {
  font-size: 22px;
  color: #333;
  margin-bottom: 15px;
}

.product-info p {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}

.product-info .btn {
  margin-top: 20px;
}

/* Bouton de téléchargement dans les produits */
.product-info .btn-blue {
  background-color: #3F71AC;
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  text-align: center;
  white-space: nowrap;
  transition: background-color 0.3s ease;
}

.product-info .btn-blue:hover {
  background-color: #2f5982; /* Changer la couleur au survol */
  opacity: 0.9; /* Effet au survol */
}

/* Responsive pour les petits écrans */
@media (max-width: 768px) {
  .product {
    flex-direction: column;
    align-items: center;
  }

  .product-image {
    max-width: 100%;
    margin-bottom: 20px;
  }

  .product-info {
    text-align: center;
  }

  .product-info .btn {
    width: 100%;
    padding: 15px;
  }

  .catalogue-container {
    padding: 0 10px;
  }
}


/* Style global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background-color: #f4f4f4;
  color: #333;
  font-family: 'Roboto', sans-serif;
}

/* Menu de navigation */
.menu {
  background-color: white;
  padding: 20px 0;
}

.menu-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.menu ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
}

.menu li {
  margin: 0 15px;
}

.menu a {
  color: #666;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s;
}

.menu a:hover {
  color: #3F71AC;
}

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

/* Centrer les logos et les boutons sous chaque logo */
.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.left-logo .btn {
  margin-top: 10px; /* Espace entre le logo et le bouton bleu */
}

.right-logo .btn {
  margin-top: 10px; /* Espace entre le logo et le bouton orange */
}

/* Style général pour les boutons */
.btn {
  display: inline-block;
  padding: 12px 24px; /* Plus grand padding pour des boutons plus visibles */
  font-size: 16px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  text-align: center;
  white-space: nowrap;
  background-color: #3F71AC; /* Couleur bleue par défaut */
  color: white !important;
  transition: background-color 0.3s ease; /* Effet de transition pour changement de couleur */
}

.btn-blue {
  background-color: #3F71AC; /* Bleu pour le bouton à gauche */
}

.btn-orange {
  background-color: orange; /* Orange pour le bouton à droite */
}

.btn:hover {
  background-color: #2f5982; /* Changer la couleur au survol pour le bouton bleu */
  opacity: 0.9; /* Effet au survol */
}

/* Footer */
.footer {
  background-color: #333;
  color: white;
  padding: 40px 20px;
  margin-top: 40px; /* Espace entre le contenu et le footer */
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-left,
.footer-center,
.footer-right {
  width: 33.33%;
  padding: 10px;
  box-sizing: border-box;
}

.footer-left h3 {
  font-size: 24px;
  margin-bottom: 15px;
}

.footer-left p {
  font-size: 16px;
  margin-bottom: 10px;
}

.social-links {
  list-style: none;
  padding: 0;
}

.social-links li {
  margin: 10px 0;
}

.social-links a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s;
}

.social-links a:hover {
  color: #3F71AC; /* Bleu pour le survol */
}

.footer-right {
  text-align: right;
}

.footer-right p {
  font-size: 14px;
  margin-top: 20px;
}

/* Responsivité pour les petits écrans */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
  }

  .footer-left,
.footer-center,
.footer-right {
  width: 33.33%;
  padding: 10px;
  box-sizing: border-box;
}
}

/* Style spécifique au formulaire de contact */
.contact-page .contact-form {
  background-color: #f9f9f9;
  padding: 50px 20px;
}

.contact-page .contact-form-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.contact-page .contact-form h2 {
  font-size: 28px;
  color: #333;
  margin-bottom: 20px;
}

.contact-page .contact-form p {
  font-size: 16px;
  color: #666;
  margin-bottom: 30px;
}

.contact-page .form-group {
  margin-bottom: 20px;
}

.contact-page label {
  font-size: 16px;
  color: #333;
  display: block;
  margin-bottom: 5px;
}

.contact-page input,
.contact-page textarea {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.contact-page textarea {
  resize: vertical;
}

.contact-page input[type="file"] {
  padding: 8px 10px;
}

.contact-page button[type="submit"] {
  background-color: #3F71AC;
  color: white;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
}

.contact-page button[type="submit"]:hover {
  background-color: #2f5982;
}

/* Responsivité pour le formulaire */
@media (max-width: 768px) {
  .contact-page .contact-form-container {
    padding: 0 10px;
  }
  .contact-page .form-group {
    width: 100%;
  }
}

/* Nouveau CSS pour la mise en forme du formulaire */
.contact-form {
  padding: 40px 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-form-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

p {
  font-size: 1rem;
  color: #666;
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 15px;
}

label {
  display: block;
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 5px;
}

input[type="text"],
input[type="email"],
textarea,
input[type="file"] {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  border-color: #4a90e2;
  outline: none;
}

textarea {
  resize: vertical;
}

button[type="submit"] {
  padding: 10px 20px;
  background-color: #4a90e2;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s;
}

button[type="submit"]:hover {
  background-color: #357ab7;
}

/* Footer */
.footer {
  background-color: #333;
  color: #fff;
  padding: 30px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-left,
.footer-center,
.footer-right {
  width: 33.33%;
  padding: 10px;
  box-sizing: border-box;
}

.footer-center ul {
  list-style: none;
  padding: 0;
}

.footer-center ul li {
  margin: 5px 0;
}

.footer-center ul li a {
  color: #fff;
  text-decoration: none;
}

.footer-center ul li a:hover {
  text-decoration: underline;
}

.footer-left h3, .footer-left p {
  font-size: 1rem;
  margin-bottom: 10px;
}

.footer-right p {
  font-size: 0.9rem;
}

.footer-right p a {
  color: #fff;
  text-decoration: none;
}

/* Responsive design pour mobile */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
  }

  .footer-left,
.footer-center,
.footer-right {
  width: 33.33%;
  padding: 10px;
  box-sizing: border-box;
}

  .menu-container {
    flex-direction: column;
    align-items: center;
  }

  ul {
    flex-direction: column;
    align-items: center;
  }

  ul li {
    margin-bottom: 10px;
  }

  .contact-form-container {
    padding: 20px;
  }

  .contact-form button {
    width: 100%;
  }
}

/* Style pour la galerie d'images */
.image-gallery {
  margin-top: 50px; /* Espace entre la section précédente et cette section */
  display: flex;
  flex-direction: column; /* Empile les éléments de la galerie */
  align-items: center; /* Centre tous les éléments de la galerie horizontalement */
}

.image-gallery-container {
  display: flex;
  justify-content: center; /* Centre les images horizontalement */
  gap: 15px; /* Espace entre les images */
}

.image-gallery-container img {
  width: 100px; /* Largeur de chaque image (ajuste selon tes besoins) */
  height: auto; /* Assure que les images gardent leur ratio */
  border-radius: 8px; /* Optionnel : bord arrondi */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Optionnel : ombre pour les images */
  transition: transform 0.3s ease; /* Pour un effet au survol */
}

/* Effet au survol des images */
.image-gallery-container img:hover {
  transform: scale(1.05); /* Agrandit légèrement l'image au survol */
}

/* Style pour l'image centrée sous la galerie */
.centered-image {
  display: flex;
  justify-content: center;
  margin-top: 20px; /* Espacement au-dessus de l'image centrée */
}

.centered-image img {
  width: 300px; /* Largeur de l'image centrée (ajuste selon tes besoins) */
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Optionnel : ombre pour l'image */
  transition: transform 0.3s ease; /* Effet au survol */
}

/* Effet au survol de l'image centrée */
.centered-image img:hover {
  transform: scale(1.05); /* Agrandit légèrement l'image au survol */
}

/* Animation de base */
.element-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease-in-out;
}

.element-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Style du lien entourant chaque photo */
.link-thumbnail {
  display: block;
  position: relative;
  overflow: hidden;
  text-align: center;
  color: #fff;
  background: #000;
}

.link-thumbnail h3 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  font-size: 1.2rem;
  z-index: 2;
  color: #fff;
  transition: all 0.3s ease;
  opacity: 0;
}

.link-thumbnail .icon {
  position: absolute;
  bottom: 20px;
  right: 20px;
  font-size: 1.5rem;
  color: #fff;
  z-index: 2;
  opacity: 0;
  transition: all 0.3s ease;
}

/* Effet au survol */
.link-thumbnail:hover h3,
.link-thumbnail:hover .icon {
  opacity: 1;
}

.link-thumbnail img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.link-thumbnail:hover img {
  transform: scale(1.05);
}


.top-images-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

/* CSS pour faire fonctionner correctement le carrousel */
.carousel-container {
  overflow: hidden;
  width: 100%;
  height: 500px;
}

.carousel-slide {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.carousel-slide img {
  width: 100vw;
  flex-shrink: 0;
  height: 100%;
  object-fit: cover;
}

/* === AJOUT POUR AJUSTER L'AFFICHAGE DU MENU ET DES BOUTONS === */
.menu-container {
  flex-wrap: nowrap;
}

.menu-center {
  flex: 1;
  min-width: 0;
  text-align: center;
  overflow: hidden;
}

.menu-center ul {
  white-space: nowrap;
  flex-wrap: nowrap;
}

.logo.left-logo,
.logo.right-logo {
  flex: 0 0 auto;
}

.btn {
  padding: 8px 16px;
  font-size: 14px;
}

.whatsapp-icon {
  height: 30px;
}

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


/* Renfort de la taille de police du menu horizontal */
.menu a,
.menu-center ul li a {
  font-size: 16px !important;
}
