* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Styles pour les pages d'authentification uniquement */
body.auth-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    position: relative;
    overflow: hidden;
}

body.auth-page::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: float 20s linear infinite;
    pointer-events: none;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

.container {
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 1;
}

.auth-box {
    background: white;
    border-radius: 16px;
    padding: 32px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Pour la page d'inscription, permettre le scroll si nécessaire */
body.auth-page .auth-box {
    max-height: 95vh;
    overflow-y: auto;
}

/* Scrollbar personnalisée pour auth-box */
body.auth-page .auth-box::-webkit-scrollbar {
    width: 6px;
}

body.auth-page .auth-box::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

body.auth-page .auth-box::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

body.auth-page .auth-box::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

h1 {
    text-align: center;
    color: #1e293b;
    margin-bottom: 8px;
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-group {
    margin-bottom: 20px;
}

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

input[type="text"],
input[type="password"],
input[type="email"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #1e293b;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

input[type="text"]:hover,
input[type="password"]:hover,
input[type="email"]:hover,
textarea:hover {
    border-color: #cbd5e1;
}

textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s;
}

.btn-primary {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

.error-message {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #dc2626;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: shake 0.5s ease;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.1);
}

.error-message::before {
    content: '⚠️';
    font-size: 20px;
}

.success-message {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #059669;
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #059669;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.5s ease;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.1);
}

.success-message::before {
    content: '✓';
    font-size: 20px;
    color: #059669;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

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

.auth-links {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.auth-links p {
    color: #64748b;
    font-size: 14px;
    margin: 0;
}

.auth-links a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    position: relative;
}

.auth-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.auth-links a:hover::after {
    width: 100%;
}

.auth-links a:hover {
    color: #764ba2;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

th {
    background: #f5f5f5;
    font-weight: 600;
    color: #333;
}

.btn-success {
    background: #4caf50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    margin-right: 8px;
}

.btn-danger {
    background: #f44336;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.btn-success:hover {
    background: #45a049;
}

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

/* Navigation Premium - Design Ultra Moderne & Épuré */
.nav-container {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 81px;
    z-index: 98;
}

.nav-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 48px;
}

.nav-menu {
    display: flex;
    gap: 0;
    align-items: center;
    padding: 0;
}

.nav-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 24px;
    text-decoration: none;
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(102, 126, 234, 0.04);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-menu a:hover {
    color: #1e293b;
}

.nav-menu a:hover::before {
    opacity: 1;
}

.nav-menu a.active {
    color: #1e293b;
    font-weight: 600;
}

.nav-menu a.active::before {
    opacity: 1;
}

.nav-menu a.active::after {
    transform: scaleX(1);
}

.nav-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.5;
}

.nav-menu a:hover .nav-icon,
.nav-menu a.active .nav-icon {
    opacity: 1;
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .nav-container {
        top: 0;
    }
    
    .nav-wrapper {
        padding: 0 24px;
    }
    
    .nav-menu {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 12px 0;
    }
    
    .nav-menu a {
        padding: 14px 20px;
        font-size: 13px;
    }
    
    .nav-icon {
        width: 18px;
        height: 18px;
        font-size: 16px;
    }
}

/* Footer Global */
.footer {
    background: #1e293b;
    color: #94a3b8;
    padding: 32px 24px;
    margin-top: 60px;
    text-align: center;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer p {
    font-size: 14px;
    margin: 0;
}

.footer-brand {
    color: #667eea;
    font-weight: 600;
}

