/* Variables CSS — UnitySoftConnect (clair, moderne, simple) */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --accent: #f59e0b;
    --success: #0f9f6e;
    --warning: #d97706;
    --error: #dc2626;
    
    /* Couleurs neutres */
    --gray-50: #f7f8fa;
    --gray-100: #eef1f4;
    --gray-200: #dde3ea;
    --gray-300: #c5ced8;
    --gray-400: #8b98a8;
    --gray-500: #5f6b7a;
    --gray-600: #445062;
    --gray-700: #2f3b4c;
    --gray-800: #1c2733;
    --gray-900: #0f1720;
    
    /* Surfaces */
    --surface: #ffffff;
    --surface-alt: #f4f7f9;
    --surface-dark: #0c1520;
    --text-primary: #132033;
    --text-secondary: #5a6778;
    --text-inverse: #ffffff;
    
    /* Transitions et animations modernes */
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Ombres modernes */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-base: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --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);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Rayons de bordure */
    --radius-sm: 0.375rem;
    --radius-base: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-full: 9999px;
}

/* Corrections pour éliminer l'espace blanc */
/* Reset et base moderne */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', sans-serif;
    line-height: 1.65;
    color: var(--text-primary);
    background-color: var(--surface);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

/* Navigation moderne */
.modern-nav {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 0.85rem 0;
    transition: var(--transition-base);
}

.modern-nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.modern-logo .logo-text {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(
        110deg,
        #4f46e5 0%,
        #6366f1 28%,
        #a78bfa 48%,
        #6366f1 68%,
        #8b5cf6 100%
    );
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: brandShimmer 4.5s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.22));
}

.modern-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary) !important;
    text-decoration: none;
}

.logo-icon {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.modern-nav-link {
    color: var(--text-primary) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-base);
    transition: var(--transition-fast);
    position: relative;
}

.modern-nav-link:hover {
    color: var(--primary) !important;
    background: rgba(99, 102, 241, 0.08);
}

.modern-theme-btn {
    background: var(--gray-100);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    color: var(--text-primary);
}

.modern-theme-btn:hover {
    background: var(--gray-200);
    transform: scale(1.05);
}

.btn-modern-cta {
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.35rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fast);
    box-shadow: none;
    border: none;
}

.btn-modern-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    color: white;
}

.modern-toggler {
    border: none;
    padding: 0.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.modern-toggler span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* Hero — clair, aéré, moins brutal */
.modern-hero {
    min-height: 100vh;
    min-height: 100svh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 8.5rem 0 5.5rem;
    background: #eef4f7;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-media-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% center;
    filter: saturate(0.78) contrast(0.95) brightness(1.08);
    transform: scale(1.03);
    animation: heroDrift 22s ease-in-out infinite alternate;
    content-visibility: auto;
}

@media (max-width: 768px) {
    .hero-media-img {
        animation: none;
        transform: none;
        filter: saturate(0.7) brightness(1.12);
    }
    .hero-soft-glow {
        display: none;
    }
}

.hero-media-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(238, 244, 247, 0.88) 0%,
            rgba(238, 244, 247, 0.82) 45%,
            rgba(238, 244, 247, 0.92) 100%
        ),
        radial-gradient(
            ellipse 80% 60% at 50% 40%,
            rgba(255, 255, 255, 0.5) 0%,
            rgba(255, 255, 255, 0) 70%
        );
}

.hero-soft-glow {
    position: absolute;
    width: min(60vw, 640px);
    height: min(60vw, 640px);
    left: 50%;
    top: 35%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, rgba(99, 102, 241, 0) 70%);
    pointer-events: none;
    animation: heroGlow 10s ease-in-out infinite alternate;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.hero-brand {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(1.65rem, 3.4vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    margin: 0 0 1.1rem;
    background: linear-gradient(
        110deg,
        #4f46e5 0%,
        #6366f1 28%,
        #c4b5fd 48%,
        #6366f1 68%,
        #8b5cf6 100%
    );
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 16px rgba(99, 102, 241, 0.28));
    animation:
        fadeSlideUp 0.85s ease both,
        brandShimmer 4.5s ease-in-out 0.85s infinite,
        brandGlowPulse 3.2s ease-in-out 0.85s infinite;
}

.modern-hero .modern-hero-title {
    color: var(--text-primary);
    max-width: 18ch;
    margin-left: auto;
    margin-right: auto;
    font-weight: 700;
    letter-spacing: -0.035em;
    margin-bottom: 1.15rem;
    animation: fadeSlideUp 0.9s ease 0.07s both;
}

.modern-hero .modern-hero-subtitle {
    color: var(--text-secondary);
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    animation: fadeSlideUp 0.9s ease 0.14s both;
}

.modern-hero .hero-cta-group {
    margin-bottom: 0;
    gap: 0.75rem;
    justify-content: center;
    animation: fadeSlideUp 0.9s ease 0.2s both;
}

.modern-hero .btn-modern-primary {
    box-shadow: 0 10px 28px rgba(99, 102, 241, 0.18);
}

.modern-hero .btn-modern-secondary {
    color: var(--text-primary);
    border-color: rgba(19, 32, 51, 0.14);
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(8px);
}

.modern-hero .btn-modern-secondary:hover {
    background: #fff;
    border-color: var(--primary);
    color: var(--primary);
}

@keyframes heroDrift {
    from { transform: scale(1.03) translate3d(0, 0, 0); }
    to { transform: scale(1.06) translate3d(-1.2%, -0.6%, 0); }
}

@keyframes heroGlow {
    from { opacity: 0.55; transform: translate(-50%, -50%) scale(1); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}

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

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

@keyframes brandGlowPulse {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.2)); }
    50% { filter: drop-shadow(0 0 22px rgba(139, 92, 246, 0.42)); }
}

.section-block {
    padding-top: 5.5rem;
    padding-bottom: 5.5rem;
}

.section-intro {
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
}

/* Contact Section Styles */
.bg-primary-subtle {
    background-color: rgba(99, 102, 241, 0.1) !important;
}

.hover-opacity-100:hover {
    opacity: 1 !important;
}

.transition-base {
    transition: var(--transition-base);
}

.hover-shadow-lg:hover {
    box-shadow: var(--shadow-lg) !important;
}

.contact-info-card {
    transition: var(--transition-base);
}

.contact-info-card:hover {
    transform: translateY(-5px);
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--primary);
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

.form-floating > .form-control:focus {
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

/* Ensure rounded-4 works if not in BS5 */
.rounded-4 {
    border-radius: 1rem !important;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: -5%;
    animation-delay: 2s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 30%;
    right: 20%;
    animation-delay: 4s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 10%;
    animation-delay: 1s;
}

.modern-hero-title {
    font-size: clamp(2.4rem, 6vw, 4.25rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.highlight-text {
    color: var(--accent);
}

.modern-hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    line-height: 1.65;
}

.hero-cta-group {
    display: flex;
    gap: 0.85rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.btn-modern-primary {
    background: var(--primary);
    color: white;
    padding: 0.95rem 1.6rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-base);
    box-shadow: none;
    border: none;
}

.btn-modern-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    color: white;
}

.btn-modern-secondary {
    background: transparent;
    color: var(--text-primary);
    padding: 0.95rem 1.6rem;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-base);
}

.btn-modern-secondary:hover {
    background: var(--gray-50);
    border-color: var(--primary);
    color: var(--primary);
}

.hero-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-stats .stat-item {
    text-align: left;
}

.hero-stats .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.hero-stats .stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.hero-visual {
    position: relative;
    z-index: 1;
}

.main-image-container {
    position: relative;
    display: inline-block;
}

.main-hero-image {
    width: 100%;
    max-width: 500px;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    animation: float 4s ease-in-out infinite;
}

.floating-card {
    position: absolute;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    animation: float 4s ease-in-out infinite;
}

.floating-card i {
    font-size: 1.25rem;
    color: var(--primary);
}

