:root {
    --background: #f4f3f0;
    --surface: #ffffff;
    --surface-soft: #f8f7f4;

    --text: #252525;
    --text-soft: #77736d;

    --dark: #202320;
    --dark-soft: #30342f;

    --accent: #b8835a;
    --accent-light: #efe2d6;

    --border: #e8e5df;

    --shadow: 0 20px 60px rgba(30, 30, 25, 0.08);

    --sidebar-width: 250px;
}


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


body {
    font-family: "DM Sans", sans-serif;

    background: var(--background);
    color: var(--text);

    min-height: 100vh;
}


button,
input {
    font-family: inherit;
}


button {
    border: none;
    cursor: pointer;
}


.app {
    display: flex;
    min-height: 100vh;
}


/* SIDEBAR */

.sidebar {
    width: var(--sidebar-width);

    background: var(--dark);
    color: white;

    padding: 30px 20px;

    display: flex;
    flex-direction: column;

    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
}


.logo {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 5px 10px 40px;
}


.logo-icon {
    width: 38px;
    height: 38px;

    border-radius: 12px;

    background: rgba(255,255,255,0.1);

    display: grid;
    place-items: center;

    font-size: 20px;
}


.logo-title {
    font-family: "Playfair Display", serif;
    font-size: 20px;
}


.logo-subtitle {
    font-size: 11px;
    color: #999c98;
    margin-top: 2px;
}


.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}


.nav-item {
    width: 100%;

    padding: 13px 14px;

    background: transparent;

    color: #aaa;

    border-radius: 12px;

    display: flex;
    align-items: center;
    gap: 13px;

    text-align: left;

    font-size: 14px;

    transition: 0.2s;
}


.nav-item span {
    width: 20px;
    text-align: center;
    font-size: 17px;
}


.nav-item:hover {
    background: rgba(255,255,255,0.06);
    color: white;
}


.nav-item.active {
    background: rgba(255,255,255,0.1);
    color: white;
}


.sidebar-bottom {
    margin-top: auto;
}


.house-status {
    padding: 15px;

    background: rgba(255,255,255,0.05);

    border-radius: 14px;

    display: flex;
    align-items: center;
    gap: 10px;
}


.status-dot {
    width: 8px;
    height: 8px;

    background: #75bd78;

    border-radius: 50%;
}


.house-status strong {
    display: block;
    font-size: 12px;
}


.house-status small {
    display: block;

    color: #858983;

    font-size: 10px;

    margin-top: 3px;
}


.version {
    text-align: center;

    color: #646863;

    font-size: 10px;

    margin-top: 20px;
}


/* MAIN */

.main {
    margin-left: var(--sidebar-width);

    width: calc(100% - var(--sidebar-width));

    min-height: 100vh;
}

.icon-button {
    width: 38px;
    height: 38px;

    border-radius: 50%;

    background: white;

    border: 1px solid var(--border);

    color: #777;

    font-size: 15px;
}


.profile {
    background: transparent;

    display: flex;
    align-items: center;
    gap: 10px;

    text-align: left;
}


.avatar {
    width: 38px;
    height: 38px;

    border-radius: 50%;

    background: var(--accent);

    color: white;

    display: grid;
    place-items: center;

    font-size: 12px;
    font-weight: 600;
}


.profile-text strong {
    display: block;
    font-size: 12px;
}


.profile-text small {
    display: block;
    font-size: 10px;
    color: var(--text-soft);
}


.profile > span {
    margin-left: 4px;
    color: #999;
}


.mobile-logo {
    display: none;
}


/* CONTENT */

.content {
    max-width: 1250px;

    margin: auto;

    padding: 55px 55px 80px;
}


.page {
    display: none;
}


.page.active {
    display: block;
}


.welcome {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 35px;
}


.eyebrow {
    color: var(--accent);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 2px;

    margin-bottom: 12px;
}


h1 {
    font-family: "Playfair Display", serif;

    font-size: clamp(38px, 5vw, 60px);

    line-height: 0.98;

    font-weight: 500;

    letter-spacing: -1px;
}


h1 em,
.modal h2 em {
    font-style: italic;
    color: var(--accent);
}


.welcome p,
.page-title p {
    color: var(--text-soft);

    margin-top: 14px;

    font-size: 14px;
}


