/* ================================================= */
/* COULEURS THÉMATIQUES AIRTEL */
:root {
  --airtel-red: #e74c3c;
  --airtel-orange: #ff0000; /* Couleur principale (Rouge/Orange vif du logo) */
  --airtel-grey: #333333;
  --airtel-light-bg: #f5f5f5;
  --airtel-highlight: #ff6600;
}
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: var(--airtel-light-bg);
  color: var(--airtel-grey);
  margin: 0;
  padding: 0;
  /* Reste centré pour les éléments principaux */
  text-align: center;
}
.container {
  max-width: 1000px;
  margin: 60px auto;
  padding: 40px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}
.header {
  background: var(--airtel-orange);
  color: white;
  padding: 30px;
  border-radius: 12px 12px 0 0;
  /* Utilisation de marges négatives pour que le header prenne toute la largeur du conteneur */
  margin: -40px -40px 40px -40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.logo-container {
  margin-bottom: 15px;
  background-color: white;
  padding: 10px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.logo-container img {
  height: 60px;
  width: auto;
}
.header h1 {
  margin: 0 0 10px 0;
  font-size: 2.5rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

/* Rends la grille flexible (pour l'alignement central) */
.nav-grid {
  display: flex;
  /* Permet le retour à la ligne si l'espace manque */
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-top: 40px;
}
.nav-card {
  /* Permet à la carte de grandir, mais fixe une largeur de base pour la mise en page en 3 colonnes */
  flex: 1 1 250px;
  max-width: 300px;
  padding: 30px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: var(--airtel-grey);
  border: 1px solid #ddd;
  position: relative;
  /* Ajout pour centrer le texte dans la carte sur grand écran */
  text-align: center;
}
.nav-card p {
  /* Assure que le texte de description est justifié à gauche pour la lisibilité */
  text-align: left;
  font-size: 0.95rem;
  color: #666;
}
.nav-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-color: var(--airtel-orange);
}
.nav-card h2 {
  color: var(--airtel-orange);
  font-size: 1.5rem;
  margin-top: 0;
}
.nav-card a {
  color: var(--airtel-highlight) !important;
  font-weight: bold;
}
.download-btn {
  background-color: #27ae60;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 20px;
  /* Ajout pour centrer sur mobile si nécessaire, mais géré par le nav-card parent */
  display: block;
  width: 100%; /* S'assure qu'il prend toute la largeur de la carte */
  box-sizing: border-box;
}
.download-btn:hover {
  background-color: #1e8449;
}

/* ==================================== */
/* RESPONSIVE DESIGN (Media Query) */
/* ==================================== */
@media (max-width: 768px) {
  body {
    /* Conserve le centrage pour le contenu global */
    text-align: center;
  }
  .container {
    margin: 0;
    padding: 20px;
    border-radius: 0;
    box-shadow: none;
  }
  .header {
    margin: -20px -20px 20px -20px;
    padding: 20px;
  }
  .header h1 {
    font-size: 2rem;
  }
  .logo-container img {
    height: 45px;
  }

  /* Empile les cartes verticalement et prend toute la largeur */
  .nav-grid {
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
  }
  .nav-card {
    /* Reset la max-width pour prendre toute la largeur */
    max-width: 100%;
    padding: 25px;
    /* Permet de centrer le contenu à l'intérieur */
    text-align: center;
  }
  /* Meilleure lisibilité du texte de description sur mobile */
  .nav-card p {
    text-align: left;
  }

  .download-btn {
    /* Assuré qu'il prend toute la largeur */
    width: 100%;
  }
}
