/* --- RESET DE BASE --- */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding-top: 70px; /* espace pour le header fixé */
    background-color: #ffffff;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- HEADER (menu navigation) --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1030;
    background-color: #5e2a84 !important;
    padding: 10px 20px;
}
.navbar a {
    color: #fff !important;
}
.navbar a:hover {
    color: #F7931E !important;
}

/* --- FOOTER FIXE EN BAS --- */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #5e2a84 !important;
    color: #fff !important;
    text-align: center;
    padding: 12px 0;
    z-index: 1020;
}

/* --- TITRES --- */
h1, h2, h3, h4 {
    color: ##fff;
    font-weight: bold;
}

/* --- CARTES OBJETS --- */
.card-custom {
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 12px;
    transition: transform .2s ease, box-shadow .2s ease;
    color: #222;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    overflow: hidden; /* ✅ évite que l’image dépasse au zoom */
}
.card-custom:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(0,0,0,.2);
    background: #e8e8e8;
}
.card-custom img {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease-in-out; /* ✅ effet fluide */
}
.card-custom:hover img {
    transform: scale(1.05); /* ✅ zoom léger au hover */
}

/* --- BADGE PRIX --- */
.badge-price {
    background: #F7931E;
    color: #222;
    font-weight: bold;
    font-size: 0.95rem;
    padding: 6px 12px;
    border-radius: 8px;
}

/* --- BOUTON RÉSERVER --- */
.btn-reserver {
    background-color: #5e2a84;
    color: white;
    font-weight: bold;
    border-radius: 8px;
}
.btn-reserver:hover {
    background-color: #F7931E;
    color: #222;
}

/* --- TABLES ADMIN --- */
.table th {
    background-color: #5e2a84;
    color: #fff;
}
.table-striped tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
}
.table-striped tbody tr:nth-child(even) {
    background-color: #efefef;
}

/* --- HERO BANNER --- */
.hero-banner {
    position: relative;
    width: 100vw;              /* prend toute la largeur de l’écran */
    height: 400px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* ✅ effet parallax */
    margin-bottom: 40px;

    /* ✅ sort du container Bootstrap */
    margin-left: calc(-50vw + 50%);
}

.hero-overlay {
    background: rgba(94, 42, 132, 0.55);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- TITRE AVEC ANIMATION --- */
.hero-title {
    color: #fff;
    font-size: 2.8rem;
    font-weight: bold;
    text-align: center;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.4);

    /* ✅ Animation */
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.2s ease-out forwards;
}

/* --- ANIMATION KEYFRAMES --- */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hero-banner {
        height: 220px;
        background-attachment: scroll;
    }

    .hero-title {
        font-size: 1.8rem;
        padding: 0 15px;
    }
}
