/* ============================================
   FestivA&L - Les Noces d'Alex & Laurie
   Palette : Noir / Gold / Beige / Brun / Gris
   Police  : Lato
   ============================================ */

:root {
    /* Noirs */
    --black: #1A1A1A;
    --charcoal: #2C2C2C;
    --dark: #3A3A3A;

    /* Golds */
    --gold: #C9A96E;
    --gold-light: #DCCBA0;
    --gold-muted: #B8A07A;
    --gold-dark: #A8894E;

    /* Beiges / Cremes */
    --cream: #FAF6F0;
    --beige: #F0EAE0;
    --beige-dark: #E5DDD0;
    --sand: #D9CFBF;

    /* Bruns */
    --brown: #6B5B4B;
    --brown-light: #8B7B6B;
    --brown-dark: #4A3F35;

    /* Gris */
    --grey: #999;
    --grey-light: #BBB;
    --grey-dark: #666;
    --grey-border: #DDD5CA;

    /* Texte */
    --text: #3A3A3A;
    --text-light: #7A7060;
    --white: #FFFFFF;

    /* Status (seules couleurs vives autorisees) */
    --status-ok: #5A8A5A;
    --status-nok: #B05050;
    --status-warn: #C9A020;

    /* Ombres */
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.10);

    /* Rayons */
    --radius: 10px;
    --radius-sm: 6px;
}

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

body {
    font-family: 'Lato', sans-serif;
    background: var(--cream);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    font-weight: 400;
}

/* ---- Header ---- */
.app-header {
    background: var(--black);
    color: var(--white);
    padding: 1.4rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid var(--gold);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-family: 'Lato', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.logo .amp {
    color: var(--gold);
}

.logo .subtitle {
    font-size: 0.9rem;
    font-weight: 300;
    font-style: italic;
    color: var(--gold-light);
    margin-top: 2px;
    letter-spacing: 1px;
}

.logo .date-info {
    font-size: 0.75rem;
    color: var(--grey);
    margin-top: 2px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Bouton Logout */
.btn-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: transparent;
    color: var(--grey);
    border: 2px solid var(--grey-dark);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-logout:hover {
    color: var(--gold);
    border-color: var(--gold);
}

/* Bouton Rafraichir */
.btn-refresh {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: var(--gold);
    color: var(--black);
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'Lato', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-refresh:hover {
    background: var(--gold-light);
    box-shadow: 0 3px 12px rgba(201, 169, 110, 0.35);
}

.btn-refresh.loading .refresh-icon {
    animation: spin 0.8s linear infinite;
}

.refresh-icon {
    fill: currentColor;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* ---- Navigation Tabs ---- */
.tab-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem 0;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    background: var(--beige);
    border: 2px solid var(--grey-border);
    border-bottom: none;
    border-radius: var(--radius) var(--radius) 0 0;
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--brown-light);
    cursor: pointer;
    transition: all 0.25s ease;
}

.tab-btn svg {
    fill: currentColor;
}

.tab-btn:hover {
    color: var(--brown);
    background: var(--beige-dark);
}

.tab-btn.active {
    color: var(--black);
    background: var(--white);
    border-color: var(--gold);
    border-bottom-color: var(--white);
    position: relative;
    z-index: 1;
    margin-bottom: -2px;
}

/* ---- Main Content ---- */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 2rem;
    position: relative;
}

.tab-content {
    display: none;
    background: var(--white);
    border: 2px solid var(--gold);
    border-radius: 0 var(--radius) var(--radius) var(--radius);
    padding: 2rem;
    animation: fadeIn 0.25s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(3px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---- Loading ---- */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(250, 246, 240, 0.92);
    z-index: 200;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 1rem;
    color: var(--brown);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.loading-overlay.active {
    display: flex;
}

.spinner {
    width: 44px;
    height: 44px;
    border: 4px solid var(--sand);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

/* ---- Stats Grid ---- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--beige);
    border-radius: var(--radius-sm);
    padding: 1.2rem 1rem;
    text-align: center;
    border-left: 4px solid var(--gold);
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.stat-number {
    font-size: 2rem;
    font-weight: 900;
    color: var(--black);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--brown-light);
    margin-top: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ---- Filters ---- */
.filters-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 240px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--beige);
    border: 2px solid var(--grey-border);
    border-radius: var(--radius-sm);
    transition: border-color 0.25s;
}

.search-box:focus-within {
    border-color: var(--gold);
}

.search-box svg {
    fill: var(--brown-light);
    flex-shrink: 0;
}

.search-box input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    color: var(--text);
    outline: none;
}

.search-box input::placeholder {
    color: var(--grey);
}

.filter-group {
    display: flex;
    gap: 0.5rem;
}

.filter-group select {
    padding: 10px 16px;
    border: 2px solid var(--grey-border);
    border-radius: var(--radius-sm);
    background: var(--beige);
    font-family: 'Lato', sans-serif;
    font-size: 0.85rem;
    color: var(--text);
    cursor: pointer;
    outline: none;
    transition: border-color 0.25s;
}

.filter-group select:focus {
    border-color: var(--gold);
}

/* ---- Category Badges ---- */
.category-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1rem;
}

