/* General form styling */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.login-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 140px);
  padding: 40px 20px;
}

h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #0077b6 0%, #00b4d8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Form styling */
.form-wrapper {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    width: 100%;
    margin: 20px auto;
}

/* Nav bar */
header {
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: auto;
    padding: 1rem 2rem;
}

.logo {
    width: 70px;
    height: auto;
    max-width: 100%;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #2c3e50;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: #0077b6;
    background: rgba(0, 119, 182, 0.1);
    transform: translateY(-2px);
}

/* Form paragraphs */
form p {
    margin-bottom: 25px;
    position: relative;
}

/* Labels */
.form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 15px;
}

/* Input fields */
.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e8edf5;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #f8fafc;
    color: #2c3e50;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
    background: white;
    transform: translateY(-2px);
}

/* Submit button */
.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 18px;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

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

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

/* Progress indicator */
.progress-indicator {
    display: flex;
    justify-content: space-between;
    margin: 40px 0 60px 0;
    position: relative;
    max-width: 600px;
    width: 100%;
}

.progress-indicator:before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: #e8edf5;
    z-index: 1;
}

.progress-step {
    text-align: center;
    flex: 1;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 50%;
    background: white;
    color: #94a3b8;
    margin: 0 auto 12px;
    font-weight: 700;
    font-size: 20px;
    border: 3px solid #e8edf5;
    transition: all 0.4s ease;
}

.progress-step.active .step-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    animation: pulse 2s infinite;
}

.step-label {
    font-size: 15px;
    color: #64748b;
    font-weight: 600;
    transition: all 0.3s ease;
}

.progress-step.active .step-label {
    color: #2c3e50;
    font-weight: 700;
}

/* Info card */
.test-info-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px;
    padding: 30px;
    margin: 30px 0 40px 0;
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.test-info-card:before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
    z-index: 1;
}

.test-info-card h4 {
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 2;
}

.test-info-card ul {
    list-style: none;
    padding-left: 0;
    position: relative;
    z-index: 2;
}

.test-info-card li {
    margin-bottom: 14px;
    padding-left: 32px;
    position: relative;
    font-size: 15px;
    line-height: 1.5;
}

.test-info-card li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4cd964;
    font-weight: bold;
    font-size: 18px;
}

.test-info-card p {
    margin-top: 20px;
    opacity: 0.95;
    font-size: 14px;
    position: relative;
    z-index: 2;
    line-height: 1.6;
}

/* Email note */
.email-note {
    background: linear-gradient(135deg, #fff9db 0%, #fff3bf 100%);
    border-left: 5px solid #ffd43b;
    padding: 20px;
    margin: 25px 0;
    border-radius: 12px;
    font-size: 15px;
    color: #5a4a00;
    box-shadow: 0 5px 15px rgba(255, 212, 59, 0.2);
}

.email-note i {
    color: #ffd43b;
    margin-right: 12px;
    font-size: 20px;
}

.email-note strong {
    color: #5a4a00;
}

/* Form sections */
.form-section-title {
    color: #2c3e50;
    border-bottom: 3px solid #667eea;
    padding-bottom: 15px;
    margin: 40px 0 25px 0;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.3rem;
}

.form-section-title i {
    font-size: 1.5em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Form grid */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.form-group:focus-within {
    transform: translateY(-2px);
}

/* Password strength */
.password-strength {
    margin-top: 12px;
}

.strength-meter {
    height: 8px;
    background: #e8edf5;
    border-radius: 4px;
    margin-top: 8px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0;
    transition: width 0.4s ease;
    border-radius: 4px;
}

.strength-weak { background: #ef4444; }
.strength-medium { background: #f59e0b; }
.strength-strong { background: #10b981; }

/* Phone input */
.phone-input-group {
    display: flex;
    gap: 15px;
}

.country-code {
    flex: 0 0 140px;
}

.phone-number {
    flex: 1;
}

/* Character counter */
.bio-counter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

/* Success message */
.success-message {
    display: none;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #28a745;
    color: #155724;
    padding: 30px;
    border-radius: 16px;
    margin: 30px 0;
    text-align: center;
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.2);
}

.success-message i {
    font-size: 60px;
    color: #28a745;
    margin-bottom: 20px;
}

.success-message h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 700;
}

/* Loading spinner */
.loading-spinner {
    display: none;
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    margin: 30px 0;
}

/* Flashes */
.flash-messages {
    animation: slideDown 0.5s ease-out;
    margin: 20px 0;
}

.flash-message {
    padding: 18px;
    border-radius: 12px;
    margin-bottom: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.flash-message.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left: 5px solid #28a745;
}

.flash-message.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left: 5px solid #dc3545;
}

/* Form errors */
.form-errors {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 2px solid #dc3545;
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
    color: #721c24;
}

.form-errors ul {
    list-style: none;
    padding-left: 0;
    margin: 15px 0 0 0;
}

.form-errors li {
    padding: 10px 0 10px 30px;
    position: relative;
    margin-bottom: 8px;
}

.form-errors li:before {
    content: "✗";
    position: absolute;
    left: 0;
    color: #dc3545;
    font-weight: bold;
}

/* Form footer */
.form-footer {
    border-top: 2px solid #e8edf5;
    padding-top: 25px;
    margin-top: 40px;
    text-align: center;
}

.form-footer .note {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

.form-footer .note a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.form-footer .note a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Login link */
.login-link {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    color: #64748b;
    font-size: 15px;
}

.login-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.login-link a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: #cbd5e0;
    text-align: center;
    padding: 2rem;
    font-size: 0.95rem;
    margin-top: 60px;
}

footer a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    color: #667eea;
    text-decoration: underline;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(102, 126, 234, 0); }
    100% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0); }
}

