/* =============================================
   ROOT & VARIABLES
   ============================================= */
:root {
    --blue-dark:    #0D1B2A;
    --blue-mid:     #1B4F8A;
    --blue:         #2563EB;
    --blue-light:   #3B82F6;
    --gold:         #F59E0B;
    --gold-dark:    #D97706;
    --green:        #10B981;
    --purple:       #8B5CF6;
    --red:          #EF4444;
    --dark:         #0F172A;
    --dark-2:       #1E293B;
    --gray:         #64748B;
    --gray-light:   #CBD5E1;
    --gray-xlight:  #F1F5F9;
    --white:        #FFFFFF;
    --bg:           #F8FAFC;

    --navy:        #0A1230;
    --navy-2:      #0E1A3A;
    --navy-3:      #13214d;
    --cyan:        #35C5F0;
    --amber:       #F9B545;
    --amber-deep:  #D45A18;
    --blue-deep:   #1055AA;
    --muted:       #5A6480;
    --grad-brand:  linear-gradient(120deg, #1055AA, #1B92D8 50%, #35C5F0);

    --ff-body:    'Plus Jakarta Sans', 'Inter', sans-serif;
    --ff-display: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;

    --sh-sm:  0 1px 3px rgba(0,0,0,.06);
    --sh-md:  0 4px 12px rgba(0,0,0,.08);
    --sh-lg:  0 10px 30px rgba(0,0,0,.12);
    --sh-xl:  0 20px 60px rgba(0,0,0,.18);

    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-xl: 28px;
    --r-pill: 100px;

    --t: all .3s ease;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--ff-body);
    color: var(--dark-2);
    background: #0a1628;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: var(--ff-body); }

/* =============================================
   UTILITIES
   ============================================= */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.hidden { display: none !important; }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: .96rem;
    padding: 14px 26px;
    border-radius: var(--r-sm);
    border: 1.5px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform .25s cubic-bezier(.22,.61,.36,1), box-shadow .25s cubic-bezier(.22,.61,.36,1), background .25s, color .25s;
    white-space: nowrap;
    line-height: 1;
}
.btn i { font-size: .9em; }
.btn-lg { padding: 17px 32px; font-size: 1.02rem; }
.btn-full { width: 100%; justify-content: center; }
.btn-primary {
    background: var(--grad-brand);
    color: #fff;
    box-shadow: 0 14px 30px -12px rgba(27,146,216,.7);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 44px -14px rgba(27,146,216,.85);
}
.btn-white {
    background: #fff;
    color: var(--navy);
}
.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 44px -16px rgba(0,0,0,.5);
}
.btn-outline-white {
    background: rgba(255,255,255,.06);
    color: #fff;
    border-color: rgba(255,255,255,.32);
    backdrop-filter: blur(6px);
}
.btn-outline-white:hover {
    background: rgba(255,255,255,.14);
    transform: translateY(-3px);
}

/* =============================================
   SECTION HEADER
   ============================================= */
.section-header { text-align: center; margin-bottom: 56px; }

.section-tag {
    display: inline-block;
    background: rgba(59,130,246,.15);
    color: #93C5FD;
    border: 1px solid rgba(59,130,246,.22);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: var(--r-pill);
    margin-bottom: 14px;
}

.section-title {
    font-family: var(--ff-display);
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    font-weight: 800;
    color: white;
    line-height: 1.15;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: rgba(255,255,255,.62);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.75;
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 120;
    padding: 18px 0;
    transition: padding .3s, background .3s, box-shadow .3s, border-color .3s;
    border-bottom: 1px solid transparent;
}
.navbar.scrolled {
    background: rgba(255,255,255,.86);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    box-shadow: 0 10px 34px -22px rgba(16,40,90,.4);
    border-bottom-color: rgba(13,21,48,.06);
    padding: 11px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.32rem;
    letter-spacing: .02em;
    color: #fff;
    transition: color .3s;
}
.navbar.scrolled .nav-brand { color: var(--navy); }
.brand-logo { display: flex; }
.nav-brand strong { font-weight: 700; }