.cat-badge {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.cat-badge:hover {
    transform: scale(1.04);
}

.cat-badge.active {
    border-color: var(--black);
}

/* ---- Results info ---- */
.results-info {
    font-size: 0.8rem;
    color: var(--brown-light);
    margin-bottom: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ---- Tables ---- */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--grey-border);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.data-table th {
    background: var(--charcoal);
    color: var(--gold-light);
    padding: 11px 14px;
    text-align: left;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    white-space: nowrap;
    position: sticky;
    top: 0;
}

.sortable { cursor: pointer; user-select: none; }
.sortable:hover { color: var(--gold); }
.sortable::after { content: " \2195"; font-size: 0.7rem; opacity: 0.4; }

.data-table td {
    padding: 9px 14px;
    border-bottom: 1px solid var(--beige-dark);
    vertical-align: middle;
}

.data-table tbody tr:hover { background: var(--beige); }
.data-table tbody tr:nth-child(even) { background: rgba(240, 234, 224, 0.35); }
.data-table tbody tr:nth-child(even):hover { background: var(--beige); }

.data-table.compact { font-size: 0.82rem; }
.data-table.compact th { padding: 8px 10px; font-size: 0.72rem; }
.data-table.compact td { padding: 6px 10px; }

/* Category tags */
.cat-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

/* ---- Section Titles ---- */
.section-title {
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--black);
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gold-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title:first-child { margin-top: 0; }

.section-desc {
    font-size: 0.82rem;
    color: var(--brown-light);
    margin-bottom: 1rem;
    font-style: italic;
}

.section-subtitle {
    font-size: 1rem;
    font-weight: 900;
    color: var(--brown);
    margin: 1.5rem 0 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-subtitle small {
    font-weight: 400;
    color: var(--grey);
}

/* ---- Accordion ---- */
.accordion {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.accordion-item {
    border: 1px solid var(--grey-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--beige);
    cursor: pointer;
    transition: background 0.2s;
    gap: 1rem;
}

.accordion-header:hover {
    background: var(--beige-dark);
}

.acc-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.acc-date {
    font-weight: 900;
    font-size: 0.88rem;
    color: var(--black);
    white-space: nowrap;
}

.acc-theme {
    font-size: 0.82rem;
    color: var(--brown-light);
    font-style: italic;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.acc-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.acc-pax, .acc-rooms {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--brown);
    background: var(--white);
    padding: 3px 10px;
    border-radius: 10px;
    white-space: nowrap;
}

.acc-pax { border-left: 3px solid var(--gold); }
.acc-rooms { border-left: 3px solid var(--brown-light); }

.acc-arrow {
    font-size: 0.7rem;
    color: var(--grey);
    transition: transform 0.25s;
}

.accordion-item.open .acc-arrow {
    transform: rotate(180deg);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: var(--white);
}

.acc-summary {
    padding: 1rem 16px;
    border-bottom: 1px solid var(--beige-dark);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.acc-types {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--brown);
}

.acc-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.accordion-body .room-cards {
    padding: 1rem 16px;
}

/* ---- Groupe Sections ---- */
.groupe-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--beige-dark);
}

.groupe-section:last-child {
    border-bottom: none;
}

.groupe-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.groupe-count {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--brown-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.groupe-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.date-badge {
    display: inline-block;
    padding: 4px 10px;
    background: var(--charcoal);
    color: var(--gold-light);
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* ---- Room Cards ---- */
.room-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.room-card {
    background: var(--beige);
    border-radius: var(--radius-sm);
    padding: 1rem 1.2rem;
    border-left: 4px solid var(--gold);
    transition: box-shadow 0.2s;
}

.room-card:hover {
    box-shadow: var(--shadow-hover);
}

.room-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.room-card-name {
    font-weight: 700;
    color: var(--black);
    font-size: 0.9rem;
}

.room-card-occ {
    background: var(--gold);
    color: var(--black);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

.room-card-guests {
    list-style: none;
    font-size: 0.82rem;
    color: var(--brown-light);
}

.room-card-guests li {
    padding: 2px 0;
}

.room-card-guests li > span::before {
    content: "\2022 ";
    color: var(--gold-muted);
}

/* ---- Room Card Edit Mode ---- */
.room-edit-btn {
    background: none;
    border: none;
    font-size: 1.1rem;
    color: var(--brown-light);
    cursor: pointer;
    padding: 2px 6px;
    line-height: 1;
    transition: color 0.2s;
    margin-left: 8px;
    flex-shrink: 0;
}

.room-edit-btn:hover {
    color: var(--gold-dark);
}

.room-card.editing .room-edit-btn {
    color: var(--status-ok);
}

.room-card .room-guest-remove,
.room-card .room-add-section {
    display: none;
}

.room-card.editing .room-guest-remove {
    display: inline-block;
}

.room-card.editing .room-add-section {
    display: block;
}

.room-card.editing {
    border-left-color: var(--gold-dark);
    box-shadow: var(--shadow-hover);
}

.room-card-guests li {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.room-card-guests li > span {
    flex: 1;
    min-width: 0;
}

.room-guest-remove {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--grey);
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    flex-shrink: 0;
    transition: color 0.2s;
}

.room-guest-remove:hover {
    color: var(--status-nok);
}

.room-add-section {
    margin-top: 10px;
    position: relative;
}

.room-add-search {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid var(--grey-border);
    border-radius: var(--radius-sm);
    background: var(--white);
    font-family: 'Lato', sans-serif;
    font-size: 0.82rem;
    color: var(--text);
    outline: none;
    transition: border-color 0.25s;
}

.room-add-search:focus {
    border-color: var(--gold);
}

.room-search-results {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 2px solid var(--gold);
    border-top: none;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    max-height: 180px;
    overflow-y: auto;
    z-index: 20;
    box-shadow: var(--shadow-hover);
}

.room-search-results.active {
    display: block;
}

.room-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.15s;
}

.room-result-item:hover {
    background: var(--beige);
}

.room-result-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--black);
}

.room-result-info {
    font-size: 0.72rem;
    color: var(--brown-light);
}

.room-result-empty {
    padding: 10px 12px;
    font-size: 0.82rem;
    color: var(--grey);
    font-style: italic;
    text-align: center;
}

/* Baby tags */
.baby-tag {
    display: inline-block;
    background: var(--sand);
    color: var(--brown);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    vertical-align: middle;
    margin-left: 4px;
}

.baby-note {
    color: var(--brown-light);
    font-size: 0.7rem;
    font-weight: 400;
    margin-left: 2px;
}

/* ---- Footer ---- */
.app-footer {
    text-align: center;
    padding: 2rem;
    color: var(--brown-light);
    font-size: 0.82rem;
    font-style: italic;
    letter-spacing: 0.5px;
}

/* ---- Toast notifications ---- */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--charcoal);
    color: var(--white);
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-family: 'Lato', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: var(--shadow-hover);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 300;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success {
    border-left: 4px solid var(--status-ok);
}

