/* Header and Navbar styling */
header, .navbar {
    background: linear-gradient(to right, #007bff, #00c6ff) !important; /* Unifier le gradient pour header et navbar */
    color: white;
    text-align: center;
}

header {
    position: relative;
}

.navbar {
    border-bottom: none; /* Supprimer toute bordure potentielle */
    box-shadow: none; /* Supprimer les ombres */
}

/* Media Queries for Mobile Devices */
@media (max-width: 768px) {
    header {
        padding: 2rem 0; /* Réduire le padding du header sur mobile */
    }

    .navbar-brand img {
        width: 200px; /* Réduire la taille du logo sur mobile */
        height: auto;
    }

    .language-switch .btn,
    .btn-primary {
        padding: 8px 12px; /* Ajuster le padding des boutons pour mobile */
        font-size: 0.9rem; /* Ajuster la taille de la police des boutons */
    }

    h3 {
        font-size: 1.2rem; /* Réduire la taille de la police de description */
    }

    h2 {
        font-size: 1.5rem; /* Réduire la taille de la police du titre */
    }

    /* Blog posts cards */
    .card {
        margin-bottom: 2rem;
    }

    .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%; /* Mettre les cartes des articles en pleine largeur sur mobile */
    }
}

/* Navigation links */
.navbar-nav .nav-link {
    color: #ddd !important;
    font-weight: 500;
    transition: color 0.3s ease-in-out;
}

.navbar-nav .nav-link:hover {
    color: #fff !important;
}

.btn-primary {
    background: #fd8917;
    padding: 10px 20px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
}

.btn-primary:hover {
    background: #e67e00;
}

/* === AFFILIATE PAGE STYLES === */

section {
    padding-top: 80px;
    padding-bottom: 80px;
}

h1, h2, h5 {
    color: #0b2447;
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h5 {
    margin-top: 25px;
    font-size: 1.1rem;
}

p {
    color: #444;
    font-size: 1rem;
}

/* Hero CTA */
section.text-center:first-of-type {
    background: linear-gradient(to right, #007bff, #00c6ff);
    color: white;
}

section.text-center:first-of-type h1 {
    color: white;
}

section.text-center:first-of-type p {
    color: #f0f0f0;
}

section.text-center:first-of-type .btn-primary {
    background: #fd8917;
    border: none;
    font-weight: 600;
    padding: 10px 25px;
    border-radius: 6px;
}

section.text-center:first-of-type .btn-primary:hover {
    background-color: #e67e00;
}

/* Simulateur */
#referredUsers {
    font-size: 1.1rem;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

#estimatedCommission {
    font-size: 1.3rem;
    color: #1992ec;
}

/* FAQ columns */
#faq .col-md-6 {
    padding-left: 30px;
    padding-right: 30px;
}

#faq p {
    margin-bottom: 30px;
}

/* Footer overrides */
#footer {
    background: linear-gradient(135deg, #003973, #e5e5be);
    color: white;
}

#footer a {
    color: white;
}

#footer a:hover {
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    #faq .col-md-6 {
        padding-left: 15px;
        padding-right: 15px;
    }
}


/* Footer styling */
#footer {
    background: url(/blog/imgs/footer_blog.webp);
    background-size: 100% 100%;
    background-position: top center;
    padding: 40px 0 40px 0;
    color: #fff;
}

/* === Sticky Footer Layout === */

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
}

/* Permet à la page de pousser le footer vers le bas */
main {
    flex: 1;
}

/* Optionnel : pour s'assurer que le footer ne dépasse jamais */
#footer {
    margin-top: auto;
}



/* Fix overlap between navbar and first section */
body {
    padding-top: 80px; /* hauteur approx. de la navbar */
}

@media (max-width: 768px) {
    body {
        padding-top: 78px; /* un peu plus sur mobile si nécessaire */
    }
}



@media (max-width: 768px) {

    #address{
        margin-left: 10%;
    }

    div#address.col-md-4.col-6 {
        flex: 0 0 100%;
        max-width: 40%;
    }
    div#followus.col-md-4.col-6 {
        flex: 0 0 100%;
        max-width: 40%;
    }

    #footer img {
        margin-top: 20px;
    }
}