.nav-links {
    display: flex;
    gap: 6px;
    list-style: none;
}
.nav-link {
    padding: 9px 15px;
    border-radius: 9px;
    font-weight: 500;
    font-size: .95rem;
    color: rgba(255,255,255,.86);
    transition: color .25s, background .25s;
}
.navbar.scrolled .nav-link { color: var(--muted); }
.nav-link:hover { color: #fff; background: rgba(255,255,255,.1); }
.navbar.scrolled .nav-link:hover { color: var(--blue-deep); background: rgba(27,146,216,.09); }

.nav-cta { padding: 11px 22px; font-size: .92rem; }
.navbar:not(.scrolled) .nav-cta { background: #fff; color: var(--navy); box-shadow: none; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.nav-toggle span {
    display: block;
    width: 26px; height: 2.4px;
    background: #fff;
    border-radius: 2px;
    transition: .3s;
}
.navbar.scrolled .nav-toggle span { background: var(--navy); }

/* =============================================
   HERO
   ============================================= */
.hero {
    min-height: 100svh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: transparent;
    padding: 140px 0 90px;
    z-index: 1;
}

#heroCanvas {
    position: fixed;
    inset: 0;
    width: 100%; height: 100%;
    z-index: 0;
    opacity: .85;
    display: block;
    pointer-events: none;
}

.hero-veil {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(to right, rgba(10,18,48,.82) 0%, rgba(10,18,48,.45) 55%, rgba(10,18,48,.1) 100%);
    pointer-events: none;
}

.hero-particles, .hero-overlay { display: none; }
.hero .container {
    position: relative;
    z-index: 3;
    width: 100%;
}

.hero-content { max-width: 760px; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 8px 14px;
    border-radius: 50px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.16);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: .86rem;
    font-weight: 500;
    margin-bottom: 26px;
}
.hero-badge i { color: var(--amber); }
.hero-badge strong { font-weight: 700; }
.badge-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #34d399;
    animation: pulse 2.2s infinite;
}
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(52,211,153,.55); }
    70%  { box-shadow: 0 0 0 9px rgba(52,211,153,0); }
    100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); }
}

.hero-title {
    font-family: var(--ff-display);
    font-size: clamp(2.6rem, 6.2vw, 4.6rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: -.03em;
    margin-bottom: 24px;
    line-height: 1.1;
}

.highlight-text {
    background: linear-gradient(120deg, var(--cyan), var(--amber));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 1.7vw, 1.28rem);
    color: rgba(255,255,255,.8);
    font-weight: 300;
    max-width: 600px;
    margin-bottom: 36px;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 44px;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 9px;
    color: rgba(255,255,255,.82);
    font-size: .93rem;
    font-weight: 500;
}
.trust-item i { color: var(--cyan); }
.trust-divider {
    width: 1px; height: 18px;
    background: rgba(255,255,255,.2);
}

.hero-scroll-cue {
    position: absolute;
    bottom: 30px; left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}
.scroll-mouse {
    width: 25px; height: 40px;
    border: 2px solid rgba(255,255,255,.4);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    padding-top: 7px;
}
.scroll-wheel {
    width: 3.5px; height: 8px;
    background: rgba(255,255,255,.7);
    border-radius: 3px;
    animation: wheel 1.7s infinite;
}
@keyframes wheel {
    0%   { opacity: 0; transform: translateY(-4px); }
    40%  { opacity: 1; }
    100% { opacity: 0; transform: translateY(9px); }
}

/* =============================================
   STATS
   ============================================= */
.stats-section {
    padding: 100px 0;
    background: transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.stats-section::before,
.stats-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.stats-section::before {
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(59,130,246,0.09) 0%, transparent 65%);
    top: -200px; right: -100px;
    animation: stats-bg-a 20s ease-in-out infinite alternate;
}
.stats-section::after {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(139,92,246,0.07) 0%, transparent 65%);
    bottom: -150px; left: -80px;
    animation: stats-bg-b 26s ease-in-out infinite alternate-reverse;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 20px;
    perspective: 1400px;
    position: relative;
    z-index: 1;
}

