/* Application usager /app — mobile d’abord, grands écrans enrichis */

html.webapp-overflow-hidden {
    overflow: hidden;
}

.webapp {
    margin: 0;
    min-height: 100dvh;
    overflow-x: hidden;
    font-family: "Roboto", system-ui, sans-serif;
    font-size: 0.9375rem;
    line-height: 1.45;
    color: #333;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

.webapp-brandbar {
    position: relative;
    z-index: 10003;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0 2rem;
    border-bottom: 1px solid rgba(157, 158, 159, 0.35);
    background: #fff;
}

.webapp-brandbar__logo-link {
    display: inline-flex;
    align-items: center;
}

.webapp-brandbar__logo {
    height: 40px;
    width: auto;
    display: block;
}

.webapp-brandbar__back-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: #283173;
    text-decoration: none;
}

.webapp-brandbar__back-link:hover {
    color: #ef850d;
}

.webapp-brandbar__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.webapp-brandbar__auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 0.9rem;
    border-radius: 9999px;
    background-color: #ef850d;
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}

.webapp-brandbar__auth-btn:hover {
    background-color: #d6770b;
}

@media (max-width: 768px) {
    .webapp-brandbar {
        padding: 0 1rem;
    }

    .webapp-brandbar__back-link {
        display: none;
    }
}

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

.webapp-app-root {
    display: flex;
    flex-direction: column;
    min-height: calc(100dvh - var(--header-height, 72px));
    width: 100%;
}

/* --- Pied de page app --- */

.webapp-footer {
    margin-top: auto;
    flex-shrink: 0;
    padding: 1.35rem 1.25rem;
    padding-bottom: calc(1.35rem + 5.25rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(157, 158, 159, 0.35);
    background: linear-gradient(180deg, #f4f5f8 0%, #eef0f5 100%);
}

.webapp-footer__inner {
    max-width: 48rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.webapp-footer__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.15rem;
}

.webapp-footer__link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #283173;
    text-decoration: none;
}

.webapp-footer__link:hover {
    color: #ef850d;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.webapp-footer__legal {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 500;
    color: #5b6470;
}

@media (min-width: 64rem) {
    .webapp-footer {
        padding: 1.5rem clamp(1.25rem, 4vw, 3rem) 2rem;
        padding-bottom: 2rem;
    }

    .webapp-footer__inner {
        max-width: min(56rem, 100%);
    }

    .webapp-footer__nav {
        gap: 0.65rem 1.5rem;
    }

    .webapp-footer__link {
        font-size: 0.875rem;
    }
}

.webapp-shell {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    width: 100%;
    max-width: 28rem;
    margin: 0 auto;
    position: relative;
    padding-bottom: calc(7.5rem + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 48rem) {
    .webapp-shell {
        max-width: none;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .webapp-shell--detail {
        max-width: 48rem;
    }
}

/* --- En-tête recherche --- */

.webapp-top {
    flex-shrink: 0;
    padding: 1.25rem 1.25rem 0.75rem;
    background: #fff;
}

.webapp-top--detail {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: calc(0.75rem + env(safe-area-inset-top, 0px));
}

.webapp-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    color: #283173;
    border-radius: 50%;
    flex-shrink: 0;
}

.webapp-back:hover {
    background: rgba(40, 49, 115, 0.08);
}

.webapp-top__title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: #333;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.webapp-search {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.85rem;
    background: #fff;
    border-radius: 100px;
    outline: 1px solid rgba(157, 158, 159, 0.4);
    outline-offset: -1px;
    transition: outline-color 0.15s ease, box-shadow 0.15s ease;
}

.webapp-search:focus-within {
    outline-color: rgba(40, 49, 115, 0.45);
    box-shadow: 0 0 0 3px rgba(40, 49, 115, 0.12);
}

.webapp-search__icon {
    display: flex;
    color: #283173;
    flex-shrink: 0;
}

.webapp-search__field {
    flex: 1;
    min-width: 0;
    margin: 0;
}

.webapp-search__input {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0.2rem 0;
    border: none;
    background: transparent;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #283173;
    -webkit-appearance: none;
    appearance: none;
}

.webapp-search__input::placeholder {
    color: #283173;
    opacity: 0.55;
}

.webapp-search__input:focus {
    outline: none;
}

.webapp-search__input::-webkit-search-decoration,
.webapp-search__input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

.webapp-search__filter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin: -0.35rem -0.5rem -0.35rem 0;
    padding: 0;
    border: none;
    border-radius: 100px;
    background: #fff;
    outline: 1px solid rgba(157, 158, 159, 0.4);
    color: #283173;
    cursor: pointer;
}

