/* 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;
    padding: 5rem 0;
}

.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;
}

/* Language switch dropdown */
.language-switch {
    position: relative;
    display: inline-block;
}

.language-switch .btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 12px;
    border-radius: 5px;
    margin-left: 10px;
}

.language-switch .btn:hover {
    background-color: #0056b3;
    color: #fff;
}

.language-switch .dropdown-menu {
    background-color: #007bff;
}

.language-switch .dropdown-item {
    color: #fff;
    transition: background-color 0.3s;
}

.language-switch .dropdown-item:hover {
    background-color: #0056b3;
}

.language-switch .dropdown-item i {
    margin-right: 8px;
}

/* 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;
}


@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;
    }
}
