body {
    background-color: #f8f9fa;
}

.navbar {
    position: relative; /* or fixed if needed */
    z-index: 1000; /* Higher than the carousel */
}

footer {
    position: relative; /* or fixed if needed */
    z-index: 1000; /* Higher than the carousel */
}

/* Footer */
.footer {
    background-color: #222;
    padding: 40px 0;
    font-size: 14px;
    text-align: center;
}

.footer h5 {
    font-size: 16px;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: bold;
    color: rgb(79, 79, 93); /* gris */
}

.footer p, .footer a {
    color: rgb(79, 79, 93); /*gris */
    font-weight: bold;
}

.footer .social-icons {
    margin-top: 10px;
}

.footer .social-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    font-size: 20px;
    margin: 5px;
    text-align: center;
    transition: all 0.3s ease;
}

.footer .social-icon i {
    color: white;
}

.footer .social-icon.tiktok {
    background-color: #000;
}

.footer .social-icon.facebook {
    background-color: #3b5998;
}

.footer .social-icon.gmail {
    background-color: #c71610;
}

.footer .social-icon:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

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


/* Navbar Enhancements */
.navbar-dark .navbar-nav .nav-link {
    color: #ddd;
    transition: color 0.3s ease, transform 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #fff;
    transform: scale(1.05);
}

.navbar-dark .navbar-nav .nav-link.active {
    color: #FFD700;
    font-weight: bold;
    border-bottom: 2px solid #FFD700;
}

/* Social Icons */
.navbar .bi {
    transition: color 0.3s ease, transform 0.3s ease;
}

.navbar .bi:hover {
    color: #FFD700;
    transform: scale(1.2);
}

/* Logo */
.navbar-logo {
    height: 50px;
    width: auto;
    border-radius: 50%;
    object-fit: cover;
}

.nav-button {
    display: flex;
    align-items: center;
}

.btn-access {
    background-color: #FFD700;
    color: #2c3e50;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

/* Dropdown */
.dropdown-menu {
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    color: #fff;
}

.dropdown-menu .dropdown-item:hover {
    background-color: #f6ebeb;
    color: #FFD700;
}



.card {
    border-radius: 10px;
    overflow: hidden;
}

.card-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #2c3e50;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.card-text {
    font-size: 0.95rem;
    color: #555;
}

.btn-primary {
    background-color: #007bff;
    border: none;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #0056b3;
}


/* Housing Page */
.card {
    border-radius: 15px;
}


.btn-light {
    color: #3A75C4;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-light:hover {
    background-color: #3A75C4;
    color: #fff;
}


/* Procedure Page */

/* Cards */
.card {
    border-radius: 15px;
}

.card-body {
    padding: 2rem;
}

.icon-container {
    background-color: #f8f9fa;
    border-radius: 50%;
    padding: 15px;
    display: inline-block;
}

/* Buttons */
.btn-primary {
    background-color: #009639;
    border-color: #009639;
}

.btn-primary:hover {
    background-color: #FFD700;
    border-color: #FFD700;
    color: #fff;
}

.btn-success {
    background-color: #3A75C4;
    border-color: #3A75C4;
    font-size: 1.1rem;
    padding: 10px 20px;
    transition: all 0.3s ease-in-out;
}

.btn-success:hover {
    background-color: #077607;
    border-color: #FFD700;
    color: #fff;
}

/* Decorative Section */
.text-center .rounded-circle {
    width: 150px;
    height: 150px;
    line-height: 120px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
}


/* Money Transfer Page */

/* Contact Section */
.icon-container {
    background-color: #eef1f4;
    border-radius: 50%;
    padding: 15px;
    display: inline-block;
}

.list-group-item {
    font-size: 1.1rem;
    color: #2c3e50;
    border: none;
}

.list-group-item strong {
    color: #3A75C4;
}


/* New Section: Services Partenaires */
.service-image {
    max-width: 80%; /* Adjust the size of the image */
    border: 5px solid #3A75C4; /* Green border for a professional look */
    border-radius: 15px; /* Rounded corners */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-image:hover {
    transform: scale(1.05); /* Slight zoom effect on hover */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2); /* Enhance shadow on hover */
}