.stat-card {
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 24px;
    padding: 40px 20px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.08),
        0 8px 24px rgba(0,0,0,0.12);
    transition: transform 220ms cubic-bezier(0.23,1,0.32,1),
                box-shadow 220ms cubic-bezier(0.23,1,0.32,1),
                border-color 200ms ease;
}

.stat-bg-glow {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 160px; height: 120px;
    background: radial-gradient(circle, var(--gc, #3B82F6) 0%, transparent 70%);
    opacity: 0.18;
    border-radius: 50%;
    pointer-events: none;
    transition: opacity 300ms ease;
}

.stat-orb-wrap {
    position: relative;
    width: 72px; height: 72px;
    margin: 0 auto 24px;
}
.stat-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--gc, #3B82F6);
    pointer-events: none;
}
.stat-ring-a {
    inset: -12px;
    opacity: 0.22;
    animation: stat-orbit-a 10s linear infinite;
}
.stat-ring-b {
    inset: -24px;
    opacity: 0.11;
    animation: stat-orbit-b 17s linear infinite reverse;
}
.stat-orb-core {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--gc, #3B82F6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    box-shadow:
        0 0 0 5px rgba(255,255,255,0.07),
        0 10px 28px rgba(0,0,0,0.35);
    animation: stat-core-pulse 3.5s ease-in-out infinite;
}

.stat-value {
    font-family: var(--ff-display);
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 8px;
    background: linear-gradient(150deg, #ffffff 30%, rgba(255,255,255,0.62) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.42);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.stat-line {
    position: absolute;
    bottom: 0;
    left: 25%; right: 25%;
    height: 2px;
    border-radius: 2px 2px 0 0;
    background: linear-gradient(90deg, transparent, var(--gc, #3B82F6), transparent);
    opacity: 0.6;
}

/* =============================================
   OPCO
   ============================================= */
.opco-section {
    padding: 100px 0;
    background: transparent;
    position: relative;
    z-index: 1;
}

.opco-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 18px;
    margin-bottom: 48px;
}

.opco-card {
    background: rgba(255,255,255,.03);
    backdrop-filter: blur(3px);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 4px 14px rgba(0,0,0,.1);
    border-radius: var(--r-md);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    transition: var(--t);
    cursor: default;
}
.opco-card:hover {
    border-color: rgba(59,130,246,.4);
    box-shadow: 0 16px 40px rgba(0,0,0,.35);
    background: rgba(255,255,255,.08);
    transform: translateY(-5px);
}

.opco-logo-box {
    width: 90px; height: 52px;
    display: flex; align-items: center; justify-content: center;
}
.opco-logo-box img {
    max-width: 90px;
    max-height: 52px;
    object-fit: contain;
    filter: grayscale(25%) opacity(.85);
    transition: var(--t);
}
.opco-card:hover .opco-logo-box img {
    filter: grayscale(0%) opacity(1);
}
.opco-fallback {
    width: 52px; height: 52px;
    border-radius: var(--r-sm);
    display: flex; align-items: center; justify-content: center;
    color: white;
    font-weight: 800;
    font-size: .75rem;
    letter-spacing: .03em;
    text-align: center;
    line-height: 1.2;
}

.opco-name {
    font-weight: 700;
    font-size: .9rem;
    color: white;
}
.opco-sector {
    font-size: .72rem;
    color: rgba(255,255,255,.55);
    line-height: 1.4;
}

.opco-cta {
    margin-top: 8px;
}
.opco-cta-inner {
    background: rgba(59,130,246,.08);
    border: 1px solid rgba(59,130,246,.25);
    border-radius: var(--r-lg);
    padding: 28px 36px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.opco-cta-inner i {
    font-size: 1.8rem;
    color: #93C5FD;
    flex-shrink: 0;
}
.opco-cta-inner p {
    flex: 1;
    color: rgba(255,255,255,.8);
    font-size: .95rem;
    min-width: 200px;
}

/* =============================================
   FORMATIONS
   ============================================= */
.formations-section {
    padding: 100px 0;
    background: transparent;
    position: relative;
    z-index: 1;
}

.formations-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 48px;
}
.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: var(--r-pill);
    border: 1px solid rgba(255,255,255,.15);
    background: rgba(255,255,255,.07);
    color: rgba(255,255,255,.7);
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--t);
}
.filter-btn:hover { border-color: rgba(59,130,246,.6); color: #93C5FD; background: rgba(59,130,246,.12); }
.filter-btn.active {
    background: var(--blue);
    border-color: var(--blue);
    color: white;
    box-shadow: 0 4px 12px rgba(37,99,235,.3);
}
.filter-btn i { font-size: .8rem; }

.formations-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 28px;
}

.f-card {
    background: rgba(255,255,255,.03);
    backdrop-filter: blur(3px);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
    border-radius: var(--r-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--t);
}
.f-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 60px rgba(0,0,0,.4);
    border-color: rgba(255,255,255,.16);
    background: rgba(255,255,255,.08);
}

