/* ========== RESET DE BASE ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: #f4f4f4;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ========== HEADER ========== */
header {
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background-color 0.3s ease-in-out;
}

nav {
  max-width: 1200px;
  margin: auto;
  padding: 1em 1.5em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* LOGO */
.logo {
  font-size: 1.5em;
  font-weight: bold;
  color: #0077cc;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: transform 0.3s;
}
.logo:hover {
  transform: scale(1.05);
}

/* NAVIGATION */
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5em;
  transition: max-height 0.3s ease-in-out;
}
.nav-links li a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  position: relative;
  padding: 5px 0;
  transition: color 0.3s;
}
.nav-links li a:hover {
  color: #0077cc;
}
.nav-links li a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  background: #0077cc;
  left: 0;
  bottom: 0;
  transition: width 0.3s ease-in-out;
}
.nav-links li a:hover::after {
  width: 100%;
}

/* ========== HAMBURGER MENU ========== */
.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: #333;
}

/* ========== CHAMP DE RECHERCHE ========== */
#searchInput {
  padding: 0.5em 1em;
  font-size: 1em;
  border: 2px solid #ccc;
  border-radius: 5px;
  margin-top: 10px;
  transition: all 0.3s ease-in-out;
  width: 250px;
}
#searchInput:focus {
  border-color: #0077cc;
  outline: none;
  box-shadow: 0 0 5px rgba(0, 119, 204, 0.3);
}

.search-results {
  background: #fff;
  border: 1px solid #ccc;
  margin-top: 5px;
  padding: 10px;
  position: absolute;
  max-width: 250px;
  z-index: 1000;
}
.search-results a {
  display: block;
  padding: 5px 0;
  color: #0077cc;
  text-decoration: none;
  transition: all 0.3s;
}
.search-results a:hover {
  padding-left: 10px;
  text-decoration: underline;
}

/* ========== HERO SECTION ========== */
.hero {
  text-align: center;
  padding: 120px 20px;
  background: linear-gradient(to right, #e3f2fd, #fce4ec);
  animation: fadeIn 1s ease-in-out;
}
.hero h1 {
  font-size: 2.5em;
  margin-bottom: 20px;
}
.hero p {
  font-size: 1.2em;
  color: #555;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== BOUTONS ========== */
button {
  padding: 10px 20px;
  background-color: #0077cc;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin: 1em;
  transition: background-color 0.3s ease, transform 0.2s;
}
button:hover {
  background-color: #005fa3;
  transform: scale(1.05);
}
#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
  font-size: 20px;
}

/* ========== FOOTER ========== */
footer {
  background-color: #222;
  color: white;
  text-align: center;
  padding: 30px 0;
}
footer p {
  margin-bottom: 15px;
  font-size: 1.1em;
  font-weight: bold;
}
.social-icons i {
  font-size: 24px;
  margin: 0 12px;
  transition: transform 0.3s, color 0.3s;
  cursor: pointer;
}
.social-icons a {
  color: white;
  text-decoration: none;
}
.social-icons a:hover i {
  transform: scale(1.2);
}
.social-icons a[href*="whatsapp"]:hover i { color: #25D366; }
.social-icons a[href*="facebook"]:hover i { color: #1877F2; }
.social-icons a[href*="instagram"]:hover i { color: #C13584; }
.social-icons a[href*="linkedin"]:hover i { color: #0A66C2; }
.social-icons a[href*="twitter"]:hover i { color: #1DA1F2; }
.social-icons a[href^="mailto"]:hover i { color: #D44638; }

/* ========== RESPONSIVE DESIGN ========== */
@media screen and (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    display: none;
    background-color: #fff;
    margin-top: 10px;
    padding: 10px 0;
    border-top: 1px solid #ddd;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    padding: 10px 1em;
  }

  .nav-links li a {
    display: block;
    width: 100%;
  }

  #searchInput {
    width: 100%;
    margin-top: 10px;
  }
}