/* ===================================
   RESET & BASE
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent; /* Supprime le flash bleu/gris au tap sur iOS/Android */
}

/* Rendu de police lissé sur tous les OS */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Scroll fluide global */
html {
    scroll-behavior: smooth;
}

:root {
    --color-primary: #003d7a;
    --color-primary-dark: #002952;
    --color-secondary: #0066cc;
    --color-success: #4caf50;
    --color-warning: #ff9800;
    --color-danger: #f44336;
    --color-info: #2196f3;
    --color-gray-100: #f5f5f5;
    --color-gray-200: #eeeeee;
    --color-gray-300: #e0e0e0;
    --color-gray-400: #bdbdbd;
    --color-gray-600: #757575;
    --color-gray-800: #424242;
    --color-gray-900: #212121;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.15);
    --border-radius: 8px;
    --transition: all 0.2s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--color-gray-100);
    color: var(--color-gray-900);
    line-height: 1.6;
    min-height: 100vh;
}

/* ===================================
   HEADER
   =================================== */
.main-header {
    background: var(--color-primary);
    color: white;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 600;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    gap: 30px;
}

.header-left .logo h1 {
    font-size: 1.5rem;
    margin-bottom: 2px;
}

.header-left .logo .subtitle {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 400;
}

.main-nav {
    display: flex;
    gap: 5px;
    flex: 1;
    justify-content: center;
}

.main-nav a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 500;
    white-space: nowrap;
}

.main-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.main-nav a.active {
    background: rgba(255, 255, 255, 0.2);
}

.header-right .user-menu {
    text-align: right;
}

.user-name {
    display: block;
    font-weight: 600;
    margin-bottom: 2px;
}

.user-role {
    display: block;
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 8px;
}

/* ================================
   LOGO DANS LE HEADER
================================ */

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

.logo-img {
    height: 60px; /* Réduit de 100px à 60px pour ne pas écraser l'espace header */
    width: auto;
    object-fit: contain;
}

.logo-text h1 {
    margin: 0;
    font-size: 1.5rem;
    color: #f7f9fc;
    font-weight: 700;
}

.logo-text .subtitle {
    display: block;
    font-size: 0.75rem;
    color: #7f8c8d;
    margin-top: 2px;
}

/* Responsive : Logo progressif tablette → mobile */
@media (max-width: 900px) {
    .logo-img {
        height: 44px;
    }
}

@media (max-width: 768px) {
    .logo-img {
        height: 38px;
    }

    .logo-text h1 {
        font-size: 1.2rem;
    }

    .logo-text .subtitle {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 32px;
    }
}


/* ===================================
   CONTAINER
   =================================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* ===================================
   CARDS
   =================================== */
.card {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--color-gray-200);
}

.card-header h2 {
    font-size: 1.5rem;
    color: var(--color-primary);
}

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

.stat-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
    border-left: 4px solid var(--color-gray-300);
    transition: var(--transition);
}

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

/* Stat card cliquable (balise <a>) */
a.stat-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    position: relative;
}
a.stat-card-link:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-left-width: 5px;
}
a.stat-card-link:active {
    transform: translateY(-1px);
}

