/* ─── Symfony app — classes complémentaires ─── */

/* ─── Bouton Annuler ─── */
.btn-cancel::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f00d";
    margin-right: 0.4em;
}

/* ─── Carte profil (Mon espace) ─── */
.data-item--profile {
    gap: 1rem;
}

.data-item--profile > div:first-child {
    padding-right: 0 !important;
}

/* ─── People list cards ─── */
.people-list-item {
    gap: 1rem;
}

.people-card-photo {
    flex-shrink: 0;
}

.people-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}

.people-card-name {
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.people-card-pill {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 100px;
}

.people-card-pill--staff {
    background: hsla(280, 60%, 50%, 0.15);
    border: 1px solid hsla(280, 60%, 50%, 0.3);
    color: #8e44ad;
}

.people-card-pill--athlete {
    background: hsla(160, 60%, 40%, 0.15);
    border: 1px solid hsla(160, 60%, 40%, 0.3);
    color: #1abc9c;
}

.people-card-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}

.people-card-detail {
    font-size: 0.9rem;
    color: hsl(var(--text-secondary));
}

.people-card-email {
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.people-card-email a {
    color: hsl(var(--text-secondary));
    text-decoration: none;
    display: inline-block;
    max-width: calc(100% - 1.5rem);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.people-card-icon {
    margin-right: 0.35rem;
    color: hsl(var(--accent-primary));
}

.people-card-icon--secondary {
    margin-right: 0.5rem;
    color: hsl(var(--accent-secondary));
}

.people-card-link {
    color: hsl(var(--text-secondary));
    text-decoration: none;
}

.people-card-regime {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
}

.people-card-regime__label {
    font-size: 0.8rem;
    color: #ff6b6b;
    margin-right: 5px;
}

.people-card-regime__label i {
    margin-right: 0.35rem;
}

.people-card-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.badge--gluten  { background: hsla(30,  80%, 60%, 0.2); color: #f39c12; }
.badge--viande  { background: hsla(0,   70%, 60%, 0.2); color: #e74c3c; }
.badge--poisson { background: hsla(200, 70%, 50%, 0.2); color: #2980b9; }
.badge--oeuf    { background: hsla(42,  79%, 45%, 0.2); color: #d4a017; }
.badge--lactose { background: hsla(50,  90%, 55%, 0.2); color: #f1c40f; }
.badge--role {
    background: hsla(var(--accent-primary), 0.12);
    color: hsl(var(--accent-primary));
    border-color: hsla(var(--accent-primary), 0.2);
}
.badge--protein {
    background: hsla(270, 70%, 60%, 0.15);
    color: #9b59b6;
}

/* Spacing between icon and text in headings and icon-labels */
h2 > i, h1 > i, h3 > i, .label-icon > i { margin-right: 0.5rem; }

/* Icon in schedule items — more spacing after icon */
.horaire-icon {
    margin-left: 0.5rem;
    margin-right: 0.75rem;
}

/* Label with icon: flexbox layout */
.label-icon {
    display: flex;
    align-items: center;
}

/* Flatpickr: keep native calendar icon visible on non-flatpickr inputs */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

/* datetime-local renders two indicators on Android Chrome (calendar + clock) — hide them both */
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    display: none;
}
/* Flatpickr altInput: add calendar icon via pseudo-element on wrapper */
.flatpickr-input[type="hidden"] + input.form-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23ffffff' viewBox='0 0 448 512'%3E%3Cpath d='M152 24c0-13.3-10.7-24-24-24s-24 10.7-24 24v40H64C28.7 64 0 92.7 0 128v16 48V448c0 35.3 28.7 64 64 64h320c35.3 0 64-28.7 64-64V192 176 128c0-35.3-28.7-64-64-64h-40V24c0-13.3-10.7-24-24-24s-24 10.7-24 24v40H152V24zM48 192h352V448c0 8.8-7.2 16-16 16H64c-8.8 0-16-7.2-16-16V192z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 14px;
    padding-right: 2.25rem;
    cursor: pointer;
}

/* Filter buttons active state */
.role-filter.active {
    background: hsl(var(--accent-primary));
    border-color: hsl(var(--accent-primary));
    color: #fff;
    box-shadow: 0 6px 20px -6px hsla(var(--accent-primary), 0.5);
}

/* Override form-card (était hidden par toggle JS dans l'ancien app) */
.form-card {
    display: block !important;
    background: rgba(255,255,255,0.04);
    border: none;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
}

/* Page header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}
.page-header h1, .page-header h2 {
    font-size: 1.6rem;
    font-weight: 700;
}

/* ─── App-style Header with Close Button ─── */
.app-page-header {
    position: sticky;
    top: 0;
    z-index :  100;
    background: linear-gradient(to bottom, hsl(var(--bg-color)), hsla(var(--bg-color), 0.95));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: none;
    border-radius: 8px;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0 auto 2rem auto;
    max-width: var(--container-width);
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.app-page-header__close {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: hsla(var(--accent-primary), 0.15);
    border: none;
    border-radius: 8px;
    color: hsl(var(--accent-primary));
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.3rem;
    line-height: 1;
}

.app-page-header__close:hover {
    background: hsla(var(--accent-primary), 0.25);
    transform: scale(1.05);
}

.app-page-header__close:active {
    transform: scale(0.95);
}

.app-page-header__title-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex :  1;
}

.app-page-header__icon {
    font-size: 1.5rem;
    color: hsl(var(--accent-primary));
}

.app-page-header__title {
    font-size: 1.2rem;
    font-weight: 600;
    color: hsl(var(--text-primary));
    margin: 0;
}

/* Animation d'entrée pour le header */
@keyframes slideDownHeader {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.app-page-header {
    animation: slideDownHeader 0.3s ease-out;
}

/* ─── List Page Header (sticky, similar to app-page-header) ─── */
.list-page-header {
    position: sticky;
    top: 0;
    z-index :  100;
    background: linear-gradient(to bottom, hsl(var(--bg-color)), hsla(var(--bg-color), 0.95));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: none;
    border-radius: 8px;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin: 0 auto 1rem auto;
    max-width: var(--container-width);
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideDownHeader 0.3s ease-out;
}

.list-page-header__title-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex :  1;
}

.list-page-header__icon {
    font-size: 1.5rem;
    color: hsl(var(--accent-primary));
    flex-shrink: 0;
}

.list-page-header__title {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.15;
    color: hsl(var(--text-primary));
    margin: 0;
}

.list-page-header__subtitle {
    font-size: 0.9rem;
    color: hsl(var(--text-secondary));
    margin: 0.25rem 0 0 0;
}

.list-page-header .btn {
    flex-shrink: 0;
}

.athlete-header-btn-icon {
    margin-right: 0.5rem;
}

.athlete-header-btn-label {
    white-space: nowrap;
}

/* ─── Dashboard Navigation Tabs ─── */
.dashboard-nav-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    padding: 1rem;
    position: sticky;
    top: 0; /* overridden dynamically by JS to sit below the sticky page header */
    background: linear-gradient(to bottom, hsl(var(--bg-primary)), hsla(var(--bg-primary), 0.95));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10;
}

.dashboard-nav-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 6px 16px;
    border-radius: 50px;
    border: 2px solid hsla(var(--accent-primary), 0.4);
    background: rgba(255,255,255,0.04);
    color: hsl(var(--text-secondary));
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.dashboard-nav-tab:hover {
    background: rgba(255,255,255,0.08);
    color: hsl(var(--text-primary));
}

.dashboard-nav-tab.active {
    background: rgba(255,255,255,0.04);
    border-color: hsla(var(--accent-primary), 0.4);
    color: hsl(var(--text-secondary));
    font-weight: 500;
}

/* ─── Detail Page Header (with avatar) ─── */
.detail-page-header {
    position: sticky;
    top: 0;
    z-index :  100;
    background: linear-gradient(to bottom, hsl(var(--bg-color)), hsla(var(--bg-color), 0.95));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: none;
    border-radius: 8px;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin: 0 auto 2rem auto;
    max-width: var(--container-width);
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideDownHeader 0.3s ease-out;
}

.detail-page-header__content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex :  1;
}

.detail-page-header__avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: hsl(var(--glass-bg));
    border: 2px solid hsla(var(--accent-primary), 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.detail-page-header__info {
    flex :  1;
}

.detail-page-header__title {
    font-size: 1.4rem;
    font-weight: 600;
    color: hsl(var(--text-primary));
    margin: 0;
}

.detail-page-header__subtitle {
    font-size: 0.9rem;
    color: hsl(var(--text-secondary));
    margin: 0.5rem 0 0 0;
}

.detail-page-header .btn {
    flex-shrink: 0;
}

/* ─── Section Header Sticky ─── */
.section-header-sticky {
    position: sticky;
    top: 0;
    z-index :  100;
    background: linear-gradient(to bottom, hsl(var(--bg-color)), hsla(var(--bg-color), 0.95));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: none;
    border-radius: 8px;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin: 0 auto 2rem auto;
    max-width: var(--container-width);
    width: 100%;
    min-height: 80px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.section-header-sticky .title-group h2,
.section-header-sticky .title-group h1 {
    margin: 0;
    font-size: 1.1rem;
}

.section-header-sticky .title-group .text-secondary {
    margin-top: 0.25rem;
}

.event-name-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.event-name-link {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.event-name-link i {
    flex-shrink: 0;
    margin-top: 0.2em;
}

/* Responsive design */
@media (max-width: 768px) {
    .list-page-header {
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
        padding: 0.875rem 0.75rem;
        margin-bottom: 1rem !important;
    }

    .list-page-header__title {
        font-size: 1.2rem;
    }

    .athlete-header-avatar {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
    }

    .athlete-header-avatar i {
        font-size: 1.4rem !important;
    }

    .athlete-header-btn-label {
        display: none;
    }

    .athlete-header-btn-icon {
        margin-right: 0;
    }

    .list-page-header .btn {
        flex-shrink: 0;
        padding: 10px 14px;
        font-size: 0.9rem;
        white-space: nowrap;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .app-page-header {
        padding: 0.875rem 0.75rem;
        gap: 0.75rem;
    }

    .app-page-header__close {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }

    .app-page-header__title {
        font-size: 1rem;
    }

    .app-page-header__icon {
        font-size: 1.25rem;
    }
}

/* Cards grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.grid-layout {
    margin-bottom: 2rem;
}
.card {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}
.card-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
}
.card-actions {
    display: flex;
    gap: 0.4rem;
    flex-shrink: 0;
}
.card-body {
    flex :  1;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: hsl(var(--text-secondary));
}
.card-body p { margin: 0; }
.card-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid hsla(var(--glass-border), 0.2);
}

/* Alerts */
.alert {
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}
.alert-success {
    background: hsla(160, 60%, 40%, 0.15);
    border: 1px solid hsla(160, 60%, 40%, 0.3);
    color: hsl(160, 60%, 70%);
}
.alert-error {
    background: hsla(0, 70%, 50%, 0.15);
    border: 1px solid hsla(0, 70%, 50%, 0.3);
    color: hsl(0, 70%, 70%);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: hsl(var(--text-secondary));
}
.empty-state i { font-size: 3rem; margin-bottom: 1rem; opacity: 0.3; display: block; }
.empty-state p  { font-size: 1rem; }

/* Tags */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 50px;
    background: hsla(var(--accent-secondary), 0.12);
    color: hsl(var(--accent-secondary));
    font-size: 0.78rem;
    border: 1px solid hsla(var(--accent-secondary), 0.2);
    margin: 2px;
}
.tag-warning {
    background: hsla(35, 90%, 50%, 0.12);
    color: hsl(35, 90%, 65%);
    border-color: hsla(35, 90%, 50%, 0.2);
}
.tag-role {
    background: hsla(var(--accent-primary), 0.12);
    color: hsl(var(--accent-primary));
    border-color: hsla(var(--accent-primary), 0.2);
}
.tag-taste {
    background: hsla(280, 60%, 60%, 0.12);
    color: hsl(280, 60%, 75%);
    border-color: hsla(280, 60%, 60%, 0.2);
}

/* Table */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 2px solid hsla(var(--accent-primary), 0.4);
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.data-table th {
    padding: 0.85rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
    color: hsl(var(--text-secondary));
    border-bottom: 1px solid hsla(var(--glass-border), 0.3);
    background: rgba(255,255,255,0.03);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.data-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid hsla(var(--glass-border), 0.15);
    vertical-align: middle;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: rgba(255,255,255,0.02); }
.text-center { text-align: center; }

/* Buttons */
.btn-sm {
    padding: 6px 14px !important;
    font-size: 0.8rem !important;
}
.btn-xs {
    padding: 3px 8px !important;
    font-size: 0.75rem !important;
}
.btn-full { width: 100%; }
.btn-danger {
    background: hsla(0, 70%, 50%, 0.15);
    color: hsl(0, 70%, 65%);
    border: 1px solid hsla(0, 70%, 50%, 0.3);
}
.btn-danger:hover {
    background: hsla(0, 70%, 50%, 0.3);
}

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: hsl(var(--text-secondary));
}
.form-input {
    width: 100%;
    padding: 0.65rem 1rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid hsla(var(--glass-border), 0.4);
    border-radius: var(--radius-md);
    color: hsl(var(--text-primary));
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.2s;
}
.form-input:focus {
    outline: none;
    border-color: hsl(var(--accent-primary));
}
.form-input-sm { width: auto; padding: 0.4rem 0.75rem; }
textarea.form-input { resize: vertical; }
select.form-input { cursor: pointer; padding-right: 1.8rem; }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}
.form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}
.required { color: hsl(0, 70%, 65%); }

/* Recipe ingredient sections */
.ingredient-section {
    margin-top: 1.25rem;
}
.ingredient-section:first-child { margin-top: 0; }
.ingredient-section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: hsl(var(--text-secondary));
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid hsla(var(--glass-border), 0.25);
}

/* Ingredient grid with quantity field */
.checkbox-group--quantities {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}
.checkbox-group.checkbox-group--quantities .checkbox-item,
.checkbox-group--quantities .checkbox-item {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.5rem !important;
    cursor: default;
    padding: 12px 16px;
}
.checkbox-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}
.quantity-input {
    display: none;
    width: 100%;
    padding: 6px 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid hsla(var(--glass-border), 0.4);
    border-radius: var(--radius-md);
    color: hsl(var(--text-primary));
    font-size: 0.8rem;
    font-family: inherit;
    transition: border-color 0.2s;
}
.quantity-input::placeholder { color: hsl(var(--text-secondary)); opacity: 0.7; }
.quantity-input:focus { outline: none; border-color: hsla(var(--accent-primary), 0.5); }
.checkbox-item:has(input[type="checkbox"]:checked) .quantity-input { display: block; }

/* Protein versions */
.protein-version {
    border: 1px solid hsla(var(--glass-border), 0.25);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    background: rgba(255,255,255,0.02);
}
.protein-version-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.6rem;
}
.protein-version-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: hsl(var(--text-secondary));
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.btn-remove-version {
    background: none;
    border: none;
    color: hsl(var(--text-secondary));
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    opacity: 0.6;
    transition: opacity 0.2s;
}
.btn-remove-version:hover { opacity: 1; color: hsl(0, 70%, 65%); }

