/* Sidebar Moderne - Design System Unifié */
.sidebar-modern {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
    border-right: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.05);
}

.sidebar-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(26, 54, 93, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(26, 54, 93, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

/* Logo Section */
.sidebar-logo-section {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
    z-index: 2;
}

/* Logo Link Moderne */
.logo-link-modern {
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.logo-link-modern:hover {
    transform: translateY(-2px);
}

.logo-link-modern:hover .logo-container-modern {
    box-shadow: 0 15px 35px rgba(26, 54, 93, 0.15);
}

.logo-container-modern {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    background: white;
    border-radius: 1rem;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.logo-container-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.02) 0%, rgba(44, 82, 130, 0.01) 100%);
    pointer-events: none;
}

/* Logo Image Wrapper */
.logo-image-wrapper {
    position: relative;
    margin-right: 1rem;
    flex-shrink: 0;
}

.logo-image-modern {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.logo-shine {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, transparent 50%);
    border-radius: 0.75rem;
    pointer-events: none;
    animation: logoShine 4s ease-in-out infinite;
}

@keyframes logoShine {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* Logo Content */
.logo-content {
    flex: 1;
    min-width: 0;
}

.logo-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a365d;
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 50%, #2b6cb0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-subtitle {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}

.logo-subtitle i {
    color: #1a365d;
    font-size: 0.625rem;
}

/* Navigation Header */
.sidebar-nav-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
    z-index: 2;
    width: 100%;
}

.nav-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 50%, #2b6cb0 100%);
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(26, 54, 93, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    width: 100%;
}

.nav-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a365d;
    margin: 0;
    line-height: 1.3;
}

/* Navigation Section */
.sidebar-navigation {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}

.nav-section-modern {
    position: relative;
}

/* Navigation Links Modern */
.nav-links-modern {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.nav-link-modern {
    display: flex;
    align-items: center;
    padding: 1rem;
    text-decoration: none;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(26, 54, 93, 0.05), transparent);
    transition: left 0.6s ease;
}

.nav-link-modern:hover::before {
    left: 100%;
}

.nav-link-modern:hover {
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.05) 0%, rgba(44, 82, 130, 0.03) 100%);
    border-color: #cbd5e1;
    transform: translateX(4px);
    box-shadow: 0 8px 25px rgba(26, 54, 93, 0.1);
}

/* Nav Icon Wrapper */
.nav-icon-wrapper {
    position: relative;
    margin-right: 1rem;
    flex-shrink: 0;
}

.nav-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 50%, #2b6cb0 100%);
    color: white;
    font-size: 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(26, 54, 93, 0.2);
}

.nav-link-modern:hover .nav-icon {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(26, 54, 93, 0.3);
}

.nav-icon-shine {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    border-radius: 0.5rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link-modern:hover .nav-icon-shine {
    opacity: 1;
}

/* Nav Content */
.nav-content {
    flex: 1;
    min-width: 0;
}

.nav-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a365d;
    margin-bottom: 0.125rem;
    line-height: 1.3;
}

.nav-description {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
    line-height: 1.3;
}

/* Navigation Auth */
.nav-auth-modern {
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.auth-btn-modern {
    padding: 0.75rem 1.5rem !important;
    border-radius: 0.75rem !important;
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 50%, #2b6cb0 100%) !important;
    color: white !important;
    border: none !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
    box-shadow: 0 6px 20px rgba(26, 54, 93, 0.3) !important;
}

.auth-btn-modern:hover {
    background: linear-gradient(135deg, #2c5282 0%, #2b6cb0 50%, #3182ce 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 30px rgba(26, 54, 93, 0.4) !important;
}

/* Content Section */
.sidebar-content-section {
    padding: 1.5rem;
    flex: 1;
    position: relative;
    z-index: 2;
}

.sommaire-container-modern {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1rem;
    transition: all 0.3s ease;
}

.sommaire-container-modern:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Footer Section */
.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid #e2e8f0;
    position: relative;
    z-index: 2;
}

.footer-brand {
    text-align: center;
}

.brand-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 0.75rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.brand-link:hover {
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.02) 0%, rgba(44, 82, 130, 0.01) 100%);
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.brand-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-right: 0.75rem;
    border-radius: 0.5rem;
}

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