.f-card-head {
    padding: 28px;
    position: relative;
    overflow: hidden;
}
.f-card-head::after {
    content: '';
    position: absolute;
    top: -30px; right: -30px;
    width: 130px; height: 130px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    pointer-events: none;
}
.f-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    display: block;
    position: relative;
    z-index: 1;
}
.f-title {
    font-family: var(--ff-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: white;
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

.f-card-body {
    padding: 24px 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.f-desc {
    color: rgba(255,255,255,.65);
    font-size: .93rem;
    line-height: 1.65;
    flex: 1;
}
.f-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.f-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: .82rem;
    color: rgba(255,255,255,.55);
}
.f-meta i { color: var(--blue-light); font-size: .78rem; }

.f-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.f-tag {
    padding: 3px 10px;
    background: rgba(59,130,246,.18);
    color: #93C5FD;
    border-radius: var(--r-pill);
    font-size: .73rem;
    font-weight: 600;
}

.f-card-foot {
    padding: 0 28px 24px;
}
.f-card-foot .btn-primary {
    width: 100%;
    justify-content: center;
    font-size: .9rem;
    padding: 11px 20px;
}

/* =============================================
   WHY
   ============================================= */
.why-section {
    padding: 100px 0;
    background: linear-gradient(165deg, #0a1628 0%, #0e2245 100%);
}

.why-layout {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 80px;
    align-items: center;
}

.why-right {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.why-card {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(8px);
    border-radius: var(--r-md);
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    transition: var(--t);
}
.why-card:hover {
    border-color: rgba(59,130,246,.4);
    background: rgba(255,255,255,.08);
    box-shadow: 0 16px 40px rgba(0,0,0,.3);
    transform: translateX(6px);
}

.why-icon {
    width: 50px; height: 50px;
    background: linear-gradient(135deg, var(--c, var(--blue)) 0%, color-mix(in srgb, var(--c, var(--blue)) 70%, white) 100%);
    border-radius: var(--r-sm);
    display: flex; align-items: center; justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.why-card h3 {
    font-family: var(--ff-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
}
.why-card p {
    font-size: .88rem;
    color: rgba(255,255,255,.65);
    line-height: 1.65;
}

/* =============================================
   CONTACT
   ============================================= */
.contact-section {
    padding: 100px 0;
    background: linear-gradient(165deg, #071122 0%, #0a1a35 100%);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 60px;
    align-items: start;
}

.maps-card {
    border-radius: var(--r-xl);
    overflow: hidden;
    height: 420px;
    position: relative;
}
.maps-card iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.contact-info-card {
    background: rgba(255,255,255,.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.09);
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
    border-radius: var(--r-lg);
    padding: 32px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.ci-icon {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--blue), var(--blue-light));
    border-radius: var(--r-sm);
    display: flex; align-items: center; justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}
.contact-info-item strong {
    display: block;
    font-size: .9rem;
    font-weight: 700;
    color: white;
    margin-bottom: 3px;
}
.contact-info-item span {
    font-size: .88rem;
    color: rgba(255,255,255,.6);
}

.contact-guarantee {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.guarantee-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .88rem;
    color: rgba(255,255,255,.8);
    font-weight: 500;
}
.guarantee-item i { color: var(--green); }

.contact-form {
    background: rgba(255,255,255,.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.09);
    box-shadow: 0 8px 32px rgba(0,0,0,.25);
    border-radius: var(--r-xl);
    padding: 48px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.form-group label {
    font-size: .85rem;
    font-weight: 600;
    color: rgba(255,255,255,.85);
}
.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--r-sm);
    font-family: var(--ff-body);
    font-size: .93rem;
    color: white;
    background: rgba(255,255,255,.07);
    outline: none;
    transition: var(--t);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,.35); }
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--blue-light);
    background: rgba(255,255,255,.1);
    box-shadow: 0 0 0 4px rgba(59,130,246,.15);
}
.form-group textarea { resize: vertical; min-height: 110px; }

/* =============================================
   FOOTER
   ============================================= */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,.6);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 56px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-brand p {
    font-size: .9rem;
    line-height: 1.75;
    max-width: 270px;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 10px;
}
.footer-social a {
    width: 38px; height: 38px;
    background: rgba(255,255,255,.07);
    border-radius: var(--r-sm);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.7);
    font-size: .9rem;
    transition: var(--t);
}
.footer-social a:hover {
    background: var(--blue);
    color: white;
    transform: translateY(-2px);
}