.toast.error {
    border-left: 4px solid var(--status-nok);
}

/* ---- Empty state ---- */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--grey);
    font-style: italic;
}

/* ---- Guest Link (clickable names) ---- */
.guest-link {
    color: var(--brown-dark);
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.2s;
}

.guest-link:hover {
    color: var(--gold-dark);
    text-decoration: underline;
}

/* ---- Modal Overlay ---- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(26, 26, 26, 0.55);
    z-index: 500;
    justify-content: center;
    align-items: flex-start;
    padding: 3vh 1rem;
    overflow-y: auto;
}

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

.modal-content {
    background: var(--white);
    border: 2px solid var(--gold);
    border-radius: var(--radius);
    padding: 2rem;
    width: 100%;
    max-width: 700px;
    position: relative;
    animation: modalIn 0.25s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
    position: absolute;
    top: 12px; right: 16px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--grey);
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--black);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gold-light);
    flex-wrap: wrap;
    padding-right: 2rem;
}

.profile-header h2 {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--black);
    letter-spacing: 0.5px;
}

.profile-section {
    margin-bottom: 1.5rem;
}

/* ---- Form Grid ---- */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--brown-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select {
    padding: 10px 14px;
    border: 2px solid var(--grey-border);
    border-radius: var(--radius-sm);
    background: var(--beige);
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    color: var(--text);
    outline: none;
    transition: border-color 0.25s;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--gold);
}

/* ---- Dates Grid ---- */
.dates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px;
}