.primary-button {
    background: var(--dark);

    color: white;

    padding: 13px 19px;

    border-radius: 11px;

    font-size: 12px;
    font-weight: 600;

    transition: 0.2s;
}


.primary-button:hover {
    transform: translateY(-2px);

    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}


.primary-button span {
    font-size: 17px;
    margin-right: 4px;
}


/* ARRIVAL */

.next-arrival {
    position: relative;

    overflow: hidden;

    min-height: 310px;

    border-radius: 24px;

    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(255,255,255,0.1),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #343932,
            #1e211f
        );

    color: white;

    box-shadow: var(--shadow);

    margin-bottom: 18px;
}


.arrival-background {
    position: absolute;

    width: 500px;
    height: 500px;

    right: -180px;
    bottom: -260px;

    border-radius: 50%;

    border: 1px solid rgba(255,255,255,0.08);
}


.arrival-content {
    padding: 38px;
    position: relative;
}


.arrival-label {
    color: #a9aaa5;

    font-size: 10px;

    letter-spacing: 2px;

    margin-bottom: 18px;
}


.arrival-name {
    font-family: "Playfair Display", serif;

    font-size: clamp(34px, 5vw, 48px);

    margin-bottom: 20px;
}


.arrival-details {
    display: flex;
    gap: 25px;

    color: #c7c9c5;

    font-size: 13px;
}


.arrival-details div {
    display: flex;
    align-items: center;
    gap: 7px;
}


.dodos {
    position: absolute;

    right: 40px;
    top: 50%;

    transform: translateY(-50%);

    display: flex;
    align-items: center;
    gap: 13px;
}


.dodos-number {
    font-family: "Playfair Display", serif;

    font-size: 90px;

    line-height: 1;
}


.dodos strong {
    display: block;

    font-size: 15px;
}


.dodos span {
    display: block;

    color: #9c9f9a;

    font-size: 11px;

    margin-top: 3px;
}


.arrival-decoration {
    position: absolute;

    right: 30px;
    bottom: 20px;

    color: rgba(255,255,255,0.15);

    font-size: 90px;
}


/* STATS */

.stats {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 15px;

    margin-bottom: 50px;
}


.stat-card {
    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 16px;

    padding: 20px;

    display: flex;
    align-items: center;

    gap: 14px;
}


.stat-icon {
    width: 42px;
    height: 42px;

    border-radius: 12px;

    background: var(--accent-light);

    display: grid;
    place-items: center;

    font-size: 17px;
}


.stat-card span {
    display: block;

    font-size: 10px;

    color: var(--text-soft);

    margin-bottom: 5px;
}


.stat-card strong {
    font-size: 13px;
}


/* SECTION */

.section-header {
    display: flex;

    justify-content: space-between;

    align-items: flex-end;

    margin-bottom: 18px;
}


.section-header h2 {
    font-family: "Playfair Display", serif;

    font-size: 25px;

    font-weight: 500;
}


.section-header p {
    font-size: 12px;

    color: var(--text-soft);

    margin-top: 5px;
}


.text-button {
    background: transparent;

    color: var(--accent);

    font-size: 12px;

    font-weight: 600;
}


/* MINI CALENDAR */

.mini-calendar,
.calendar-full {
    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 20px;

    overflow: hidden;
}


.calendar-header {
    padding: 18px 25px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid var(--border);
}


.calendar-header button,
.month-arrow {
    background: var(--surface-soft);

    width: 32px;
    height: 32px;

    border-radius: 8px;

    color: #666;

    font-size: 18px;
}


.calendar-header strong {
    font-size: 13px;
}


.calendar-weekdays,
.calendar-grid {
    display: grid;

    grid-template-columns: repeat(7, 1fr);
}


.calendar-weekdays {
    padding: 14px 15px 8px;

    color: #aaa;

    font-size: 10px;

    text-align: center;
}


.calendar-grid {
    padding: 0 15px 15px;

    gap: 5px;
}


.day {
    min-height: 75px;

    border-radius: 10px;

    padding: 10px;

    font-size: 11px;

    position: relative;

    transition: 0.2s;
}


.day:hover {
    background: var(--surface-soft);
}


.day.muted {
    color: #ccc;
}


.day.reserved {
    background: var(--accent-light);
}


.day.reserved.sofa {
    background: #e6e9e3;
}


.day small {
    display: block;

    margin-top: 8px;

    font-size: 9px;

    color: var(--accent);

    font-weight: 600;
}