.footer-grid h4 {
    color: white;
    font-weight: 700;
    font-size: .95rem;
    margin-bottom: 18px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-links a {
    font-size: .88rem;
    transition: var(--t);
}
.footer-links a:hover { color: white; padding-left: 4px; }

.footer-contact-info {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: .88rem;
    margin-bottom: 12px;
}
.footer-contact-info i { color: var(--blue-light); font-size: .85rem; }

.footer-badge { margin-top: 20px; }

.footer-bottom {
    padding: 22px 0;
    text-align: center;
    font-size: .83rem;
}
.footer-bottom a { transition: var(--t); }
.footer-bottom a:hover { color: white; }

/* =============================================
   CHATBOT
   ============================================= */
.chatbot-fab {
    position: fixed;
    bottom: 28px; right: 28px;
    z-index: 1200;
    height: 56px;
    width: 170px;
    border-radius: 100px;
    background: linear-gradient(135deg, #0e4db0 0%, #1991d9 45%, #35C5F0 100%);
    border: none;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: white;
    overflow: visible;
    box-shadow: 0 6px 28px rgba(16,85,170,.5);
    transition: width .42s cubic-bezier(.34,1.56,.64,1),
                border-radius .42s cubic-bezier(.34,1.56,.64,1),
                box-shadow .25s ease,
                transform .2s ease;
    animation: fab-pulse 3.5s ease-in-out infinite;
}
.chatbot-fab:hover {
    transform: scale(1.06);
    box-shadow: 0 10px 38px rgba(53,197,240,.55);
    animation: none;
}
.chatbot-fab:active { transform: scale(0.96); }
.chatbot-fab.is-open {
    width: 56px;
    border-radius: 50%;
    animation: none;
    box-shadow: 0 6px 24px rgba(16,85,170,.4);
}

.fab-inner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 0 16px 0 12px;
    gap: 9px;
    transition: opacity .18s ease, transform .18s ease;
}
.chatbot-fab.is-open .fab-inner {
    opacity: 0;
    transform: scale(0.6);
    pointer-events: none;
}
.fab-icon-svg { flex-shrink: 0; }
.fab-label {
    font-family: var(--ff-body);
    font-size: .86rem;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: .01em;
}

.fab-x-icon {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.4) rotate(-90deg);
    transition: opacity .2s ease .1s, transform .2s ease .1s;
    pointer-events: none;
}
.chatbot-fab.is-open .fab-x-icon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    pointer-events: auto;
}