/* Checkboxes / radios — reinforce alignment (custom inputs use display:grid internally) */
.checkbox-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
}
#ingredients-list .checkbox-item.ing-hidden,
#people-list .checkbox-item.ing-hidden {
    display: none !important;
}
.checkbox-item > input[type="checkbox"],
.checkbox-item > input[type="radio"] {
    flex-shrink: 0;
    align-self: center;
    margin: 0;
}
.checkbox-item > span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    line-height: 1.3;
}

/* Override scrollable variant for long lists */
.checkbox-group.scrollable {
    max-height: 300px;
    overflow-y: auto;
    display: block;
    padding: 0.5rem;
    background: rgba(255,255,255,0.03);
    border: 2px solid hsla(var(--accent-primary), 0.4);
    border-radius: var(--radius-md);
}
.checkbox-group.scrollable .checkbox-item {
    margin-bottom: 0.5rem;
}
.checkbox-group-label {
    width: 100%;
    font-size: 0.75rem;
    font-weight: 700;
    color: hsl(var(--text-secondary));
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0.5rem 0 0.25rem;
    grid-column: 1 / -1;
}

/* Utilities */
.text-secondary { color: hsl(var(--text-secondary)); }
.text-muted { color: hsla(var(--text-secondary), 0.5); }
.text-success { color: hsl(160, 60%, 60%); }
.mt-1 { margin-top: 0.5rem; }
.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: hsl(var(--text-secondary));
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid hsla(var(--glass-border), 0.2);
}