.card-1 {
    top: 20%;
    left: -20%;
    animation-delay: 0.5s;
}

.card-2 {
    top: 60%;
    right: -15%;
    animation-delay: 1.5s;
}

.card-3 {
    bottom: 10%;
    left: -10%;
    animation-delay: 2.5s;
}

/* Services */
#services {
    padding: 5.5rem 0;
    background: var(--surface-alt);
}

.section-title {
    font-size: clamp(1.85rem, 3.5vw, 2.6rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.section-intro .lead {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.service-card {
    background: #fff;
    border-radius: 1.1rem;
    padding: 1.35rem 1.25rem 1.25rem;
    border: 1px solid rgba(99, 102, 241, 0.16);
    box-shadow:
        0 1px 2px rgba(99, 102, 241, 0.04),
        0 8px 22px rgba(99, 102, 241, 0.08),
        0 0 0 1px rgba(139, 92, 246, 0.04);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    height: 100%;
    text-align: left;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.service-card::before { content: none; }

.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.34);
    box-shadow:
        0 2px 6px rgba(99, 102, 241, 0.08),
        0 16px 36px rgba(99, 102, 241, 0.16),
        0 0 28px rgba(139, 92, 246, 0.12);
}

.service-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.service-index {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--gray-400);
    letter-spacing: 0.04em;
}

.service-icon {
    width: 48px;
    height: 48px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    font-size: 1.15rem;
    color: var(--primary);
    transition: background 0.25s ease, color 0.25s ease;
    flex-shrink: 0;
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: #fff;
}

.service-card h3,
.service-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0 0 1.1rem;
    font-size: 0.93rem;
    flex: 1;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    margin-top: auto;
    padding-top: 0.25rem;
}

.service-link i {
    font-size: 0.72rem;
    transition: transform 0.2s ease;
}

.service-link:hover { color: var(--primary-dark); }
.service-link:hover i { transform: translateX(3px); }

/* Cartes cours */
.usc-course-card {
    background: #fff;
    border: 1px solid rgba(99, 102, 241, 0.16);
    border-radius: 1.1rem;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: left;
    box-shadow:
        0 1px 2px rgba(99, 102, 241, 0.04),
        0 8px 22px rgba(99, 102, 241, 0.08),
        0 0 0 1px rgba(139, 92, 246, 0.04);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.usc-course-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.34);
    box-shadow:
        0 2px 6px rgba(99, 102, 241, 0.08),
        0 16px 36px rgba(99, 102, 241, 0.16),
        0 0 28px rgba(139, 92, 246, 0.12);
}

.usc-course-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #dbe7ee, #eef4f7);
}

.usc-course-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.usc-course-body {
    padding: 1rem 1.05rem 1.1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0;
}

.usc-course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.65rem;
}

.usc-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.usc-chip-soft {
    background: var(--gray-100);
    color: var(--text-secondary);
}

.usc-course-title {
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 0.4rem;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.usc-course-desc {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.5;
    margin: 0 0 0.9rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.usc-course-footer {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: auto;
}

.usc-course-price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
}

.usc-price {
    font-weight: 800;
    color: var(--primary);
    font-size: 1.02rem;
    white-space: nowrap;
}

.usc-course-note {
    margin: 0;
    font-size: 0.72rem;
    color: var(--gray-500);
    text-align: right;
}

.usc-course-card .btn-enroll-countdown {
    width: 100%;
    min-width: 0;
    max-width: none;
}

.usc-course-card .btn-enroll-countdown .enroll-countdown-time {
    font-size: 0.62rem;
    line-height: 1.35;
    word-break: break-word;
}

/* À propos */
.about-section {
    background: #fff;
}

.about-story {
    text-align: center;
}

.about-story p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.75;
    margin: 0 0 1rem;
}

.about-story p:last-child { margin-bottom: 0; }

.about-pillar {
    background: var(--surface-alt);
    border: 1px solid rgba(19, 32, 51, 0.06);
    border-radius: 1rem;
    padding: 1.15rem 0.85rem;
    text-align: center;
    height: 100%;
}

.about-pillar strong {
    display: block;
    font-size: clamp(1.25rem, 3vw, 1.6rem);
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

.about-pillar span {
    display: block;
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.35;
}

@media (max-width: 575.98px) {
    .about-section .btn-modern-secondary {
        margin-left: 0 !important;
        margin-top: 0.65rem;
    }

    .about-section .hero-cta-group,
    .about-section .text-center .btn {
        display: inline-flex;
    }

    .about-section .text-center {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.55rem;
    }

    .about-section .text-center .btn {
        width: 100%;
        justify-content: center;
        margin: 0 !important;
    }

    .service-card {
        padding: 1.2rem 1.1rem;
    }

    .usc-course-card .btn-enroll-countdown .enroll-countdown-time {
        font-size: 0.58rem;
    }
}

#fondateurs .card-img-top {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    width: 100%;
}

/* Section Statistiques Ultra-Moderne */
.stats {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
    padding: 6rem 0;
    position: relative;
    color: white;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
}

.stats::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.03) 50%, transparent 70%);
    animation: shimmer 8s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.stats .container {
    position: relative;
    z-index: 2;
}

.stats-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.stats-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    font-weight: 400;
}

.stats .stat-item {
    text-align: center;
    padding: 2rem 1.5rem;
    transition: var(--transition-base);
    border-radius: var(--radius-xl);
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

.stats .stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    border-radius: 0 0 var(--radius-base) var(--radius-base);
}

.stats .stat-item:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.stats .stat-number {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    color: white;
    margin-bottom: 0.75rem;
    display: block;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #ffffff, #f0f9ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
}

.stats .stat-number::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: -1;
}

.stats .stat-item p {
    font-size: 1.25rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

/* Les animations sont gérées par JavaScript */
.stats .stat-item:nth-child(1) .stat-number {
    /* animation gérée par JS */
}

.stats .stat-item:nth-child(2) .stat-number {
    /* animation gérée par JS */
}

.stats .stat-item:nth-child(3) .stat-number {
    /* animation gérée par JS */
}

.stats .stat-item:nth-child(4) .stat-number {
    /* animation gérée par JS */
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Icônes pour les statistiques */
.stats .stat-item::after {
    content: '';
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.stats .stat-item:nth-child(1)::after {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="white" viewBox="0 0 24 24"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"/></svg>');
    background-size: 20px;
    background-repeat: no-repeat;
    background-position: center;
}

.stats .stat-item:nth-child(2)::after {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="white" viewBox="0 0 24 24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>');
    background-size: 20px;
    background-repeat: no-repeat;
    background-position: center;
}

.stats .stat-item:nth-child(3)::after {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="white" viewBox="0 0 24 24"><path d="M16 4c0-1.11.89-2 2-2s2 .89 2 2-.89 2-2 2-2-.89-2-2zm4 18v-6h2.5l-2.54-7.63A1.5 1.5 0 0 0 18.54 8H16c-.8 0-1.54.37-2.01.99L12 11l-1.99-2.01A2.5 2.5 0 0 0 8 8H5.46c-.8 0-1.49.59-1.42 1.37L6.5 16H9v6h2v-6h2v6h2z"/></svg>');
    background-size: 20px;
    background-repeat: no-repeat;
    background-position: center;
}

.stats .stat-item:nth-child(4)::after {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="white" viewBox="0 0 24 24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.94-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z"/></svg>');
    background-size: 20px;
    background-repeat: no-repeat;
    background-position: center;
}

/* Section À propos moderne */
#apropos {
    background: #fff;
}

/* Section Portfolio moderne */
#portfolio {
    padding: 6rem 0;
    background: var(--surface);
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.portfolio-filter-btn {
    background: var(--surface);
    border: 2px solid var(--gray-200);
    color: var(--text-secondary);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 500;
    transition: var(--transition-fast);
    cursor: pointer;
    font-size: 0.9rem;
}

.portfolio-filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.portfolio-filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.portfolio-item {
    transition: var(--transition-base);
}

.portfolio-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.portfolio-card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-base);
    border: 1px solid var(--gray-100);
    transition: var(--transition-base);
    height: 100%;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-base);
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.9), rgba(139, 92, 246, 0.9));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
    opacity: 0;
    transition: var(--transition-base);
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-info h4 {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.portfolio-info p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
}

