/* style.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

body {
  background: #0f0f1b;
  color: #ffffff;
  line-height: 1.6;
}

header {
  background: #1e1e2f;
  padding: 20px;
  text-align: center;
}

nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}

nav a {
  color: #fff;
  text-decoration: none;
  padding: 8px 15px;
  border-radius: 5px;
  transition: background 0.3s;
}

nav a:hover {
  background: #5f27cd;
}

.hero {
  background: linear-gradient(to right, #5f27cd, #341f97);
  text-align: center;
  padding: 100px 20px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
}

.btn {
  display: inline-block;
  margin-top: 20px;
  background: #ffffff;
  color: #341f97;
  padding: 10px 25px;
  font-weight: bold;
  border-radius: 30px;
  text-decoration: none;
  transition: background 0.3s;
}

.btn:hover {
  background: #ddd;
}

.section {
  padding: 60px 20px;
  text-align: center;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 30px;
}

.services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.service {
  background: #292942;
  padding: 20px;
  width: 300px;
  border-radius: 15px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  max-width: 400px;
  margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 5px;
  background: #1e1e2f;
  color: #fff;
}

.contact-form button {
  background: #5f27cd;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-form button:hover {
  background: #341f97;
}

.galerie {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.galerie-img {
  width: 300px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.4);
  transition: transform 0.3s;
}

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

.reseaux-sociaux {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
}

.reseaux-sociaux img {
  width: 50px;
  height: 50px;
  transition: transform 0.3s;
}

.reseaux-sociaux img:hover {
  transform: scale(1.1);
}


footer {
  background: #1e1e2f;
  text-align: center;
  padding: 20px;
  margin-top: 50px;
}

/* --- AJOUTS POUR LE RESPONSIVE --- */

/* 1. Navigation : en colonne sur petit écran */
@media (max-width: 600px) {
  nav {
    flex-direction: column;
    gap: 10px;
  }
}

/* 2. Hero : réduire padding et texte */
@media (max-width: 600px) {
  .hero {
    padding: 60px 15px;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .btn {
    padding: 10px 20px;
    font-size: 1rem;
  }
}

/* 3. Section Services : colonne au lieu de ligne */
@media (max-width: 800px) {
  .services {
    flex-direction: column;
    align-items: center;
  }
  .service {
    width: 90%;
    max-width: 350px;
  }
}

/* 4. Galerie : images plus petites et en colonne */
@media (max-width: 800px) {
  .galerie {
    flex-direction: column;
    align-items: center;
  }
  .galerie-img {
    width: 90%;
    max-width: 350px;
  }
}

/* 5. Réseaux sociaux : icônes plus petites */
@media (max-width: 480px) {
  .reseaux-sociaux {
    gap: 15px;
  }
  .reseaux-sociaux img {
    width: 40px;
    height: 40px;
  }
}

/* 6. Contact : centrer et réduire largeur */
@media (max-width: 600px) {
  .contact-form {
    width: 90%;
    max-width: 400px;
    margin: 0 auto;
  }
  .contact-form input,
  .contact-form textarea {
    font-size: 1rem;
  }
  .contact-form button {
    width: 100%;
    font-size: 1.1rem;
  }
}

/* 7. Footer padding réduit */
@media (max-width: 480px) {
  footer {
    padding: 15px 10px;
    font-size: 0.9rem;
  }
}

/* Cacher le bouton hamburger sur desktop */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

/* Sur mobile : afficher bouton et cacher nav par défaut */
@media (max-width: 600px) {
  nav {
    display: none;
    flex-direction: column;
    gap: 15px;
    background: #1e1e2f;
    padding: 15px;
    position: absolute;
    top: 70px; /* ajuster selon la hauteur header */
    right: 20px;
    border-radius: 8px;
    width: 200px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
  }
  
  nav.open {
    display: flex;
  }
  
  .menu-toggle {
    display: block;
  }
}