.fab-badge {
    position: absolute;
    top: -6px; right: -6px;
    width: 20px; height: 20px;
    background: #F9B545;
    color: white;
    border-radius: 50%;
    font-size: .62rem;
    font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid #07101f;
    z-index: 1;
    animation: badge-pop 0.5s cubic-bezier(.34,1.56,.64,1);
}
@keyframes badge-pop {
    0%   { transform: scale(0); }
    80%  { transform: scale(1.25); }
    100% { transform: scale(1); }
}
@keyframes fab-pulse {
    0%, 100% { box-shadow: 0 6px 28px rgba(16,85,170,.5), 0 0 0 0 rgba(53,197,240,.35); }
    55%       { box-shadow: 0 6px 28px rgba(16,85,170,.5), 0 0 0 10px rgba(53,197,240,.0); }
}

.chatbot-widget {
    position: fixed;
    bottom: 106px; right: 28px;
    z-index: 1100;
    width: 380px;
    background: white;
    border-radius: var(--r-xl);
    box-shadow: 0 25px 70px rgba(0,0,0,.22);
    display: none;
    flex-direction: column;
    overflow: hidden;
    max-height: 560px;
    border: 1px solid rgba(0,0,0,.07);
}
.chatbot-widget.open {
    display: flex;
    animation: chat-in .28s cubic-bezier(.34,1.56,.64,1);
}
@keyframes chat-in {
    from { opacity: 0; transform: translateY(16px) scale(.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.chatbot-header {
    padding: 18px 20px;
    background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid));
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.chatbot-avatar {
    position: relative;
    width: 42px; height: 42px;
    background: rgba(255,255,255,.18);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
}
.avatar-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.3);
    animation: pulse-ring 2.5s ease infinite;
}
@keyframes pulse-ring {
    0%   { transform: scale(1); opacity: .7; }
    70%  { transform: scale(1.3); opacity: 0; }
    100% { transform: scale(1.3); opacity: 0; }
}
.chatbot-meta { flex: 1; }
.chatbot-name {
    display: block;
    color: white;
    font-weight: 700;
    font-size: .95rem;
}
.chatbot-online {
    display: flex;
    align-items: center;
    gap: 5px;
    color: rgba(255,255,255,.7);
    font-size: .77rem;
}
.online-dot {
    width: 7px; height: 7px;
    background: #4ade80;
    border-radius: 50%;
}
.chatbot-close {
    width: 32px; height: 32px;
    background: rgba(255,255,255,.12);
    border: none;
    border-radius: 50%;
    color: rgba(255,255,255,.8);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: .85rem;
    transition: var(--t);
    flex-shrink: 0;
}
.chatbot-close:hover { background: rgba(255,255,255,.22); color: white; }

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scroll-behavior: smooth;
}
.chatbot-messages::-webkit-scrollbar { width: 4px; }
.chatbot-messages::-webkit-scrollbar-track { background: transparent; }
.chatbot-messages::-webkit-scrollbar-thumb { background: var(--gray-light); border-radius: 2px; }

.chat-msg { display: flex; max-width: 88%; }
.chat-msg.bot { align-self: flex-start; }
.chat-msg.user { align-self: flex-end; }