/* Responsive design */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .progress-indicator {
        margin: 30px 0 40px 0;
    }

    .step-number {
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 18px;
    }

    .step-label {
        font-size: 13px;
    }

    .form-section-title {
        font-size: 1.1rem;
        margin: 30px 0 20px 0;
    }

    .phone-input-group {
        flex-direction: column;
        gap: 10px;
    }

    .country-code {
        flex: 1;
        width: 100%;
    }

    form {
        padding: 30px;
        margin: 15px;
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 1.8rem;
    }

    form {
        padding: 25px 20px;
    }

    .navbar {
        padding: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.9rem;
        padding: 6px 12px;
    }

    .test-info-card {
        padding: 25px 20px;
    }

    .submit-btn {
        padding: 16px;
        font-size: 16px;
    }
}

/* Focus states for accessibility */
.form-input:focus,
select:focus,
button:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Hint text */
.email-hint,
.username-hint,
.experience-hint,
.password-hint {
    font-size: 0.85em;
    color: #64748b;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Error messages */
.error-message {
    color: #dc3545;
    font-size: 0.85em;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.error-message::before {
    content: "⚠";
    font-size: 16px;
}

/* Select styling */
select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

/* Textarea specific */
textarea.form-input {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
    line-height: 1.5;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: #c1c9d6;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* === STYLES SPÉCIFIQUES POUR LA PAGE DE LOGIN === */

.main-container {
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.login-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1200px;
    width: 100%;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.12);
    min-height: 700px;
}

.login-illustration {
    background: linear-gradient(135deg, #0077b6 0%, #00b4d8 100%);
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.login-illustration:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: cover;
}

.illustration-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 400px;
}

.illustration-content i {
    font-size: 5rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.illustration-content h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.illustration-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
}

.login-form-container {
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.login-header h2 {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.login-header h2 i {
    color: #0077b6;
}

.login-subtitle {
    color: #64748b;
    font-size: 1rem;
}

.login-form {
    width: 100%;
}

.input-with-icon {
    position: relative;
    margin-bottom: 5px;
}

.input-with-icon i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    z-index: 2;
    font-size: 1.1rem;
}

.form-input {
    width: 100%;
    padding: 18px 20px 18px 50px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8fafc;
    color: #2c3e50;
}

.form-input:focus {
    outline: none;
    border-color: #0077b6;
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 119, 182, 0.15);
}

.input-with-icon.focused i {
    color: #0077b6;
}

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

.error-message {
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 5px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.checkbox-container {
    display: block;
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #475569;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 22px;
    width: 22px;
    background-color: #f1f5f9;
    border-radius: 6px;
    border: 2px solid #cbd5e1;
    transition: all 0.3s ease;
}

.checkbox-container:hover input ~ .checkmark {
    border-color: #0077b6;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: #0077b6;
    border-color: #0077b6;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.forgot-password {
    color: #0077b6;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.forgot-password:hover {
    color: #005a8c;
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #0077b6 0%, #00b4d8 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 119, 182, 0.3);
}

.login-divider {
    display: flex;
    align-items: center;
    margin: 30px 0;
    color: #64748b;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.login-divider span {
    padding: 0 20px;
    font-size: 0.9rem;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.social-btn {
    padding: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.google-btn {
    color: #5f6368;
}

.google-btn:hover {
    border-color: #DB4437;
    color: #DB4437;
}

.microsoft-btn {
    color: #5f6368;
}

.microsoft-btn:hover {
    border-color: #00A4EF;
    color: #00A4EF;
}

.register-links {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #f1f5f9;
}

.register-text {
    text-align: center;
    color: #64748b;
    margin-bottom: 20px;
    font-size: 1rem;
}

.register-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.register-btn {
    padding: 16px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.client-btn {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #475569;
    border: 2px solid #cbd5e1;
}

.client-btn:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.expert-btn {
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
    color: white;
}

.expert-btn:hover {
    background: linear-gradient(135deg, #0d6c65 0%, #119a8a 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(20, 184, 166, 0.3);
}

.security-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    color: #475569;
    font-size: 0.9rem;
}

.security-info i {
    color: #10b981;
    font-size: 1.2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #cbd5e0;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #0077b6;
}

.password-toggle {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    cursor: pointer;
    z-index: 2;
    font-size: 1.1rem;
}

.password-toggle:hover {
    color: #0077b6;
}

/* Responsive */
@media (max-width: 992px) {
    .login-wrapper {
        grid-template-columns: 1fr;
        max-width: 600px;
    }

    .login-illustration {
        padding: 40px 30px;
        min-height: 300px;
    }

    .illustration-content i {
        font-size: 3.5rem;
        margin-bottom: 20px;
    }

    .illustration-content h3 {
        font-size: 1.7rem;
    }

    .login-form-container {
        padding: 40px 30px;
    }
}

@media (max-width: 576px) {
    .login-wrapper {
        border-radius: 16px;
    }

    .login-header h2 {
        font-size: 1.8rem;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .register-buttons {
        gap: 12px;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

/* === STYLES POUR LES MESSAGES FLASH === */

.flash-messages-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 9999;
    max-width: 500px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    pointer-events: none;
}

.flash-message {
    pointer-events: auto;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    animation: slideInRight 0.4s ease-out forwards;
    transform: translateX(100%);
    opacity: 0;
    position: relative;
    overflow: hidden;
}

.flash-message::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
}

.flash-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-left: 5px solid #28a745;
    color: #155724;
}

.flash-success::before {
    background: #28a745;
}

.flash-danger, .flash-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border-left: 5px solid #dc3545;
    color: #721c24;
}

.flash-danger::before, .flash-error::before {
    background: #dc3545;
}

.flash-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-left: 5px solid #ffc107;
    color: #856404;
}

.flash-warning::before {
    background: #ffc107;
}

.flash-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border-left: 5px solid #17a2b8;
    color: #0c5460;
}

.flash-info::before {
    background: #17a2b8;
}

.flash-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.flash-content i {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.flash-content span {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
}

.flash-close {
    background: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.7;
    padding: 5px;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
}

.flash-close:hover {
    opacity: 1;
}

/* Animation pour faire apparaître les messages */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Animation pour faire disparaître les messages */
@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.flash-message.hiding {
    animation: slideOutRight 0.4s ease-out forwards;
}

/* Auto-dismiss après 10 secondes */
.flash-message {
    animation: slideInRight 0.4s ease-out forwards,
               autoDismiss 10s ease-out forwards;
}

@keyframes autoDismiss {
    0%, 90% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Pour les écrans mobiles */
@media (max-width: 768px) {
    .flash-messages-container {
        top: 80px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .flash-message {
        padding: 15px;
    }

    .flash-content i {
        font-size: 1.2rem;
    }

    .flash-content span {
        font-size: 0.9rem;
    }
}