/* ==========================================================================
   Configuration Globale et Variables de Design
   ========================================================================== */

/* 
  On utilise des variables CSS (commençant par --) pour gérer nos couleurs.
  Si demain vous voulez changer la couleur principale du site, il suffira de 
  modifier UNE SEULE ligne ici ! C'est une pratique très moderne et efficace.
*/
:root {
    --primary-color: #4A90E2;
    /* Un bleu moderne et confiant */
    --secondary-color: #50E3C2;
    /* Une touche de vert menthe pour les accents */
    --dark-bg: #121212;
    /* Un fond sombre profond, style "dark mode" */
    --card-bg: #1E1E1E;
    /* Couleur pour les "cartes" et sections */
    --text-primary: #FFFFFF;
    /* Texte principal blanc */
    --text-secondary: #B0B0B0;
    /* Texte secondaire, plus discret */
    --font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Réinitialisation de base et configuration du body */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family-sans-serif);
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    /* Le site ne s'étirera pas à l'infini sur les très grands écrans */
    margin: 0 auto;
    /* Centre le contenu */
}


/* ==========================================================================
   Styles de l'En-tête (Navbar)
   ========================================================================== */
header {
    background-color: rgba(30, 30, 30, 0.85);
    /* Fond semi-transparent */
    backdrop-filter: blur(10px);
    /* Effet de flou moderne */
    border-bottom: 1px solid #333;
    padding: 1rem 0;
    position: sticky;
    /* L'en-tête reste en haut quand on défile */
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    flex-direction: column;
    /* PAR DÉFAUT : les éléments sont en colonne (vertical) */
    align-items: center;
    /* On centre tout horizontalement */
    gap: 1rem;
    /* Un espace propre entre le logo et le bloc de boutons */
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    /* Permet aux boutons de passer à la ligne si besoin */
    justify-content: center;
    /* Centre les boutons dans leur conteneur */
    gap: 0.5rem;
    /* Espace entre les boutons eux-mêmes */
}
.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-primary);
}

.nav-links .nav-button {
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: nowrap;
    /* Empêche le texte des boutons de se casser sur deux lignes */
}

.nav-links .nav-button:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* SEULEMENT pour les écrans de 768px et plus (tablettes, ordinateurs) */
@media (min-width: 768px) {
    .navbar {
        flex-direction: row;
        /* On repasse en mode horizontal */
        justify-content: space-between;
        /* On les pousse aux extrémités */
    }
}

/* ==========================================================================
   Styles de la Section "Héros" (Première impression)
   ========================================================================== */
.hero {
    padding: 5rem 0;
    /* Beaucoup d'espace vertical pour laisser respirer */
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    /* Taille du titre principal, ajustée pour mobile */
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero .subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem auto;
    /* Centre le sous-titre et lui donne une marge en bas */
}

/* Le bouton principal "Call To Action" */
.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    transition: transform 0.3s ease;
}

.cta-button:hover {
    transform: scale(1.05);
    /* Effet de zoom au survol */
}

/* ==========================================================================
   Section des fonctionnalités
   ========================================================================== */
.features {
    padding: 4rem 0;
}

.feature-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    /* Espace entre les cartes sur mobile */
    text-align: center;
    border: 1px solid #2a2a2a;
}

.feature-card h2 {
    color: var(--secondary-color);
    /* On utilise la couleur secondaire pour les titres de fonctionnalités */
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-secondary);
}


/* ==========================================================================
   Section d'appel à l'action final
   ========================================================================== */

.cta-final {
    padding: 5rem 0;
    text-align: center;
    background-color: var(--card-bg);
}

.cta-final h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-final .app-buttons {
    margin-top: 2rem;
}

.app-store-button {
    display: block;
    /* Prend toute la largeur sur mobile */
    background-color: #333;
    color: #fff;
    text-decoration: none;
    padding: 1rem;
    border-radius: 8px;
    margin: 0.5rem auto;
    /* Se centre horizontalement */
    max-width: 280px;
    transition: background-color 0.3s ease;
}

