/* Carousel - Lisibilité */
.carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    max-width: 60%;
    left: 5%;
    right: auto;
    text-align: left;
    bottom: 10%;   /* ← position depuis le bas */
    top: auto;     /* ← annule tout top éventuel */
}

.carousel-caption h5 {
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 700;
    line-height: 1.2;
}

.carousel-caption p {
    color: #f0f0f0 !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.btn-danger {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Overlay sur l'image */
.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.carousel-caption {
    position: absolute;
    z-index: 2;
}

/* Responsive desktop */
@media (min-width: 768px) {
    .carousel-caption {
        bottom: 10%;   /* ← était top: 20%, c'était ça le bug */
        top: auto;
        max-width: 60%;
    }
    .carousel-caption h5 {
        font-size: 2.5rem;
    }
}

/* Responsive mobile */
@media (max-width: 767px) {
    .carousel-caption {
        background: rgba(0, 0, 0, 0.7);
        padding: 1rem;
        max-width: 90%;
        bottom: 5%;
        top: auto;
    }
    .carousel-caption h5 {
        font-size: 1.5rem;
    }
}