/* Section Title */
.text-primary {
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Arrière-plan du carrousel */
.carousel-inner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.carousel-bg {
    object-fit: cover;
    width: 100%;
    height: 100vh;
    filter: brightness(0.5) blur(3px); /* Effet d'assombrissement et flou */
    
}

/* Superposition de contenu */
.container {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.8); /* Fond semi-transparent */
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Boutons du carrousel (facultatif) */
.carousel-control-prev,
.carousel-control-next {
    display: none; /* Masque les contrôles si non nécessaires */
}

/* Amélioration des titres */
h1,h2 {
    color: #2c3e50;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
    font-weight: bold;
    font-family: 'Arial', sans-serif;


}

h4 {
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    color: #2c3e50;
}


/* Flash messages */
.container .alert-success {
    background-color: #28a745; /* Vert */
    color: white;
    border: 1px solid #28a745;
    z-index: 1050; /* Assure que l'alerte soit visible par-dessus les autres éléments */
    margin-top: 20px; /* Un peu d'espace au-dessus de l'alerte */
    position: relative;
}

.container .alert-danger {
    background-color: #dc3545; /* Rouge */
    color: white;
    border: 1px solid #dc3545;
    z-index: 1050; /* Assure que l'alerte soit visible par-dessus les autres éléments */
    margin-top: 20px; /* Un peu d'espace au-dessus de l'alerte */
    position: relative;
}

.container .alert {
    padding: 15px;
    border-radius: 5px;
    position: relative;
    margin-top: 20px; /* S'assure qu'il y a de l'espace entre le formulaire et les alertes */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Ajoute un petit effet d'ombre pour que les alertes ressortent */
.container .alert-dismissible {
    cursor: pointer;
}

.container .alert .btn-close {
    background-color: transparent;
    border: none;
    font-size: 1.5rem;
    color: white;
    opacity: 0.8;
}

.container .alert .btn-close:hover {
    opacity: 1;
}

/* Amélioration de la position de l'alerte */
.container {
    position: relative;
    z-index: 10; /* Pour l'ensemble du contenu */
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* --- Style général du menu --- */
.navigation-menu {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 0px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 900;
    margin-top: -5px;
    border-bottom: 1px solid #ddd;
    text-align: center;
}

.menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.menu-list li {
    position: relative;
}

.menu-list a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 5px;
    transition: all 1s ease;
}

.menu-list a:hover {
    background-color: #004080;
    color: #fff;
    transform: scale(1.05);
}

/* --- Style des sous-menus --- */
.submenu {
    position: relative;
}

.submenu > a::after {
    content: ' ▼';
    font-size: 0.8rem;
    margin-left: 5px;
}

.submenu-list {
    list-style: none;  /* Suppression des puces */
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.submenu:hover .submenu-list {
    display: block;
    opacity: 1;
    transform: translateY(0px);
}

/* --- Style des éléments de sous-menu --- */
.submenu-list li {
    padding: 8px 15px;
}

/* Ajout d'emoji devant les éléments de sous-menu */
.submenu-list li::before {
    content: "🔹";  /* Emoji ici */
    margin-right: 10px;  /* Espacement entre l'emoji et le texte */
    font-size: 1.2rem;  /* Taille de l'emoji */
}

.submenu-list li a {
    color: #333;
    font-size: 0.95rem;
}

.submenu-list li a:hover {
    background-color: #004080;
    color: #fff;
}

/* --- Effet de flèche qui change de direction --- */
.submenu:hover > a::after {
    transform: rotate(180deg);
}

/* --- Style des sous-menus de niveau 2 --- */
.submenu-list-right {
    list-style: none;  /* Suppression des puces */
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    background-color: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    z-index: 11;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.2s ease;
}

/* --- Sous-menus de niveau 2 au survol --- */
.submenu-item:hover .submenu-list-right {
    display: block;
    opacity: 1;
    transform: translateX(0px);
}

/* --- Style des éléments de sous-menu de niveau 2 --- */
.submenu-list-right li {
    padding: 8px 15px;
}

/* Ajout d'emoji pour les sous-menus de niveau 2 */
.submenu-list-right li::before {
    content: "➡️";  /* Emoji ici */
    margin-right: 10px;
    font-size: 1.2rem;
}

.submenu-list-right li a {
    color: #333;
    font-size: 0.95rem;
}

.submenu-list-right li a:hover {
    background-color: #004080;
    color: #fff;
}

/* --- Effet de flèche pour sous-menu de niveau 2 --- */
.submenu-item:hover > a::after {
    transform: rotate(180deg);
}

/* --- Style pour la déconnexion --- */
.logout-button a {
    background-color: #e74c3c;
    padding: 8px 15px;
    color: white;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.logout-button a:hover {
    background-color: #c0392b;
    transform: scale(1.05);
}