.msg-bubble {
    padding: 11px 15px;
    border-radius: 18px;
    font-size: .88rem;
    line-height: 1.55;
    animation: msg-in .2s ease;
}
@keyframes msg-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.chat-msg.bot .msg-bubble {
    background: var(--bg);
    color: var(--dark-2);
    border-bottom-left-radius: 4px;
    border: 1px solid var(--gray-xlight);
}
.chat-msg.user .msg-bubble {
    background: linear-gradient(135deg, var(--blue), var(--blue-light));
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 4px 0;
}
.suggestion-btn {
    padding: 6px 13px;
    background: white;
    border: 1.5px solid var(--gray-light);
    border-radius: var(--r-pill);
    font-size: .78rem;
    font-weight: 600;
    color: var(--blue);
    cursor: pointer;
    transition: var(--t);
}
.suggestion-btn:hover {
    background: var(--blue);
    color: white;
    border-color: var(--blue);
}

.typing-bubble { align-self: flex-start; }
.typing-dots {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: var(--bg);
    border: 1px solid var(--gray-xlight);
    border-radius: 18px;
    border-bottom-left-radius: 4px;
}
.typing-dot {
    width: 7px; height: 7px;
    background: var(--gray);
    border-radius: 50%;
    animation: td 1.4s ease-in-out infinite;
}
.typing-dot:nth-child(2) { animation-delay: .2s; }
.typing-dot:nth-child(3) { animation-delay: .4s; }
@keyframes td {
    0%, 60%, 100% { transform: translateY(0); opacity: .4; }
    30%            { transform: translateY(-5px); opacity: 1; }
}

.chatbot-input-wrap {
    padding: 14px;
    border-top: 1px solid var(--gray-xlight);
    display: flex;
    gap: 10px;
    align-items: center;
    background: white;
    flex-shrink: 0;
}
.chatbot-input-wrap input {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid var(--gray-xlight);
    border-radius: var(--r-pill);
    font-family: var(--ff-body);
    font-size: .88rem;
    outline: none;
    transition: var(--t);
    background: var(--bg);
}
.chatbot-input-wrap input:focus {
    border-color: var(--blue);
    background: white;
}
.chatbot-input-wrap button {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--blue-light));
    border: none;
    color: white;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: .95rem;
    transition: var(--t);
    flex-shrink: 0;
}
.chatbot-input-wrap button:hover { transform: scale(1.1); }
.chatbot-input-wrap button:disabled { opacity: .5; pointer-events: none; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .stats-grid       { grid-template-columns: repeat(2,1fr); }
    .formations-grid  { grid-template-columns: repeat(2,1fr); }
    .why-layout       { grid-template-columns: 1fr; gap: 48px; }
    .why-left         { text-align: center; }
    .footer-grid      { grid-template-columns: 1fr 1fr; gap: 40px; }
    .contact-layout   { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links, .nav-cta { display: none; }
    .nav-toggle { display: flex; }

    .hero-title { font-size: 2.2rem; }
    .hero-trust { flex-direction: column; gap: 10px; }
    .trust-divider { display: none; }

    .formations-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .contact-form { padding: 28px; }
    .maps-card { height: 280px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .opco-grid { grid-template-columns: repeat(2,1fr); }

    .chatbot-widget {
        width: calc(100vw - 32px);
        right: 16px;
        bottom: 96px;
    }
    .chatbot-fab { right: 16px; bottom: 16px; }
}

@media (max-width: 480px) {
    .hero-actions { flex-direction: column; align-items: stretch; }
    .btn-lg { padding: 14px 24px; text-align: center; justify-content: center; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .opco-grid { grid-template-columns: repeat(2,1fr); }
}

/* Mobile nav open */
@media (max-width: 768px) {
    .nav-links, .nav-cta { display: none; }
    .nav-toggle { display: flex; }
    .nav-links.mobile-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: #fff;
        padding: 16px;
        gap: 4px;
        box-shadow: 0 18px 50px -22px rgba(16,40,90,.3);
        border-radius: 0 0 18px 18px;
    }
    .nav-links.mobile-open .nav-link { color: var(--navy); }
}

/* ─── 3D perspective on grid containers ────────────── */
#formationsGrid,
#opcoGrid,
.reviews-grid {
    perspective: 1400px;
}
.why-right {
    perspective: 1000px;
}