.brand-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 0.125rem;
    line-height: 1.2;
}

.brand-tagline {
    font-size: 0.625rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 0.125rem;
    line-height: 1.2;
}

.brand-author {
    font-size: 0.5625rem;
    color: #94a3b8;
    font-style: italic;
    line-height: 1.2;
}

/* Animations */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

.animate-fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in-up-delay-1 {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease 0.1s forwards;
}

.animate-fade-in-up-delay-2 {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease 0.2s forwards;
}

.animate-fade-in-up-delay-3 {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease 0.3s forwards;
}

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

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .logo-title {
        font-size: 1rem;
    }
    
    .logo-subtitle {
        font-size: 0.6875rem;
    }
    
    .nav-label {
        font-size: 0.8125rem;
    }
    
    .nav-description {
        font-size: 0.6875rem;
    }
}

@media (max-width: 992px) {
    .sidebar-logo-section {
        padding: 1.5rem 1rem;
    }
    
    .logo-container-modern {
        padding: 1rem;
    }
    
    .logo-image-modern {
        width: 50px;
        height: 50px;
    }
    
    .logo-title {
        font-size: 0.9375rem;
    }
    
    .logo-subtitle {
        font-size: 0.625rem;
    }
    
    .sidebar-nav-header,
    .sidebar-navigation,
    .sidebar-content-section,
    .sidebar-footer {
        padding: 1rem;
    }
    
    .nav-icon {
        width: 35px;
        height: 35px;
        font-size: 0.875rem;
    }
    
    .nav-label {
        font-size: 0.75rem;
    }
    
    .nav-description {
        font-size: 0.625rem;
    }
    
    .brand-logo {
        width: 35px;
        height: 35px;
    }
    
    .brand-name {
        font-size: 0.75rem;
    }
    
    .brand-tagline {
        font-size: 0.5625rem;
    }
    
    .brand-author {
        font-size: 0.5rem;
    }
}

@media (max-width: 768px) {
    .sidebar-modern {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }
    
    .sidebar-logo-section {
        padding: 1rem;
    }
    
    .logo-container-modern {
        padding: 0.75rem;
        flex-direction: column;
        text-align: center;
    }
    
    .logo-image-wrapper {
        margin-right: 0;
        margin-bottom: 0.75rem;
    }
    
    .logo-image-modern {
        width: 45px;
        height: 45px;
    }
    
    .logo-title {
        font-size: 0.875rem;
    }
    
    .logo-subtitle {
        font-size: 0.5625rem;
        justify-content: center;
    }
    
    .sidebar-nav-header,
    .sidebar-navigation,
    .sidebar-content-section,
    .sidebar-footer {
        padding: 0.75rem;
    }
    
    .nav-link-modern {
        padding: 0.75rem;
    }
    
    .nav-icon {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }
    
    .nav-label {
        font-size: 0.6875rem;
    }
    
    .nav-description {
        font-size: 0.5625rem;
    }
    
    .auth-btn-modern {
        padding: 0.5rem 1rem !important;
        font-size: 0.75rem !important;
    }
    
    .brand-link {
        flex-direction: column;
        padding: 0.5rem;
    }
    
    .brand-logo {
        width: 30px;
        height: 30px;
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .brand-text {
        align-items: center;
        text-align: center;
    }
    
    .brand-name {
        font-size: 0.6875rem;
    }
    
    .brand-tagline {
        font-size: 0.5rem;
    }
    
    .brand-author {
        font-size: 0.4375rem;
    }
}

/* Sidebar Profile Cards */
.sidebar-profile-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.sidebar-profile-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.profile-card-content {
    display: flex;
    align-items: center;
    padding: 1rem;
    gap: 0.75rem;
}

.profile-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

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

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.profile-text h4,
.profile-info h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a365d;
    margin: 0 0 0.25rem 0;
    line-height: 1.2;
}

.profile-text p {
    font-size: 0.75rem;
    color: #64748b;
    margin: 0;
    line-height: 1.3;
}

.profile-role {
    font-size: 0.6875rem;
    color: #64748b;
    margin: 0;
    line-height: 1.3;
    font-weight: 500;
}

