/* ==================== PAGE DE CONNEXION ==================== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #5994B8 0%, #3d6d8a 100%);
    padding: 20px;
}

.login-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 50px 40px;
    width: 100%;
    max-width: 420px;
}

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

.login-title {
    font-size: 32px;
    color: #5994B8;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.login-subtitle {
    color: #888;
    font-size: 14px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #565654;
}

.form-group input {
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.form-group input:focus {
    outline: none;
    border-color: #5994B8;
    box-shadow: 0 0 0 3px rgba(89, 148, 184, 0.1);
}

.login-error {
    background: #fee;
    color: #c00;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
}

.login-btn {
    background: #5994B8;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 10px;
}

.login-btn:hover {
    background: #4a7ea0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(89, 148, 184, 0.3);
}

.login-btn:active {
    transform: translateY(0);
}

/* ==================== PAGE MENU ==================== */
.menu-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f5f7fa;
}

.menu-header {
    background: #5994B8;
    padding: 16px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-left {
    display: flex;
    align-items: center;
}

.app-title {
    color: white;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-info {
    color: white;
    font-size: 14px;
    opacity: 0.9;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.header-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    transition: all 0.2s;
    text-decoration: none;
}

.header-icon-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ==================== CONTENU MENU ==================== */
.menu-content {
    flex: 1;
    padding: 40px 30px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.site-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.site-selector label {
    font-size: 16px;
    font-weight: 600;
    color: #565654;
}

.site-selector select {
    padding: 12px 20px;
    font-size: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    min-width: 300px;
    cursor: pointer;
    transition: all 0.2s;
}

.site-selector select:focus {
    outline: none;
    border-color: #5994B8;
    box-shadow: 0 0 0 3px rgba(89, 148, 184, 0.1);
}

.welcome-title {
    text-align: center;
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
}

.welcome-subtitle {
    text-align: center;
    color: #888;
    font-size: 16px;
    margin-bottom: 50px;
}

.menu-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-content: center;
}

.menu-card {
    background: white;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
    text-decoration: none;
    display: block;
}

.menu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: #5994B8;
}

.menu-card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #5994B8 0%, #3d6d8a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.menu-card-icon svg {
    width: 40px;
    height: 40px;
    fill: white;
}

.menu-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.menu-card-description {
    font-size: 14px;
    color: #888;
    line-height: 1.5;
}

.menu-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ==================== FOOTER ==================== */
.menu-footer {
    background: #333;
    color: #888;
    text-align: center;
    padding: 20px;
    font-size: 13px;
}

/* ==================== UTILITAIRES ==================== */
.hidden {
    display: none !important;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .login-container {
        padding: 40px 25px;
    }
    
    .menu-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .menu-content {
        padding: 40px 20px;
    }
    
    .menu-cards {
        grid-template-columns: 1fr;
    }
}
