@font-face {
    font-family: 'Glacial';
    src: url('../fonts/Glacial Indifference.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f6f4f4; /* blanc crème */
    font-family: 'Glacial', sans-serif;
    color: #333;
}

.header {
    text-align: center;
    padding: 2px 0;
}

.logo {
    max-width: 900px;
    width: 100%;
}

.hero {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slider {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    filter: blur(2px) brightness(0.8);
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;       /* Remplit proprement */
    background-position: center;  /* Centre auto */
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.overlay-content {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 2%;
  padding-bottom: 21.5vw;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.price-day {
    background: #2f4247;
    color: white;
    padding: 5px 10px;
    font-family: 'Glacial', sans-serif;
    font-size: 45px;
    width: fit-content;
    margin-bottom: 40px;
}

.rooms {
    display: flex;
    justify-content: space-between; /* garde toutes les cartes sur la même ligne */
    flex-wrap: wrap;
    gap: 20px 30px; /* 20px vertical, 10px horizontal */
}

.room-card {
    flex: 1 1 2%; /* largeur originale pour que ça tienne sur une ligne */
    min-width: 180px;
    border: 4px solid #ffffffdb;
    color: white;
    text-align: center;
    padding: 30px 5px;
    border-radius: 5px;
    backdrop-filter: blur(4px);
    background: rgba(0,0,0,0.25);
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 1s ease forwards;
}

.room-card:nth-child(1){ animation-delay: 0.3s;}
.room-card:nth-child(2){ animation-delay: 0.6s;}
.room-card:nth-child(3){ animation-delay: 0.9s;}
.room-card:nth-child(4){ animation-delay: 1.2s;}
.room-card:nth-child(5){ animation-delay: 1.5s;}

.room-card h3 {
    font-size: 250%;
}

.room-card span {
    font-size: 42px;
    font-weight: bold;
    margin-top: 25px;
    margin-bottom: 25px;
    display: block;
}
.room-card p {
    font-size: 20px;
    margin-top: 0px;
    display: block;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.infos {
    position: absolute;
    bottom: 10%;
    left: -20px;
    background: #2f4247;
    color: white;
    padding: 15px 60px;
    padding-left: 5%;
    z-index: 3;
    font-family: 'Glacial', sans-serif;
    font-size: 40px;
    font-style: normal;
    width: fit-content;
    border-radius: 25px;
}

.footer {
    text-align: center;
    padding: 10px;
    font-size: 20px;
}

@media (max-width: 1200px) {
    .rooms {
        justify-content: center;
    }

    .room-card {
        flex: 1 1 40%;
    }
}

@media (max-width: 768px) {
    .hero {
        aspect-ratio: auto;
        height: auto;
        padding-bottom: 40px;
    }

    .rooms {
        flex-direction: column;
        align-items: center;
    }

    .room-card {
        width: 80%;
    }
}