.app-store-button:hover {
    background-color: #444;
}


/* ==========================================================================
   Pied de page
   ========================================================================== */
footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid #333;
    color: var(--text-secondary);
}


/* ==========================================================================
   Styles pour les plus grands écrans (Tablettes et Ordinateurs)
   ========================================================================== */
/* 
  C'est la partie "responsive". On dit : "si la largeur de l'écran
  est d'AU MOINS 768px, alors applique ces styles supplémentaires".
*/
@media (min-width: 768px) {
    .hero h1 {
        font-size: 3.5rem;
        /* Titre plus grand sur ordinateur */
    }

    .features .container {
        display: grid;
        /* On passe en mode "grille" */
        grid-template-columns: 1fr 1fr 1fr;
        /* 3 colonnes de taille égale */
        gap: 1.5rem;
        /* L'espace entre les colonnes */
    }

    .cta-final .app-buttons {
        display: flex;
        justify-content: center;
        gap: 1rem;
    }

    .app-store-button {
        display: inline-block;
        /* Les boutons sont côte à côte */
        margin: 0;
    }
}

/* ==========================================================================
   Styles pour la Page de Recharge
   ========================================================================== */
.recharge-section {
    padding: 4rem 0;
    text-align: center;
}

.recharge-section h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.recharge-card {
    background-color: var(--card-bg);
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    margin: 2rem auto 0 auto;
    text-align: left;
}

.recharge-card h3 {
    text-align: center;
    color: var(--text-secondary);
    font-weight: bold;
    margin-bottom: 1.5rem;
}

/* Styles pour le convertisseur */
.converter {
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.form-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    background-color: #101010;
    border: 1px solid #333;
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Input en lecture seule */
.form-group input[readonly] {
    background-color: #252525;
    font-weight: bold;
}

.arrow-symbol {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-color);
    /* margin: -0.5rem 0; */
}

.conversion-rate {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

/* Styles pour les boutons de paiement */
.payment-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.payment-btn {
    text-align: center;
    color: #fff;
    text-decoration: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: transform 0.2s ease;
}

.payment-btn:hover {
    transform: scale(1.03);
}

.payment-btn.orange-money {
    background-color: #FF7F00;
    /* Couleur Orange Money */
}

.payment-btn.mtn-money {
    background-color: #FFCB00;
    /* Couleur MTN MoMo */
    color: #000;
    /* Texte noir pour le contraste */
}

.info-text {
    text-align: center;
    font-size: 0.9rem;
    color: #777;
}

/* Améliorations pour desktop */
@media (min-width: 768px) {
    .converter {
            display: flex;
            /* On le transforme en conteneur flexible */
            flex-direction: column;
            /* On force l'alignement en colonne verticale */
            gap: 0.5rem;
            /* On ajoute un espace propre entre chaque élément */
            margin-bottom: 1rem;
        }

    .arrow-symbol {
        margin: 0;
        padding-top: 1.5rem;
        /* Aligner avec les champs */
    }

    .form-group {
        margin-bottom: 0;
    }
}

/* ==========================================================================
   Styles pour la Page de Support
   ========================================================================== */
.support-section {
    padding: 4rem 0;
}

.support-section h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.support-section .subtitle {
    text-align: center;
    margin-bottom: 3rem;
}

.support-card {
    background-color: var(--card-bg);
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.support-card h2 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #333;
}

.support-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* Style pour les informations de contact */
.contact-info {
    background-color: #252525;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    color: var(--primary-color);
    font-weight: bold;
    text-align: center;
}

/* Styles pour la liste de FAQ (Définition List) */
.support-card dl dt {
    /* La question */
    font-weight: bold;
    color: var(--text-primary);
    margin-top: 1.5rem;
}

.support-card dl dd {
    /* La réponse */
    color: var(--text-secondary);
    margin-left: 1rem;
    margin-top: 0.5rem;
    padding-left: 1rem;
    border-left: 2px solid var(--primary-color);
}