/* --- Liste --- */

.webapp-main {
    flex: 1;
    min-height: 0;
    padding: 0 1.25rem;
}

.webapp-main--detail {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.webapp-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-bottom: 0.5rem;
}

.webapp-search-empty {
    margin: 0;
    padding: 1rem;
    color: #5b5d63;
    background: #f6f7f9;
    border-radius: 10px;
}

@media (min-width: 48rem) {
    .webapp-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr));
        gap: 1.5rem;
        max-width: 75rem;
        margin: 0 auto;
        width: 100%;
    }
}

@media (min-width: 64rem) {
    .webapp-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* --- Carte salle --- */

.webapp-room-card {
    position: relative;
    display: block;
    color: inherit;
    border-radius: 10px;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    background: #fff;
    overflow: visible;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.webapp-room-card__hit {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 10px;
    overflow: hidden;
}

.webapp-room-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.webapp-room-card:focus-visible {
    outline: 2px solid #283173;
    outline-offset: 3px;
}

.webapp-room-card--static {
    cursor: default;
}

.webapp-room-card--static:hover {
    transform: none;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.webapp-room-card__inner {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
}

.webapp-room-card__media {
    position: relative;
    min-height: 13rem;
    border-radius: 12px;
    overflow: hidden;
    touch-action: pan-y;
    background: linear-gradient(145deg, #e8e9ef 0%, #f5f5f7 100%);
}

.webapp-room-card--hero .webapp-room-card__media {
    min-height: 16rem;
}

@media (min-width: 48rem) {
    .webapp-room-card--hero .webapp-room-card__media {
        min-height: 18rem;
    }
}

.webapp-room-card__media--placeholder {
    background: linear-gradient(135deg, #283173 0%, #4a5a9e 40%, #ef850d 100%);
    opacity: 0.92;
}

.webapp-room-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-user-drag: none;
    user-select: none;
}

.webapp-room-card__media-top {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1.25rem;
    pointer-events: none;
}

.webapp-room-card:not(.webapp-room-card--static) .webapp-room-card__media-top {
    position: static;
}

.webapp-room-card__badge {
    padding: 0.35rem 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #283173;
    background: #fff;
    border-radius: 20px;
    outline: 1px solid #d3d3d4;
    outline-offset: -1px;
}

.webapp-room-card__media-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    pointer-events: auto;
    position: absolute;
    right: 1rem;
    bottom: 0.85rem;
    z-index: 2;
}

.webapp-room-card__icon-btn {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 9999px;
    background: #fff;
    outline: 1px solid rgba(157, 158, 159, 0.4);
    outline-offset: -1px;
    flex-shrink: 0;
}

.webapp-room-card__icon-btn--nav {
    position: relative;
    cursor: pointer;
}

.webapp-room-card__icon-btn--nav::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.45rem;
    height: 0.45rem;
    border-right: 2px solid #283173;
    border-bottom: 2px solid #283173;
    transform: translate(-35%, -50%) rotate(135deg);
}

.webapp-room-card__icon-btn--next::after {
    transform: translate(-65%, -50%) rotate(-45deg);
}

.webapp-room-card--static .webapp-room-card__media-actions {
    position: static;
    right: auto;
    bottom: auto;
}

.webapp-room-card__fav-btn {
    position: absolute;
    top: 1.35rem;
    right: 1.1rem;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: none;
    border-radius: 50%;
    color: #283173;
    background: rgba(255, 255, 255, 0.96);
    outline: 1px solid #d3d3d4;
    outline-offset: -1px;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.webapp-room-card__fav-btn--on {
    color: #ef850d;
    outline-color: rgba(239, 133, 13, 0.45);
}

.webapp-room-card__fav-icon {
    display: block;
    flex-shrink: 0;
}

.webapp-room-card__dots {
    position: absolute;
    left: 1.25rem;
    bottom: 1rem;
    z-index: 1;
    display: flex;
    gap: 0.35rem;
}

.webapp-room-card__dot {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background: #edf0f2;
}

.webapp-room-card__dot--active {
    background: #ef850d;
}

.webapp-room-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.webapp-room-card__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
}

.webapp-room-card__price {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
}

/* --- Détail --- */

.webapp-room-detail {
    padding: 0 0 1rem;
}

.webapp-room-detail__heading {
    margin: 0 0 0.75rem;
    font-size: 1.0625rem;
    font-weight: 700;
}

.webapp-room-detail__text {
    font-size: 0.9375rem;
    line-height: 1.55;
    color: #444;
}

.webapp-room-detail__muted {
    margin: 0 0 1rem;
    font-size: 0.9375rem;
    color: #777;
}

.webapp-room-detail__dl {
    margin: 1rem 0 0;
}

.webapp-room-detail__row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(157, 158, 159, 0.35);
    font-size: 0.9375rem;
}

.webapp-room-detail__row:last-child {
    border-bottom: none;
}

.webapp-room-detail__row dt {
    margin: 0;
    min-width: 6rem;
    font-weight: 600;
    color: #555;
}

.webapp-room-detail__row dd {
    margin: 0;
    color: #222;
}

/* --- Navigation bas --- */

.webapp-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10002;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    pointer-events: none;
}

