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

:root {
    --formation-primary: #7c3aed;
    --formation-light: #ede9fe;
    --formation-bg: #f5f3ff;
    --supervision-primary: #2563eb;
    --supervision-light: #dbeafe;
    --supervision-bg: #eff6ff;
    --rps-primary: #c77c5b;
    --rps-light: #f5e3d7;
    --rps-bg: #fdf6f1;
    --white: #ffffff;
    --off-white: #fafafa;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-900: #111827;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 9999;
    background: var(--gray-900);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 8px 8px;
    font-weight: 600;
    text-decoration: none;
}
.skip-link:focus {
    top: 0;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
*:focus-visible {
    outline: 3px solid var(--formation-primary);
    outline-offset: 2px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.5;
    color: var(--gray-700);
    background: var(--white);
    overflow-x: hidden;
}

.nav {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1000;
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}
.nav.scrolled {
    padding: 0.85rem 0;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}
.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.logo svg {
    height: 42px;
    width: auto;
    transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav.scrolled .logo svg {
    height: 34px;
}
.nav-menu {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    list-style: none;
}
.nav-menu a:not(.nav-cta) {
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 4px;
}
.nav-menu a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3B5998, #1a3a7a);
    border-radius: 1px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-menu a:not(.nav-cta):hover,
.nav-menu a:not(.nav-cta).active {
    color: #1a1a2e;
}
.nav-menu a:not(.nav-cta):hover::after,
.nav-menu a:not(.nav-cta).active::after {
    width: 100%;
}
.nav-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-600);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: color 0.3s ease;
}
.nav-phone:hover {
    color: #1a1a2e;
}
.nav-phone svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.nav-cta {
    background: linear-gradient(135deg, #3B5998, #1a3a7a);
    color: white !important;
    padding: 0.7rem 1.75rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.9375rem;
    box-shadow: 0 2px 8px rgba(59, 89, 152, 0.25);
}
.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(59, 89, 152, 0.35);
}
.nav-cta::after {
    display: none !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1002;
    position: relative;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-900);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: translateX(-8px); }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.page-hero {
    background: var(--gray-50);
    padding: 3rem 2rem 2.5rem;
    border-bottom: 1px solid var(--gray-200);
}
.page-hero-inner {
    max-width: 900px;
    margin: 0 auto;
}
.page-hero h1 {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -1px;
    margin-bottom: 1rem;
    line-height: 1.15;
}
.page-lead {
    font-size: 1.125rem;
    color: var(--gray-600);
    line-height: 1.6;
    max-width: 720px;
}
.breadcrumb {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 1rem;
}
.breadcrumb a {
    color: var(--gray-600);
    text-decoration: none;
}
.breadcrumb a:hover {
    text-decoration: underline;
}
.prose {
    max-width: 720px;
    margin: 0 auto;
    padding: 2.5rem 2rem 4rem;
}
.prose h2 {
    font-size: 1.375rem;
    margin: 2rem 0 0.75rem;
    color: var(--gray-900);
    font-weight: 700;
}
.prose h3 {
    font-size: 1.0625rem;
    margin: 1.5rem 0 0.5rem;
    color: var(--gray-900);
    font-weight: 600;
}
.prose p,
.prose li {
    color: var(--gray-600);
    line-height: 1.7;
    font-size: 0.9375rem;
}
.prose p {
    margin-bottom: 1rem;
}
.prose ul {
    margin: 0 0 1rem 1.25rem;
}
.prose a {
    color: var(--supervision-primary);
}
.prose a:hover {
    text-decoration: underline;
}
.prose-cta {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}
.btn-text-cta {
    display: inline-block;
    background: linear-gradient(135deg, #3B5998, #1a3a7a);
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none !important;
}
.btn-text-cta:hover {
    filter: brightness(1.05);
}
.legal-muted {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-top: 2rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 8px;
    border: 1px solid var(--gray-200);
}

.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 5rem 2rem 2rem;
}
.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}
.footer-description {
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
    color: var(--gray-400);
}
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--gray-400);
}
.footer-title {
    color: var(--gray-200);
    font-weight: 700;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.footer-links {
    list-style: none;
}
.footer-links li {
    margin-bottom: 0.75rem;
}
.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.875rem;
}
.footer-links a:hover {
    color: white;
}
.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.8125rem;
    color: var(--gray-500);
}
.footer-bottom a {
    color: var(--gray-500);
    text-decoration: none;
}
.footer-bottom a:hover {
    color: white;
}

.svg-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.svg-icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.75;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.footer-contact .svg-icon svg {
    width: 16px;
    height: 16px;
}
.footer-contact span,
.footer-contact a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.footer-contact a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-contact a:hover {
    color: #fff;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 1024px) {
    .hamburger {
        display: flex;
    }
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(85vw, 380px);
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 0;
        z-index: 1001;
        padding: 6rem 2.5rem 3rem;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.08);
        overflow-y: auto;
    }
    .nav-menu.open {
        transform: translateX(0);
    }
    .nav-menu li {
        width: 100%;
        opacity: 0;
        transform: translateX(24px);
        transition: opacity 0.35s ease, transform 0.35s ease;
    }
    .nav-menu.open li {
        opacity: 1;
        transform: translateX(0);
    }
    .nav-menu.open li:nth-child(1) { transition-delay: 0.08s; }
    .nav-menu.open li:nth-child(2) { transition-delay: 0.14s; }
    .nav-menu.open li:nth-child(3) { transition-delay: 0.20s; }
    .nav-menu.open li:nth-child(4) { transition-delay: 0.26s; }
    .nav-menu.open li:nth-child(5) { transition-delay: 0.32s; }
    .nav-menu a:not(.nav-cta),
    .nav-menu .nav-phone {
        font-size: 1.35rem;
        padding: 1rem 0;
        display: block;
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }
    .nav-menu .nav-cta {
        margin-top: 1.5rem;
        display: block;
        text-align: center;
        width: 100%;
        padding: 1rem;
        font-size: 1.1rem;
    }
    .mobile-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(4px);
        z-index: 1000;
        opacity: 0;
        transition: opacity 0.35s ease;
    }
    .mobile-overlay.visible {
        display: block;
        opacity: 1;
    }
    .footer-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-hero h1 {
        font-size: 2rem;
    }
}