.portfolio-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-portfolio-view,
.btn-portfolio-link {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition-fast);
    cursor: pointer;
}

.btn-portfolio-view:hover,
.btn-portfolio-link:hover {
    background: white;
    color: var(--primary);
    transform: scale(1.1);
}

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-content h5 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.portfolio-category {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.portfolio-results {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.result-item {
    text-align: center;
    flex: 1;
}

.result-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.result-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Section Cours — bande indigo (permutation visuelle au scroll) */
#cours,
.courses-band {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 5.5rem 0;
    background:
        radial-gradient(ellipse 80% 60% at 12% 20%, rgba(99, 102, 241, 0.55) 0%, transparent 55%),
        radial-gradient(ellipse 70% 50% at 88% 75%, rgba(56, 189, 248, 0.28) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 50% 100%, rgba(139, 92, 246, 0.35) 0%, transparent 55%),
        linear-gradient(160deg, #1e3a8a 0%, #312e81 42%, #1d4ed8 100%);
    color: #eef2ff;
}

.courses-band-glow {
    position: absolute;
    inset: -20% -10%;
    background:
        radial-gradient(circle at 30% 40%, rgba(165, 180, 252, 0.22) 0%, transparent 42%),
        radial-gradient(circle at 70% 60%, rgba(125, 211, 252, 0.16) 0%, transparent 40%);
    animation: coursesBandDrift 14s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

.courses-band-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 20%, transparent 85%);
    pointer-events: none;
    z-index: 0;
    opacity: 0.7;
}

#cours > .container,
.courses-band > .container {
    z-index: 1;
}

#cours .section-title,
.courses-band .section-title {
    color: #f8fafc;
    text-shadow: 0 2px 24px rgba(15, 23, 42, 0.25);
}

#cours .lead,
.courses-band .lead {
    color: rgba(224, 231, 255, 0.88);
}

.courses-band-eyebrow {
    display: inline-block;
    margin: 0 0 0.75rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #e0e7ff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}

#cours .usc-course-card,
.courses-band .usc-course-card {
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.08),
        0 12px 32px rgba(15, 23, 42, 0.18),
        0 0 0 1px rgba(165, 180, 252, 0.15);
}

#cours .usc-course-card:hover,
.courses-band .usc-course-card:hover {
    border-color: rgba(255, 255, 255, 0.85);
    box-shadow:
        0 4px 12px rgba(15, 23, 42, 0.12),
        0 18px 40px rgba(15, 23, 42, 0.22),
        0 0 36px rgba(125, 211, 252, 0.2);
}

.btn-courses-band {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    font-weight: 700;
    color: #1e3a8a;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.22);
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-courses-band:hover {
    color: #312e81;
    background: #eef2ff;
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.28);
}

@keyframes coursesBandDrift {
    from { transform: translate3d(-2%, -1%, 0) scale(1); }
    to { transform: translate3d(2%, 1.5%, 0) scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
    .courses-band-glow { animation: none !important; }
}

#cours .h5,
.courses-band .h5 {
    color: #e0e7ff;
}

#cours .course-filters .filter-btn,
.courses-band .course-filters .filter-btn {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.28);
    color: #e0e7ff;
}

#cours .course-filters .filter-btn:hover,
.courses-band .course-filters .filter-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
}

#cours .course-filters .filter-btn.active,
.courses-band .course-filters .filter-btn.active {
    background: #fff;
    border-color: #fff;
    color: #1e3a8a;
}

[data-theme="dark"] #cours,
[data-theme="dark"] .courses-band {
    background:
        radial-gradient(ellipse 80% 60% at 12% 20%, rgba(99, 102, 241, 0.4) 0%, transparent 55%),
        radial-gradient(ellipse 70% 50% at 88% 75%, rgba(56, 189, 248, 0.18) 0%, transparent 50%),
        linear-gradient(160deg, #0f172a 0%, #1e1b4b 45%, #1e3a8a 100%);
}

/* Cards restent claires sur la bande bleue (contraste) */
[data-theme="dark"] #cours .usc-course-card,
[data-theme="dark"] .courses-band .usc-course-card {
    background: #fff;
    border-color: rgba(255, 255, 255, 0.55);
}

[data-theme="dark"] #cours .usc-course-title,
[data-theme="dark"] .courses-band .usc-course-title,
[data-theme="dark"] #cours .usc-course-title a,
[data-theme="dark"] .courses-band .usc-course-title a {
    color: #132033;
}

[data-theme="dark"] #cours .usc-course-desc,
[data-theme="dark"] .courses-band .usc-course-desc,
[data-theme="dark"] #cours .usc-course-note,
[data-theme="dark"] .courses-band .usc-course-note {
    color: #5a6778;
}

/* Filtres de cours */
.course-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.filter-btn {
    background: var(--surface);
    border: 2px solid var(--gray-200);
    color: var(--text-secondary);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 500;
    transition: var(--transition-fast);
    cursor: pointer;
    font-size: 0.9rem;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: var(--shadow-md);
}

/* Animation pour les cours */
.course-item {
    transition: var(--transition-base);
}

.course-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.card {
    border: none;
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition-base);
    box-shadow: var(--shadow-base);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    transition: var(--transition-base);
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-body {
    padding: 2rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.card-text {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.text-primary {
    color: var(--primary) !important;
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    border-radius: var(--radius-base);
    font-weight: 500;
    transition: var(--transition-fast);
}

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Témoignages modernes */
#temoignages {
    padding: 6rem 0;
    background: var(--surface);
}

.testimonial-card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-base);
    border: 1px solid var(--gray-100);
    margin-bottom: 2rem;
    transition: var(--transition-base);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 2rem;
    font-size: 4rem;
    color: var(--primary);
    font-family: 'Manrope', sans-serif;
    opacity: 0.3;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(99, 102, 241, 0.2);
}

.testimonial-img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    object-fit: cover;
    margin-right: 1rem;
    border: 3px solid var(--gray-100);
}

.testimonial-card h5 {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.testimonial-card .text-muted {
    color: var(--text-secondary) !important;
    font-size: 0.875rem;
}

.testimonial-card p:last-child {
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 1rem;
    margin-bottom: 0;
}

/* Footer moderne */
/* ═══════════════════════════════════════════════════
   USC FOOTER — Modern 2025
   ═══════════════════════════════════════════════════ */
.usc-footer {
    background: #060c1a;
    color: rgba(255,255,255,.75);
    padding: 5rem 0 0;
    position: relative;
    overflow: visible;
}

/* Animated top border */
.usc-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        #6366f1 25%,
        #8b5cf6 50%,
        #06b6d4 75%,
        transparent 100%);
    background-size: 200% 100%;
    animation: ftBorderSlide 4s linear infinite;
}
@keyframes ftBorderSlide {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Subtle grid pattern */
.usc-footer::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241,.03) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

/* Decorative wrapper — completely isolated from content */
.ft-deco {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

/* Glowing orbs */
.ft-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}
.ft-orb-1 {
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(99, 102, 241,.18) 0%, transparent 70%);
    top: -120px; left: -100px;
}
.ft-orb-2 {
    width: 360px; height: 360px;
    background: radial-gradient(circle, rgba(139, 92, 246,.14) 0%, transparent 70%);
    bottom: 80px; right: -80px;
}

/* Decorative layer isolated — content always above */
.usc-footer .ft-orb {
    z-index: 0;
    isolation: isolate;
}
.usc-footer::after {
    z-index: 0;
}
.usc-footer .container {
    position: relative;
    z-index: 2;
    isolation: isolate;
    will-change: transform;
}