.webapp-nav > * {
    pointer-events: auto;
}

.webapp-nav__fab-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 28rem;
    padding: 0 1.25rem;
}

@media (min-width: 48rem) {
    .webapp-nav__fab-wrap {
        max-width: none;
    }
}

.webapp-nav__fab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.65rem 1.15rem;
    font-size: 1rem;
    font-weight: 500;
    font-family: "Inter", "Roboto", system-ui, sans-serif;
    color: #283173;
    text-decoration: none;
    background: #fff;
    border-radius: 40px;
    outline: 1px solid #283173;
    outline-offset: -1px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.webapp-nav__fab-icon {
    display: flex;
    color: #ef850d;
}

.webapp-nav__bar {
    width: 100%;
    max-width: 28rem;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 0.25rem;
    min-height: 4.875rem;
    padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom, 0px));
    background: #283173;
}

@media (min-width: 48rem) {
    .webapp-nav__bar {
        max-width: 36rem;
        border-radius: 16px 16px 0 0;
    }
}

.webapp-nav__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 0;
    padding: 0.25rem;
    font-size: 0.625rem;
    font-weight: 600;
    font-family: "Roboto", sans-serif;
    color: #fff;
    text-decoration: none;
    text-align: center;
    line-height: 1.2;
    border-radius: 8px;
}

.webapp-nav__item--active {
    color: #ef850d;
}

.webapp-nav__item--active .webapp-nav__icon {
    color: #ef850d;
}

.webapp-nav__icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ef850d;
}

.webapp-nav__item:not(.webapp-nav__item--active) .webapp-nav__icon {
    color: #ef850d;
    opacity: 0.95;
}

