/* Import de la police Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: #f4f9fd;
  color: #0A3D62;
}

/* Section Héros */
.hero {
  height: 450px;
  background-image: url('images/hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* En-tête dans le héros */
.hero-header {
  position: absolute;
  top: 0;
  width: 100%;
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

/* Logo rond */
.logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
}

/* Bouton menu burger */
.menu-toggle {
  font-size: 30px;
  cursor: pointer;
  color: white;
}

/* Menu déroulant */
nav {
  position: fixed;
  top: 70px;
  right: -100%;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.97);
  border-top: 1px solid #ccc;
  z-index: 1000;
  transition: right 0.4s ease;
}

nav.show {
  right: 0;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

nav ul li {
  margin: 10px 0;
}

nav ul li a {
  text-decoration: none;
  color: #0A3D62;
  font-weight: bold;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #25D366;
}

/* Slogan avec animation */
.hero-overlay {
  background-color: rgba(10, 61, 98, 0.6);
  padding: 20px 30px;
  border-radius: 10px;
  text-align: center;
  opacity: 0;
  transform: scale(0.95);
  animation: fadeZoomIn 1s ease forwards;
  animation-delay: 0.4s;
}

.hero-overlay h1 {
  color: #ffffff;
  font-size: 2.5em;
  margin: 0;
  font-weight: 600;
}

@keyframes fadeZoomIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Sections principales */
section {
  padding: 60px 20px;
  text-align: center;
  background-color: #ffffff;
}

section h2 {
  margin-bottom: 40px;
  font-size: 1.8em;
  color: #0A3D62;
}

/* Grille de services & témoignages */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.grid div {
  background-color: #f4f4f4;
  padding: 20px;
  border-radius: 8px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.grid div:hover {
  transform: scale(1.05);
  background-color: #eafaf1;
}

/* Formulaire de contact */
form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input,
textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  width: 100%;
}

button {
  padding: 12px;
  background-color: #25D366;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #1DA851;
}

#confirmation {
  margin-top: 15px;
  font-size: 16px;
  font-weight: bold;
  color: #28a745;
}

/* Footer */
.footer {
  background-color: #0A3D62;
  color: #ffffff;
  padding: 40px 20px;
  text-align: center;
}

.footer-section {
  margin-bottom: 30px;
  display: inline-block;
  max-width: 300px;
  vertical-align: top;
}

.footer h3 {
  margin-bottom: 10px;
}

.socials a {
  margin: 0 10px;
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: color 0.3s ease;
}

.socials a:hover {
  color: #25D366;
}

.socials i {
  margin-right: 6px;
}

.copyright {
  margin-top: 30px;
  font-size: 0.9em;
  color: #cccccc;
}

/* Bouton WhatsApp flottant */
.whatsapp-fly {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25D366;
  color: white;
  font-size: 26px;
  padding: 14px 16px;
  border-radius: 50%;
  z-index: 999;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease;
}

.whatsapp-fly:hover {
  background-color: #1DA851;
}

/* 🌐 Responsive Design */
@media (max-width: 768px) {
  .hero {
    height: auto;
    padding-top: 140px;
  }

  .hero-overlay h1 {
    font-size: 1.6em;
    padding: 10px;
  }

  .hero-header {
    flex-direction: column;
    align-items: center;
    padding: 10px;
  }

  .menu-toggle {
    margin-top: 10px;
    font-size: 28px;
  }

  nav ul li {
    margin: 15px 0;
  }

  .logo {
    width: 90px;
    height: 90px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .footer-section {
    display: block;
    margin: 0 auto 30px;
    text-align: center;
  }

  .whatsapp-fly {
    bottom: 20px;
    right: 20px;
    font-size: 22px;
    padding: 12px 14px;
  }

  input,
  textarea,
  button {
    font-size: 15px;
  }
}

/* 🌀 Animation fade-in au scroll */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll fluide */
html {
  scroll-behavior: smooth;
}