.date-check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--beige);
    border-radius: var(--radius-sm);
    border: 2px solid var(--grey-border);
    cursor: pointer;
    transition: all 0.2s;
}

.date-check:hover {
    border-color: var(--gold-muted);
    background: var(--beige-dark);
}

.date-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--gold-dark);
    cursor: pointer;
    flex-shrink: 0;
}

.date-check-label {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.date-check-date {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--black);
}

.date-check-theme {
    font-size: 0.75rem;
    color: var(--brown-light);
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---- Status Badges ---- */
.status-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    background: var(--beige-dark);
    color: var(--brown);
}

.status-invite {
    background: var(--beige-dark);
    color: var(--brown);
}

.status-envoyee {
    background: #E8DCC8;
    color: var(--gold-dark);
}

.status-confirme {
    background: #D4E8D4;
    color: var(--status-ok);
}

.status-refuse {
    background: #E8D4D4;
    color: var(--status-nok);
}

/* ---- Profile Action Buttons ---- */
.profile-actions {
    display: flex;
    gap: 12px;
    padding-top: 1.5rem;
    border-top: 1px solid var(--beige-dark);
    flex-wrap: wrap;
}

.btn-save {
    padding: 12px 28px;
    background: var(--gold);
    color: var(--black);
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.25s;
}

.btn-save:hover {
    background: var(--gold-light);
    box-shadow: 0 3px 12px rgba(201, 169, 110, 0.35);
}

.btn-delete {
    padding: 12px 28px;
    background: var(--beige);
    color: var(--status-nok);
    border: 2px solid var(--status-nok);
    border-radius: var(--radius-sm);
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.25s;
}

.btn-delete:hover {
    background: #E8D4D4;
}

/* ---- Roommate / Colocation ---- */
.room-name-display {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 10px 14px;
    background: var(--beige);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--gold);
}

.room-name-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--brown-light);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.room-name-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--black);
}

.roommates-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.roommates-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.roommate-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: var(--beige);
    border-radius: var(--radius-sm);
    border: 1px solid var(--grey-border);
}

.roommate-name {
    flex: 1;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--black);
}

.roommate-type {
    font-size: 0.75rem;
    color: var(--brown-light);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.roommate-remove {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--grey);
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    transition: color 0.2s;
}

.roommate-remove:hover {
    color: var(--status-nok);
}

.roommate-empty {
    font-size: 0.82rem;
    color: var(--grey);
    font-style: italic;
    padding: 6px 0;
}

.roommate-add {
    position: relative;
}

.roommate-search-wrapper {
    position: relative;
}

.roommate-search-wrapper input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--grey-border);
    border-radius: var(--radius-sm);
    background: var(--beige);
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    color: var(--text);
    outline: none;
    transition: border-color 0.25s;
}

.roommate-search-wrapper input:focus {
    border-color: var(--gold);
}

.roommate-search-results {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 2px solid var(--gold);
    border-top: none;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    max-height: 220px;
    overflow-y: auto;
    z-index: 10;
    box-shadow: var(--shadow-hover);
}

.roommate-search-results.active {
    display: block;
}

.roommate-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.15s;
}

.roommate-result-item:hover {
    background: var(--beige);
}

.roommate-result-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--black);
}

.roommate-result-info {
    font-size: 0.75rem;
    color: var(--brown-light);
}

.roommate-result-empty {
    padding: 12px 14px;
    font-size: 0.82rem;
    color: var(--grey);
    font-style: italic;
    text-align: center;
}

/* ---- Export/Import ---- */
.export-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1rem;
}

.export-card {
    background: var(--beige);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    border: 2px solid var(--grey-border);
    transition: border-color 0.2s;
}

.export-card:hover {
    border-color: var(--gold);
}

.export-card-icon {
    color: var(--gold-dark);
    margin-bottom: 1rem;
}

.export-card h3 {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--black);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.export-card p {
    font-size: 0.85rem;
    color: var(--brown-light);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.import-status {
    margin-top: 1rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.import-status.loading { color: var(--gold-dark); }
.import-status.success { color: var(--status-ok); }
.import-status.error   { color: var(--status-nok); }

/* ---- RFQ (Demande d'Offres) ---- */
.rfq-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-rfq-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--beige);
    border: 2px solid var(--grey-border);
    border-radius: var(--radius-sm);
    font-family: 'Lato', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--brown);
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 1.5rem;
}

.btn-rfq-back:hover {
    border-color: var(--gold);
    color: var(--black);
}

.rfq-detail-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gold-light);
}