/* Config page */
.item-list { list-style: none; padding: 0; }
.item-list-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    border-bottom: 1px solid hsla(var(--glass-border), 0.1);
    font-size: 0.9rem;
}
.item-list-row:last-child { border-bottom: none; }
.inline-form { display: flex; gap: 0.5rem; align-items: center; }

/* Roles page */
.role-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.role-tab {
    padding: 6px 16px;
    border-radius: 50px;
    border: 2px solid hsla(var(--accent-primary), 0.4);
    background: rgba(255,255,255,0.04);
    color: hsl(var(--text-secondary));
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}
.role-tab:hover { background: rgba(255,255,255,0.08); color: hsl(var(--text-primary)); }
.role-tab.active {
    background: hsla(var(--accent-primary), 0.15);
    border-color: hsl(var(--accent-primary));
    color: hsl(var(--text-primary));
}
.role-panel.hidden { display: none; }
.permission-matrix td, .permission-matrix th { text-align: center; }
.permission-matrix td:first-child, .permission-matrix th:first-child { text-align: left; }
.people-list { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; }

/* Dashboard */
.event-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid hsla(var(--glass-border), 0.15);
}
.event-row:last-child { border-bottom: none; }
.roles-list { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.5rem; }

/* Login page overrides */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}
.login-container { width: 100%; max-width: 440px; padding: 1.5rem; }
.login-card {
    background: rgba(255,255,255,0.04);
    border: 2px solid hsla(var(--accent-primary), 0.4);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}
