/* General Styling */
html, body {
  width: 100%;
  overflow-x: hidden; 
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f5f5dc;
  box-sizing: border-box;
  max-width: 1300px;
  margin: 0 auto;
  background-image: url('../image/backrond.png'); 
  background-repeat: repeat;
  background-size: 150px;
  color: #333;
}

/* Header */
header {
  display: flex;
  flex-direction: column; /* Colonne pour aligner le logo au-dessus du texte */
  align-items: center; /* Centre les éléments horizontalement */
  justify-content: center;
  background-color: rgba(204, 153, 0, 0.8);
  padding: 40px 20px;
  border-bottom: 2px solid #ddd;
  margin-bottom: 40px;
  text-align: center; /* Assure que tout le contenu est centré */
}

/* Logo centré au-dessus du h1 */
#main-logo {
  width: 150px;
  cursor: pointer;
  margin-bottom: 20px;
  animation: logoSpin 1s linear 0s 5; /* Tourne 5 fois rapidement */
  transform-origin: center center; /* Assure que le logo tourne autour de son centre */
}

/* Animation de rotation rapide avec agrandissement */
@keyframes logoSpin {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(2); /* Agrandit légèrement pendant la rotation */
  }
  100% {
    transform: rotate(360deg) scale(1); /* Retour à la taille normale après un tour */
  }
}

/* Header Content */
.header-content {
  text-align: center;
}

.header-content h1 {
  margin: 0;
  font-size: 32px;
  color: #333;
  font-weight: bold;
  text-transform: uppercase;
  margin-top: 20px;
}

.header-content h3 {
  margin: 5px 0;
  font-size: 18px;
  color: #555;
  font-weight: bold;
}

/* Réseaux Sociaux */
.social-icons {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  gap: 15px;
}

.social-icon {
  font-size: 24px;
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
  color: #007BFF; /* Changement de couleur au survol */
  transform: scale(1.2); /* Légère agrandissement au survol */
}

/* Navigation */
.menu {
  list-style: none;
  display: flex;
  gap: 30px;
  padding: 0;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.menu li {
  position: relative;
}

.menu a {
  color: #333;
  text-decoration: none;
  padding: 10px 15px;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.menu a:hover {
  color: #fff;
  background-color: #007BFF;
  border-radius: 5px;
}

/* Sous-menu */
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #eee;
  list-style: none;
  padding: 10px;
  margin: 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 10;
  border-radius: 5px;
}

.submenu li {
  width: 180px;
}

.submenu li a {
  color: #333;
  padding: 10px;
  display: block;
  font-size: 16px;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.submenu li a:hover {
  color: #fff;
  background-color: #007BFF;
}

.has-submenu:hover .submenu {
  display: block;
}

/* Séparation des Sections */
section {
  margin: 40px 0;
  padding: 20px;
  border-bottom: 2px solid #ddd;
  background-color: #f9f9f9;
}

.text-container {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
  text-align: center;
}

/* Bouton "En savoir plus" */
.button-container {
  text-align: center;
  margin-top: 10px;
}

.button-container .btn {
  display: inline-block;
  padding: 10px 20px;
  font-size: 16px;
  background-color: rgba(204, 153, 0, 0.8);
  color: #0a0909;
  text-transform: uppercase;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.button-container .btn:hover {
  background-color: #0244f7;
  transform: translateY(-2px);
}

/* Images des Sections */
.photo-container {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.section-photo {
  max-width: 90%;
  width: 50%;
  height: 400px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.section-photo:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Styles des Titres */
h1, h2, h3 {
  text-transform: uppercase;
  margin-bottom: 10px;
}

h1 {
  font-size: 32px;
  color: #0056b3;
}

h2 {
  font-size: 28px;
  color: #0056b3;
  border-bottom: 2px solid #0056b3;
  padding-bottom: 5px;
}

h3 {
  font-size: 22px;
  color: #333;
  font-weight: bold;
}

/* Formulaire de Contact */
.contact-form {
  display: flex;
  flex-direction: column;
  max-width: 600px;
  margin: 20px auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-form label {
  font-weight: bold;
  margin-bottom: 5px;
  color: #0056b3;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1em;
  width: 100%;
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #007BFF;
  outline: none;
}

.contact-form button {
  padding: 12px;
  background-color: rgba(204, 153, 0, 0.8);
  color: #000000;
  font-weight: bold;
  border: none;
  border-radius: 4px;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.contact-form button:hover {
  background-color:rgba(47, 11, 250, 0.979);
  transform: translateY(-2px);
}

/* Footer */
.footer {
  background-color: rgba(204, 153, 0, 0.8);
  padding: 40px 20px;
  text-align: center;
  color: #333;
  border-top: 4px solid #0056b3;
  margin-top: 40px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: flex;
  gap: 30px;
}

.footer-nav a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: #007BFF;
}

/* Réseaux Sociaux dans le Footer */
.footer .social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.footer .social-icon {
  font-size: 24px;
  color: #041cf3;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer .social-icon:hover {
  color: #ff00ff94;
  transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: center;
  }

  #main-logo {
    width: 150px;
    margin-bottom: 20px;
    animation: logoSpin 1s linear 0s 5;
  }

  .menu {
    flex-direction: column;
    gap: 10px;
  }
  .contact-info h3 {
    font-size: 16px; 
  }
  .section-photo {
    max-width: 100%;
    width: 70%;
    height: auto;
    margin-bottom: 20px;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-nav ul {
    flex-direction: column;
    gap: 10px;
  }

  .footer .social-icons {
    margin-top: 20px;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 10px;
    background-size: cover;
  }

  header {
    padding: 10px;
    margin-bottom: 60px;
  }

  .menu {
    flex-direction: column;
    gap: 8px;
    align-items: center;
    padding: 0;
  }

  .menu a {
    padding: 8px 12px;
    font-size: 14px;
  }

  .submenu {
    position: static;
    box-shadow: none;
    background-color: #f9f9f9;
    margin-top: 8px;
  }

  .submenu li a {
    padding: 8px;
    font-size: 14px;
  }

  .section-photo {
    max-width: 100%;
    width: 90%;
    height: auto;
    margin-bottom: 20px;
  }

  #main-logo {
    width: 150px;
    margin-bottom: 20px;
    animation: logoSpin 1s linear 0s 5;
  }
  .contact-info h3 {
    font-size: 14px; 
  }
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }



  .footer-nav ul {
    flex-direction: column;
    gap: 10px;
  }

  .footer .social-icons {
    margin-top: 20px;
    gap: 8px;
  }
}

