#three-hero-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --accent-color: #4cc9f0;
    --text-color: #2b2d42;
    --light-text: #8d99ae;
    --bg-color: #f8f9fa;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --radius: 16px;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Quicksand', sans-serif;

    /* Premium Blue Gradients */
    --gradient-aurora: linear-gradient(-45deg, #03045e, #023e8a, #0077b6, #00b4d8, #48cae4);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    --gradient-glow: radial-gradient(circle, rgba(67, 97, 238, 0.3) 0%, transparent 70%);

    /* Animation Timings */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Glassmorphism */
    --glass-blur: blur(20px);
    --glass-border: 1px solid rgba(255, 255, 255, 0.18);
}

/* --- ACCESSIBILITY --- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.back-link,
#hero-desc {
    color: white;
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: #0d0d1a;
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Scroll Reveal Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--ease-out-expo);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Animation for Grid Items */
.stagger-reveal>* {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s var(--ease-out-expo);
}

.stagger-reveal.active>*:nth-child(1) {
    transition-delay: 0.1s;
}

.stagger-reveal.active>*:nth-child(2) {
    transition-delay: 0.2s;
}

.stagger-reveal.active>*:nth-child(3) {
    transition-delay: 0.3s;
}

.stagger-reveal.active>*:nth-child(4) {
    transition-delay: 0.4s;
}

.stagger-reveal.active>*:nth-child(5) {
    transition-delay: 0.5s;
}

.stagger-reveal.active>*:nth-child(6) {
    transition-delay: 0.6s;
}

.stagger-reveal.active>* {
    opacity: 1;
    transform: translateY(0);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- LAYOUT UTILITIES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

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

.bg-light {
    background-color: transparent;
}

.bg-dark {
    background-color: #1a1a2e;
    color: white;
}

.line {
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 20px auto;
    border-radius: 2px;
}

.line.light {
    background: rgba(255, 255, 255, 0.2);
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: var(--font-heading);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

/* --- NAVBAR --- */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-color);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.btn-nav {
    background: var(--primary-color);
    color: white !important;
    padding: 10px 25px;
    border-radius: 30px;
}

.btn-nav:hover {
    background: var(--secondary-color);
}

/* Burger Menu */
.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Burger Animation */
.burger.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.burger.toggle .line2 {
    opacity: 0;
}

.burger.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}


/* --- HOME: HERO SECTION (Premium Enhanced) --- */
.hero-about {
    padding-bottom: 60px;
    background: transparent;
    position: relative;
    overflow: hidden;
}

/* Aurora Animated Background */
.hero-about::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: var(--gradient-aurora);
    background-size: 400% 400%;
    animation: aurora 15s ease infinite;
    opacity: 0.15;
    z-index: 0;
}

/* Floating Orbs */
.hero-about::after {
    content: '';
    position: absolute;
    top: 10%;
    right: 10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(247, 37, 133, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    animation: floatOrb 8s ease-in-out infinite;
    z-index: 0;
}

/* Additional Floating Elements */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
    opacity: 0.6;
    animation: floatShape 20s ease-in-out infinite;
}

.floating-shape:nth-child(1) {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.4), rgba(76, 201, 240, 0.2));
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.floating-shape:nth-child(2) {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(72, 202, 228, 0.3), rgba(63, 55, 201, 0.2));
    top: 60%;
    left: 80%;
    animation-delay: -5s;
    animation-duration: 20s;
}

.floating-shape:nth-child(3) {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.5), rgba(0, 180, 216, 0.3));
    top: 70%;
    left: 20%;
    animation-delay: -10s;
    animation-duration: 18s;
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content {
    position: relative;
    z-index: 1;
}

/* Gradient Animated Title */
.about-content h1 {
    font-size: 3.5rem;
    margin-bottom: 25px;
    background: linear-gradient(90deg, #ffffff, #4361ee, #4cc9f0, #ffffff);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
    animation: textShine 8s linear infinite;
}

.about-content p {
    color: rgba(255, 255, 255, 0.85);
}

.about-content .lead {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    line-height: 1.8;
}

.about-content .lead strong {
    color: #4cc9f0;
}

.about-content p strong {
    color: #4cc9f0;
}

/* Enhanced GIE Badge with Glow */
.badge-gie {
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.9), rgba(76, 201, 240, 0.9));
    color: white;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1.5px;
    display: inline-block;
    margin-bottom: 25px;
    box-shadow: 0 0 30px rgba(67, 97, 238, 0.4), 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    animation: glowPulse 3s ease-in-out infinite;
}

.badge-gie::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s ease-in-out infinite;
}