.webapp-nav__label {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.webapp-nav__fav-count {
    position: absolute;
    top: -0.45rem;
    right: -0.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1rem;
    height: 1rem;
    padding: 0 0.25rem;
    border-radius: 999px;
    background: #e02424;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 0 0 2px #283173;
}

/* --- Navigation : version desktop (barre haute, pas bas d’écran) --- */

@media (min-width: 64rem) {
    .webapp-shell {
        padding-bottom: 1.5rem;
    }

    .webapp-nav {
        position: sticky;
        top: 0;
        bottom: auto;
        left: auto;
        right: auto;
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        padding: 0.5rem clamp(1.25rem, 4vw, 3rem);
        padding-top: max(0.5rem, env(safe-area-inset-top, 0px));
        background: #fff;
        border-bottom: 1px solid rgba(157, 158, 159, 0.35);
        box-shadow: 0 2px 12px rgba(40, 49, 115, 0.06);
        z-index: 10002;
    }

    .webapp-nav__fab-wrap {
        order: 2;
        width: auto;
        max-width: none;
        margin: 0;
        padding: 0;
        flex-shrink: 0;
    }

    .webapp-nav__fab {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
        font-weight: 600;
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(40, 49, 115, 0.12);
    }

    .webapp-nav__bar {
        order: 1;
        flex: 0 1 auto;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 0.35rem;
        width: auto;
        max-width: min(56rem, 100%);
        min-height: auto;
        margin: 0;
        padding: 0.35rem 0.5rem;
        background: #f0f2f8;
        border-radius: 12px;
        outline: 1px solid rgba(40, 49, 115, 0.08);
    }

    .webapp-nav__item {
        flex: 0 1 auto;
        flex-direction: row;
        align-items: center;
        gap: 0.45rem;
        min-width: 0;
        padding: 0.45rem 0.75rem;
        font-size: 0.8125rem;
        font-weight: 600;
        color: #3d4a7a;
        line-height: 1.2;
        border-radius: 8px;
        transition:
            background 0.15s ease,
            color 0.15s ease;
    }

    .webapp-nav__item:hover {
        background: rgba(255, 255, 255, 0.85);
        color: #283173;
    }

    .webapp-nav__item--active {
        color: #283173;
        background: #fff;
        outline: 1px solid rgba(239, 133, 13, 0.45);
        box-shadow: 0 1px 3px rgba(40, 49, 115, 0.08);
    }

    .webapp-nav__icon {
        color: #283173;
        opacity: 0.75;
    }

    .webapp-nav__item--active .webapp-nav__icon {
        color: #ef850d;
        opacity: 1;
    }

    .webapp-nav__item:not(.webapp-nav__item--active) .webapp-nav__icon {
        opacity: 0.7;
    }

    .webapp-nav__label {
        white-space: normal;
        text-align: left;
        max-width: 7.5rem;
        line-height: 1.2;
    }

    .webapp-nav__fav-count {
        box-shadow: 0 0 0 2px #f0f2f8;
    }

    .webapp-nav__item--active .webapp-nav__fav-count {
        box-shadow: 0 0 0 2px #fff;
    }
}

/* --- Filtres (panneau) --- */

.webapp-filter-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.22s ease,
        visibility 0.22s ease;
}

/* Le panneau filtre doit toujours passer au-dessus de la nav fixe. */
html.webapp-overflow-hidden .webapp-nav {
    pointer-events: none;
}

html.webapp-overflow-hidden .webapp-nav * {
    pointer-events: none !important;
}

.webapp-filter-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.webapp-filter-sheet {
    width: 100%;
    max-width: 28rem;
    max-height: 100dvh;
    overflow-y: auto;
    background: #fff;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.18);
    padding-bottom: 0;
    transform: translateY(100%);
    transition: transform 0.24s ease;
}

.webapp-filter-form {
    display: flex;
    flex-direction: column;
}

.webapp-filter-backdrop.is-open .webapp-filter-sheet {
    transform: translateY(0);
}