.rfq-detail-header h2 {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--black);
    margin: 0;
}

.rfq-hotel-email {
    font-size: 0.88rem;
    color: var(--brown-light);
    margin: 4px 0 0;
}

.rfq-detail-section {
    margin-bottom: 1.5rem;
}

.rfq-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--brown-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.rfq-subject-row {
    display: flex;
    gap: 8px;
}

.rfq-subject-input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid var(--grey-border);
    border-radius: var(--radius-sm);
    background: var(--beige);
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    color: var(--text);
    outline: none;
    transition: border-color 0.25s;
}

.rfq-subject-input:focus {
    border-color: var(--gold);
}

.rfq-preview-container {
    border: 2px solid var(--grey-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--beige);
}

.rfq-preview-iframe {
    width: 100%;
    height: 600px;
    border: none;
    background: #FAF6F0;
}

.rfq-actions-bar {
    display: flex;
    gap: 10px;
    padding-top: 1.5rem;
    border-top: 1px solid var(--beige-dark);
    flex-wrap: wrap;
}

.btn-rfq-copy {
    padding: 10px 20px;
    background: var(--charcoal);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'Lato', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-rfq-copy:hover {
    background: var(--black);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.btn-rfq-small {
    padding: 6px 14px;
    background: var(--gold);
    color: var(--black);
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'Lato', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-rfq-small:hover {
    background: var(--gold-light);
}

.btn-rfq-small-del {
    background: var(--beige);
    color: var(--status-nok);
    border: 1px solid var(--status-nok);
}

.btn-rfq-small-del:hover {
    background: #E8D4D4;
}

/* ---- Event Cards (Programme) ---- */
.event-card {
    background: var(--beige);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--gold);
    margin-bottom: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.event-card.event-saved {
    border-left-color: var(--status-ok);
}

.event-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--grey-border);
}

.event-date {
    font-weight: 900;
    font-size: 0.95rem;
    color: var(--black);
    white-space: nowrap;
}

.event-date-full {
    font-size: 0.82rem;
    color: var(--brown-light);
    font-style: italic;
}

.event-card-body {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.event-card-body .form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.event-theme-input {
    padding: 10px 14px;
    border: 2px solid var(--grey-border);
    border-radius: var(--radius-sm);
    background: var(--white);
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--black);
    outline: none;
    transition: border-color 0.25s;
}

.event-theme-input:focus {
    border-color: var(--gold);
}

.event-notes-input {
    padding: 12px 14px;
    border: 2px solid var(--grey-border);
    border-radius: var(--radius-sm);
    background: var(--white);
    font-family: 'Lato', sans-serif;
    font-size: 0.88rem;
    color: var(--text);
    outline: none;
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
    transition: border-color 0.25s;
}

.event-notes-input:focus {
    border-color: var(--gold);
}

/* ---- Login Page ---- */
.login-page {
    background: var(--black);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1rem;
}

.login-card {
    background: var(--white);
    border: 2px solid var(--gold);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 380px;
    text-align: center;
}

.login-title {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--black);
    margin-bottom: 4px;
}

.login-title .amp {
    color: var(--gold);
}

.login-subtitle {
    font-size: 0.88rem;
    font-weight: 300;
    font-style: italic;
    color: var(--brown-light);
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.login-error {
    background: #E8D4D4;
    color: var(--status-nok);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.login-field {
    text-align: left;
    margin-bottom: 1rem;
}

.login-field label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--brown-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.login-field input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--grey-border);
    border-radius: var(--radius-sm);
    background: var(--beige);
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    color: var(--text);
    outline: none;
    transition: border-color 0.25s;
}

.login-field input:focus {
    border-color: var(--gold);
}

.login-btn {
    width: 100%;
    margin-top: 0.5rem;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .tab-nav {
        padding: 1rem 1rem 0;
    }

    .tab-btn {
        flex: 1;
        justify-content: center;
        padding: 10px 14px;
        font-size: 0.8rem;
    }

    .main-content {
        padding: 0 1rem 1rem;
    }

    .tab-content {
        padding: 1.2rem;
    }

    .filters-bar {
        flex-direction: column;
    }

    .filter-group {
        flex-direction: column;
    }

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

    .guest-table th,
    .guest-table td {
        padding: 7px 8px;
        font-size: 0.78rem;
    }

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

    .modal-content {
        padding: 1.2rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .dates-grid {
        grid-template-columns: 1fr;
    }

    .profile-actions {
        flex-direction: column;
    }

    .export-section {
        grid-template-columns: 1fr;
    }
}