.about-features {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.feat {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s var(--ease-out-expo);
}

.feat:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    border-color: rgba(67, 97, 238, 0.4);
}

.feat i {
    font-size: 1.4rem;
    color: #4cc9f0;
}

/* Enhanced Buttons */
.about-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.about-buttons .btn-primary {
    background: linear-gradient(135deg, #4361ee, #7209b7);
    box-shadow: 0 8px 30px rgba(67, 97, 238, 0.4);
    position: relative;
    overflow: hidden;
}

.about-buttons .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.about-buttons .btn-primary:hover::before {
    left: 100%;
}

.about-buttons .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.about-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

/* Visual Side with 3D Card Effect */
.about-visual {
    position: relative;
    perspective: 1000px;
}

.about-visual img {
    border-radius: 24px;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 0 100px rgba(67, 97, 238, 0.2);
    transform: perspective(1000px) rotateY(-8deg) rotateX(5deg);
    transition: transform 0.6s var(--ease-out-expo);
    will-change: transform;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.about-visual img:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02);
}

/* Glow behind image */
.about-visual::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(67, 97, 238, 0.4) 0%, transparent 70%);
    filter: blur(40px);
    z-index: -1;
    animation: glowPulse 4s ease-in-out infinite;
}

/* --- KEYFRAME ANIMATIONS --- */
@keyframes aurora {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes floatOrb {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }

    33% {
        transform: translate(-30px, 30px) scale(1.1);
        opacity: 0.4;
    }

    66% {
        transform: translate(20px, -20px) scale(0.9);
        opacity: 0.25;
    }
}

@keyframes floatShape {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(30px, -40px) rotate(90deg);
    }

    50% {
        transform: translate(-20px, 20px) rotate(180deg);
    }

    75% {
        transform: translate(40px, 30px) rotate(270deg);
    }
}

@keyframes textShine {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 300% 50%;
    }
}

@keyframes glowPulse {

    0%,
    100% {
        box-shadow: 0 0 30px rgba(67, 97, 238, 0.4), 0 5px 15px rgba(0, 0, 0, 0.2);
    }

    50% {
        box-shadow: 0 0 50px rgba(67, 97, 238, 0.6), 0 5px 25px rgba(0, 0, 0, 0.3);
    }
}

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

    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

/* --- 3D SCENE CONTAINER --- */
#three-hero-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

#three-hero-container canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* --- HOME: TRACKS SELECTOR (Premium) --- */
.hero-selector {
    padding: 80px 0;
    background: linear-gradient(180deg, #0a0a14 0%, #1a1a2e 100%);
    position: relative;
    overflow: hidden;
}

/* Subtle grid pattern */
.hero-selector::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(67, 97, 238, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(67, 97, 238, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
}

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

.selector-header h2 {
    color: white;
    font-size: 2.5rem;
}

.selector-header p {
    color: rgba(255, 255, 255, 0.7);
}

.selector-header .line {
    background: linear-gradient(90deg, #4361ee, #4cc9f0);
}

.tracks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

/* Section Separator */
.section-separator {
    height: 100px;
    background: linear-gradient(180deg, #1a1a2e 0%, #1a1a2e 50%, #0f0f1a 100%);
    position: relative;
    z-index: 2;
}

.section-separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(67, 97, 238, 0.3), transparent);
}

.section-separator::after {
    content: '✦';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(67, 97, 238, 0.5);
    font-size: 1.2rem;
    background: #1a1a2e;
    padding: 0 15px;
}

/* Glassmorphism Track Cards */
.track-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s var(--ease-out-expo);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Animated gradient border */
.track-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--card-color, #4361ee), transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
    border-radius: 24px;
}

/* Glow effect on hover */
.track-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--card-color, rgba(67, 97, 238, 0.2)) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.track-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 0 60px rgba(var(--card-color-rgb, 67, 97, 238), 0.2);
}

.track-card:hover::before {
    opacity: 0.1;
}

.track-card:hover::after {
    opacity: 0.3;
}

/* Enhanced Track Icon */
.track-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 25px;
    color: white;
    background: linear-gradient(135deg, var(--card-color), rgba(255, 255, 255, 0.1));
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.4s var(--ease-out-back);
    position: relative;
    overflow: hidden;
}

.track-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.2) 50%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.track-card:hover .track-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.track-card:hover .track-icon::before {
    opacity: 1;
    animation: shimmer 1.5s ease-out;
}

.track-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: white;
    transition: color 0.3s ease;
}