@media (min-width: 48rem) {
    .webapp-filter-backdrop {
        align-items: center;
        padding: 1.5rem;
    }

    .webapp-filter-sheet {
        max-height: 85dvh;
        border-radius: 16px;
        transform: translateY(8px) scale(0.98);
    }

    .webapp-filter-backdrop.is-open .webapp-filter-sheet {
        transform: translateY(0) scale(1);
    }
}

.webapp-filter-sheet__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem 0.5rem;
    border-bottom: 1px solid rgba(157, 158, 159, 0.4);
}

.webapp-filter-sheet__title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: #353535;
}

.webapp-filter-sheet__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #333;
    cursor: pointer;
}

.webapp-filter-sheet__section {
    padding: 1.25rem 1.25rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-bottom: 1px solid rgba(157, 158, 159, 0.25);
}

.webapp-filter-sheet__section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.webapp-filter-sheet__section-title {
    flex: 1;
    font-size: 1.125rem;
    font-weight: 600;
    color: #353535;
}

.webapp-filter-sheet__section-title--solo {
    margin-bottom: 0.25rem;
}

.webapp-filter-sheet__chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    padding-bottom: 1.25rem;
}

.webapp-filter-chip {
    width: 100%;
    padding: 0.65rem 0.8rem;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    color: #3a3a40;
    text-align: center;
    background: #fff;
    border: 1px solid #d7dce3;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.webapp-filter-choice {
    display: inline-flex;
    width: 100%;
}

.webapp-filter-choice__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.webapp-filter-choice .webapp-filter-chip {
    cursor: pointer;
}

.webapp-filter-choice__input:checked + .webapp-filter-chip {
    color: #fff;
    background: #283173;
    border-color: #283173;
    box-shadow: 0 3px 10px rgba(40, 49, 115, 0.2);
}

.webapp-filter-choice__input:focus-visible + .webapp-filter-chip {
    outline: 2px solid rgba(40, 49, 115, 0.45);
    outline-offset: 2px;
}

.webapp-filter-slider {
    width: 100%;
    max-width: 22rem;
    margin: 0 auto;
    padding-bottom: 1.25rem;
}

.webapp-filter-slider__labels {
    display: flex;
    justify-content: space-between;
    gap: 0.25rem;
    margin-bottom: 0.35rem;
}

.webapp-filter-slider__label {
    font-size: 0.75rem;
    font-weight: 400;
    color: #333;
    text-align: center;
    flex: 1;
    min-width: 0;
    line-height: 1.2;
}

.webapp-filter-slider__track {
    position: relative;
    height: 2.9rem;
}

.webapp-filter-slider__range {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 12px;
    margin-top: -6px;
    background: #ef850d;
    border-radius: 10px;
}

.webapp-filter-slider__thumb {
    position: absolute;
    left: 0;
    top: 50%;
    width: 18px;
    height: 18px;
    margin-top: -9px;
    margin-left: -2px;
    background: #fff;
    border: 2px solid #ef850d;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
    pointer-events: none;
}

.webapp-filter-sheet__footer {
    position: sticky;
    bottom: 0;
    padding: 1.25rem;
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    background: #fff;
    border-top: 1px solid rgba(157, 158, 159, 0.25);
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    z-index: 2;
}

@media (max-width: 47.99rem) {
    .webapp-filter-sheet {
        max-width: 100vw;
        width: 100vw;
        height: 100dvh;
        border-radius: 0;
        transform: translateY(100%);
    }
}

.webapp-filter-sheet__clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.5rem;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    background: #ef850d;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    min-width: 9rem;
}

.webapp-filter-sheet__clear--ghost {
    color: #283173;
    background: #edf0f2;
}

/* --- Fiche salle (détail) --- */

.webapp-detail {
    position: relative;
    padding-top: 0.25rem;
}

.webapp-detail__back {
    position: absolute;
    top: 0.5rem;
    left: 0.25rem;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    color: #333;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-decoration: none;
}

