/* --- Général --- */
body {
  font-family: 'Raleway', sans-serif;
  margin: 0;
  background: #fdfdfd;
  color: #333;
  scroll-behavior: smooth;
}

/* --- Header --- */
.site-header {
  background: linear-gradient(90deg, #0e66b0, #00bfa5);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo {
  height: 60px;
  transition: transform 0.3s ease;
  border-radius: 7%; /* rend l'image circulaire si elle est carrée */
  border: 2px solid white; /* facultatif : bordure blanche */
  padding: 4px; /* optionnel : un petit espace intérieur */
  background-color: white; /* pour un contraste visible autour du logo */
}

.logo:hover {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}
.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  position: relative;
}
.nav-links a::after {
  content: '';
  display: block;
  height: 2px;
  background: #fff;
  width: 0%;
  transition: width 0.3s ease;
  position: absolute;
  bottom: -4px;
  left: 0;
}
.nav-links a:hover::after {
  width: 100%;
}

/* --- Menu Hamburger --- */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}
.menu-toggle span {
  height: 3px;
  width: 25px;
  background: white;
  border-radius: 2px;
}

/* --- Responsive Header --- */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    background: #0e66b0;
    flex-direction: column;
    width: 100%;
    display: none;
    padding: 1rem;
  }
  .nav-links.show {
    display: flex;
  }
  .menu-toggle {
    display: flex;
  }
}

/* --- Apparition en douceur --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Section --- */

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
}


/* --- Hero Section --- */

.hero {
  background: linear-gradient(135deg, #e0f7fa, #e1bee7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
}
.hero-content {
  max-width: 700px;
}
.hero h1 {
  font-size: 3rem;
  background: linear-gradient(to right, #0e66b0, #00bfa5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeInDown 1s ease-out;
}
.typing::after {
  content: '|';
  animation: blink 1s infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1 }
  50% { opacity: 0 }
}
.hero p {
  font-size: 1.2rem;
  margin: 1rem 0;
}
.app-mockup {
  width: 100%;
  max-width: 300px;
  margin-top: 2rem;
}
.hero .btn.glow {
  background: #0e66b0;
  border: none;
  color: white;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  margin: 1rem 0.5rem;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 0 10px #0e66b0;
  transition: all 0.3s ease;
}
.btn.glow:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px #0e66b0;
}

@media (max-width: 480px) {
  .hero .buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem; /* espacement entre les boutons */
  }

  .hero .btn {
    width: 100%; /* les boutons prendront toute la largeur disponible */
    max-width: 280px; /* limite la largeur pour éviter qu'ils soient trop larges */
  }
}


/* --- Features Section --- */
.features-grid > h2 {
  text-align: center;
  width: 100%;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
  text-align: center;
}
.feature-card {
  background: white;
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-5px);
}
.feature-card img {
  width: 50px;
  margin-bottom: 1rem;
}

/* --- Parallax Gallery --- */
.parallax-section {
  background: url('images/african-pattern.jpeg') fixed center / cover;
  color: white;
  padding: 4rem 2rem;
}
.gallery {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.gallery img {
  width: 200px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(255,255,255,0.2);
  transition: transform 0.3s;
}
.gallery img:hover {
  transform: scale(1.05);
}

/* --- Download Section --- */
#download {
  background: linear-gradient(to bottom right, #0e66b0, #047d9d);
  color: #f8f8f8;
  text-align: center;
  padding: 3rem 2rem;
}
#download .btn {
  margin: 1rem;
  padding: 0.9rem 2rem;
  font-weight: bold;
  font-size: 1.05rem;
  border-radius: 40px;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}
.btn.glow {
  background-color: #00bfa5;
  color: white;
  box-shadow: 0 0 15px #00bfa5;
}
.btn.alt.glow {
  background-color: #ffffff;
  color: #0e66b0;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}
.btn.glow:hover,
.btn.alt.glow:hover {
  transform: scale(1.08);
  box-shadow: 0 0 25px rgba(0, 191, 165, 0.6);
}

/* --- Contact Section --- */
#contact {
  background: #f5faff;
  color: #333;
  text-align: center;
  padding: 3rem 2rem;
  border-top: 3px solid #0e66b0;
}
#contact h2 {
  color: #0e66b0;
}
#contact a {
  color: #047d9d;
  font-weight: 600;
  text-decoration: none;
}
#contact a:hover {
  text-decoration: underline;
}

/* --- Footer --- */
footer {
  background: linear-gradient(to right, #0e4b85, #009688);
  color: #f1f1f1;
  text-align: center;
  padding: 1.5rem;
  font-size: 0.95rem;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
}