.track-card:hover h3 {
    background: linear-gradient(90deg, white, var(--card-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.track-card p {
    color: rgba(255, 255, 255, 0.6);
    flex-grow: 1;
    margin-bottom: 20px;
    line-height: 1.7;
}

.track-badge {
    align-self: flex-start;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.track-card:hover .track-badge {
    background: var(--card-color);
    color: white;
    border-color: transparent;
}

.track-arrow {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.4s var(--ease-out-back);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.track-card:hover .track-arrow {
    opacity: 1;
    transform: translateX(0);
    background: var(--card-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Couleurs Cards avec RGB pour box-shadow */
.track-card.no-code {
    --card-color: #03045e;
    --card-color-rgb: 3, 4, 94;
}

.track-card.dwwm {
    --card-color: #0077b6;
    --card-color-rgb: 0, 119, 182;
}

.track-card.cda {
    --card-color: #4361ee;
    --card-color-rgb: 67, 97, 238;
}

.track-card.cgit {
    --card-color: #4cc9f0;
    --card-color-rgb: 76, 201, 240;
}

/* Availability Badge */
.availability-badge {
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 600;
    padding: 5px 10px;
    background: rgba(67, 97, 238, 0.1);
    border-radius: 8px;
    display: inline-block;
}

.availability-badge.locked {
    color: #e63946;
    background: rgba(230, 57, 70, 0.1);
}

/* Password Overlay */
.password-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.password-box {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.lock-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.password-box h2 {
    margin-bottom: 10px;
}

.password-box p {
    color: #666;
    margin-bottom: 20px;
}

.password-box input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 1rem;
}

/* --- HOME: RSE SECTION (Premium) --- */
#rse-commitments {
    background: transparent;
    position: relative;
    overflow: hidden;
}

#rse-commitments::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(67, 97, 238, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

/* --- BROCHURE SECTION --- */
.brochure-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

.brochure-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 40px;
    padding: 60px 40px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.2);
}

.brochure-icon {
    font-size: 4rem;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #4361ee, #4cc9f0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 10px 15px rgba(67, 97, 238, 0.3));
}

.brochure-card h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.brochure-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-group.centered {
    display: flex;
    justify-content: center;
}

@media (max-width: 768px) {
    .brochure-card {
        padding: 40px 20px;
        border-radius: 24px;
    }

    .brochure-card h2 {
        font-size: 1.8rem;
    }

    .brochure-icon {
        font-size: 3rem;
    }
}


.section-header h2 {
    color: white;
}

#rse-commitments .section-header h2 {
    color: white;
}

#rse-commitments .section-header p {
    color: rgba(255, 255, 255, 0.7);
}

#rse-commitments .section-header .line {
    background: linear-gradient(90deg, #4361ee, #4cc9f0);
}

.rse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.rse-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 45px 35px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    transition: all 0.5s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

/* Gradient border effect on hover */
.rse-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, transparent, rgba(67, 97, 238, 0.5), transparent);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.rse-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 0 60px rgba(67, 97, 238, 0.1);
}

.rse-card:hover::before {
    opacity: 1;
}

/* Animated Icon with 3D rotation */
.rse-card i {
    font-size: 3rem;
    margin-bottom: 25px;
    display: inline-block;
    background: linear-gradient(135deg, #4361ee, #4cc9f0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.5s var(--ease-out-back);
}

.rse-card:hover i {
    transform: scale(1.2) rotateY(180deg);
}

.rse-card h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.rse-card p {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4cc9f0;
    font-weight: 600;
    margin-top: 20px;
    line-height: 1;
}

.link-arrow i {
    display: inline-flex;
    align-items: center;
}

.link-arrow:hover {
    color: var(--accent-color);
}

/* --- ABOUT PAGE SPECIFIC --- */
.about-video-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    background: #000;
}

.about-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* LMS Carousel Styles */
.lms-carousel-container {
    position: relative;
    background: transparent;
}

.lms-carousel {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel-nav:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
    left: 20px;
}

.carousel-nav.next {
    right: 20px;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .carousel-nav {
        width: 40px;
        height: 40px;
    }

    .carousel-nav.prev {
        left: 10px;
    }

    .carousel-nav.next {
        right: 10px;
    }
}

.lms-highlight-section {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 40px;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.2);
    margin-top: 100px;
    margin-bottom: 100px;
}

