/* ==========================================================================
   Feuille de style pour la page des chambres (css/chambres.css)
   ========================================================================== */

/* --- Normalisation & Typographie Globale --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f7f6;
    color: #333333;
    line-height: 1.6;
}

/* --- Titre Principal --- */
h1 {
    font-size: 2.2rem;
    color: #1a252f;
    margin-top: 35px !important;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 700;
    position: relative;
}

h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: #2c3e50;
    margin: 10px auto 0 auto;
    border-radius: 2px;
}

/* --- Conteneur Principal des Chambres (Grille Responsive) --- */
.chambres {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 50px auto;
    padding: 0 20px;
}

/* --- Style de la Carte Chambre --- */
.chambre-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eef2f5;
}

.chambre-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

/* --- Image de la Chambre --- */
.chambre-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: opacity 0.3s ease;
}

.chambre-card:hover img {
    opacity: 0.95;
}

/* --- Titres et Textes de la Carte --- */
.chambre-card h2 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 12px;
    font-weight: 600;
}

.chambre-card p {
    font-size: 0.95rem;
    color: #555555;
    margin-bottom: 8px;
}

.chambre-card p strong {
    color: #2c3e50;
}

/* --- Bouton de Réservation --- */
.btn-reserver {
    display: inline-block;
    text-align: center;
    background-color:  #ee790b;
    text-decoration: none;
    padding: 12px 20px;
    margin-top: 15px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.25s ease, transform 0.15s ease;
    border: none;
    cursor: pointer;
}

.btn-reserver:hover {
    background-color:  #ee790b;
    transform: translateY(-2px);
    color: #ffffff;
}

.btn-reserver:active {
    transform: translateY(0);
}

/* --- Adaptabilité Mobile (Responsive Design) --- */
@media (max-width: 600px) {
    h1 {
        font-size: 1.75rem;
    }

    .chambres {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .chambre-card img {
        height: 180px;
    }
}