/* Texte d'action affiché au survol */
.stat-hint {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-primary);
    opacity: 0;
    margin-top: 6px;
    transition: opacity 0.2s;
    letter-spacing: 0.02em;
}
a.stat-card-link:hover .stat-hint {
    opacity: 1;
}
/* Couleurs de hint selon la variante */
a.stat-card-link.info:hover .stat-hint   { color: var(--color-info,    #2196f3); }
a.stat-card-link.success:hover .stat-hint{ color: var(--color-success, #4caf50); }
a.stat-card-link.alert:hover .stat-hint  { color: var(--color-warning, #ff9800); }

.stat-card.alert {
    border-left-color: var(--color-warning);
}

.stat-card.success {
    border-left-color: var(--color-success);
}

.stat-card.info {
    border-left-color: var(--color-info);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 10px;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    color: var(--color-gray-600);
    margin-bottom: 15px;
}

.stat-link {
    display: inline-block;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 10px;
    transition: var(--transition);
}

.stat-link:hover {
    color: var(--color-secondary);
}

/* ===================================
   TABLES
   =================================== */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.table thead {
    background: var(--color-primary);
    color: white;
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--color-gray-200);
}

.table th {
    font-weight: 600;
    white-space: nowrap;
}

.table tbody tr {
    transition: var(--transition);
}

.table tbody tr:hover {
    background: var(--color-gray-100);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table-compact td,
.table-compact th {
    padding: 8px 12px;
    font-size: 0.9rem;
}

/* ===================================
   BUTTONS
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    min-height: 44px; /* cible de tap minimum recommandée */
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.95rem;
    text-align: center;
    touch-action: manipulation; /* supprime le double-tap zoom sur mobile */
}

.btn:hover {
    background: var(--color-primary-dark);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary { background: var(--color-primary); }
.btn-primary:hover { background: var(--color-primary-dark); }

.btn-success { background: var(--color-success); }
.btn-success:hover { background: #45a049; }

.btn-danger { background: var(--color-danger); }
.btn-danger:hover { background: #da190b; }

.btn-warning { background: var(--color-warning); }
.btn-warning:hover { background: #e68900; }

.btn-info { background: var(--color-info); }
.btn-info:hover { background: #0b7dda; }

.btn-sm {
    padding: 6px 14px;
    font-size: 0.85rem;
    min-height: 36px;
}

.btn-block {
    width: 100%;
    display: block;
}

.btn-logout {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ===================================
   BADGES
   =================================== */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-en_attente {
    background: #fff3cd;
    color: #856404;
}

.badge-valide {
    background: #d4edda;
    color: #155724;
}

.badge-refuse {
    background: #f8d7da;
    color: #721c24;
}

.badge-planifie {
    background: #d1ecf1;
    color: #0c5460;
}

.badge-en_cours {
    background: #fff3cd;
    color: #856404;
}

.badge-termine {
    background: #d4edda;
    color: #155724;
}

.badge-archive {
    background: #e2e3e5;
    color: #383d41;
}

/* ===================================
   PROGRESS BAR
   =================================== */
.progress-container {
    position: relative;
    width: 150px;
    height: 25px;
    background: var(--color-gray-200);
    border-radius: 12px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--color-success), #66bb6a);
    transition: width 0.3s ease;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-gray-900);
}

/* ===================================
   FORMS
   =================================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--color-gray-800);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--color-gray-300);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 61, 122, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

/* ===================================
   EMPTY STATE
   =================================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--color-gray-600);
}

.empty-state p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* ===================================
   PAGE HEADER
   =================================== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 2rem;
    color: var(--color-primary);
}

.subtitle {
    font-size: 1rem;
    color: var(--color-gray-600);
    font-weight: 400;
}

.date-display {
    background: white;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

/* ===================================
   ALERTS
   =================================== */
.alert {
    padding: 15px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    border-left: 4px solid;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left-color: var(--color-success);
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border-left-color: var(--color-danger);
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-left-color: var(--color-warning);
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-left-color: var(--color-info);
}

/* ===================================
   LOGIN PAGE
   =================================== */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 450px;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 5px;
}

.login-header p {
    color: var(--color-gray-600);
}

.login-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--color-gray-300);
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-gray-600);
}

.login-footer p {
    margin-bottom: 5px;
}

/* ===================================
   FILTERS
   =================================== */
.filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filters .btn {
    background: white;
    color: var(--color-primary);
    border: 2px solid var(--color-gray-300);
}

.filters .btn:hover {
    background: var(--color-gray-100);
    border-color: var(--color-primary);
}

.filters .btn.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* ===================================
   MODAL
   =================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    animation: fadeIn 0.2s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    margin: 3% auto;
    padding: 30px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: var(--border-radius);
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content.modal-large {
    max-width: 900px;
}

.modal-content h2 {
    color: var(--color-primary);
    margin-bottom: 25px;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    color: var(--color-gray-600);
    line-height: 1;
    transition: var(--transition);
}

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

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 1024px) and (min-width: 901px) {
    .main-header .container {
        flex-wrap: wrap;
        gap: 10px;
    }
    .main-nav {
        justify-content: flex-start;
        overflow-x: auto;
        width: 100%;
        order: 3;
        padding-bottom: 4px;
    }
    .header-left { flex: 1; }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .table {
        font-size: 0.85rem;
    }
    
    .table th,
    .table td {
        padding: 8px;
    }
    
    .main-nav {
        flex-direction: column;
        width: 100%;
    }
    
    .main-nav a {
        width: 100%;
        text-align: center;
    }
    
    .modal-content {
        width: 95%;
        padding: 20px;
        margin: 10% auto;
    }
}

/* ===================================
   UTILITY CLASSES
   =================================== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.hidden { display: none; }

/* ================================
   BOUTONS D'ACTION
================================ */

.btn-warning {
    background: #f39c12;
    color: white;
}

.btn-warning:hover {
    background: #e67e22;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

/* Icônes dans les boutons */
.btn-sm {
    padding: 5px 10px;
    font-size: 0.9rem;
    min-width: 35px;
}

/* === MENU UTILISATEUR AMÉLIORÉ === */
.user-menu {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.user-btn:hover {
    background: #f8f9fa;
    border-color: #0066cc;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,102,204,0.1);
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.user-name {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.user-role {
    font-size: 12px;
    color: #666;
    text-transform: capitalize;
}

.dropdown-arrow {
    color: #666;
    font-size: 10px;
    transition: transform 0.3s ease;
}

.user-btn:hover .dropdown-arrow {
    color: #0066cc;
}

/* Menu déroulant */
.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 15px;
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: white;
    border-radius: 8px 8px 0 0;
}

.dropdown-header strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
}

.dropdown-header small {
    display: block;
    opacity: 0.9;
    font-size: 12px;
}

.user-dropdown hr {
    margin: 0;
    border: none;
    border-top: 1px solid #e0e0e0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: #f8f9fa;
    color: #0066cc;
}

.dropdown-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.logout-item {
    color: #dc3545;
}

.logout-item:hover {
    background: #fff5f5;
    color: #c82333;
}

/* Animation de rotation de la flèche */
.user-dropdown.show ~ .user-btn .dropdown-arrow {
    transform: rotate(180deg);
}

/* Responsive */
@media (max-width: 768px) {
    .user-btn {
        padding: 6px 12px;
    }
    
    .user-info {
        display: none;
    }
    
    .user-btn::before {
        content: "👤";
        font-size: 20px;
    }
    
    .dropdown-arrow {
        display: none;
    }
}







/* ===================================
   PAGE CHANGEMENT MOT DE PASSE
   =================================== */

.justify-content-center {
    display: flex;
    justify-content: center;
}

.col-md-6 {
    width: 100%;
    max-width: 600px;
}

.mb-3 {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #495057;
    font-size: 14px;
}

.toggle-password {
    transition: opacity 0.2s;
}

.toggle-password:hover {
    opacity: 0.7;
}

#strength-indicator {
    animation: fadeIn 0.3s;
}

#match-indicator {
    display: block;
    margin-top: 8px;
    font-weight: 500;
    animation: fadeIn 0.3s;
}

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

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.alert-info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.alert-info strong {
    color: #0c5460;
}

.alert-info ul li {
    margin: 5px 0;
}

.main-footer {
    background: var(--color-primary);
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border-left-color: var(--color-danger);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--color-danger);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.nav-item-with-badge {
    position: relative;
    display: inline-block;
}

/* ===================================
   CLOCHE AVEC POINT ROUGE ANIMÉ
   =================================== */
.nav-bell {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.bell-wrapper {
    position: relative;
    display: inline-block;
    font-size: 1.1em;
    line-height: 1;
}

.bell-dot {
    position: absolute;
    top: -3px;
    right: -4px;
    width: 10px;
    height: 10px;
    background: #e74c3c;
    border-radius: 50%;
    border: 2px solid var(--color-primary);
    animation: bell-pulse 1.8s ease-in-out infinite;
}

@keyframes bell-pulse {
    0%   { transform: scale(1);   box-shadow: 0 0 0 0 rgba(231,76,60,0.7); }
    50%  { transform: scale(1.15); box-shadow: 0 0 0 5px rgba(231,76,60,0); }
    100% { transform: scale(1);   box-shadow: 0 0 0 0 rgba(231,76,60,0); }
}

.bell-label {
    /* Masqué sur très petits écrans, visible sur desktop */
    display: inline;
}

/* ===================================
   HAMBURGER MENU MOBILE
   =================================== */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;  /* cible de tap minimum recommandée Apple/Google */
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 11px 7px;
    z-index: 200;
    border-radius: var(--border-radius);
    transition: background 0.2s;
}
.hamburger-btn:active { background: rgba(255,255,255,0.15); }

.hamburger-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger-btn.open span:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}
.hamburger-btn.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger-btn.open span:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}

/* ===================================
   TOASTS NOTIFICATIONS (index.php)
   =================================== */
#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    max-width: 360px;
    width: 90%;
}

.notif-toast {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: white;
    border-left: 4px solid #e74c3c;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    padding: 14px 16px 18px 16px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: auto;
}

.notif-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-icon { font-size: 1.3rem; flex-shrink: 0; }
.toast-msg  { font-size: 0.88rem; color: #333; flex: 1; line-height: 1.4; }

.toast-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #999;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.2s;
}
.toast-close:hover { color: #e74c3c; }

.toast-progress {
    position: absolute;
    bottom: 0; left: 0;
    height: 3px;
    width: 100%;
    background: #e74c3c;
    border-radius: 0 0 8px 8px;
    transition: width 10s linear;
}

/* ===================================
   MOBILE - RESPONSIVE AMÉLIORÉ
   =================================== */
@media (max-width: 900px) {
    .hamburger-btn {
        display: flex;
    }

    .main-header .container {
        flex-wrap: wrap;
        padding: 12px 16px;
        gap: 10px;
    }

    .header-left { flex: 1; }
    .header-right { order: 2; }

    .main-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        order: 3;
        background: rgba(0,0,0,0.15);
        border-radius: var(--border-radius);
        padding: 8px 0;
        gap: 2px;
    }

    .main-nav.mobile-open {
        display: flex;
    }

    .main-nav a {
        width: 100%;
        padding: 12px 20px;
        border-radius: 6px;
        text-align: left;
        font-size: 0.95rem;
    }

    .bell-dot { top: -2px; right: -2px; }
}

@media (max-width: 768px) {
    /* Container plus compact */
    .container { padding: 12px; }

    /* Tableaux : scroll horizontal sur mobile */
    .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .table { font-size: 0.8rem; }
    .table th, .table td { padding: 8px 6px; white-space: nowrap; }

    /* Cards */
    .card { padding: 16px; }
    .card-header { flex-direction: column; align-items: flex-start; gap: 10px; }

    /* Stats grid */
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .stat-card { padding: 18px 12px; }
    .stat-number { font-size: 2rem; }

    /* Page header */
    .page-header { flex-direction: column; align-items: flex-start; gap: 10px; }
    .page-header h1 { font-size: 1.5rem; }
    .date-display { font-size: 0.85rem; padding: 8px 14px; }

    /* Boutons */
    .btn { padding: 9px 16px; font-size: 0.9rem; }
    .btn-sm { padding: 5px 10px; font-size: 0.8rem; }

    /* Filtres */
    .filters { flex-wrap: wrap; gap: 6px; }
    .filters .btn { font-size: 0.8rem; padding: 7px 12px; }

    /* Formulaires */
    .form-row { grid-template-columns: 1fr; }

    /* Modals */
    .modal-content { width: 96%; padding: 18px; margin: 5% auto; }

    /* Toast en bas à gauche sur mobile */
    #toast-container { bottom: 16px; right: 16px; left: 16px; width: auto; max-width: 100%; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .logo-text .subtitle { display: none; }
    .user-info { display: none; }

    /* Calendrier simplifié */
    .calendar-day { min-height: 55px; padding: 3px; }
    .calendar-day-number { font-size: 0.75rem; }
    .calendar-day-header { font-size: 0.7rem; padding: 6px 2px; }
    /* Absence : barre colorée compacte sans texte */
    .absence-item {
        display: block !important;
        height: 5px;
        padding: 0;
        margin: 1px 0;
        font-size: 0;
        line-height: 0;
        overflow: hidden;
        border-left: none;
        border-radius: 2px;
        white-space: nowrap;
    }
}

/* ===================================
   AMÉLIORATIONS MOBILES GLOBALES
   =================================== */

/* Stats grid : 2 colonnes sur tablette */
@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* Tableaux scrollables — le wrapper force un scroll propre */
.table-responsive {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

/* Sur mobile, les lignes de formulaires passent en 1 colonne */
@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    /* Buttons groupés en colonne sur très petit */
    .btn-group-mobile {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .btn-group-mobile .btn {
        width: 100%;
        text-align: center;
    }
}

/* Padding container encore plus compact sur téléphone */
@media (max-width: 480px) {
    .container { padding: 10px; }
    .card { padding: 14px; }
    .stat-card { padding: 14px 10px; }
    .stat-number { font-size: 1.7rem; }
    .stat-label { font-size: 0.82rem; }

    /* Page headers plus compacts */
    .page-header h1 { font-size: 1.3rem; }

    /* Modals plein écran sur mobile */
    .modal-content {
        width: 100%;
        margin: 0;
        border-radius: 0;
        min-height: 100vh;
        max-height: 100vh;
    }
}

/* ===================================
   OPTIMISATION MOBILE COMPLÈTE
   =================================== */

/* ── Filtres : passage en colonne sur petit écran ── */
@media (max-width: 640px) {
    .filters {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .filters label { display: none; }
    .filters input[type="month"] { width: 100%; }
    .filters .btn { text-align: center; }
    .filters .btn-success { margin-left: 0 !important; }
}

/* ── Tableau heures : masquer colonnes secondaires sur mobile ── */
@media (max-width: 768px) {
    /* Masquer colonnes peu utiles sur mobile */
    .table th.col-hide-mobile,
    .table td.col-hide-mobile { display: none; }

    /* Tableau plus compact */
    .table th, .table td {
        padding: 8px 6px;
        font-size: 0.8rem;
    }

    /* Badge statut plus petit */
    .badge { font-size: 0.72rem; padding: 3px 7px; }

    /* Page-header empilé */
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .page-header h1 { font-size: 1.25rem; }
    .page-header .btn { width: 100%; text-align: center; }
}

/* ── Tableau heures : vue carte sur très petit écran ── */
@media (max-width: 540px) {
    /* Transformer le tableau en liste de cartes */
    .table-card-mobile thead { display: none; }
    .table-card-mobile tbody tr {
        display: block;
        background: white;
        border: 1px solid #e8eaed;
        border-radius: 10px;
        margin-bottom: 10px;
        padding: 10px 12px;
        box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    }
    .table-card-mobile tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 5px 0;
        border: none;
        font-size: 0.83rem;
        border-bottom: 1px solid #f5f5f5;
    }
    .table-card-mobile tbody td:last-child { border-bottom: none; }
    .table-card-mobile tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #888;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        flex-shrink: 0;
        margin-right: 8px;
    }
    /* Masquer les colonnes vides sur mobile */
    .table-card-mobile tbody td:empty { display: none; }
}

/* ── Formulaires modaux plein écran sur mobile ── */
@media (max-width: 540px) {
    .modal-content {
        margin: 0 !important;
        border-radius: 14px 14px 0 0 !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100% !important;
        max-height: 92vh;
        overflow-y: auto;
        min-height: auto !important;
    }
    .modal-body { padding: 16px; }
    .modal-header { padding: 14px 16px; }
    .modal-footer { padding: 12px 16px; flex-direction: column; gap: 8px; }
    .modal-footer .btn { width: 100%; }
}

/* ── Calendrier index.php : plus compact ── */
@media (max-width: 600px) {
    .calendar-day {
        min-height: 56px !important;
        padding: 3px !important;
        font-size: 0.7rem !important;
    }
    .calendar-day .day-num { font-size: 0.75rem; }
    /* Masquer les noms de type (trop long) et garder juste les points colorés */
    .calendar-absence-item span.abs-label { display: none; }
    .ferie-label { font-size: 0.6rem; }
}

/* ── Validation : cartes empilées proprement ── */
@media (max-width: 600px) {
    .req-card-header {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    .req-card-body {
        grid-template-columns: 1fr !important;
    }
    .req-card-footer {
        flex-direction: column;
        align-items: stretch;
    }
    .req-card-footer .btn { width: 100%; text-align: center; }
    .val-heures-edit-grid { gap: 8px; }
}

/* ── Historique : tableau défilable + compact ── */
@media (max-width: 640px) {
    .history-table { font-size: 0.78rem; }
    .history-table th,
    .history-table td { padding: 7px 5px; }
    /* Actions : icônes sans texte */
    .history-table .btn-action span { display: none; }
}

/* ── Absences : formulaire de demande ── */
@media (max-width: 600px) {
    .abs-layout { grid-template-columns: 1fr; }
    .demi-radios { flex-direction: column; gap: 6px; }
    .demi-radio-lbl { width: 100%; justify-content: flex-start; }
}

/* ── Dashboard RH : graphiques empilés ── */
@media (max-width: 640px) {
    .rh-charts-grid { grid-template-columns: 1fr !important; }
    .val-stat-card { padding: 12px 14px; }
}

/* ── Export : boutons d'action groupés ── */
@media (max-width: 600px) {
    .export-controls { flex-direction: column; gap: 8px; }
    .export-controls .btn { width: 100%; }
}

/* ── Navigation : onglets scrollables ── */
@media (max-width: 540px) {
    .val-tabs { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
    .val-tab-btn { white-space: nowrap; min-width: fit-content; }
    /* Titres de section */
    .section-title { font-size: 1rem; }
}

/* ── Boutons d'action inline : empiler sur mobile ── */
@media (max-width: 480px) {
    .btn-group-inline { display: flex; flex-direction: column; gap: 6px; width: 100%; }
    .btn-group-inline .btn { width: 100%; text-align: center; }
    /* Réduire padding des stat-cards */
    .val-stat-card { gap: 10px; padding: 12px; }
    .val-stat-icon { font-size: 1.6rem; }
    .val-stat-num  { font-size: 1.5rem; }
    /* Login box : padding réduit sur petits téléphones */
    .login-box { padding: 24px 20px; }
    .login-header h1 { font-size: 1.6rem; }
}

/* ===================================
   AMÉLIORATIONS MOBILES AVANCÉES
   =================================== */

/* Safe area iPhone (notch, Dynamic Island, barre home) */
@supports (padding: env(safe-area-inset-top)) {
    .main-header {
        padding-top: env(safe-area-inset-top);
    }
    body {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* Inputs et selects : cible de tap 44px + no-zoom iOS */
input, select, textarea, button {
    touch-action: manipulation;
}
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="month"],
select,
textarea {
    min-height: 44px;
    font-size: 16px; /* Empêche le zoom automatique d'iOS sur les inputs */
}

/* Sur desktop uniquement, revenir aux tailles d'origine */
@media (min-width: 769px) {
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"],
    input[type="number"],
    input[type="date"],
    input[type="time"],
    input[type="month"],
    select,
    textarea {
        font-size: 1rem;
        min-height: unset;
    }
}

/* Liens de navigation : cible de tap agrandie */
.main-nav a {
    min-height: 44px;
}

/* Retour visuel au tap (état actif) sur éléments interactifs */
.btn:active       { transform: scale(0.97); }
.main-nav a:active { background: rgba(255,255,255,0.2); }
a.nav-dropdown-link:active { background: #e8eef4; }

/* Images responsives par défaut */
img {
    max-width: 100%;
    height: auto;
}

/* Overflow-x global pour éviter tout débordement involontaire */
body {
    overflow-x: hidden;
}

/* Meilleure lisibilité mobile : espacement dans les cartes */
@media (max-width: 480px) {
    .card { border-radius: 10px; }
    .page-header h1 { font-size: 1.3rem; }
    .stat-number { font-size: 1.8rem; }
    .stat-card { padding: 20px 14px; }
    /* Boutons pleine largeur dans les formulaires sur petit écran */
    .form-actions { flex-direction: column; gap: 8px; }
    .form-actions .btn { width: 100%; }
    /* Header : réduire le gap logo sur petit écran */
    .logo { gap: 8px; }
}

/* ===================================
   SAFE-AREA FOOTER (iPhone notch / home bar)
   =================================== */
@supports (padding: env(safe-area-inset-bottom)) {
    .main-footer {
        padding-bottom: calc(20px + env(safe-area-inset-bottom));
    }
}

/* ===================================
   TABLES RESPONSIVES (scroll horizontal)
   =================================== */
@media (max-width: 768px) {
    /* Wrapping automatique des tableaux admin / export / validation */
    .table-responsive-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 8px;
    }
    /* Réduit les cellules sur petit écran */
    table th, table td {
        font-size: 0.82rem;
        padding: 8px 10px;
        white-space: nowrap;
    }
    /* Empêche les colonnes "action" de rétrécir */
    table td:last-child, table th:last-child {
        white-space: nowrap;
    }
}

/* ===================================
   ADMIN : onglets scrollables sur mobile
   =================================== */
@media (max-width: 768px) {
    .tabs-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        padding-bottom: 4px;
        gap: 4px;
    }
    .tabs-nav .tab-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }
    /* Filtres en colonne sur petit écran */
    .admin-filters-row {
        flex-direction: column;
        gap: 8px;
    }
    .admin-filters-row input,
    .admin-filters-row select {
        width: 100%;
    }
}

/* ===================================
   EXPORT : filtres en colonne sur mobile
   =================================== */
@media (max-width: 640px) {
    .export-filters-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .export-filters-bar input,
    .export-filters-bar select,
    .export-filters-bar button {
        width: 100%;
    }
    .export-actions {
        flex-direction: column;
        gap: 8px;
    }
    .export-actions form {
        width: 100%;
    }
    .export-actions form .btn {
        width: 100%;
    }
}

/* ===================================
   CHART.JS — CANVAS RESPONSIVE
   =================================== */
/* Empêche les canvas de déborder de leur conteneur sur mobile */
canvas {
    max-width: 100% !important;
}

/* ===================================
   CHECKBOXES & RADIOS — CIBLE DE TAP 44px
   =================================== */
/* Agrandit la zone cliquable des checkboxes et radios sur mobile */
@media (max-width: 900px) {
    .form-check,
    .radio-group label,
    .demi-radio-lbl {
        min-height: 44px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    input[type="checkbox"],
    input[type="radio"] {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
        cursor: pointer;
        accent-color: var(--color-primary);
    }
}

/* ===================================
   MENTIONS LÉGALES — TABLES RESPONSIVE
   =================================== */
.ml-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 12px 0;
    border-radius: 6px;
}

@media (max-width: 640px) {
    .ml-table {
        font-size: 0.80rem;
        white-space: nowrap;
    }
    .ml-table th,
    .ml-table td {
        padding: 8px 10px;
    }
}

/* ===================================
   DASHBOARD RH — GRILLE GRAPHIQUES
   =================================== */
.rh-charts-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.rh-tables-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .rh-charts-row,
    .rh-tables-row {
        grid-template-columns: 1fr;
    }
}


/* ============================================================
   BOTTOM NAVIGATION — Mobile uniquement (≤ 900px)
   Remplace le menu hamburger pour une navigation style app
   ============================================================ */

/* ── Masqués par défaut sur TOUS les écrans ── */
.bottom-nav {
    display: none;
}
.bottom-outils-sheet {
    display: none;
}

/* ── Animations déclarées globalement (hors @media) ── */
@keyframes bn-fadeBackdrop {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes bn-slidePanel {
    from { transform: translateY(30px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* ── Styles mobiles ── */
@media (max-width: 900px) {

    /* Cache le hamburger : la bottom nav le remplace */
    .hamburger-btn {
        display: none !important;
    }

    /* Padding bas du contenu pour ne pas passer sous la barre */
    .main-content {
        padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px));
    }

    /* ── Barre fixe en bas ── */
    .bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 900;
        background: var(--color-primary, #1a237e);
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        padding-bottom: env(safe-area-inset-bottom, 0px);
        box-shadow: 0 -3px 16px rgba(0, 0, 0, 0.25);
    }

    /* ── Item (lien ou bouton) ── */
    .bn-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 7px 2px 5px;
        color: rgba(255, 255, 255, 0.62);
        text-decoration: none;
        gap: 3px;
        background: none;
        border: none;
        cursor: pointer;
        font-family: inherit;
        touch-action: manipulation;
        transition: color 0.15s, background 0.15s;
        min-height: 54px;
        position: relative;
        -webkit-tap-highlight-color: transparent;
    }
    .bn-item:hover {
        color: rgba(255, 255, 255, 0.9);
        background: rgba(255, 255, 255, 0.08);
    }
    .bn-item.active {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.12);
    }

    /* Indicateur actif : trait blanc en haut de l'item */
    .bn-item.active::before {
        content: '';
        position: absolute;
        top: 0;
        left: 18%;
        right: 18%;
        height: 2.5px;
        background: #ffffff;
        border-radius: 0 0 3px 3px;
    }

    .bn-icon  { font-size: 1.25rem; line-height: 1; }
    .bn-label {
        font-size: 0.58rem;
        font-weight: 600;
        letter-spacing: 0.02em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        padding: 0 1px;
        text-transform: uppercase;
    }

    /* Badge notifications */
    .bn-badge {
        position: absolute;
        top: 4px;
        right: calc(50% - 20px);
        background: #e74c3c;
        color: #fff;
        border-radius: 10px;
        font-size: 0.58rem;
        padding: 1px 5px;
        min-width: 16px;
        text-align: center;
        font-weight: 700;
        line-height: 1.4;
        border: 1.5px solid var(--color-primary, #1a237e);
    }

    /* ── Sheet Outils ── */
    .bottom-outils-sheet {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 1050;
    }
    .bottom-outils-sheet.open {
        display: block;
    }

    .bottom-outils-backdrop {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        animation: bn-fadeBackdrop 0.2s ease;
    }

    .bottom-outils-panel {
        position: absolute;
        bottom: calc(58px + env(safe-area-inset-bottom, 0px));
        left: 0;
        right: 0;
        background: #fff;
        border-radius: 16px 16px 0 0;
        overflow: hidden;
        box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.18);
        animation: bn-slidePanel 0.22s cubic-bezier(0.34, 1.2, 0.64, 1);
    }

    /* Poignée visuelle */
    .bottom-outils-panel::before {
        content: '';
        display: block;
        width: 36px;
        height: 4px;
        background: #dde3ea;
        border-radius: 2px;
        margin: 10px auto 4px;
    }

    .bottom-outils-panel-header {
        padding: 6px 18px 10px;
        font-size: 0.78rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: #999;
        border-bottom: 1px solid #f0f0f0;
    }

    .bottom-outils-link {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 14px 20px;
        color: #2c3e50;
        text-decoration: none;
        font-size: 0.95rem;
        font-weight: 500;
        transition: background 0.12s;
        -webkit-tap-highlight-color: transparent;
    }
    .bottom-outils-link:active,
    .bottom-outils-link:hover {
        background: #f0f4f8;
    }
    .bottom-outils-link .bo-icon {
        font-size: 1.15rem;
        width: 28px;
        text-align: center;
        flex-shrink: 0;
    }

    /* Sous-menu mobile (Compound MRS) */
    .bottom-outils-submenu {
        border-top: 1px solid #e2e8f0;
        margin-top: 4px;
        padding-top: 4px;
    }
    .bottom-outils-submenu-title {
        padding: 10px 20px 4px;
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: #94a3b8;
    }
    .bottom-outils-sublink {
        padding-left: 40px !important;
        font-size: 0.92rem !important;
    }
}

/* ============================================================
   FIXES MOBILE — Audit Mars 2026
   ============================================================ */

/* #3 — Colonnes TOTAL sticky à droite dans le tableau pivot (mobile) */
.pivot-table th.th-total,
.pivot-table td.td-total {
    position: -webkit-sticky;
    position: sticky;
    right: 0;
    z-index: 3;
    background: #16a085;
}
.pivot-table td.td-total {
    background: #f0faf7;
    border-left: 2px solid #16a085;
    font-weight: 700;
}
.pivot-table tfoot td.td-total {
    background: #2c3e50;
}
/* 2ème colonne total (paniers) décalée */
.pivot-table th.th-total-pan,
.pivot-table td.td-total-pan {
    position: -webkit-sticky;
    position: sticky;
    right: 0;
    z-index: 3;
}

/* #7 — Police minimum lisible dans les tableaux pivot (mobile) */
@media (max-width: 768px) {
    .pivot-table { font-size: max(0.75rem, 12px); }
}
@media (max-width: 480px) {
    .pivot-table { font-size: max(0.7rem, 11.5px); }
}

/* #8 — Z-index : modales toujours au-dessus de la bottom nav */
@media (max-width: 900px) {
    .modal {
        z-index: 1100 !important;
    }
    .modal-content {
        z-index: 1101;
    }
}

/* #9 — Toasts au-dessus de la bottom nav mobile */
@media (max-width: 900px) {
    #toast-container {
        bottom: calc(70px + env(safe-area-inset-bottom, 0px));
    }
}

/* #10 — Max-height modales adaptée aux petits écrans */
@media (max-height: 667px) {
    .modal-content {
        max-height: 85vh;
        overflow-y: auto;
    }
}
@media (max-height: 568px) {
    .modal-content {
        max-height: 80vh;
        margin-top: 2vh !important;
        margin-bottom: 2vh !important;
    }
}