/* ── Main grid ── */
.ft-main { padding-bottom: 3rem; }

/* ── Brand ── */
.ft-brand-link { text-decoration: none; display: inline-block; margin-bottom: 1.1rem; }
.ft-brand-name {
    font-family: 'Manrope', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.02em;
}
.ft-brand-name span {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ft-brand-desc {
    color: rgba(255,255,255,.5);
    font-size: .875rem;
    line-height: 1.75;
    margin-bottom: 1.5rem;
    max-width: 320px;
}

/* Social icons */
.ft-socials { display: flex; gap: .625rem; margin-bottom: 1.5rem; }
.ft-social {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: .85rem;
    color: rgba(255,255,255,.6);
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    text-decoration: none;
    transition: all .22s cubic-bezier(.4,0,.2,1);
}
.ft-social:hover { transform: translateY(-3px); color: #fff; }
.ft-fb:hover  { background: #1877f2; border-color: #1877f2; box-shadow: 0 6px 20px rgba(24,119,242,.35); }
.ft-tw:hover  { background: #000;    border-color: #333;    box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.ft-ig:hover  {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(253,89,73,.4);
}
.ft-li:hover  { background: #0a66c2; border-color: #0a66c2; box-shadow: 0 6px 20px rgba(10,102,194,.35); }

/* Trust badges */
.ft-badges { display: flex; flex-wrap: wrap; gap: .4rem; }
.ft-badge {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .25rem .7rem;
    border-radius: 99px;
    font-size: .7rem; font-weight: 600;
    color: rgba(255,255,255,.5);
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
}
.ft-badge i { color: #10b981; font-size: .65rem; }

/* ── Headings ── */
.ft-heading {
    font-family: 'Manrope', sans-serif;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(255,255,255,.35);
    margin-bottom: 1.25rem;
    position: relative;
    padding-left: .875rem;
}
.ft-heading::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 3px; height: 14px;
    background: linear-gradient(135deg,#6366f1,#8b5cf6);
    border-radius: 2px;
}

/* ── Nav lists ── */
.ft-nav-list { list-style: none; padding: 0; margin: 0; }
.ft-nav-list li { margin-bottom: .5rem; }
.ft-nav-list a {
    display: flex; align-items: center; gap: .5rem;
    color: rgba(255,255,255,.55);
    text-decoration: none;
    font-size: .875rem;
    font-weight: 500;
    transition: all .2s ease;
}
.ft-nav-list a i {
    font-size: .6rem;
    color: rgba(99, 102, 241,.5);
    transition: transform .2s ease, color .2s ease;
}
.ft-nav-list a:hover { color: #fff; padding-left: 4px; }
.ft-nav-list a:hover i { color: #6366f1; transform: translateX(2px); }

/* ── Contact list ── */
.ft-contact-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.ft-contact-list li {
    display: flex; gap: .75rem;
    margin-bottom: .875rem;
    font-size: .85rem;
    color: rgba(255,255,255,.55);
    line-height: 1.6;
    align-items: flex-start;
}
.ft-ci-icon {
    width: 32px; height: 32px; flex-shrink: 0;
    border-radius: 8px;
    background: rgba(99, 102, 241,.12);
    border: 1px solid rgba(99, 102, 241,.2);
    display: flex; align-items: center; justify-content: center;
    color: #818cf8;
    font-size: .75rem;
    margin-top: .05rem;
}
.ft-contact-list a {
    color: rgba(255,255,255,.55);
    text-decoration: none;
    transition: color .2s;
}
.ft-contact-list a:hover { color: #a5b4fc; }

/* ── Newsletter ── */
.ft-newsletter {}
.ft-nl-label {
    font-size: .78rem; font-weight: 700;
    color: rgba(255,255,255,.4);
    text-transform: uppercase; letter-spacing: .06em;
    margin-bottom: .6rem;
    display: flex; align-items: center; gap: .4rem;
}
.ft-nl-label i { color: #f59e0b; }
.ft-nl-form {
    display: flex;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}
.ft-nl-form:focus-within {
    border-color: rgba(99, 102, 241,.5);
    box-shadow: 0 0 0 3px rgba(99, 102, 241,.12);
}
.ft-nl-input {
    flex: 1; padding: .7rem .9rem;
    background: none; border: none; outline: none;
    color: #fff; font-size: .85rem; font-family: inherit;
}
.ft-nl-input::placeholder { color: rgba(255,255,255,.3); }
.ft-nl-btn {
    width: 42px; height: 42px; flex-shrink: 0;
    background: linear-gradient(135deg,#6366f1,#8b5cf6);
    border: none; cursor: pointer; color: #fff;
    font-size: .85rem;
    transition: all .2s ease;
    margin: 3px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
}
.ft-nl-btn:hover { transform: scale(1.08); box-shadow: 0 4px 14px rgba(99, 102, 241,.4); }

/* ── Divider ── */
.ft-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.08) 20%, rgba(255,255,255,.08) 80%, transparent);
    margin: 0;
}

/* ── Bottom bar ── */
.ft-bottom {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: .75rem;
    padding: 1.4rem 0 1.5rem;
}
.ft-copy {
    margin: 0;
    font-size: .82rem;
    color: rgba(255,255,255,.35);
}
.ft-copy strong { color: rgba(255,255,255,.55); font-weight: 600; }
.ft-heart { color: #ef4444; font-size: .75rem; }

.ft-bottom-links {
    display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
}
.ft-bottom-links a {
    font-size: .78rem;
    color: rgba(255,255,255,.3);
    text-decoration: none;
    transition: color .2s;
}
.ft-bottom-links a:hover { color: rgba(255,255,255,.75); }
.ft-dot {
    width: 3px; height: 3px; border-radius: 50%;
    background: rgba(255,255,255,.2);
    display: inline-block;
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .usc-footer { padding-top: 4rem; }
    .ft-main { padding-bottom: 2rem; }
}
@media (max-width: 576px) {
    .ft-bottom { flex-direction: column; text-align: center; }
    .ft-bottom-links { justify-content: center; }
    .ft-brand-desc { max-width: 100%; }
}

/* ── Dark mode ── (footer is already dark, just lighten contrast slightly) */
[data-theme="dark"] .usc-footer { background: #030812; }
[data-theme="dark"] .ft-orb-1 { opacity: .7; }
[data-theme="dark"] .ft-orb-2 { opacity: .7; }
[data-theme="dark"] .ft-nl-form { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.07); }

/* Legacy compat — keep old .social-icons / .copyright in case other pages use them */
.social-icons { display: flex; gap: 1rem; }
.social-icons a {
    width: 42px; height: 42px;
    background: rgba(255,255,255,.08);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.7); text-decoration: none;
    transition: all .2s;
}
.social-icons a:hover { background: #6366f1; color: #fff; transform: translateY(-3px); }
.copyright {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 1.5rem 0;
    text-align: center;
}
.copyright p { margin: 0; color: rgba(255,255,255,.4); font-size: .85rem; }

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

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

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    50% { 
        transform: translateY(-20px) rotate(2deg); 
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Utilitaires modernes */
.gradient-bg {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Mode sombre */
[data-theme="dark"] {
    --surface: #0f172a;
    --surface-alt: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --gray-100: #334155;
    --gray-200: #475569;
}

[data-theme="dark"] .modern-nav {
    background: rgba(15, 23, 42, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .modern-nav-link {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .modern-nav-link:hover {
    background: rgba(99, 102, 241, 0.2);
}

[data-theme="dark"] .modern-theme-btn {
    background: var(--gray-200);
    color: var(--text-primary);
}

[data-theme="dark"] .service-card,
[data-theme="dark"] .testimonial-card,
[data-theme="dark"] .card {
    background: var(--surface-alt);
    border-color: var(--gray-200);
}

[data-theme="dark"] .bg-light {
    background-color: var(--surface-alt) !important;
}

[data-theme="dark"] .text-muted {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

[data-theme="dark"] .btn-outline-primary:hover {
    background-color: var(--primary);
    color: white;
}

[data-theme="dark"] .table {
    --bs-table-color: var(--text-primary);
    --bs-table-bg: transparent;
    --bs-table-border-color: var(--gray-200);
    --bs-table-striped-bg: var(--surface-alt);
    --bs-table-striped-color: var(--text-primary);
    --bs-table-active-bg: var(--gray-200);
    --bs-table-active-color: var(--text-primary);
    --bs-table-hover-bg: var(--gray-100);
    --bs-table-hover-color: var(--text-primary);
}

[data-theme="dark"] .form-control {
    background-color: var(--surface-alt);
    border-color: var(--gray-200);
    color: var(--text-primary);
}

[data-theme="dark"] .form-control:focus {
    background-color: var(--surface);
    border-color: var(--primary);
    color: var(--text-primary);
}

[data-theme="dark"] .form-select {
    background-color: var(--surface-alt);
    border-color: var(--gray-200);
    color: var(--text-primary);
}

[data-theme="dark"] .breadcrumb-item a {
    color: var(--primary);
}

[data-theme="dark"] .breadcrumb-item.active {
    color: var(--text-secondary);
}

[data-theme="dark"] .alert {
    --bs-alert-color: var(--text-primary);
    --bs-alert-bg: var(--surface-alt);
    --bs-alert-border-color: var(--gray-200);
}

[data-theme="dark"] .modal-content {
    background-color: var(--surface);
}

[data-theme="dark"] .modal-header,
[data-theme="dark"] .modal-footer {
    border-color: var(--gray-200);
}

[data-theme="dark"] .dropdown-menu {
    background-color: var(--surface-alt);
    border-color: var(--gray-200);
}

[data-theme="dark"] .dropdown-item {
    color: var(--text-primary);
}

[data-theme="dark"] .dropdown-item:hover {
    background-color: var(--gray-200);
}

/* Responsive Design Moderne */
@media (max-width: 1400px) {
    .container {
        max-width: 1320px;
        padding: 0 1rem;
    }
}

@media (max-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .modern-hero-title {
        font-size: 3.5rem;
    }
    
    .floating-card {
        font-size: 0.875rem;
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 992px) {
    .modern-hero {
        text-align: center;
        min-height: 100svh;
        padding: 7.5rem 0 4.5rem;
        align-items: center;
    }

    .hero-media-img {
        object-position: center center;
        filter: saturate(0.72) contrast(0.92) brightness(1.12);
    }

    .hero-media-overlay {
        background:
            linear-gradient(
                180deg,
                rgba(238, 244, 247, 0.9) 0%,
                rgba(238, 244, 247, 0.94) 48%,
                rgba(238, 244, 247, 0.97) 100%
            );
    }

    .modern-hero .modern-hero-title {
        max-width: 18ch;
    }
    
    .hero-cta-group {
        justify-content: center;
        margin-bottom: 0;
    }
    
    .service-card {
        margin-bottom: 1rem;
    }
    
    .modern-hero-title {
        font-size: clamp(2.1rem, 7vw, 2.85rem);
        margin-bottom: 1.1rem;
    }
    
    /* Navigation mobile améliorée */
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        border-radius: var(--radius-lg);
        margin-top: 1rem;
        padding: 1rem;
        box-shadow: var(--shadow-xl);
    }
    
    .modern-nav-link {
        padding: 0.75rem 1rem !important;
        margin: 0.25rem 0;
        border-radius: var(--radius-base);
    }
    
    .btn-modern-cta {
        margin-top: 1rem;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .modern-hero {
        padding: 6rem 0 3rem;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
        margin-bottom: 1rem;
    }
    
    .modern-hero-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .modern-hero-subtitle {
        font-size: 1.125rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-cta-group {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .btn-modern-primary,
    .btn-modern-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 0.875rem 1.5rem;
    }
    
    .hero-stats {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-stats .stat-item {
        flex: 0 0 calc(50% - 0.5rem);
        text-align: center;
    }
    
    .hero-stats .stat-number {
        font-size: 1.75rem;
    }
    
    .hero-stats .stat-label {
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    /* Ajustement pour 3 colonnes de témoignages sur tablette */
    @media (min-width: 768px) and (max-width: 991px) {
        #temoignages .col-lg-4 {
            flex: 0 0 50%;
            max-width: 50%;
        }
        
        #temoignages .col-lg-4:nth-child(3) {
            flex: 0 0 100%;
            max-width: 100%;
            margin-top: 1rem;
        }
    }
    
    .testimonial-img {
        width: 50px;
        height: 50px;
    }
    
    .main-hero-image {
        max-width: 350px;
    }
    
    /* Filtres responsive */
    .course-filters,
    .portfolio-filters {
        gap: 0.5rem;
    }
    
    .filter-btn,
    .portfolio-filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    /* Portfolio responsive */
    .portfolio-image {
        height: 200px;
    }
    
    .portfolio-overlay {
        padding: 1rem;
    }
    
    .portfolio-info h4 {
        font-size: 1.1rem;
    }
    
    .portfolio-results {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .result-number {
        font-size: 1.25rem;
    }
    
    /* Stats section responsive */
    .stats {
        padding: 4rem 0;
    }
    
    .stats .stat-item {
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
    }
    
    .stats .stat-number {
        font-size: 2.5rem;
    }
    
    .stats .stat-item p {
        font-size: 1rem;
        letter-spacing: 0.25px;
    }
    
    .stats .stat-item::after {
        width: 30px;
        height: 30px;
        top: -10px;
        right: -10px;
    }
}

@media (max-width: 576px) {
    .modern-nav {
        padding: 0.75rem 0;
    }
    
    .modern-logo {
        font-size: 1.25rem;
    }
    
    .logo-icon {
        font-size: 1.5rem;
    }
    
    .modern-hero {
        padding: 5rem 0 2rem;
    }
    
    .hero-badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
    
    .modern-hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .modern-hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }
    
    .hero-cta-group {
        margin-bottom: 1.5rem;
    }
    
    .btn-modern-primary,
    .btn-modern-secondary {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .hero-stats .stat-item {
        flex: 0 0 100%;
        margin-bottom: 0.5rem;
    }
    
    .hero-stats .stat-number {
        font-size: 1.5rem;
    }
    
    .hero-stats .stat-label {
        font-size: 0.75rem;
    }
    
    .stats {
        padding: 3rem 0;
    }
    
    .stats .stat-item {
        padding: 1.25rem 0.75rem;
        margin-bottom: 1rem;
    }
    
    .stats .stat-number {
        font-size: 2rem;
    }
    
    .stats .stat-item p {
        font-size: 0.9rem;
        letter-spacing: 0.1px;
    }
    
    .stats .stat-item::after {
        width: 25px;
        height: 25px;
        top: -8px;
        right: -8px;
    }
    
    #services,
    #apropos,
    #cours,
    #temoignages {
        padding: 3rem 0;
    }
    
    .service-card {
        padding: 1.5rem 1rem;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .main-hero-image {
        max-width: 300px;
    }
    
    footer {
        padding: 2.5rem 0 1rem;
    }
    
    .footer-links h5 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .social-icons a {
        width: 40px;
        height: 40px;
    }
    
    /* Portfolio très petits écrans */
    .portfolio-filters {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .portfolio-filter-btn {
        width: 100%;
        max-width: 200px;
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .portfolio-image {
        height: 180px;
    }
    
    .portfolio-content {
        padding: 1rem;
    }
    
    .portfolio-actions {
        gap: 0.5rem;
    }
    
    .btn-portfolio-view,
    .btn-portfolio-link {
        width: 40px;
        height: 40px;
    }
}

/* Très petits écrans */
@media (max-width: 400px) {
    .modern-hero-title {
        font-size: 1.75rem;
    }
    
    .hero-badge span:last-child {
        display: none;
    }
    
    .hero-badge::after {
        content: "Innovation";
    }
    
    .btn-modern-primary,
    .btn-modern-secondary {
        padding: 0.625rem 1rem;
        font-size: 0.85rem;
    }
    
    .service-card h4 {
        font-size: 1.25rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
    }
}

/* Optimisations de performance */
.hero-background,
.floating-shapes,
.shape {
    will-change: transform;
}

.service-card,
.testimonial-card,
.card {
    will-change: transform, box-shadow;
}

/* Améliorations d'accessibilité */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-shapes,
    .animate-float,
    .modern-logo .logo-text,
    .hero-brand {
        animation: none !important;
    }

    .modern-logo .logo-text,
    .hero-brand {
        filter: none;
        background: none;
        color: var(--primary);
        -webkit-background-clip: unset;
        background-clip: unset;
    }
}

/* Focus states pour l'accessibilité */
.btn-modern-primary:focus,
.btn-modern-secondary:focus,
.btn-modern-cta:focus,
.modern-theme-btn:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.modern-nav-link:focus {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
    border-radius: var(--radius-base);
}

/* États actifs pour les boutons */
.btn-modern-primary:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-modern-secondary:active {
    transform: scale(0.98);
}

/* Améliorations pour les cartes de service */
.service-card:active {
    transform: translateY(-5px) scale(0.98);
}

/* Corrections finales pour l'espacement */
section {
    position: relative;
}

.py-5 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

/* Correction pour les marges négatives */
.row {
    margin-left: 0;
    margin-right: 0;
}

/* Assurer que les images ne débordent pas */
img {
    max-width: 100%;
    height: auto;
}

/* Correction pour le menu mobile */
@media (max-width: 991px) {
    .navbar-collapse {
        margin-top: 0.5rem;
        border: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav {
        padding: 0.5rem 0;
    }
}

/* Corrections pour éliminer l'espace blanc */
html {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Fin du fichier styles.css */

/* Justification du texte pour mobile - Section À propos */
.text-justify-mobile {
    text-align: justify;
    text-justify: inter-word;
}

/* Responsive: Désactiver la justification sur les grands écrans si souhaité */
@media (min-width: 992px) {
    .text-justify-mobile {
        text-align: left; /* ou garder justify si vous préférez */
    }
}

/* Amélioration de la lisibilité sur mobile */
@media (max-width: 991.98px) {
    .text-justify-mobile {
        line-height: 1.6;
        hyphens: auto;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
    }
}
/* ===================================
   FOUNDERS SECTION - CTA
   =================================== */

/* Call to Action des fondateurs */
.founders-cta {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.founders-cta h4 {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .founders-cta {
        padding: 2rem 1.5rem;
    }

    .founders-cta .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }

    .founders-cta .btn:last-child {
        margin-bottom: 0;
    }
}

/* ============================================================
   DARK MODE
   ============================================================ */
[data-theme="dark"] {
    --surface:       #0f172a;
    --surface-alt:   #1e293b;
    --text-primary:  #f1f5f9;
    --text-secondary:#94a3b8;
    --gray-50:  #0f172a;
    --gray-100: #1e293b;
    --gray-200: #334155;
    --gray-300: #475569;
    --gray-400: #64748b;
    --gray-500: #94a3b8;
    --gray-600: #cbd5e1;
}

[data-theme="dark"] body { background-color: var(--surface); }

[data-theme="dark"] .modern-nav {
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
[data-theme="dark"] .modern-nav.scrolled {
    background: rgba(15, 23, 42, 0.99);
    box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
[data-theme="dark"] .modern-nav-link { color: var(--gray-300) !important; }
[data-theme="dark"] .modern-nav-link:hover { color: white !important; }
[data-theme="dark"] .modern-logo .logo-text {
    background: linear-gradient(
        110deg,
        #a5b4fc 0%,
        #818cf8 28%,
        #ddd6fe 48%,
        #818cf8 68%,
        #c4b5fd 100%
    );
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
}
[data-theme="dark"] .modern-theme-btn { background: var(--gray-100); color: var(--gray-300); }
[data-theme="dark"] .modern-toggler span { background: var(--gray-300); }

[data-theme="dark"] .modern-hero {
    background: #101820;
}

[data-theme="dark"] .hero-media-overlay {
    background:
        linear-gradient(
            180deg,
            rgba(16, 24, 32, 0.88) 0%,
            rgba(16, 24, 32, 0.9) 50%,
            rgba(16, 24, 32, 0.94) 100%
        );
}

[data-theme="dark"] .usc-course-card,
[data-theme="dark"] .service-card,
[data-theme="dark"] .about-pillar {
    background: var(--surface-alt);
    border-color: rgba(129, 140, 248, 0.22);
    box-shadow:
        0 1px 2px rgba(99, 102, 241, 0.08),
        0 10px 28px rgba(99, 102, 241, 0.12),
        0 0 24px rgba(139, 92, 246, 0.08);
}

[data-theme="dark"] .usc-course-card:hover,
[data-theme="dark"] .service-card:hover {
    border-color: rgba(165, 180, 252, 0.4);
    box-shadow:
        0 2px 8px rgba(99, 102, 241, 0.14),
        0 18px 40px rgba(99, 102, 241, 0.2),
        0 0 32px rgba(139, 92, 246, 0.16);
}

[data-theme="dark"] .modern-logo .logo-text,
[data-theme="dark"] .hero-brand {
    filter: drop-shadow(0 0 14px rgba(165, 180, 252, 0.35));
}

[data-theme="dark"] .usc-course-title,
[data-theme="dark"] .service-card h3 {
    color: var(--text-primary);
}

[data-theme="dark"] .about-section {
    background: var(--surface);
}

[data-theme="dark"] .hero-brand {
    background: linear-gradient(
        110deg,
        #a5b4fc 0%,
        #818cf8 28%,
        #ddd6fe 48%,
        #818cf8 68%,
        #c4b5fd 100%
    );
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
[data-theme="dark"] .modern-hero .modern-hero-title { color: #f3f6f8; }
[data-theme="dark"] .modern-hero .modern-hero-subtitle { color: rgba(243, 246, 248, 0.72); }
[data-theme="dark"] .modern-hero .btn-modern-secondary {
    color: #f3f6f8;
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .service-card {
    background: var(--surface-alt);
    border-color: rgba(129, 140, 248, 0.22);
    color: var(--text-primary);
}
[data-theme="dark"] .service-card h4 { color: var(--text-primary); }
[data-theme="dark"] .service-card p  { color: var(--text-secondary); }
[data-theme="dark"] .service-features li { color: var(--text-secondary); }

[data-theme="dark"] .course-card {
    background: var(--surface-alt);
    border-color: rgba(255,255,255,0.06);
}
[data-theme="dark"] .course-title  { color: var(--text-primary); }
[data-theme="dark"] .course-meta   { color: var(--text-secondary); }

[data-theme="dark"] .stat-card { background: var(--surface-alt); }
[data-theme="dark"] .stat-label { color: var(--text-secondary); }
[data-theme="dark"] .stat-number { color: var(--text-primary); }

[data-theme="dark"] .testimonial-card {
    background: var(--surface-alt);
    border-color: rgba(255,255,255,0.06);
}
[data-theme="dark"] .testimonial-text  { color: var(--text-secondary); }
[data-theme="dark"] .testimonial-name  { color: var(--text-primary); }
[data-theme="dark"] .testimonial-role  { color: var(--text-secondary); }

[data-theme="dark"] .blog-card { background: var(--surface-alt); }
[data-theme="dark"] .blog-title   { color: var(--text-primary); }
[data-theme="dark"] .blog-excerpt { color: var(--text-secondary); }
[data-theme="dark"] .blog-date    { color: var(--text-secondary); }

[data-theme="dark"] .contact-section { background: var(--surface); }
[data-theme="dark"] .contact-form-card { background: var(--surface-alt); }
[data-theme="dark"] .contact-form-card .form-control {
    background: var(--gray-100);
    border-color: var(--gray-200);
    color: var(--text-primary);
}
[data-theme="dark"] .form-floating > label { color: var(--text-secondary); }
[data-theme="dark"] .contact-info-item h6 { color: var(--text-primary); }
[data-theme="dark"] .contact-info-item p  { color: var(--text-secondary); }

[data-theme="dark"] .about-section { background: var(--surface); }
[data-theme="dark"] .about-text { color: var(--text-secondary); }
[data-theme="dark"] .value-item { background: var(--surface-alt); border-color: rgba(255,255,255,0.06); }
[data-theme="dark"] .value-item span { color: var(--text-primary); }

[data-theme="dark"] .testimonials-section { background: var(--gray-50); }
[data-theme="dark"] .blog-section { background: var(--surface); }

[data-theme="dark"] .site-footer { background: #060d1a; }
[data-theme="dark"] .footer-brand p { color: var(--gray-400); }
[data-theme="dark"] .footer-links a { color: var(--gray-400); }
[data-theme="dark"] .footer-bottom { background: #030812; border-color: rgba(255,255,255,0.05); }
[data-theme="dark"] .footer-bottom p { color: var(--gray-500); }
[data-theme="dark"] .footer-bottom a { color: var(--gray-500); }
[data-theme="dark"] .footer-newsletter input { background: var(--surface-alt); border-color: var(--gray-200); color: var(--text-primary); }

[data-theme="dark"] .auth-modal-card { background: var(--surface-alt); }
[data-theme="dark"] .auth-modal-header h4 { color: var(--text-primary); }
[data-theme="dark"] .auth-modal-header p  { color: var(--text-secondary); }
[data-theme="dark"] .auth-input { background: var(--gray-100) !important; border-color: var(--gray-200) !important; color: var(--text-primary) !important; }
[data-theme="dark"] .auth-input:focus { background: var(--gray-100) !important; }
[data-theme="dark"] .form-floating > label { color: var(--text-secondary); }
[data-theme="dark"] .auth-divider span { background: var(--surface-alt); color: var(--text-secondary); }
[data-theme="dark"] .auth-divider::before { background: var(--gray-200); }
[data-theme="dark"] .auth-switch-text { color: var(--text-secondary); }
[data-theme="dark"] .btn-google-auth { background: var(--gray-100); border-color: var(--gray-200); color: var(--text-primary); }
[data-theme="dark"] .btn-outline-auth { border-color: var(--gray-300); color: var(--text-primary); }
[data-theme="dark"] .btn-outline-auth:hover { background: var(--gray-100); }
[data-theme="dark"] .user-menu-btn { color: var(--text-primary); }
[data-theme="dark"] .dropdown-menu { background: var(--surface-alt); border-color: var(--gray-200); }
[data-theme="dark"] .dropdown-item { color: var(--text-primary); }
[data-theme="dark"] .dropdown-item:hover { background: var(--gray-100); }
[data-theme="dark"] .dropdown-divider { border-color: var(--gray-200); }

[data-theme="dark"] .section-title { color: var(--text-primary); }
[data-theme="dark"] .section-subtitle { color: var(--text-secondary); }
[data-theme="dark"] .hero-trust .trust-item span { color: var(--text-secondary); }
[data-theme="dark"] .btn-modern-secondary { border-color: var(--gray-300); color: var(--text-primary); }
[data-theme="dark"] .btn-modern-secondary:hover { background: var(--gray-100); }

[data-theme="dark"] .about-experience-badge {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}
[data-theme="dark"] .stats-section { background: var(--surface-alt); }

/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */
#toastContainer {
    position: fixed;
    top: 80px;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.usc-toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-xl);
    min-width: 280px;
    max-width: 360px;
    pointer-events: all;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 0.9rem;
    font-weight: 500;
}

.usc-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--gray-400);
    margin-left: auto;
    padding: 0;
    line-height: 1;
}

[data-theme="dark"] .usc-toast {
    background: var(--surface-alt);
    border-color: var(--gray-200);
    color: var(--text-primary);
}

/* ============================================================
   STATS SECTION
   ============================================================ */
.stats-section {
    background: linear-gradient(135deg, rgba(99, 102, 241,0.05) 0%, rgba(139, 92, 246,0.05) 100%);
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
}

.stat-card {
    padding: 2rem 1.5rem;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.stat-icon {
    font-size: 1.75rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.75rem;
}

.stat-number {
    font-family: 'Manrope', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ============================================================
   SERVICES SECTION (enhanced helpers)
   ============================================================ */
.services-section { background: var(--surface-alt); }

.service-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(99, 102, 241, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.15rem;
    font-size: 1.25rem;
    color: var(--primary);
    transition: var(--transition-base);
}

.service-card:hover .service-icon-wrap {
    background: var(--primary);
    color: white;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    padding: 0.25rem 0;
}

.service-features li i {
    color: var(--success);
    font-size: 0.75rem;
    flex-shrink: 0;
}

.btn-service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: var(--transition-fast);
    margin-top: auto;
}

.btn-service-link:hover { gap: 0.75rem; color: var(--primary-dark); }

/* ============================================================
   COURSES SECTION (enhanced)
   ============================================================ */
.courses-section { background: white; }

.course-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.filter-btn {
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-md);
}

[data-theme="dark"] .filter-btn {
    background: var(--surface-alt);
    border-color: var(--gray-200);
    color: var(--text-secondary);
}

/* Bouton inscription = compte à rebours jusqu'au lancement */
.btn-enroll-countdown {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
    padding: 0.55rem 0.7rem !important;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    border-color: var(--primary) !important;
    color: var(--primary) !important;
    background: rgba(99, 102, 241, 0.06);
    cursor: default;
}

.btn-enroll-countdown.is-open,
.btn-enroll-countdown.is-open:hover {
    cursor: pointer;
    background: var(--primary) !important;
    color: #fff !important;
    border-color: var(--primary) !important;
}

.btn-enroll-countdown .enroll-countdown-label {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.8;
}

.btn-enroll-countdown .enroll-countdown-time {
    font-family: 'Manrope', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.btn-enroll-countdown .enroll-countdown-ready {
    font-size: 0.85rem;
    font-weight: 700;
}

.btn-enroll-countdown[aria-disabled="true"]:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary) !important;
}

.course-card {
    background: white;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition-base);
}

.course-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.course-img-wrap {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.course-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-card:hover .course-img { transform: scale(1.05); }

.course-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
}

.course-category-tag {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    background: rgba(0,0,0,0.6);
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    backdrop-filter: blur(4px);
}

.course-body { padding: 1.25rem; }

.course-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.course-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.course-meta span { display: flex; align-items: center; gap: 0.4rem; }

.course-rating {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.rating-num { font-weight: 700; color: var(--text-primary); }
.students-count { color: var(--text-secondary); font-size: 0.8rem; }

.course-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.course-level {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    background: rgba(99, 102, 241,0.1);
    color: var(--primary);
}

.course-price {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary);
}

.btn-enroll {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: var(--radius-full);
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition-fast);
}

.btn-enroll:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: white;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-section { background: var(--surface-alt); }

.about-image-grid {
    position: relative;
    max-width: 480px;
}

.about-img-main img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
}

.about-img-secondary {
    position: absolute;
    bottom: -2rem;
    right: -2rem;
    width: 180px;
}

.about-img-secondary img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    border: 4px solid white;
    box-shadow: var(--shadow-lg);
}

.about-experience-badge {
    position: absolute;
    top: 1.5rem;
    right: -1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 1rem;
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-lg);
    min-width: 100px;
}

.exp-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.exp-text {
    display: block;
    font-size: 0.75rem;
    opacity: 0.9;
}

.about-text {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: white;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    transition: var(--transition-fast);
}

.value-item:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }

.value-item i {
    font-size: 1.25rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    width: 28px;
    text-align: center;
    flex-shrink: 0;
}

.value-item span { font-weight: 600; font-size: 0.925rem; color: var(--text-primary); }

@media (max-width: 768px) {
    .about-img-secondary { display: none; }
    .about-experience-badge { top: 1rem; right: 1rem; }
}

/* ============================================================
   TESTIMONIALS SECTION
   ============================================================ */
.testimonials-section {
    background: linear-gradient(135deg, rgba(99, 102, 241,0.04) 0%, rgba(139, 92, 246,0.04) 100%);
}

.testimonial-card {
    background: white;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    transition: var(--transition-base);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(99, 102, 241,0.2);
}

.testimonial-text {
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.925rem;
    margin-bottom: 1.25rem;
    flex: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.testimonial-name { font-weight: 700; font-size: 0.925rem; color: var(--text-primary); }
.testimonial-role { font-size: 0.8rem; color: var(--text-secondary); }

/* ============================================================
   BLOG SECTION
   ============================================================ */
.blog-section { background: white; }

.blog-card {
    background: white;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition-base);
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.blog-img-wrap {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-img { transform: scale(1.05); }

.blog-category {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
}

.blog-body { padding: 1.5rem; }

.blog-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.blog-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-excerpt {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: var(--transition-fast);
}

.blog-read-more:hover { gap: 0.75rem; color: var(--primary-dark); }

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-section { background: var(--surface-alt); }

.contact-info-list { display: flex; flex-direction: column; gap: 1.5rem; }

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(99, 102, 241,0.12), rgba(139, 92, 246,0.12));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-info-item h6 {
    font-weight: 700;
    margin-bottom: 0.25rem;
    font-size: 0.925rem;
    color: var(--text-primary);
}

.contact-info-item p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.contact-social {
    display: flex;
    gap: 0.75rem;
}

.contact-form-card {
    background: white;
    border-radius: var(--radius-2xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.contact-form-card .form-control {
    border: 2px solid var(--gray-100);
    border-radius: var(--radius-md);
    background: var(--gray-50);
    transition: var(--transition-fast);
}

.contact-form-card .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241,0.1);
    background: white;
}

@media (max-width: 768px) {
    .contact-form-card { padding: 1.5rem; }
}

/* ============================================================
   SOCIAL LINKS
   ============================================================ */
.social-link {
    width: 42px;
    height: 42px;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition-fast);
}

.social-link:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--gray-900); color: var(--gray-300); }

.footer-top { padding: 4rem 0 3rem; }

.footer-brand .footer-logo {
    font-family: 'Manrope', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    display: block;
    margin-bottom: 1rem;
}

.footer-brand p { color: var(--gray-400); font-size: 0.9rem; line-height: 1.7; }

.footer-heading {
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
}

.footer-links { list-style: none; padding: 0; margin: 0; }

.footer-links li { margin-bottom: 0.625rem; }

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition-fast);
}

.footer-links a:hover { color: white; padding-left: 4px; }

.footer-newsletter-text { color: var(--gray-400); font-size: 0.875rem; margin-bottom: 0.75rem; }

.footer-newsletter .form-control {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: white;
    border-radius: var(--radius-md);
}

.footer-newsletter .form-control::placeholder { color: var(--gray-500); }

.footer-social { display: flex; gap: 0.75rem; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1.25rem 0;
}

.footer-bottom p { color: var(--gray-500); font-size: 0.85rem; }
.footer-bottom a { color: var(--gray-500); font-size: 0.85rem; text-decoration: none; transition: color 0.2s; }
.footer-bottom a:hover { color: white; }

/* ============================================================
   AUTH MODALS
   ============================================================ */
.auth-modal-card {
    border: none;
    border-radius: var(--radius-2xl) !important;
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
}

.btn-close-modal {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--gray-100);
    border: none;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 0.875rem;
}

.btn-close-modal:hover { background: var(--gray-200); color: var(--text-primary); }

.auth-modal-header {
    padding: 2.5rem 2rem 1.5rem;
    text-align: center;
}

.auth-modal-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.auth-modal-header h4 {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.4rem;
}

.auth-modal-header p { color: var(--text-secondary); font-size: 0.9rem; margin: 0; }

.auth-modal-body { padding: 0.5rem 2rem 2.5rem; }

.auth-input {
    border: 2px solid var(--gray-100) !important;
    border-radius: var(--radius-md) !important;
    background: var(--gray-50) !important;
    font-size: 0.95rem !important;
    transition: var(--transition-fast) !important;
    height: 3.5rem !important;
}

.auth-input:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241,0.1) !important;
    background: white !important;
}

.password-eye-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0.25rem;
    z-index: 5;
    transition: color 0.2s;
    display: flex;
    align-items: center;
}

.password-eye-btn:hover { color: var(--primary); }

.auth-divider {
    position: relative;
    text-align: center;
    margin: 1rem 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gray-200);
}

.auth-divider span {
    position: relative;
    background: white;
    padding: 0 1rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.btn-google-auth {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 0.925rem;
}

.btn-google-auth:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.btn-auth-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: var(--radius-md);
    padding: 0.875rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: white;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 15px rgba(99, 102, 241,0.35);
    transition: var(--transition-fast);
    cursor: pointer;
}

.btn-auth-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241,0.45);
    color: white;
}

.btn-auth-primary:disabled {
    opacity: 0.7;
    transform: none;
    cursor: not-allowed;
}

.password-strength-wrap { display: flex; align-items: center; gap: 0.75rem; }

.password-strength-bar {
    flex: 1;
    height: 6px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0;
    border-radius: var(--radius-full);
    background: var(--gray-300);
    transition: all 0.4s ease;
}

.strength-label { font-size: 0.78rem; font-weight: 600; white-space: nowrap; color: var(--text-secondary); }

.auth-switch-text { color: var(--text-secondary); font-size: 0.9rem; }

/* ============================================================
   NAV AUTH BUTTONS
   ============================================================ */
.btn-outline-auth {
    border: 2px solid var(--gray-200);
    background: transparent;
    color: var(--text-primary);
    border-radius: var(--radius-full);
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition-fast);
}

.btn-outline-auth:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(99, 102, 241,0.05);
}

.user-menu-btn {
    background: transparent;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-full);
    padding: 0.4rem 0.75rem;
    color: var(--text-primary);
    font-weight: 600;
    transition: var(--transition-fast);
}

.user-menu-btn:hover { border-color: var(--primary); }

.user-avatar-small {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-full);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

/* ============================================================
   SECTION HEADER (shared)
   ============================================================ */
.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(99, 102, 241,0.12), rgba(139, 92, 246,0.12));
    color: var(--primary);
    border: 1px solid rgba(99, 102, 241,0.2);
    padding: 0.4rem 1.1rem;
    border-radius: var(--radius-full);
    font-size: 0.825rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ============================================================
   HERO ENHANCEMENTS
   ============================================================ */
.hero-image-container {
    position: relative;
    display: inline-block;
}

.hero-main-img {
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    max-width: 100%;
    object-fit: cover;
}

.hero-floating-card {
    position: absolute;
    background: white;
    border-radius: var(--radius-lg);
    padding: 0.75rem 1.25rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    border: 1px solid var(--gray-100);
    animation: floatCard 3s ease-in-out infinite;
}

.hero-floating-card.card-1 { bottom: 10%; left: -2rem; animation-delay: 0s; }
.hero-floating-card.card-2 { top: 10%;  right: -2rem; animation-delay: 1.5s; }

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}

@media (max-width: 992px) {
    .hero-floating-card { display: none; }
}

.hero-trust {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   BTN MODERN SECONDARY
   ============================================================ */
.btn-modern-secondary {
    background: transparent;
    color: var(--text-primary);
    padding: 0.875rem 1.75rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-full);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-base);
    font-size: 0.95rem;
    cursor: pointer;
}

.btn-modern-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(99, 102, 241,0.05);
    transform: translateY(-2px);
}