.login-logo { text-align: center; margin-bottom: 1.5rem; }
.login-logo h1 { font-size: 1.5rem; margin-top: 0.75rem; }
.login-logo .logo-img { height: 60px; }
.login-subtitle { font-size: 0.9rem; color: hsl(var(--text-secondary)); margin-bottom: 1.5rem; }
.login-back { text-align: center; margin-top: 1.25rem; font-size: 0.85rem; }
.login-back a {
    color: hsl(var(--text-secondary));
    text-decoration: none;
    transition: color 0.2s ease;
}
.login-back a:hover { color: hsl(var(--accent-secondary)); }
.login-form .form-group { margin-bottom: 1rem; }

/* ─── Tagify Customization ─── */
.tagify {
    background: hsla(var(--glass-bg), 0.8) !important;
    border: 1.5px solid hsla(var(--glass-border), 0.6) !important;
    border-radius: var(--radius-md) !important;
    padding: 10px 12px !important;
    min-height: 44px !important;
    transition: all 0.3s ease !important;
    font-size: 1rem !important;
    line-height: 1.4 !important;
}

.tagify:focus-within {
    border-color: hsl(var(--accent-primary)) !important;
    background: hsla(var(--glass-bg), 0.95) !important;
    box-shadow: 0 0 0 3px hsla(var(--accent-primary), 0.25) !important;
}

.tagify__input {
    color: hsl(var(--text-primary)) !important;
    padding: 0 4px !important;
    font-size: 1rem !important;
}

.tagify__input::placeholder {
    color: hsl(var(--text-secondary)) !important;
    opacity: 1 !important;
}

.tagify__dropdown {
    background: hsla(var(--glass-bg), 0.98) !important;
    backdrop-filter: blur(10px) !important;
    border: 1.5px solid hsla(var(--accent-primary), 0.4) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6) !important;
    margin-top: 8px !important;
    padding: 8px 0 !important;
    z-index :  1000 !important;
}

.tagify__dropdown__item {
    color: hsl(var(--text-primary)) !important;
    padding: 12px 16px !important;
    font-size: 0.95rem !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    border-left: 3px solid transparent !important;
    background: transparent !important;
}

.tagify__dropdown__item:hover {
    background: hsla(var(--accent-primary), 0.2) !important;
    border-left-color: hsl(var(--accent-primary)) !important;
    padding-left: 20px !important;
}

.tagify__dropdown__item--active {
    background: hsla(var(--accent-primary), 0.25) !important;
    border-left-color: hsl(var(--accent-primary)) !important;
    color: hsl(var(--accent-primary)) !important;
    padding-left: 20px !important;
}

/* ─── File Input Label Styles ─── */
.file-input-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.5rem;
    border: 2px dashed hsla(var(--glass-border), 0.4);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    background: hsla(var(--glass-bg), 0.15);
    color: hsl(var(--text-secondary));
    font-size: 0.9rem;
    text-align: center;
}

.file-input-label:hover {
    border-color: hsl(var(--accent-primary));
    background: hsla(var(--accent-primary), 0.05);
}

/* ─── Drawer/Volet Styles ─── */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 500px;
    height: 100vh;
    background: hsl(var(--bg-color));
    border-left: 1px solid hsla(var(--glass-border), 0.3);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.drawer.active {
    transform: translateX(0);
}

.drawer__header {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid hsla(var(--glass-border), 0.3);
    background: hsl(var(--bg-color));
    z-index: 10;
}

.drawer__title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.drawer__close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: hsla(var(--accent-primary), 0.1);
    border: none;
    border-radius: 6px;
    color: hsl(var(--text-primary));
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.1rem;
}

.drawer__close:hover {
    background: hsla(var(--accent-primary), 0.2);
    transform: scale(1.05);
}

.drawer__content {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .drawer {
        max-width: 100%;
    }
}