.webapp-detail__section {
    padding: 0 0 1.25rem;
}

.webapp-detail__heading {
    margin: 0 0 0.65rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #333;
}

.webapp-detail__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    align-items: center;
}

.webapp-detail__tag {
    font-size: 1rem;
    font-weight: 300;
    color: #333;
}

.webapp-detail__capacity {
    margin: 0;
    font-size: 1rem;
    font-weight: 400;
    color: #444;
}

.webapp-detail__prose {
    font-size: 0.9375rem;
    line-height: 1.55;
    color: #444;
}

.webapp-detail__equip-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.webapp-detail__equip-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    font-weight: 300;
    color: #333;
}

.webapp-detail__equip-dot {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
    border-radius: 4px;
    background: #ef850d;
}

/* --- Favoris --- */

.webapp-favorites-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.25rem 0.75rem;
    flex-shrink: 0;
}

.webapp-favorites-head__inner {
    flex: 1;
    min-width: 0;
}

.webapp-favorites-head__title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

.webapp-favorites-head__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    color: #333;
    border-radius: 50%;
    flex-shrink: 0;
    text-decoration: none;
}

.webapp-favorites-head__close:hover {
    background: rgba(0, 0, 0, 0.05);
}

.webapp-main--favorites {
    padding-top: 0.25rem;
}

.webapp-favorites-empty {
    margin: 0;
    padding: 2rem 1.25rem;
    text-align: center;
    color: #666;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.webapp-favorites-empty--static {
    padding-top: 3rem;
}

.webapp-favorites-auth {
    margin-top: 0.5rem;
    padding: 1.25rem;
    border-radius: 10px;
    outline: 1px solid #cecece;
    outline-offset: -1px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    align-items: flex-start;
}

.webapp-favorites-auth__title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: #283173;
}

.webapp-favorites-auth__text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.45;
    color: #555;
}

.webapp-favorites-auth__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0 1rem;
    border-radius: 999px;
    background: #ef850d;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

/* --- En-têtes de page (réservations, messages, profil, carte) --- */

.webapp-page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.25rem 0.75rem;
    flex-shrink: 0;
}

.webapp-page-head__inner {
    flex: 1;
    min-width: 0;
}

.webapp-page-head__title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

.webapp-page-head__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    color: #333;
    border-radius: 50%;
    flex-shrink: 0;
    text-decoration: none;
}

.webapp-page-head__close:hover {
    background: rgba(0, 0, 0, 0.05);
}

.webapp-main--reservations,
.webapp-main--messages,
.webapp-main--profil,
.webapp-main--map {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-bottom: 0.5rem;
}

.webapp-main--map-live {
    flex: 1;
    min-height: 0;
    padding-left: 0;
    padding-right: 0;
    gap: 0;
}

.webapp-map-stage {
    position: relative;
    flex: 1;
    min-height: min(70dvh, 32rem);
    display: flex;
    flex-direction: column;
}

.webapp-map-canvas {
    flex: 1;
    min-height: 16rem;
    width: 100%;
}

.webapp-map-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0 1rem 0.75rem;
    pointer-events: none;
    z-index: 2;
}

.webapp-map-panel .webapp-map-room-card {
    pointer-events: auto;
}

.webapp-map-room-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
    max-width: 22.0625rem;
    margin: 0 auto;
    padding: 1rem;
    background: #fff;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
}

.webapp-map-room-card__hero {
    align-self: stretch;
    min-height: 8.75rem;
    padding: 1.25rem;
    border-radius: 12px;
    background-color: #e8eaf2;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.webapp-map-room-card__hero--empty {
    background-image: linear-gradient(135deg, #e0e4f0 0%, #f4f5f8 100%);
}

.webapp-map-room-card__hero-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}

.webapp-map-room-card__badge {
    padding: 0.375rem 1rem;
    background: #fff;
    border-radius: 20px;
    outline: 1px solid rgba(157, 158, 159, 0.4);
    outline-offset: -1px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #283173;
}