@media (max-width: 768px) {
    .lms-highlight-section {
        margin-top: 60px;
        margin-bottom: 60px;
        padding: 40px 20px;
        border-radius: 24px;
    }

    .trainers-header {
        margin-top: 60px;
        margin-bottom: 40px;
    }

    .trainers-header h2 {
        font-size: 2rem;
    }
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text-box h2 {
    color: white;
    margin-bottom: 20px;
}

.about-text-box p {
    color: white;
    margin-bottom: 20px;
    line-height: 1.8;
}

.trainers-header {
    margin-bottom: 60px;
    margin-top: 100px;
}

.trainers-header h2 {
    color: white;
    font-size: 2.5rem;
    margin-top: 15px;
}

.lms-highlight-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(67, 97, 238, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

@media (max-width: 768px) {
    /* Existing rule already handles padding/radius */
}

.trainer-section {
    padding: 100px 0;
}

.trainer-card {
    display: flex;
    align-items: center;
    gap: 40px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    padding: 40px;
    border-radius: 24px;
    margin-bottom: 40px;
    transition: all 0.5s var(--ease-out-expo);
    font-family: 'Quicksand', sans-serif;
    color: #2b2d42;
}

.trainer-card:hover {
    transform: translateY(-10px);
    border-color: rgba(67, 97, 238, 0.4);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.trainer-photo {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 4px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.trainer-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trainer-info {
    flex-grow: 1;
}

.trainer-info h3 {
    font-size: 2rem;
    color: #2b2d42;
    margin-bottom: 15px;
}

.trainer-info .trainer-role {
    font-size: 1.1rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
}

.trainer-info p {
    color: #2b2d42;
    line-height: 1.8;
}

.trainer-info ul {
    list-style: disc;
    margin-left: 20px;
    color: #2b2d42;
}

.trainer-card.reverse {
    flex-direction: row-reverse;
}

.trainer-bio {
    font-family: 'Quicksand', sans-serif;
    max-width: 600px;
    padding: 10px 0;
    line-height: 1.6;
}

.trainer-bio p {
    color: #2c3e50 !important;
    margin-bottom: 15px;
}

.trainer-bio ul {
    margin: 10px 0 10px 20px;
    list-style: disc;
}

.trainer-bio li {
    color: #2c3e50;
    margin-bottom: 5px;
}

.trainer-name {
    color: #2c3e50 !important;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    display: inline-block;
}

.trainer-quote {
    font-size: 0.9em;
    color: #3498db !important;
    font-style: italic;
    margin-top: 20px;
}

.trainer-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.trainer-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(67, 97, 238, 0.1);
    color: #4361ee;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s var(--ease-out-expo);
    border: 1px solid rgba(67, 97, 238, 0.2);
}

.trainer-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
    text-decoration: none;
}

.trainer-links a i {
    font-size: 1rem;
}

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .trainer-card {
        flex-direction: column !important;
        text-align: center;
        padding: 30px 20px;
        gap: 25px;
    }

    .trainer-card.reverse {
        flex-direction: column !important;
    }

    .trainer-bio {
        margin: 0 auto;
    }

    .trainer-bio ul {
        text-align: left;
        display: inline-block;
    }

    .trainer-photo {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 480px) {
    .trainer-photo {
        width: 150px;
        height: 150px;
    }

    .trainer-name {
        font-size: 1.5rem;
    }

    .trainer-role {
        font-size: 0.9rem;
    }
}



/* --- PARCOURS PAGE STYLES --- */
.hero {
    padding-top: 160px;
    padding-bottom: 100px;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.05) 0%, rgba(76, 201, 240, 0.05) 100%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-stats {
        justify-content: center;
    }

    .stat {
        justify-content: center;
    }
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    color: var(--light-text);
    font-weight: 500;
}

.back-link:hover {
    color: var(--primary-color);
}

.badge {
    background: var(--accent-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: inline-block;
}

.hero-content h1 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.hero-stats {
    display: flex;
    gap: 20px;
    margin: 30px 0;
}

.stat {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--secondary-color);
}

.hero-visual {
    position: relative;
}

.hero-img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.blob {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    opacity: 0.1;
    border-radius: 50%;
    filter: blur(40px);
    z-index: 0;
}

/* Target & Objectives */
.target-grid,
.objectives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.target-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--primary-color);
}

.objective-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.obj-icon {
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Tabs & Blocks */
.tabs-container {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 10px;
}

.tab-btn {
    padding: 12px 25px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: var(--font-heading);
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--primary-color);
    color: white;
}

.tab-content {
    background: #252540;
    border-radius: 20px;
    padding: 40px;
    min-height: 400px;
}

.bloc-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.bloc-content.active {
    display: block;
}

.bloc-header h3 {
    color: var(--accent-color);
    margin-bottom: 30px;
}

.bloc-competences {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 40px;
}

