body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.carousel-bg {
    min-height: 80vh;
    background-size: cover;
    background-position: center;
    position: relative;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.carousel-content {
    padding: 2rem;
    color: white;
}

.carousel-content h2 {
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.carousel-content p {
    font-size: 1.25rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background-color: #007bff;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

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

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1);
}

footer {
    margin-top: auto;
}

/* Styles pour la navbar personnalisée */
.custom-navbar {
    background-color: rgba(0, 0, 0, 0.8); /* Fond semi-transparent pour contraster avec le carrousel */
    padding: 1rem 0; /* Plus de padding pour agrandir la navbar */
    position: sticky;
    top: 0;
    z-index: 1000; /* S'assurer que la navbar reste au-dessus du carrousel */
}

.custom-navbar .navbar-brand {
    font-size: 1.8rem; /* Taille du logo/texte plus grande */
    font-weight: bold;
    color: #fff;
    transition: color 0.3s ease;
}

.custom-navbar .navbar-brand:hover {
    color: #007bff; /* Effet au survol */
}

.custom-navbar .nav-link {
    font-size: 1.2rem; /* Taille de police plus grande pour les liens */
    color: #fff;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.custom-navbar .nav-link:hover {
    color: #007bff;
    background-color: rgba(255, 255, 255, 0.1); /* Effet au survol */
    border-radius: 5px;
}

.custom-navbar .navbar-toggler {
    border-color: #fff;
}

.custom-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 768px) {
    .carousel-bg {
        min-height: 60vh;
    }
    .carousel-content h2 {
        font-size: 2rem;
    }
    .carousel-content p {
        font-size: 1rem;
    }

    .custom-navbar {
        padding: 0.5rem 0; /* Moins de padding sur mobile */
    }

    .custom-navbar .navbar-brand {
        font-size: 1.5rem;
    }

    .custom-navbar .nav-link {
        font-size: 1rem;
        padding: 0.5rem;
    }
}