/* ============================================
   ANIMATIONS GLOBALES
   ============================================ */

/* Animation de fond dégradé */
@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Animation de flottement */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.7; }
    50% { transform: translateY(-20px) rotate(180deg); opacity: 1; }
}

/* Animation de flottement lent */
@keyframes float-slow {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-30px) translateX(20px); }
}

/* Animation de rotation douce */
@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Animation d'apparition */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation de bulles flottantes */
@keyframes bubble-float {
    0%, 100% { 
        transform: translateY(0) translateX(0); 
        opacity: 0.7; 
    }
    50% { 
        transform: translateY(-30px) translateX(20px); 
        opacity: 1; 
    }
}

/* Effet de glitch sur le 404 */
@keyframes glitch {
    0% { text-shadow: 2px 2px #ff00de, -2px -2px #00fff2; }
    25% { text-shadow: -2px -2px #ff00de, 2px 2px #00fff2; }
    50% { text-shadow: 2px -2px #ff00de, -2px 2px #00fff2; }
    75% { text-shadow: -2px 2px #ff00de, 2px -2px #00fff2; }
    100% { text-shadow: 2px 2px #ff00de, -2px -2px #00fff2; }
}

/* ============================================
   RESET ET BASE
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    overflow-y: scroll;
    overflow-x: hidden;
}

body {
    min-height: 100%;
    margin: 0;
    padding: 0;
}

/* ============================================
   FOND ANIMÉ - APPLIQUÉ AU BODY
   ============================================ */

body.animated-bg {
    background: linear-gradient(-45deg, #1e3a8a, #3b82f6, #60a5fa, #1e40af);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    background-attachment: fixed;
    min-height: 100vh;
    padding: 1.5rem 0;
    position: relative;
}

/* ============================================
   BULLES FLOTTANTES
   ============================================ */

.bubble {
    position: fixed;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

.bubble-slow {
    animation: float-slow 8s ease-in-out infinite;
}

/* ============================================
   CERCLES DÉCORATIFS
   ============================================ */

.decorative-circle {
    position: fixed;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    pointer-events: none;
    z-index: 1;
}

.spin-slow {
    animation: spin-slow 20s linear infinite;
}

/* ============================================
   CONTAINER
   ============================================ */

.container {
    position: relative;
    z-index: 10;
}

/* ============================================
   CARTES AVEC EFFET VERRE
   ============================================ */

.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    border-radius: 1rem;
    position: relative;
    z-index: 10;
}

/* ============================================
   AVATAR CIRCULAIRE
   ============================================ */

.avatar-circle {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #dbeafe 0%, #93c5fd 100%);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ============================================
   CARTE D'INFORMATIONS
   ============================================ */

.info-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.info-row {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #374151;
    min-width: 150px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.info-value {
    color: #1f2937;
}

/* ============================================
   BOUTONS
   ============================================ */

.btn-gradient {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    border: none;
    transition: all 0.3s ease;
}

.btn-gradient:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563eb 0%, #1e3a8a 100%);
}

.btn-logout {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    border: none;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(239, 68, 68, 0.3);
}

.btn-logout:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.4);
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
}

.btn-home {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    border: none;
    color: white;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.3);
}

.btn-home:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563eb 0%, #1e3a8a 100%);
    color: white;
}

.btn-back {
    background: white;
    color: #374151;
    border: 1px solid #e5e7eb;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-back:hover {
    transform: scale(1.02);
    background: #f9fafb;
    color: #374151;
}

/* ============================================
   LOGO ET TEXTE
   ============================================ */

.logo-gradient {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   ICÔNES
   ============================================ */

.icon-wrapper {
    width: 1.25rem;
    height: 1.25rem;
    display: inline-block;
    vertical-align: middle;
}

.input-icon {
    width: 1rem;
    height: 1rem;
    opacity: 0.6;
}

.icon-check {
    width: 1.25rem;
    height: 1.25rem;
    color: #3b82f6;
    flex-shrink: 0;
    margin-right: 0.5rem;
    margin-top: 0.125rem;
}

/* ============================================
   FORMULAIRES
   ============================================ */

.form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
}

/* ============================================
   PAGE 404
   ============================================ */

.float {
    animation: float 3s ease-in-out infinite;
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.glitch:hover {
    animation: glitch 0.3s infinite;
}

.search-icon-wrapper {
    position: relative;
    display: inline-block;
}

.glow-bg {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    filter: blur(60px);
}

.icon-container {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    padding: 3rem;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
}

.title-404 {
    font-size: 9rem;
    font-weight: 900;
    color: white;
    text-shadow: 4px 4px 0px rgba(0, 0, 0, 0.2);
    margin-bottom: 1.5rem;
}

.content-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    padding: 2rem;
    max-width: 500px;
    margin: 0 auto 2rem;
}

.suggestions-box {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.suggestion-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.suggestion-item:last-child {
    margin-bottom: 0;
}

/* ============================================
   CARTES DRIVE
   ============================================ */

.drive-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(31, 38, 135, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.3);
    height: 100%;
}

.drive-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.3);
    border-color: #3b82f6;
}

.drive-card-body {
    padding: 1.5rem;
    text-align: center;
}

.drive-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
    display: block;
}