.webapp-map-room-card__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.webapp-map-room-card__icon-btn {
    width: 1.6875rem;
    height: 1.6875rem;
    border-radius: 100px;
    background: #fff;
    outline: 1px solid rgba(157, 158, 159, 0.4);
    outline-offset: -1px;
    flex-shrink: 0;
}

.webapp-map-room-card__icon-btn--nav {
    position: relative;
    cursor: pointer;
}

.webapp-map-room-card__icon-btn--nav::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.5rem;
    height: 0.5rem;
    border-right: 2px solid #283173;
    border-bottom: 2px solid #283173;
    transform: translate(-35%, -50%) rotate(135deg);
}

.webapp-map-room-card__icon-btn--next::after {
    transform: translate(-65%, -50%) rotate(-45deg);
}

.webapp-map-room-card__icon-btn--square::after {
    content: "";
    display: block;
    width: 0.6875rem;
    height: 0.6875rem;
    margin: 0.5rem auto;
    background: #283173;
}

.webapp-map-room-card__dots {
    display: flex;
    gap: 0.375rem;
    align-items: center;
}

.webapp-map-room-card__dot {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background: #fff;
    flex-shrink: 0;
}

.webapp-map-room-card__dot--active {
    background: #ef850d;
}

.webapp-map-room-card__title {
    margin: 0;
    width: 100%;
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    line-height: 1.35;
}

.webapp-map-room-card__price {
    margin: 0;
    width: 100%;
    font-size: 1rem;
    font-weight: 500;
    color: #333;
}

/* --- Carte (placeholder) --- */

.webapp-map-placeholder {
    margin: 0.5rem 0 0;
    padding: 2.5rem 1.25rem;
    text-align: center;
    border-radius: 10px;
    outline: 1px solid #cecece;
    outline-offset: -1px;
    background: #f6f7f9;
}

.webapp-map-placeholder__title {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #283173;
}

.webapp-map-placeholder__hint {
    margin: 0;
    font-size: 0.9375rem;
    color: #555;
    line-height: 1.5;
}

/* --- Réservations --- */

.webapp-empty-card {
    margin-top: 0.5rem;
    padding: 1.25rem;
    text-align: center;
    border-radius: 10px;
    outline: 1px solid #cecece;
    outline-offset: -1px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.webapp-empty-card__title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #283173;
}

.webapp-empty-card__text {
    margin: 0;
    font-size: 1rem;
    font-weight: 400;
    color: #283173;
    line-height: 1.45;
}

.webapp-empty-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.85rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    background: #ef850d;
    border-radius: 10px;
}

.webapp-reservations-block {
    margin-top: 0.25rem;
    border-radius: 10px;
    outline: 1px solid #cecece;
    outline-offset: -1px;
    overflow: hidden;
}

.webapp-reservations-block__bar {
    padding: 1rem 1.25rem;
    background: #283173;
}

.webapp-reservations-block__heading {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #fff;
}

.webapp-reservations-block__list {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: #fff;
}

.webapp-reservation-row__link {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    text-decoration: none;
    color: inherit;
}

.webapp-reservation-row__thumb {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 5px;
    overflow: hidden;
    background: #e8eaed;
}

