/* =================================================================
   Feuille de style principale pour le site RechargeTel
   ================================================================= */

/* --- Styles Généraux et Structure --- */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa; /* Un gris très clair pour le fond */
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Hauteur minimale de 100% de la vue pour le sticky footer */
}

/* Le conteneur principal prend toute la place disponible, poussant le footer en bas */
main.container {
    flex: 1;
}

/* --- Section "Héros" (Bannière d'accueil) --- */

.hero-section {
    background: linear-gradient(45deg, #0d6efd, #0dcaf0); /* Dégradé de bleu dynamique */
    color: white;
    padding: 4rem 0; /* Moins de padding pour laisser de la place au formulaire */
    text-align: center;
    border-radius: 0.5rem;
    margin-bottom: 3rem;
    animation: fadeIn 1s ease-in-out;
}

.hero-section h1 {
    font-weight: 700;
    font-size: 3.2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-section p.lead {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 1rem auto;
}

/* Style pour le formulaire dans la section héros */
.hero-section .card {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
}

.hero-section .btn-warning {
    padding: 0.55rem 1rem;
    font-size: 1rem;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.hero-section .btn-warning:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}


/* --- Section des Fonctionnalités (Features) --- */

.features-section .feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #0d6efd; /* Bleu primaire de Bootstrap */
    transition: transform 0.3s ease-in-out;
}

.features-section .card {
    border: none;
    transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.features-section .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.features-section .card:hover .feature-icon {
    transform: scale(1.2) rotate(10deg);
}


/* --- Pied de Page (Footer) --- */

footer.site-footer {
    background-color: #343a40; /* Un gris foncé, comme la navbar */
    color: #adb5bd; /* Texte gris clair */
    padding-top: 2rem; /* Padding uniquement en haut, le bas est géré par .footer-bottom */
    margin-top: auto; /* Pousse le footer en bas du conteneur flex (essentiel pour le sticky footer) */
}

footer.site-footer h5 {
    color: #ffffff; /* Titres des sections en blanc */
    font-weight: bold;
}

footer.site-footer a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

footer.site-footer a:hover {
    color: #ffffff; /* Le lien devient blanc au survol */
}

/* Bandeau inférieur du pied de page */
footer.site-footer .footer-bottom {
    background-color: #212529; /* Un gris encore plus foncé */
    color: #6c757d; /* Texte plus discret */
    padding: 1rem 0;
    margin-top: 2rem;
}


/* --- Animations et Utilitaires --- */

/* Animation d'apparition simple */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* /assets/css/style.css */

/* ... (tous vos styles précédents) ... */


/* --- Section "Comment ça marche ?" --- */
.how-it-works-section {
    padding: 3rem 0;
    background-color: #ffffff; /* Fond blanc pour contraster */
}

.how-it-works-section .step-icon {
    font-size: 2.5rem;
    color: #0d6efd;
    margin-bottom: 1rem;
    display: inline-block;
    padding: 1.5rem;
    background-color: #e7f1ff; /* Bleu très clair */
    border-radius: 50%;
    line-height: 1;
}

.how-it-works-section h3 {
    font-weight: 600;
    margin-top: 1rem;
}

/* --- Section Promotions --- */
.promotions-section {
    padding: 3rem 0;
}

.promotions-section .card {
    border: 2px solid #ffc107; /* Bordure jaune pour attirer l'œil */
    background-color: #fffbeb; /* Fond jaune très pâle */
}

.promotions-section .card-title {
    color: #856404; /* Texte marron foncé */
}

/* --- Section FAQ (Accordion) --- */
.faq-section {
    padding: 3rem 0;
    background-color: #ffffff;
}

.faq-section .accordion-button:not(.collapsed) {
    color: #0c63e4;
    background-color: #e7f1ff;
}

.faq-section .accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}