.profile-actions {
    padding: 0.75rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.profile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.profile-btn-primary {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    color: white;
    border-color: #1a365d;
}

.profile-btn-primary:hover {
    background: linear-gradient(135deg, #2c5282 0%, #2b6cb0 100%);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.profile-btn-secondary {
    background: white;
    color: #1a365d;
    border-color: #cbd5e1;
}

.profile-btn-secondary:hover {
    background: #f8fafc;
    color: #1a365d;
    border-color: #94a3b8;
    text-decoration: none;
    transform: translateY(-1px);
}

.profile-btn-logout {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    border-color: #dc2626;
}

.profile-btn-logout:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

@media (max-width: 992px) {
    .profile-card-content {
        padding: 0.75rem;
        gap: 0.5rem;
    }
    
    .profile-icon,
    .profile-avatar {
        width: 35px;
        height: 35px;
    }
    
    .profile-text h4,
    .profile-info h4 {
        font-size: 0.75rem;
    }
    
    .profile-text p,
    .profile-role {
        font-size: 0.6875rem;
    }
    
    .profile-actions {
        padding: 0.5rem 0.75rem 0.75rem;
    }
    
    .profile-btn {
        padding: 0.375rem 0.5rem;
        font-size: 0.6875rem;
    }
}

@media (max-width: 768px) {
    .sidebar-profile-card {
        margin-bottom: 0.75rem;
    }
    
    .profile-card-content {
        padding: 0.5rem;
        gap: 0.5rem;
    }
    
    .profile-icon,
    .profile-avatar {
        width: 32px;
        height: 32px;
    }
    
    .profile-icon {
        font-size: 0.875rem;
    }
    
    .profile-text h4,
    .profile-info h4 {
        font-size: 0.6875rem;
    }
    
    .profile-text p,
    .profile-role {
        font-size: 0.625rem;
    }
    
    .profile-actions {
        padding: 0.5rem;
        gap: 0.375rem;
    }
    
    .profile-btn {
        padding: 0.375rem 0.5rem;
        font-size: 0.625rem;
    }
}

@media (max-width: 576px) {
    .profile-card-content {
        padding: 0.5rem;
        gap: 0.375rem;
    }
    
    .profile-icon,
    .profile-avatar {
        width: 28px;
        height: 28px;
    }
    
    .profile-icon {
        font-size: 0.75rem;
    }
    
    .profile-text h4,
    .profile-info h4 {
        font-size: 0.625rem;
    }
    
    .profile-text p,
    .profile-role {
        font-size: 0.5625rem;
    }
    
    .profile-actions {
        padding: 0.375rem 0.5rem 0.5rem;
        gap: 0.25rem;
    }
    
    .profile-btn {
        padding: 0.25rem 0.375rem;
        font-size: 0.5625rem;
    }
}

@media (max-width: 576px) {
    .sidebar-logo-section {
        padding: 0.75rem;
    }
    
    .logo-container-modern {
        padding: 0.5rem;
    }
    
    .logo-image-modern {
        width: 40px;
        height: 40px;
    }
    
    .logo-title {
        font-size: 0.75rem;
    }
    
    .logo-subtitle {
        font-size: 0.5rem;
    }
    
    .sidebar-nav-header,
    .sidebar-navigation,
    .sidebar-content-section,
    .sidebar-footer {
        padding: 0.5rem;
    }
    
    .nav-link-modern {
        padding: 0.5rem;
    }
    
    .nav-icon {
        width: 25px;
        height: 25px;
        font-size: 0.625rem;
    }
    
    .nav-label {
        font-size: 0.625rem;
    }
    
    .nav-description {
        font-size: 0.5rem;
    }
    
    .auth-btn-modern {
        padding: 0.375rem 0.75rem !important;
        font-size: 0.6875rem !important;
    }
    
    .brand-logo {
        width: 25px;
        height: 25px;
    }
    
    .brand-name {
        font-size: 0.625rem;
    }
    
    .brand-tagline {
        font-size: 0.4375rem;
    }
    
    .brand-author {
        font-size: 0.375rem;
    }
}
