:root {
    --card-bg: #F6F4F8;
    --header-bg: #E5EBFF;
    --primary-color: #50B0FF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: "Archivo-black";
    src: url("../fonts/ArchivoBlack-Regular.ttf") format("truetype");
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: "Barlow";
    src: url("../fonts/Barlow-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Barlow-bold";
    src: url("../fonts/Barlow-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: "Barlow-italic";
    src: url("../fonts/Barlow-Italic.ttf") format("truetype");
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: "Poppins-light";
    src: url("../fonts/Poppins-Light.ttf") format("truetype");
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: "Poppins";
    src: url("../fonts/Poppins-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}

h1 {
    font-family: Archivo-black;
    font-size: 4rem;
    text-transform: uppercase;
    color: #ffffff;
}

h2 {
    font-family: Barlow-bold;
    font-size: 2rem;
}

a {
    text-decoration: none;
    color: black;
}

.primary-color {
    color: var(--primary-color);
}

.equip-pill {
    display: inline-block;
    background-color: #ffffff;
    font-family: Barlow;
    font-size: 12px;
    padding: 4px 6px;
    border-radius: 4px;
}

.equip-pill.more {
    font-weight: bold;
    background-color: inherit;
}

.grid {
    width: 82%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 350px);
    gap: 4rem;
    justify-content: center;
}

@media (max-width: 1200px) {
    .grid {
        grid-template-columns: repeat(2, 350px);
    }
}

@media (max-width: 800px) {
    .grid {
        grid-template-columns: 350px;
    }
}

.card {
    width: 350px;
    height: 450px;
    border-radius: 18px;
    background-color: var(--card-bg);
    display: flex;
    overflow: hidden;
    flex-direction: column;
    transition: transform 0.2s ease;
}

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

.card-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 8px;
}

.location,
.capacity,
.area {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 12px;
    margin-top: 10px;
    padding: 1rem;
}

.card-title {
    font-family: Barlow-bold, sans-serif;
    font-size: 18px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-family: Barlow;
    font-size: 12px;
}

.description {
    font-size: 14px;
    line-height: 1.3;
    font-family: Barlow;
}

.card-equipment {
    margin-top: auto;
}

.other {
    margin-top: 8px;
    text-align: right;
}

.other .link a {
    font-size: 14px;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: Barlow-bold;
}

.card-media {
    position: relative;
    height: 193px;
    width: 100%;
    padding: 0;
}

.card-media img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

.room {
    position: absolute;
    top: 8px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.room .pill {
    background: rgb(255, 255, 255);
    font-size: 11px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 18px;
}

.room .price {
    background: #ffffff;
    border-radius: 18px;
    padding: 4px 10px;
    font-size: 13px;
    font-weight: 600;
}

.room .price small {
    font-size: 10px;
    font-weight: 400;
}



header {
    font-family: Barlow;
    background-color: var(--header-bg);
    width: 90%;
    margin: 2rem auto;
    border-radius: 22px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;

    .brand {
        display: flex;
        flex-direction: column;

        .logo {
            text-transform: uppercase;
            font-family: Barlow-bold;
            font-size: 20px;
            letter-spacing: 2.5px;
        }

        .small-brand {
            font-family: Barlow-italic;
            font-size: 14px;
        }
    }

    .nav {
        display: flex;
        gap: 2rem;
        justify-content: center;
        align-items: center;
    }
}

.btn-login {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    width: 150px;
    height: 35px;
    border-radius: 8px;
}

.btn-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ff0000;
    color: #ffffff;
    width: 150px;
    height: 35px;
    border-radius: 8px;
}

.hero {
    width: 90%;
    margin: auto;
    position: relative;
    min-height: 520px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 40px;
    margin-bottom: 80px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right,
            #000000 31%,
            #707070 64%,
            #ffffff91 100%);
    opacity: 0.6;
    z-index: 1;
    border-radius: 16px;
}

.hero-banner {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    border-radius: 16px;
}

.hero-title,
.hero-sub {
    position: relative;
    z-index: 2;
    color: #ffffff;
    max-width: 460px;
}

.hero-title {
    line-height: 1.05;
}

.hero-sub {
    font-size: 20px;
    font-family: Barlow;
    line-height: 1.5;
    color: #ffffff;
    margin: 0;
}

.hero-title,
.hero-sub {
    margin-left: 7%;
}

.hero-search-wrapper {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 50%);
    width: 90%;
    max-width: 1100px;
    z-index: 3;
}

.search-form {
    width: 100%;
}

.searchbar {
    background-color: var(--card-bg, #f6f4f8);
    border-radius: 18px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.searchbar-top {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.searchbar-title {
    font-family: Barlow-bold;
}

.searchbar-title-accent {
    color: var(--primary-color, #50b0ff);
}

.searchbar-services {
    display: flex;
    align-items: center;
    font-size: 13px;
}

#search_room_services {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

#search_room_services input[type="checkbox"] {
    margin: 0 6px 0 0;
}

#search_room_services label {
    margin: 0 18px 0 0;
    font-family: Barlow, system-ui, sans-serif;
    font-size: 13px;
}

.searchbar-bottom {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    gap: 12px;
    align-items: end;
}

.search-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
}

.search-field label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #777;
}

.search-field input,
.search-field select {
    height: 34px;
    border-radius: 6px;
    border: 1px solid #d0d0d0;
    padding: 4px 8px;
    font-size: 13px;
    background-color: #ffffff;
}

.search-submit {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    border: 1px solid #000;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.results {
    width: 82%;
    margin: auto;
}

.section-header {
    background-color: var(--header-bg);
    border-radius: 22px;
    display: flex;
    align-items: baseline;
    margin: 2rem auto;
}

.section-title {
    font-family: Barlow-bold;
    font-size: 32px;
    padding: 16px;
}

.section-sub {
    font-family: Barlow, sans-serif;
    font-size: 14px;
    color: #666;
    margin: 0;
}

@media (max-width: 600px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .section-title {
        font-size: 22px;
    }
}

.actu {
    width: 82%;
    margin: auto;
}

/* --- PAGE ROOM DETAIL --- */

.room-page {
    width: 82%;
    margin: 24px auto 60px;
    font-family: Barlow;
}

/* Titre en bande */
.room-hero {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.room-title-band {
    background-color: var(--header-bg);
    border-radius: 16px;
    padding: 10px 16px;
    font-family: Barlow-bold;
    font-size: 32px;
    color: #000000;
}

.room-hero-image {
    border-radius: 18px;
    overflow: hidden;
    position: relative;
}

.room-hero-image img {
    width: 100%;
    height: 630px;
    display: block;
    object-fit: cover;
}

/* Dots du slider */
.room-hero-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.room-hero-dots .dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
}

.room-hero-dots .dot.active {
    width: 18px;
    background: #ffffff;
}

/* Carte centrale */
.room-details-card {
    background-color: var(--card-bg);
    border-radius: 18px;
    padding: 24px 28px 28px;
    margin-top: 24px;
    margin-bottom: 24px;
}

.room-location {
    font-size: 13px;
    color: #777777;
    margin: 0 0 10px;
}

.room-section-title {
    text-align: center;
    font-family: Barlow-bold;
    font-size: 32px;
    margin: 0 0 16px;
}

.room-section-title .accent {
    color: var(--primary-color);
    font-weight: 600;
}

/* Description */
.room-description {
    margin: 0 auto 20px;
}

/* Stats en 3 blocs */
.room-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.room-stat {
    background-color: var(--header-bg);
    border-radius: 12px;
    padding: 10px 14px;
    text-align: center;
}

.room-stat-label {
    font-size: 11px;
    color: #777777;
    margin: 0 0 4px;
}

.room-stat-value {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

/* Équipements */
.room-equip-title {
    text-align: center;
    margin: 0 0 10px;
    font-family: "Poppins", sans-serif;
    font-size: 16px;
}

.room-equip-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-bottom: 20px;
}

.room-equip-pill {
    background: #ffffff;
    border-radius: 999px;
    border: 1px solid #dddddd;
    padding: 4px 10px;
    font-size: 12px;
}

.room-no-equip {
    font-size: 13px;
    color: #777777;
}

/* Bouton Réserver */
.room-reserve-btn {
    display: block;
    margin: 0 auto;
    margin-top: 8px;
    padding: 10px 40px;
    border-radius: 999px;
    border: none;
    background-color: var(--primary-color);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

/* Contact */
.room-contact {
    background-color: #ffffff;
    border-radius: 18px;
    padding: 16px 20px;
    font-size: 14px;
}

.room-contact h3 {
    margin-top: 0;
    margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 800px) {
    .room-page {
        width: 90%;
    }

    .room-description {
        max-width: 100%;
    }

    .room-stats {
        grid-template-columns: 1fr;
    }
}

/* ---- BACKDROP ---- */
#reserve-dialog::backdrop {
    background: rgba(0, 0, 0, 0.45);
}

/* ---- DIALOG ---- */
#reserve-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    margin: 0;
    padding: 0;
    border: none;

    width: 540px;
    max-width: 90%;
    background: #ffffff;
    border-radius: 18px;

    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.12),
        0 4px 10px rgba(0, 0, 0, 0.08);

    font-family: Barlow, sans-serif;
    animation: modal-pop .25s ease;
}