/* PAGE TITLE */

.page-title {
    display: flex;

    justify-content: space-between;

    align-items: flex-end;

    margin-bottom: 35px;
}


/* FULL CALENDAR */

.calendar-toolbar {
    padding: 25px;

    display: flex;

    align-items: center;

    gap: 10px;

    border-bottom: 1px solid var(--border);
}


.calendar-toolbar h2 {
    font-family: "Playfair Display", serif;

    font-size: 25px;

    font-weight: 500;

    margin: 0 10px;
}


.today-button {
    margin-left: auto;

    padding: 9px 14px;

    background: var(--surface-soft);

    border: 1px solid var(--border);

    border-radius: 9px;

    font-size: 11px;
}


.resource-row {
    display: grid;

    grid-template-columns: 170px 1fr;

    min-height: 110px;

    border-bottom: 1px solid var(--border);
}


.resource-name {
    padding: 25px;

    font-size: 12px;
    font-weight: 600;

    border-right: 1px solid var(--border);

    display: flex;
    align-items: flex-start;

    gap: 8px;
}


.timeline {
    position: relative;

    background:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent calc(14.28% - 1px),
            var(--border) calc(14.28% - 1px),
            var(--border) 14.28%
        );
}


.booking {
    position: absolute;

    top: 25px;
    bottom: 25px;

    border-radius: 10px;

    padding: 12px 15px;

    overflow: hidden;
}


.booking strong {
    display: block;

    font-size: 11px;
}


.booking span {
    display: block;

    margin-top: 4px;

    font-size: 9px;
}


.booking-studio {
    background: var(--accent-light);
    color: #76553d;
}


.booking-sofa {
    background: #e6e9e3;
    color: #596057;
}


.booking-unavailable {
    background: #e8e8e5;
    color: #777;

    border: 1px dashed #aaa;
}


/* RESERVATIONS */

.reservation-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}


.reservation-card,
.unavailable-card {
    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 17px;

    padding: 18px 20px;

    display: flex;
    align-items: center;

    gap: 18px;
}


.reservation-date {
    width: 50px;
    height: 58px;

    border-radius: 11px;

    background: var(--accent-light);

    display: flex;
    flex-direction: column;

    justify-content: center;

    align-items: center;
}


.reservation-date strong {
    font-family: "Playfair Display", serif;

    font-size: 23px;

    line-height: 1;
}


.reservation-date span {
    font-size: 8px;

    color: var(--accent);

    margin-top: 4px;

    font-weight: 700;
}


.reservation-info {
    flex: 1;
}


.reservation-info strong {
    display: block;

    font-size: 14px;

    margin-bottom: 5px;
}


.reservation-info span {
    display: block;

    color: var(--text-soft);

    font-size: 11px;
}


.reservation-info small {
    display: block;

    color: var(--accent);

    font-size: 10px;

    margin-top: 6px;
}


.reservation-status {
    padding: 7px 11px;

    background: #e8f0e7;

    color: #597055;

    border-radius: 20px;

    font-size: 9px;

    font-weight: 600;
}


.more-button {
    background: transparent;

    color: #999;

    font-size: 15px;

    padding: 10px;
}


/* UNAVAILABLE */

.unavailable-card {
    max-width: 700px;
}


.unavailable-icon {
    width: 48px;
    height: 48px;

    border-radius: 13px;

    background: #eeeeeb;

    display: grid;
    place-items: center;
}


.unavailable-info {
    flex: 1;
}


.unavailable-info strong {
    display: block;

    font-size: 13px;
}


.unavailable-info span {
    display: block;

    font-size: 11px;

    color: var(--text-soft);

    margin-top: 4px;
}


.unavailable-info small {
    display: block;

    color: #888;

    font-size: 9px;

    margin-top: 5px;
}


/* MODAL */

.modal-overlay {
    position: fixed;

    inset: 0;

    background: rgba(20,22,20,0.55);

    backdrop-filter: blur(7px);

    display: none;

    align-items: center;
    justify-content: center;

    padding: 20px;

    z-index: 100;
}


.modal-overlay.visible {
    display: flex;
}


.modal {
    width: 100%;
    max-width: 520px;

    background: var(--surface);

    border-radius: 25px;

    padding: 38px;

    position: relative;

    box-shadow: 0 30px 100px rgba(0,0,0,0.25);

    animation: modalIn 0.25s ease;
}


