/* ========================================
   IGWENABANGUI - Main Styles
   Variables & Reset
   ======================================== */

:root {
    --color-primary: #1a56db;
    --color-primary-dark: #1e3a8a;
    --color-primary-light: #3b82f6;
    --color-primary-50: #eff6ff;
    --color-primary-100: #dbeafe;
    --color-primary-200: #bfdbfe;

    --color-success: #16a34a;
    --color-success-light: #dcfce7;
    --color-error: #dc2626;
    --color-error-light: #fee2e2;
    --color-warning: #f59e0b;

    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-400: #9ca3af;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;

    --color-white: #ffffff;
    --color-black: #000000;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: linear-gradient(135deg, #f0f4ff 0%, #e8edf5 100%);
    color: var(--color-gray-800);
    line-height: 1.6;
    min-height: 100vh;
    padding: 2rem 1rem;
}

/* Focus visible pour accessibilité */
:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: var(--color-white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    z-index: 999;
    text-decoration: none;
}

.skip-link:focus {
    top: 1rem;
}

/* Container principal */
.form-wrapper {
    max-width: 880px;
    margin: 0 auto;
    background: var(--color-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    padding: 2.5rem;
}

/* ========================================
   HEADER
   ======================================== */
.form-header {
    text-align: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-gray-200);
    margin-bottom: 2rem;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.logo {
    height: 48px;
    width: auto;
}

.logo-badge {
    background: var(--color-success);
    color: var(--color-white);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.75rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 0.75rem;
}

.form-title i {
    color: var(--color-primary);
    margin-right: 0.5rem;
}

.form-intro {
    color: var(--color-gray-600);
    font-size: 1rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ========================================
   FOOTER
   ======================================== */
.form-footer {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-gray-200);
    text-align: center;
}

.form-footer p {
    color: var(--color-gray-500);
    font-size: 0.875rem;
}

.form-footer i {
    color: var(--color-primary);
    margin-right: 0.5rem;
}

.footer-copy {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--color-gray-400);
}

/* ========================================
   MODAL
   ======================================== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-xl);
    animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-icon {
    font-size: 4rem;
    color: var(--color-success);
    margin-bottom: 1rem;
}

.modal-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 0.75rem;
}

.modal-content p {
    color: var(--color-gray-600);
    line-height: 1.7;
}

.modal-sub {
    font-size: 0.9rem;
    color: var(--color-gray-500);
    margin-top: 0.5rem;
}

.btn-modal-close {
    margin-top: 1.5rem;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: 0.75rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-family);
}

.btn-modal-close:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}