/* Animation */
@keyframes modal-pop {
    from {
        transform: translate(-50%, -50%) scale(0.85);
        opacity: 0;
    }

    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

/* Croix */
#close-reserve {
    background: none;
    border: none;
    font-size: 22px;
    padding: 10px;
    cursor: pointer;
}

/* Header du modal */
#reserve-dialog form[method="dialog"] {
    display: flex;
    justify-content: flex-end;
}

/* Titre */
#reserve-dialog h2 {
    font-family: "Archivo-black";
    font-size: 22px;
    margin: 0 0 14px;
    padding: 0 24px;
    text-transform: uppercase;
}

/* Sections internes */
#reserve-dialog>details,
#reserve-dialog>div,
#reserve-dialog>form:not([method="dialog"]) {
    padding: 0 24px 20px;
}

/* Buttons */
.mode-btn {
    padding: 8px 16px;
    border-radius: 12px;
    border: 1px solid #ccc;
    background: #f3f3f3;
    cursor: pointer;
}

#reserve-dialog button[type="submit"] {
    margin-top: 12px;
    padding: 10px 24px;
    border-radius: 14px;
    border: none;
    background-color: var(--primary-color, #50b0ff);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

/* --- PAGES AUTH (login + register) --- */

.auth-page {
    min-height: calc(100vh - 140px); /* ajuste en fonction de ton header */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    font-family: Barlow, system-ui, sans-serif;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background-color: #ffffff;
    border-radius: 18px;
    padding: 28px 32px 32px;
    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04);
}