.drive-title {
    color: #1f2937;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.drive-path {
    color: #6b7280;
    font-size: 0.75rem;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Style spécial pour dossier non traité */
.drive-card-untreated {
    border: 2px solid #ef4444;
    background: linear-gradient(135deg, rgba(254, 226, 226, 0.95) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.drive-card-untreated:hover {
    border-color: #dc2626;
    box-shadow: 0 12px 24px rgba(239, 68, 68, 0.3);
}

/* ============================================
   PAGINATION
   ============================================ */

.pagination {
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pagination .page-link {
    border: none;
    background: rgba(59, 130, 246, 0.1);
    backdrop-filter: blur(10px);
    color: #374151;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.pagination .page-link:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
    color: #2563eb;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    color: #ffffff;
    font-weight: bold;
}

.pagination .page-item.disabled .page-link {
    opacity: 0.4;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.1);
}

.pagination .page-item.disabled .page-link:hover {
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.1);
    color: #374151;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    body.animated-bg {
        padding: 1rem 0;
    }

    .title-404 {
        font-size: 6rem;
    }
    
    .icon-container {
        padding: 2rem;
    }
    
    .content-card {
        padding: 1.5rem;
    }
    
    .info-label {
        min-width: 100%;
        margin-bottom: 0.25rem;
    }

    .avatar-circle {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 576px) {
    .drive-card-body {
        padding: 1rem;
    }
    
    .drive-icon {
        font-size: 2.5rem;
    }
    
    .drive-title {
        font-size: 0.8rem;
    }
    
    .drive-path {
        font-size: 0.7rem;
    }
    
    .pagination {
        gap: 0.25rem;
    }
    
    .pagination .page-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
    }

    .avatar-circle {
        width: 60px;
        height: 60px;
    }
}
/* ========== MENU DE NAVIGATION ========== */
.nav-menu .nav-link {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(13, 110, 253, 0.15);
    border-radius: 10px;
    padding: 12px 20px;
    color: #495057;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.nav-menu .nav-link:hover {
    background: rgba(13, 110, 253, 0.1);
    border-color: rgba(13, 110, 253, 0.3);
    color: #0d6efd;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15);
}

.nav-menu .nav-link.active {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    border-color: #0d6efd;
    color: white;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.nav-menu .nav-link i {
    font-size: 1.1rem;
}

.nav-menu .badge {
    font-size: 0.7rem;
    padding: 3px 6px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu .nav-link {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .nav-menu .nav-link span {
        display: none;
    }
    
    .nav-menu .nav-link i {
        margin: 0 !important;
        font-size: 1.3rem;
    }
}
a {
    text-decoration: none;
}