.bloc-competences ul li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.module-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.module-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.module-header h4 {
    font-size: 1.1rem;
    margin: 0;
}

.badge-courses {
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 5px;
}

.module-desc {
    font-size: 0.9rem;
    color: white;
}

/* Pedagogy */
.pedagogy-box {
    display: flex;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.pedagogy-content {
    padding: 60px;
    flex: 1;
}

.pedagogy-image {
    flex: 1;
    min-height: 400px;
}

.pedagogy-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 992px) {
    .pedagogy-box {
        flex-direction: column;
    }

    .pedagogy-content {
        padding: 40px 20px;
    }

    .pedagogy-image {
        min-height: 300px;
    }
}

.pedagogy-content ul li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 25px;
}

.pedagogy-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Careers */
.career-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-top: 5px solid var(--secondary-color);
}

/* --- CONTACT FORM --- */
.contact-section {
    background: #1a1a2e;
    color: white;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: flex-start;
}

@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-info h2 {
        font-size: 2rem;
    }
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-details .item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 24px;
    color: var(--text-color);
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.full-width {
    width: 100%;
}

/* --- FOOTER --- */
footer {
    background: #111;
    color: #888;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.footer-col .logo {
    display: block;
    margin: 0 auto 20px;
    max-width: 360px;
}

.footer-col .logo img {
    height: auto;
    max-height: 90px;
    width: auto;
    display: block;
    margin: 0 auto;
}

.footer-col h3 span {
    color: var(--primary-color);
}

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
}

/* --- ANIMATIONS --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {

    .about-wrapper,
    .hero-container,
    .contact-wrapper,
    .pedagogy-box {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-about {
        padding-top: 140px;
        text-align: center;
    }

    .about-content h1 {
        font-size: 3rem;
    }

    .about-content .lead {
        margin: 0 auto 30px;
    }

    .about-features {
        justify-content: center;
    }

    .pedagogy-image {
        min-height: 300px;
    }

    .hero-img {
        display: none;
        /* Hide large hero image on tablet to save space */
    }

    /* Hide floating shapes on tablet for performance */
    .floating-shapes {
        opacity: 0.5;
    }

    /* Adjust hero visual on tablet */
    .about-visual {
        display: none;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }

    /* Navigation Mobile */
    .nav-links {
        position: fixed;
        right: 0;
        top: 70px;
        /* Adjust based on navbar height */
        height: calc(100vh - 70px);
        background: rgba(10, 10, 26, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: none;
        padding-top: 40px;
        gap: 30px;
    }

    .nav-links.active {
        transform: translateX(0%);
    }

    .nav-links li {
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0.2s;
    }

    .nav-links a {
        color: white;
        font-size: 1.2rem;
    }

    .burger {
        display: block;
        z-index: 1001;
    }

    .burger div {
        background-color: var(--primary-color);
    }

    .about-content h1 {
        font-size: 2.5rem;
    }

    /* Grids Adjustment */
    .tracks-grid,
    .rse-grid,
    .target-grid,
    .objectives-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .track-card {
        padding: 30px 20px;
    }

    /* Tabs Mobile */
    .tabs-container {
        flex-direction: column;
        width: 100%;
    }

    .tab-btn {
        width: 100%;
        text-align: center;
        margin-bottom: 5px;
    }

    .tab-content {
        padding: 25px;
    }

    /* Contact Form */
    .contact-form {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .hero-about {
        padding-bottom: 80px;
        min-height: 100vh;
        padding-top: 180px;
    }

    .training-list {
        list-style: none;
        text-align: center;
    }

    /* Hide floating shapes on mobile */
    .floating-shapes {
        display: none;
    }

    /* Simplify hero background on mobile */
    .hero-about::before,
    .hero-about::after {
        opacity: 0.1;
    }

    .about-content h1 {
        font-size: 2rem;
    }

    .about-content .lead {
        font-size: 1rem;
    }

    .badge-gie {
        font-size: 0.75rem;
        padding: 6px 15px;
    }

    .about-features {
        flex-direction: column;
        gap: 15px;
    }

    .hero-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .btn {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    .about-buttons .btn {
        margin-right: 0;
    }

    .module-header {
        flex-direction: column;
        gap: 5px;
    }

    .training-list {
        list-style: none;
        text-align: center;
    }

    .training-list li {
        list-style: none;
        text-align: center;
    }

    .trainer-links {
        flex-direction: column;
        gap: 10px;
    }

    .trainer-links a {
        display: block;
    }

    .badge-courses {
        align-self: flex-start;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom {
        font-size: 0.9rem;
    }
}