/* déjà connecté */
.auth-already {
    font-size: 13px;
    margin: 0 0 10px;
}

/* Titre + sous-titre */
.auth-title {
    font-family: "Archivo-black", sans-serif;
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 6px;
}

.auth-subtitle {
    margin: 0 0 18px;
    font-size: 14px;
    color: #666;
}

/* Message d’erreur */
.auth-alert {
    background: #ffe6e6;
    color: #a30000;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 13px;
    margin-bottom: 16px;
}

/* Formulaire */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.auth-field label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #777;
}

.auth-field input {
    height: 38px;
    border-radius: 8px;
    border: 1px solid #d0d0d0;
    padding: 6px 10px;
    font-size: 14px;
    background-color: #ffffff;
}

/* Meta (remember + liens) */
.auth-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
    margin-bottom: 8px;
    font-size: 13px;
}

.auth-remember {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.auth-remember input[type="checkbox"] {
    margin: 0;
}

/* Bouton principal */
.auth-submit {
    margin-top: 8px;
    width: 100%;
    padding: 10px 16px;
    border-radius: 999px;
    border: none;
    background-color: var(--primary-color, #50b0ff);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.auth-submit:hover {
    opacity: 0.95;
}

/* Liens */
.auth-link {
    color: var(--primary-color, #50b0ff);
    font-size: 13px;
    text-decoration: none;
}

.auth-link:hover {
    text-decoration: underline;
}

/* Bas de la carte */
.auth-footer {
    margin-top: 16px;
    font-size: 13px;
    text-align: center;
}

/* Responsive léger */
@media (max-width: 480px) {
    .auth-card {
        padding: 20px 18px 24px;
    }

    .auth-title {
        font-size: 20px;
    }
}
