/* styles.css */
:root {
    /* Variables pour les dimensions et proportions */
    --images-width-percentage: 45%; /* Largeur de la section images */
    --images-columns-ratio: 100%; /* Proportion de chaque image dans sa colonne */
    --images-height: 150px; /* Hauteur des images */
}

body {
    font-family: Arial, sans-serif;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f4f4f4;
}

.chambres-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.chambre {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: flex;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.chambre:hover {
    transform: scale(1.02);
}

.chambre-images {
    display: flex;
    width: var(--images-width-percentage); /* Utilisation de la variable */
    gap: 10px;
    padding: 10px;
}

.chambre-images img {
    width: var(--images-columns-ratio); /* Utilisation de la variable */
    height: var(--images-height); /* Utilisation de la variable */
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.chambre-images img:hover {
    transform: scale(1.1);
}

.chambre-details {
    width: calc(100% - var(--images-width-percentage)); /* Calcul dynamique */
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Le reste du CSS reste identique */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
}

.modal-content img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.buttonRES {
    display: inline-block;
    margin: 10px;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.buttonRES.booking {
    background-color: #007bff; /* Couleur de Booking */
}

.buttonRES.booking:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.buttonRES.airbnb {
    background-color: #ff5a5f; /* Couleur de AirBnB */
}

.buttonRES.airbnb:hover {
    background-color: #e63946;
    transform: translateY(-2px);
}

header {
    background-color: #f0f0f0;
    padding: 1rem;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
}

nav li {
    display: inline;
    margin: 0 1rem;
}

nav a {
    text-decoration: none;
    color: #333;
}

h1 {
    text-align: center;
    color: #2c3e50;
    font-size: 3rem;
    font-weight: 300;
    position: relative;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

h1::before,
h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    width: 100px;
    height: 2px;
    background-color: #3498db;
}

h1::before {
    left: calc(50% - 120px);
}

h1::after {
    right: calc(50% - 120px);
}

@media (max-width: 600px) {
    h1 {
        font-size: 2rem;
        letter-spacing: 1px;
    }
    
    h1::before,
    h1::after {
        width: 50px;
    }
}

.chambre-details h2 {
    text-align: left;
    color: #2c3e50;
    font-size: 2rem;
    font-weight: 300;
    position: relative;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding-bottom: 10px;
}

.chambre-details h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #3498db;
}

@media (max-width: 600px) {
    .chambre-details h2 {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }
    
    .chambre-details h2::after {
        width: 30px;
    }
}

footer {
    background-color: #f0f0f0;
    text-align: center;
    padding: 1rem;
}

#map { 
    height: 200px; 
    width: 100%; 
    max-width: 400px; 
    margin: 0 auto; 
}