@keyframes modalIn {

    from {
        opacity: 0;
        transform: translateY(15px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

}


.modal-close {
    position: absolute;

    top: 20px;
    right: 20px;

    width: 34px;
    height: 34px;

    border-radius: 50%;

    background: var(--surface-soft);

    font-size: 20px;

    color: #777;
}


.modal h2 {
    font-family: "Playfair Display", serif;

    font-size: 35px;

    font-weight: 500;

    line-height: 1.05;

    margin-bottom: 30px;
}


.form {
    display: flex;

    flex-direction: column;

    gap: 18px;
}


label {
    display: flex;

    flex-direction: column;

    gap: 8px;

    font-size: 11px;

    font-weight: 600;
}


input {
    border: 1px solid var(--border);

    background: var(--surface-soft);

    border-radius: 10px;

    padding: 13px;

    outline: none;

    font-size: 12px;

    color: var(--text);
}


input:focus {
    border-color: var(--accent);
}


.form-row {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 15px;
}


.resource-selector {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 10px;

    margin-top: -10px;
}


.resource-option {
    background: var(--surface-soft);

    border: 1px solid var(--border);

    border-radius: 12px;

    padding: 13px;

    display: flex;

    align-items: center;

    gap: 10px;

    text-align: left;
}


.resource-option.selected {
    border-color: var(--accent);

    background: var(--accent-light);
}


.resource-option > span {
    font-size: 20px;
}


.resource-option strong {
    display: block;

    font-size: 11px;
}


.resource-option small {
    display: block;

    color: var(--text-soft);

    font-size: 8px;

    margin-top: 3px;
}


.form-summary {
    display: flex;

    justify-content: space-between;

    padding: 14px 0;

    border-top: 1px solid var(--border);

    border-bottom: 1px solid var(--border);

    font-size: 11px;

    color: var(--text-soft);
}


.form-summary strong {
    color: var(--text);
}


.submit-button {
    width: 100%;

    margin-top: 3px;
}

/* NAVIGATION MOBILE */

.mobile-nav {
    display: none;
}

/* Évite qu'un email ou un commentaire long ne fasse déborder les cartes */
.reservation-info,
.unavailable-info {
    min-width: 0;
}

.reservation-info strong,
.reservation-info span,
.reservation-info small,
.unavailable-info strong,
.unavailable-info span,
.unavailable-info small {
    overflow-wrap: anywhere;
}

.form-help {
    display: block;
    color: var(--text-soft);
    font-size: 9px;
    font-weight: 400;
    line-height: 1.4;
}

/* RESPONSIVE */

@media (max-width: 1024px) {

    .sidebar {
        width: 70px;
        padding: 20px 10px;
    }

    .logo {
        justify-content: center;
        padding: 5px 0 35px;
    }

    .logo > div:last-child,
    .nav-item:not(.active)::after,
    .nav-item {
        font-size: 0;
    }

    .nav-item span {
        font-size: 18px;
    }

    .nav-item {
        justify-content: center;
        padding: 14px 0;
    }

    .house-status,
    .version {
        display: none;
    }

    .main {
        margin-left: 70px;
        width: calc(100% - 70px);
    }

    .content {
        padding: 35px 25px 60px;
    }

    .stats {
        grid-template-columns: repeat(3, 1fr);
    }

}


/* --------------------------------------------------
   MOBILE — vraie interface compacte
-------------------------------------------------- */

@media (max-width: 1024px) {

    /* La sidebar desktop disparaît complètement */
    .sidebar {
        display: none;
    }

    .main {
        margin-left: 0;
        width: 100%;
        min-height: 100vh;
    }

    /* Petit header mobile */
    .topbar {
        height: 58px;
        padding: 0 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .mobile-logo {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 14px;
    }

    .mobile-logo .logo-icon {
        width: 30px;
        height: 30px;
        border-radius: 9px;
    }

    .mobile-logo .logo-icon img {
        width: 19px;
        height: 19px;
    }

    .profile-text,
    .profile > span,
    .icon-button {
        display: none;
    }

    /* Contenu beaucoup plus compact */
    .content {
        width: 100%;
        padding: 18px 14px 95px;
    }

    .welcome {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        margin-bottom: 18px;
    }

    .eyebrow {
        font-size: 9px;
        letter-spacing: 1.6px;
        margin-bottom: 8px;
    }

    h1 {
        font-size: 36px;
        line-height: 1;
        letter-spacing: -0.5px;
    }

    .welcome p,
    .page-title p {
        font-size: 12px;
        margin-top: 8px;
    }

    .primary-button {
        padding: 11px 14px;
        border-radius: 10px;
        font-size: 11px;
    }

    .welcome .primary-button,
    .page-title .primary-button {
        width: 100%;
    }

    /* Prochaine arrivée : compacte */
    .next-arrival {
        min-height: 220px;
        border-radius: 18px;
        margin-bottom: 12px;
    }

    .arrival-content {
        padding: 20px;
        padding-bottom: 82px;
    }

    .arrival-label {
        font-size: 8px;
        letter-spacing: 1.5px;
        margin-bottom: 10px;
    }

    .arrival-name {
        max-width: calc(100% - 10px);
        font-size: 29px;
        line-height: 1;
        margin-bottom: 13px;
    }

    .arrival-details {
        max-width: 62%;
        flex-direction: column;
        gap: 7px;
        font-size: 10px;
    }

    .arrival-details div {
        gap: 5px;
    }

    .dodos {
        right: 17px;
        bottom: 17px;
        gap: 6px;
    }

    .dodos-number {
        font-size: 43px;
    }

    .dodos strong {
        font-size: 11px;
    }

    .dodos span {
        font-size: 8px;
    }

    .arrival-decoration {
        right: -12px;
        bottom: -15px;
        font-size: 65px;
    }

    /* Les statistiques restent sur une seule ligne */
    .stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        margin-bottom: 28px;
    }

    .stat-card {
        min-width: 0;
        padding: 10px 8px;
        border-radius: 12px;
        gap: 7px;
        flex-direction: column;
        align-items: flex-start;
    }

    .stat-icon {
        width: 34px;
        height: 34px;
        border-radius: 9px;
        font-size: 15px;
    }

    .stat-card span {
        font-size: 9px;
        line-height: 1.2;
        margin-bottom: 3px;
    }

    .stat-card strong {
        font-size: 11px;
        line-height: 1.2;
    }

    /* Sections */
    .section-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
        margin-bottom: 12px;
    }

    .section-header h2 {
        font-size: 21px;
    }

    .section-header p {
        font-size: 10px;
    }

    .text-button {
        font-size: 10px;
    }

    /* Calendrier aperçu */
    .mini-calendar,
    .calendar-full {
        border-radius: 14px;
    }

    .calendar-header {
        padding: 12px 14px;
    }

    .calendar-header button,
    .month-arrow {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }

    .calendar-header strong {
        font-size: 11px;
    }

    .calendar-weekdays {
        padding: 9px 6px 5px;
        font-size: 8px;
    }

    .calendar-grid {
        padding: 0 6px 6px;
        gap: 2px;
    }

    .day {
        min-height: 42px;
        padding: 5px;
        border-radius: 7px;
        font-size: 9px;
    }

    .day small {
        display: none;
    }

    /* Titres des pages */
    .page-title {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        margin-bottom: 20px;
    }

    .page-title h1 {
        font-size: 36px;
    }

    /* Calendrier complet : on conserve le côté compact */
    .calendar-toolbar {
        padding: 12px;
        gap: 6px;
    }

    .calendar-toolbar h2 {
        font-size: 17px;
        margin: 0 4px;
        flex: 1;
        text-align: center;
    }

    .today-button {
        width: 100%;
        margin-left: 0;
        margin-top: 3px;
        padding: 8px 10px;
        font-size: 9px;
    }

    .resource-row {
        grid-template-columns: 72px 1fr;
        min-height: 82px;
    }

    .resource-name {
        padding: 12px 7px;
        font-size: 9px;
        gap: 4px;
    }

    .booking {
        padding: 6px;
        top: 11px;
        bottom: 11px;
        border-radius: 7px;
    }

    .booking strong {
        font-size: 8px;
        line-height: 1.1;
    }

    .booking span {
        display: none;
    }

    .booking-unavailable strong {
        font-size: 8px;
    }

    /* Cartes de réservation compactes */
    .reservation-list {
        gap: 8px;
    }

    .reservation-card,
    .unavailable-card {
        min-width: 0;
        width: 100%;
        padding: 10px;
        gap: 9px;
        border-radius: 13px;
    }

    .reservation-date {
        width: 42px;
        height: 49px;
        flex-shrink: 0;
        border-radius: 9px;
    }

    .reservation-date strong {
        font-size: 19px;
    }

    .reservation-date span {
        font-size: 7px;
        margin-top: 3px;
    }

    .reservation-info {
        min-width: 0;
    }

    .reservation-info strong {
        font-size: 11px;
        margin-bottom: 3px;
        overflow-wrap: anywhere;
    }

    .reservation-info span {
        font-size: 9px;
        overflow-wrap: anywhere;
    }

    .reservation-info small {
        font-size: 8px;
        overflow-wrap: anywhere;
    }

    .reservation-status {
        display: none;
    }

    .more-button {
        padding: 5px;
        font-size: 13px;
        flex-shrink: 0;
    }

    .reservation-comment {
        max-width: 100%;
        margin-top: 7px;
        padding: 7px 8px;
        gap: 5px;
        font-size: 10px;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }

    .comment-button {
        font-size: 14px;
        padding: 5px;
    }

    .unavailable-icon {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        flex-shrink: 0;
    }

    .unavailable-info {
        min-width: 0;
    }

    .unavailable-info strong {
        font-size: 11px;
        overflow-wrap: anywhere;
    }

    .unavailable-info span,
    .unavailable-info small {
        font-size: 8px;
        overflow-wrap: anywhere;
    }

    /* Navigation mobile fixe en bas */
    .mobile-nav {
        display: flex;
        flex-direction: row;
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: max(10px, env(safe-area-inset-bottom));
        height: 70px;
        background: rgba(32, 35, 32, 0.97);
        backdrop-filter: blur(15px);
        border-radius: 16px;
        box-shadow: 0 8px 30px rgba(0,0,0,0.22);
        z-index: 50;
        align-items: center;
        justify-content: space-around;
        padding: 4px;
    }

    .mobile-nav-item {
        flex: 1;
        min-width: 0;
        height: 62px;
        background: transparent;
        color: #999;
        border-radius: 12px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
    }

    .mobile-nav-item span {
        font-size: 22px;
        line-height: 1;
    }

    .mobile-nav-item small {
        font-size: 10px;
        line-height: 1;
    }

    .mobile-nav-item.active {
        background: rgba(255,255,255,0.1);
        color: white;
    }

    /* Place suffisante pour que le menu ne masque jamais le contenu */
    .content {
        padding-bottom: calc(98px + env(safe-area-inset-bottom));
    }

    /* Modales : compactes et scrollables sur petits écrans */
    .modal-overlay {
        padding: 10px;
        align-items: center;
    }

    .modal {
        width: 100%;
        max-width: 100%;
        max-height: calc(100vh - 20px);
        overflow-y: auto;
        padding: 25px 18px;
        border-radius: 18px;
    }

    .modal h2 {
        font-size: 27px;
        margin-bottom: 22px;
    }

    .form {
        gap: 14px;
    }

    .form-row,
    .resource-selector {
        grid-template-columns: 1fr;
    }

    input,
    textarea {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .form-help {
        display: block;
        margin-top: -2px;
        color: var(--text-soft);
        font-size: 9px;
        font-weight: 400;
        line-height: 1.35;
    }
}

[data-unavailability-resource] {
    width: 100%;
}

.logo-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* --------------------------------------------------
   Indisponibilités dans le calendrier
-------------------------------------------------- */

.booking-unavailable {
    background: repeating-linear-gradient(
        135deg,
        #d8d8d8,
        #d8d8d8 6px,
        #c5c5c5 6px,
        #c5c5c5 12px
    );

    color: #555;

    border: 1px solid #aaa;

    z-index: 2;
}


.booking-unavailable strong {
    font-size: 12px;
}


.booking-unavailable span {
    font-size: 10px;
    opacity: 0.8;
}

.status-dot.unavailable {
    background: #c85c5c;
}

.reservation-comment {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.04);
    font-size: 13px;
    line-height: 1.4;
    color: #555;
}

.reservation-comment span:first-child {
    flex-shrink: 0;
}

.comment-button {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    padding: 8px;
    border-radius: 8px;
}

.comment-button:hover {
    background: rgba(0, 0, 0, 0.06);
}

textarea {
    width: 100%;
    box-sizing: border-box;
    resize: vertical;
    min-height: 80px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
}

textarea:focus {
    outline: none;
    border-color: #999;
}