/* === Couleurs officielles === */
:root {
    --primary-red: #e81c24;
    --dark-gray: #232124;
    --light-gray: #f8f9fa;
}

/* === Navbar === */
.navbar {
    background-color: var(--dark-gray);
}
.navbar .nav-link {
    color: white !important;
    font-weight: 500;
}
.navbar .nav-link:hover {
    color: var(--primary-red) !important;
}

/* === Bannière principale === */
.banner {
    position: relative;
    background-image: url('../images/terrain-banner.jpg');
    background-size: cover;
    background-position: center;
    height: 60vh;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.banner h1 {
    font-size: 3rem;
    text-shadow: 2px 2px 5px black;
}
.banner p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 3px black;
}
.banner .btn-warning {
    background-color: var(--primary-red);
    border: none;
}

/* === Carrousel === */
.carousel-caption {
    background-color: rgba(0,0,0,0.5);
    padding: 1rem;
    border-radius: 10px;
}

/* === Terrains / cartes === */
.terrain-card img {
    height: 200px;
    object-fit: cover;
}
.btn-primary {
    background-color: var(--primary-red);
    border: none;
}
.btn-primary:hover {
    background-color: #c2171f;
}
.btn-success {
    background-color: #25D366; /* WhatsApp vert */
    border: none;
}
.btn-success:hover {
    background-color: #1ebe5d;
}

/* === Footer === */
footer {
    background-color: var(--dark-gray);
    color: white;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}

/* === Formulaires / filtres === */
form input, form select {
    border-radius: 0.25rem;
}

/* === Texte / paragraphes === */
p, h2, h3, h4, h5 {
    color: var(--dark-gray);
}
h2, h3 {
    font-weight: 600;
}

/* === Responsive adjustments === */
@media (max-width: 768px) {
    .banner h1 {
        font-size: 2rem;
    }
    .banner p {
        font-size: 1rem;
    }
}  

.carousel-banner {
    position: relative;
    height: 60vh; /* Hauteur du carrousel */
    overflow: hidden;
}

.carousel-banner .carousel-item {
    height: 100%;
}

.carousel-banner .carousel-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Remplit toute la zone */
    filter: brightness(50%); /* Assombrit l'image pour que le texte ressorte */
}

.carousel-banner .carousel-caption {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    text-shadow: 2px 2px 5px black;
}