.webapp-reservation-row__thumb--placeholder {
    background: linear-gradient(135deg, #dfe3e8, #e8eaed);
}

.webapp-reservation-row__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.webapp-reservation-row__title {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 700;
    color: #111;
}

.webapp-reservation-row__meta {
    margin: 0;
    font-size: 1rem;
    font-weight: 400;
    color: #333;
    line-height: 1.4;
}

/* --- Messages (liste) --- */

.webapp-messages-search {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    border-radius: 10px;
    outline: 1px solid #cecece;
    outline-offset: -1px;
    font-size: 1.125rem;
    font-weight: 600;
    color: #283173;
}

.webapp-messages-search--static {
    opacity: 0.85;
}

.webapp-messages-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.webapp-message-row {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1rem 0;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #eee;
}

.webapp-message-row:last-child {
    border-bottom: none;
}

.webapp-message-row__thumb {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 5px;
    overflow: hidden;
    background: #e8eaed;
}

.webapp-message-row__thumb--placeholder {
    background: linear-gradient(135deg, #dfe3e8, #e8eaed);
}

.webapp-message-row__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.webapp-message-row__title {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 700;
    color: #111;
}

.webapp-message-row__date {
    margin: 0;
    font-size: 1rem;
    font-weight: 400;
    color: #333;
}

/* --- Conversation (détail message) --- */

.webapp-conversation-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #353535;
    flex-shrink: 0;
}

.webapp-conversation-head__back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    color: #283173;
    flex-shrink: 0;
    text-decoration: none;
}

.webapp-conversation-head__thumb {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 5px;
    overflow: hidden;
    background: #e8eaed;
}

.webapp-conversation-head__thumb--placeholder {
    background: linear-gradient(135deg, #dfe3e8, #e8eaed);
}

.webapp-conversation-head__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.webapp-conversation-head__titles {
    flex: 1;
    min-width: 0;
}

.webapp-conversation-head__title {
    margin: 0 0 0.15rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: #111;
}

.webapp-conversation-head__date {
    margin: 0;
    font-size: 1rem;
    font-weight: 400;
    color: #333;
}

.webapp-conversation-head__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.webapp-conversation-head__action-icon {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 4px;
    background: rgba(239, 133, 13, 0.25);
}

.webapp-main--conversation {
    padding-bottom: calc(6rem + env(safe-area-inset-bottom, 0px));
}

.webapp-conversation__stream {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem 1.25rem 1rem;
}

.webapp-conversation__bubble {
    max-width: 85%;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    font-size: 0.875rem;
    line-height: 1.45;
}

.webapp-conversation__bubble--them {
    align-self: flex-start;
    background: #d9d9d9;
    color: #111;
    border-bottom-left-radius: 2px;
}

.webapp-conversation__bubble--me {
    align-self: flex-end;
    background: #ef850d;
    color: #fff;
    border-bottom-right-radius: 2px;
}

.webapp-conversation__text {
    margin: 0;
}

.webapp-conversation__composer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
    z-index: 9990;
    padding: 0.65rem 1.25rem;
    background: #283173;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.webapp-conversation__composer-inner {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 2.75rem;
    padding: 0 0.65rem;
    border-radius: 5px;
    outline: 1px solid #b5d1f1;
    outline-offset: -1px;
}

.webapp-conversation__composer-placeholder {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #b5d1f1;
}

.webapp-conversation__composer-icon {
    display: flex;
    color: #b5d1f1;
}

/* --- Profil --- */

.webapp-profil-card {
    margin-top: 0.35rem;
    padding: 1.25rem;
    border-radius: 12px;
    outline: 1px solid #cecece;
    outline-offset: -1px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    text-align: center;
}

.webapp-profil-card__avatar {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    background: #edf0f2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: #283173;
}

.webapp-profil-card__name {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #111;
}

.webapp-profil-card__email {
    margin: 0;
    font-size: 0.875rem;
    color: #555;
}

.webapp-profil-card__stat {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #111;
}

.webapp-profil-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.webapp-profil-menu__item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.35rem 0;
    font-size: 1rem;
    font-weight: 300;
    color: #111;
    text-decoration: none;
}

.webapp-profil-menu__item:hover {
    color: #ef850d;
}

.webapp-profil-menu__item--logout {
    font-weight: 500;
}

.webapp-profil-menu__icon {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
    border-radius: 4px;
    background: #ef850d;
    opacity: 0.95;
}

.webapp-profil-menu__icon--help {
    border-radius: 50%;
}