/* ─── Document Manager Panel ─── */
.doc-panel {
    position: fixed;
    right: 0;
    top: 0;
    width: min(500px, 100vw);
    height: 100vh;
    background: hsl(var(--bg-color));
    border-left: 1px solid hsla(var(--glass-border), 0.3);
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    flex-direction: column;
    overflow: hidden;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.doc-panel__header {
    padding: 1.5rem;
    border-bottom: 1px solid hsla(var(--glass-border), 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: hsl(var(--bg-color));
    flex-shrink: 0;
}

.doc-panel__title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.doc-panel__body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.doc-panel__section {
    flex-direction: column;
    gap: 1rem;
}

.doc-panel__list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.doc-panel__overlay {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.doc-manager-selected-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.doc-manager-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.doc-manager-empty {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.doc-manager-new-notice {
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: hsl(var(--text-secondary));
    font-style: italic;
}

.doc-file-selected {
    margin-top: 1rem;
    padding: 0.75rem;
    background: hsla(var(--glass-bg), 0.3);
    border: 1px solid hsla(var(--glass-border), 0.2);
    border-radius: var(--radius-md);
}

.doc-file-selected__inner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.doc-file-icon {
    color: hsl(var(--accent-primary));
    font-size: 1.2rem;
}

.doc-file-name {
    font-weight: 500;
    font-size: 0.95rem;
    color: hsl(var(--text-primary));
    flex: 1;
    min-width: 0;
    word-break: break-word;
}

.doc-panel__submit {
    width: 100%;
}

.form-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.search-loader {
    display: none;
    text-align: center;
    padding: 1rem;
    color: hsl(var(--text-secondary));
}

/* List header button: texte long sur desktop, court sur mobile */
.list-header-btn-short { display: none; }

/* Bouton Trajets : visible dans le header sur desktop, masqué sur mobile (section dédiée en bas) */
.btn-section-trajets { display: none; }

@media (max-width: 768px) {
    .btn-header-trajets { display: none; }
    .btn-section-trajets { display: block; }
}

/* Bouton Modifier : visible dans le header sur desktop, masqué sur mobile (section dédiée en bas) */
.btn-section-modifier { display: none; }

@media (max-width: 768px) {
    .btn-header-modifier { display: none !important; }
    .btn-section-modifier { display: block !important; }
}

/* Bouton Supprimer : visible dans le header sur desktop, masqué sur mobile (section dédiée en bas) */
.btn-section-delete { display: none; }

@media (max-width: 768px) {
    .btn-header-delete { display: none !important; }
    .btn-section-delete { display: block !important; }
    .btn-section-modifier { margin-top: 0.75rem !important; padding: 0.75rem 0 !important; }
    .btn-section-delete { padding: 0 0 0.75rem 0 !important; margin-bottom: 0 !important; }
    .compatible-recipes-card { margin-bottom: 1.5rem !important; }
}

@media (max-width: 768px) {
    .list-header-btn-long  { display: none; }
    .list-header-btn-short { display: inline; }
}

/* Boutons icon-only sur mobile : masque le label texte */
@media (max-width: 768px) {
    .btn-text { display: none; }
    .btn:has(.btn-text) { padding: 10px 14px; }
}

/* ─── Mobile Ergonomics — passe complète (≤ 768px) ─── */
@media (max-width: 768px) {

    /* ── Réduit le padding horizontal global ── */
    main {
        padding-left: 0.625rem !important;
        padding-right: 0.625rem !important;
    }

    .container {
        padding: 0 0.625rem !important;
    }

    /* ── iOS : empêche le zoom auto sur focus (font-size doit être ≥ 16px) ── */
    .form-input,
    .form-input-sm {
        font-size: 1rem;
    }

    /* ── Réduit le padding des form-card ── */
    .form-card {
        padding: 1.25rem 1rem;
        margin-bottom: 1.25rem;
    }

    /* ── Page header : empile titre + action ── */
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .page-header h1,
    .page-header h2 {
        font-size: 1.3rem;
    }

    /* ── Detail page header : compact ── */
    .detail-page-header {
        padding: 0.875rem 0.75rem;
        gap: 0.75rem;
        flex-wrap: wrap;
    }

    .detail-page-header__content {
        gap: 0.75rem;
    }

    .detail-page-header__avatar {
        width: 56px;
        height: 56px;
    }

    .detail-page-header__title {
        font-size: 1.1rem;
    }

    .detail-page-header__subtitle {
        font-size: 0.8rem;
        margin-top: 0.25rem;
    }

    .detail-page-header .btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    /* ── Section header sticky : compact ── */
    .section-header-sticky {
        padding: 0.875rem 0.75rem;
        gap: 0.75rem;
        min-height: auto;
        align-items: flex-start;
    }

    .section-header-sticky .title-group h2,
    .section-header-sticky .title-group h1,
    .transport-event-title {
        font-size: 1.1rem;
    }

    .day-header-actions {
        flex-direction: column;
        flex-wrap: nowrap !important;
        align-items: flex-end !important;
        gap: 0.4rem !important;
    }

    .day-header-actions .btn:not(.btn-header-trajets),
    .day-header-actions .btn-close {
        width: 40px;
        height: 40px !important;
        padding: 0 !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .day-header-actions .btn-close {
        order: -1;
    }

    /* ── Formulaires : empile les lignes 2 et 3 colonnes ── */
    .form-row,
    .form-row-3 {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* ── Actions de formulaire : boutons pleine largeur, empilés ── */
    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    /* ── Grille de cartes : colonne unique ── */
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* ── Contenu des cartes ── */
    .card-header h3 {
        font-size: 1rem;
    }

    .card-body {
        font-size: 0.875rem;
    }

    /* ── Titre de section ── */
    .section-title {
        font-size: 1rem;
    }

    /* ── Drawer : padding réduit ── */
    .drawer__header {
        padding: 1rem 0.75rem;
    }

    .drawer__content {
        padding: 1rem 0.75rem;
    }

    .drawer__title {
        font-size: 1rem;
    }

    /* ── List page header subtitle ── */
    .list-page-header__subtitle {
        display: none;
    }

    .dashboard-nav-tabs {
        padding: 0.25rem 0.75rem !important;
        gap: 0.35rem !important;
        margin-bottom: 1.5rem !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .dashboard-nav-tabs::-webkit-scrollbar {
        display: none;
    }
    .dashboard-nav-tab {
        flex-shrink: 0;
    }

    /* ── Events list : titre réduit sur mobile ── */
    .event-list-title {
        font-size: 1rem !important;
    }

    /* ── People list : spécifique mobile ── */

    /* Photo réduite */
    .person-profile-photo {
        width: 46px !important;
        height: 46px !important;
    }

    .person-profile-photo i {
        font-size: 1.4rem !important;
    }

    /* La card people : gap réduit (photo + contenu) */
    .people-card-item.data-item {
        gap: 0.75rem;
    }

    /* Nom légèrement réduit */
    .people-card-name {
        font-size: 0.95rem;
    }

    /* ── Filtres/tabs : scroll horizontal ── */
    .role-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
    }
    .role-tabs::-webkit-scrollbar {
        display: none;
    }
    .role-tab {
        flex-shrink: 0;
    }

    /* Email : taille réduite sur mobile */
    .people-card-email {
        font-size: 0.75rem;
    }
}

/* ── Event list title (base style) ── */
.event-list-title {
    font-weight: 600;
    font-size: 1.6rem;
}

/* ─── Dashboard Sections Spacing ─── */
.dashboard-section {
    margin-top: 2.5rem;
    margin-bottom: 2rem;
    padding-top: 2.5rem;
    padding-bottom: 0;
}

.separator-section {
    margin-top: 2.5rem;
    padding-top: 2.5rem;
}

.dashboard-section-header {
    margin-bottom: 1.5rem !important;
}

.dashboard-section .grid-layout {
    margin-bottom: 0;
}

.dashboard-section-see-all {
    display: inline-block !important;
    line-height: 1.4 !important;
    vertical-align: middle !important;
}

@media (max-width: 768px) {
    .dashboard-section {
        margin-top: 1rem !important;
        padding-top: 1rem !important;
    }

    .dashboard-section:first-of-type {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .separator-section {
        margin-top: 1rem !important;
        padding-top: 1rem !important;
    }

    .dashboard-section-header {
        margin-bottom: 1rem !important;
    }
}

@media (max-width: 480px) {
    .dashboard-section {
        margin-top: 1rem !important;
        padding-top: 1rem !important;
    }

    .dashboard-section-header {
        margin-bottom: 0.75rem !important;
    }
}

/* ─── Très petits écrans (≤ 480px) ─── */
@media (max-width: 480px) {

    .form-card {
        padding: 1rem 0.75rem;
    }

    .detail-page-header {
        padding: 0.75rem 0.5rem;
    }

    .detail-page-header__avatar {
        width: 48px;
        height: 48px;
    }

    .section-header-sticky {
        padding: 0.75rem 0.5rem;
    }

    .app-page-header {
        padding: 0.75rem 0.5rem;
    }

    .list-page-header {
        padding: 0.75rem 0.5rem;
    }

    .drawer__header {
        padding: 1rem 0.5rem;
    }

    .drawer__content {
        padding: 1rem 0.5rem;
    }

    .people-list-item {
        gap: 0.75rem;
    }

    .people-list-item .people-card-photo {
        padding-right: 0 !important;
    }

    .people-card-name {
        font-size: 0.95rem;
    }

    .people-card-detail {
        font-size: 0.8rem;
    }

    .person-profile-photo {
        width: 46px !important;
        height: 46px !important;
    }

    .person-profile-photo i {
        font-size: 1.4rem !important;
    }
}

/* ─── Mobile TopBar Links ─── */
.mobile-topbar {
    gap: 0.75rem;
}

.topbar-logo,
.topbar-title {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
    cursor: pointer;
}

.topbar-logo:hover,
.topbar-title:hover {
    opacity: 0.8;
}

.topbar-logo {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.topbar-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ─── Mobile burger button ─── */
.mobile-burger-btn {
    margin-left: auto;
    background: none;
    border: none;
    color: hsl(var(--text-primary));
    font-size: 1.4rem;
    padding: 8px 6px;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    line-height: 1;
    flex-shrink: 0;
}

.mobile-burger-btn:active,
.mobile-burger-btn.open {
    background: hsla(var(--accent-primary), 0.15);
    color: hsl(var(--accent-primary));
}

/* ─── Mobile Nav Overlay ─── */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 190;
}

.mobile-nav-overlay.active {
    display: block;
}

/* ─── Mobile Nav Drawer ─── */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    max-width: 85vw;
    background: hsl(var(--bg-widget));
    border-left: 1px solid hsla(var(--glass-border), 0.25);
    z-index: 200;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mobile-nav-drawer.active {
    transform: translateX(0);
}

.mobile-nav-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    height: 60px;
    border-bottom: 1px solid hsla(var(--glass-border), 0.2);
    flex-shrink: 0;
    gap: 0.75rem;
}

.mobile-nav-drawer__logo {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
    cursor: pointer;
}

.mobile-nav-drawer__logo:hover {
    opacity: 0.8;
}

.mobile-nav-drawer__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mobile-nav-drawer__title {
    font-size: 1rem;
    font-weight: 600;
    color: hsl(var(--text-primary));
    flex: 1;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
    display: flex;
    align-items: center;
}

.mobile-nav-drawer__title:hover {
    opacity: 0.8;
}

.mobile-nav-close {
    background: none;
    border: none;
    color: hsl(var(--text-secondary));
    font-size: 1.1rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
    line-height: 1;
}

.mobile-nav-close:active {
    background: hsla(var(--accent-primary), 0.1);
    color: hsl(var(--text-primary));
}

.mobile-nav-items {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.mobile-nav-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.875rem;
    border-radius: 10px;
    text-decoration: none;
    color: hsl(var(--text-primary));
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    transition: background 0.15s;
}

.mobile-nav-profile:hover,
.mobile-nav-profile:active {
    background: hsla(var(--accent-primary), 0.1);
}

.mobile-nav-profile-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: hsla(var(--accent-primary), 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    font-weight: 700;
    font-size: 0.9rem;
    color: hsl(var(--accent-primary));
}

.mobile-nav-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-nav-divider {
    height: 1px;
    background: hsla(var(--glass-border), 0.3);
    margin: 0.375rem 0;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.875rem;
    border-radius: 10px;
    text-decoration: none;
    color: hsl(var(--text-secondary));
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
    border: none;
    background: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

.mobile-nav-link i {
    width: 18px;
    text-align: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: hsla(var(--accent-primary), 0.15);
    color: hsl(var(--accent-primary));
}

.mobile-nav-link--danger {
    color: hsl(0, 70%, 65%);
}

.mobile-nav-link--danger:hover,
.mobile-nav-link--danger:active {
    background: hsla(0, 70%, 50%, 0.12);
    color: hsl(0, 70%, 75%);
}

/* Masquer sur desktop */
@media (min-width: 769px) {
    .mobile-nav-overlay,
    .mobile-nav-drawer,
    .mobile-burger-btn {
        display: none !important;
    }
}

/* ─── Cartes documents ─── */
.document-card {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.document-card__thumb {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    cursor: pointer;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.document-card__body {
    flex: 1;
    min-width: 0;
}

@media (max-width: 768px) {
    /* Documents avec image : disposition colonne (image en haut, pleine largeur) */
    .document-card--image {
        flex-direction: column;
        gap: 0.75rem;
    }

    .document-card--image .document-card__thumb {
        width: 100%;
        height: auto;
    }

    .document-card--image .document-card__thumb img {
        height: auto !important;
        object-fit: contain !important;
    }

    /* Documents sans image : réduit le gap */
    .document-card:not(.document-card--image) {
        gap: 0.75rem;
        align-items: center;
    }

    /* Actions plus grandes pour le touch */
    .document-card .item-actions {
        gap: 0.5rem;
    }

    .document-card .btn-action {
        width: 42px;
        height: 42px;
    }
}

/* ─── Transport form — responsive ─── */
@media (max-width: 768px) {
    /* Type de trajet et équipements : 3 colonnes → 1 colonne */
    .transport-type-grid,
    #equipmentOutbound,
    #equipmentReturn {
        grid-template-columns: 1fr !important;
    }

    /* Panneau billet latéral : largeur fixe → plein écran */
    #billetPanel {
        width: 100% !important;
    }

    /* Boutons sélection/ajout billet : 2 colonnes → 1 colonne */
    .transport-billet-btns {
        grid-template-columns: 1fr !important;
    }

    /* Cards billet : ancrage en haut + boutons empilés verticalement */
    .billet-item {
        align-items: flex-start !important;
    }

    .billet-item > div:last-of-type {
        flex-direction: column !important;
        margin-left: 0.25rem !important;
        flex-shrink: 0;
    }
}

@media (max-width: 768px) {
    .btn {
        font-size: 0.85rem;
    }

    .btn-label-modifier {
        display: none;
    }

    .btn-label-delete {
        display: none;
    }

    .btn-modifier-icon-only span {
        display: none;
    }

    .btn-planning {
        font-size: 0.6rem;
    }
}

/* ─── Transport show : billets — optimisation mobile ─── */
@media (max-width: 768px) {
    .billet-card-section {
        padding: 1rem 0.5rem !important;
    }

    .billet-card-section .grid-layout {
        gap: 0.75rem;
    }

    .data-item--billet {
        padding: 0.75rem 0.6rem;
    }
}

/* ─── Billet show : Fichiers joints ─── */
.billet-attachments {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.billet-attachment {
    padding: 0.75rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid hsla(var(--glass-border), 0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.billet-attachment--image {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
}

.billet-attachment__image-link {
    display: block;
}

.billet-attachment__image {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: 4px;
    display: block;
}

.billet-attachment__row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.billet-attachment__icon {
    color: hsl(var(--text-secondary));
    font-size: 1.1rem;
    flex-shrink: 0;
}

.billet-attachment__info {
    flex: 1;
    min-width: 0;
}

.billet-attachment__name {
    font-size: 0.9rem;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.billet-attachment__meta {
    font-size: 0.78rem;
    color: hsl(var(--text-secondary));
    margin-top: 0.2rem;
}

/* ─── Hébergement show — icônes dates ─── */
.icon-checkin  { color: hsl(145, 60%, 55%); }
.icon-checkout { color: hsl(4, 80%, 72%); }

/* ─── Course logistique ─── */
.tag-recipe {
    background: hsla(145, 60%, 40%, 0.12);
    color: hsl(145, 60%, 55%);
    border-color: hsla(145, 60%, 40%, 0.3);
    gap: 0.4rem;
}
.logistics-section-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: hsl(var(--text-secondary));
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}
.logistics-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Config item tag delete button */
.config-delete-btn {
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0 !important;
    line-height: 1 !important;
    font-size: 1rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 1.2rem !important;
    height: 1.2rem !important;
    position: relative !important;
    top: 0.5px !important;
    transition: all 0.2s ease !important;
}

/* Role person badge */
.role-person-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
}

/* Role person remove button */
.role-person-remove-btn {
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0 !important;
    line-height: 1 !important;
    color: inherit !important;
    opacity: 0.6 !important;
    font-size: 0.8rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    top: 1.5px !important;
    transition: all 0.2s ease !important;
}

.role-person-remove-btn:hover {
    opacity: 1 !important;
}

/* ─── Course form actions ─── */
.course-form-actions {
    padding-top: 1.5rem;
    border-top: 1px solid hsla(var(--glass-border), 0.2);
    display: flex;
    gap: 1rem;
}

.course-form-btn {
    flex: 1;
    padding: 0.875rem;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.course-form-btn--save {
    background: hsl(var(--accent-primary));
    color: white;
}

.course-form-btn--save:hover {
    background: hsla(var(--accent-primary), 0.9);
    box-shadow: 0 4px 12px hsla(var(--accent-primary), 0.3);
}

.course-form-btn--save:active {
    transform: scale(0.98);
}

.course-form-btn--cancel {
    background: transparent;
    border: 1px solid hsla(var(--glass-border), 0.3);
    color: hsl(var(--text-primary));
}

.course-form-btn--cancel:hover {
    background: hsla(var(--glass-border), 0.08);
    border-color: hsla(var(--glass-border), 0.5);
}

.course-form-btn--cancel:active {
    transform: scale(0.98);
}

/* ─── Event form published toggle ─── */
.form-group-published {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.published-label {
    margin: 0;
    cursor: pointer;
    font-weight: 500;
}

/* ─── Document manager hidden duplicate ─── */
.event-documents-section-hidden {
    display: none;
}

/* ─── Course athlete information grid layout ─── */
.athlete-info-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.25rem 1rem;
    align-items: start;
}

.athlete-info-grid-row {
    display: contents;
}

.athlete-info-grid-name {
    font-weight: 500;
    font-size: 0.95rem;
}

.athlete-info-grid-value {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
    font-size: 0.78rem;
    width: fit-content;
    justify-self: start;
}

/* ─── Action buttons for item lists ─── */
.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: hsla(200, 70%, 50%, 0.15);
    border: 1px solid hsla(200, 70%, 50%, 0.3);
    border-radius: 6px;
    color: hsl(200, 70%, 65%);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-action:hover {
    background: hsla(200, 70%, 50%, 0.25);
    transform: scale(1.05);
}

.btn-action-edit {
    background: hsla(160, 60%, 40%, 0.15);
    border-color: hsla(160, 60%, 40%, 0.3);
    color: hsl(160, 60%, 55%);
}

.btn-action-edit:hover {
    background: hsla(160, 60%, 40%, 0.25);
}

.btn-action-delete {
    background: hsla(0, 70%, 50%, 0.15);
    border-color: hsla(0, 70%, 50%, 0.3);
    color: hsl(0, 70%, 65%);
}

.btn-action-delete:hover {
    background: hsla(0, 70%, 50%, 0.25);
}

.item-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .item-actions {
        flex-direction: column;
        gap: 0.35rem;
    }

    .btn-action {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .compatible-recipes-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ─── Course info button ─── */
.course-info-button {
    width: fit-content;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid hsl(var(--accent-primary));
    border-radius: var(--radius-md);
    color: hsl(var(--text-secondary));
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.course-info-button:hover {
    background: hsla(var(--accent-primary), 0.1);
    color: hsl(var(--text-primary));
}

.course-info-button:active {
    transform: scale(0.98);
}

/* ─── Collapsible Participants Section ─── */
.collapsible-participants {
    margin-top: 0.5rem;
}

.collapsible-participants__summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    cursor: pointer;
    user-select: none;
    font-size: 0.8rem;
    font-weight: 600;
    color: hsl(var(--text-secondary));
    list-style: none;
    transition: color 0.2s ease;
}

.collapsible-participants__summary:hover {
    color: hsl(var(--text-primary));
}

.collapsible-participants__chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    font-size: 0.65rem;
}

.collapsible-participants:not([open]) .collapsible-participants__chevron {
    transform: rotate(0deg);
}

.collapsible-participants[open] .collapsible-participants__chevron {
    transform: rotate(90deg);
}

/* Event card title with responsive sizing */
.event-card-title {
    font-weight: 600;
    font-size: 1.3rem;
}

/* Event card content spacing */
.event-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Event planning buttons spacing */
.event-planning-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}

/* ─── Horaire Participant Badge ─── */
.horaire-participant-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    background: hsla(200, 70%, 50%, 0.15);
    border: 1px solid hsla(200, 70%, 50%, 0.3);
    border-radius: 12px;
    font-size: 0.75rem;
    color: hsl(200, 70%, 65%);
}

@media (max-width: 768px) {
    .event-card-title {
        font-size: 1rem;
    }

    /* Hide action buttons for event cards on mobile, but keep the link on event name */
    .data-item:has(.event-card-title) .item-actions {
        display: none;
    }

    /* Hide action buttons for billet and other data item cards on mobile */
    .data-item .item-actions {
        display: none;
    }

    .event-planning-buttons {
        margin-bottom: 1.25rem;
    }

    /* Reduce font size for participant names on mobile to save width */
    .horaire-participant-badge {
        font-size: 0.65rem;
        padding: 0.15rem 0.5rem;
    }

    /* Reduce athlete names in course details for mobile */
    .athlete-info-grid-name {
        font-size: 0.85rem;
    }

    .athlete-info-grid-value {
        font-size: 0.7rem;
        padding: 0.15rem 0.5rem;
    }
}
