/* ===============================================
   CSS Variables & Reset
   =============================================== */
:root {
    --primary: #7b1e3a;
    --primary-dark: #541126;
    --primary-light: #9e2a4d;
    --secondary: #c09030;
    --accent: #9e2a4d;
    --success: #10b981;
    --dark: #1e2433;
    --dark-light: #2b364c;
    --gray: #94a3b8;
    --gray-light: #cbd5e1;
    --light: #f8fafc;
    --white: #ffffff;
    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --text-tertiary: #94a3b8;
    --bg-card: #2b364c;
    --bg-overlay: rgba(30, 36, 51, 0.35);
    --border-color: rgba(255, 255, 255, 0.16);
    --shadow: rgba(0, 0, 0, 0.18);
    --shadow-lg: rgba(0, 0, 0, 0.28);
    --transition: all 0.3s ease;
}

.light-theme {
    --primary: #7b1e3a;
    --primary-dark: #541126;
    --primary-light: #b3395b;
    --secondary: #c09030;
    --accent: #9e2a4d;
    --success: #10b981;
    --dark: #ffffff;
    --dark-light: #f8fafc;
    --gray: #475569;
    --gray-light: #64748b;
    --light: #1e293b;
    --white: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-tertiary: #64748b;
    --bg-card: #ffffff;
    --bg-overlay: rgba(255, 255, 255, 0.95);
    --border-color: #e2e8f0;
    --shadow: rgba(0, 0, 0, 0.06);
    --shadow-lg: rgba(0, 0, 0, 0.10);
}

.green {
    color: #10b981;
}

.orange {
    color: #c09030;
}

.yellow {
    color: #eab308;
}

.blue {
    color: var(--primary);
}

.bordeaux {
    color: var(--primary);
}

.gold {
    color: var(--secondary);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===============================================
   Navigation
   =============================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.light-theme .navbar {
    background-color: rgba(255, 255, 255, 0.96);
    border-bottom-color: #e2e8f0;
}

.navbar.scrolled {
    box-shadow: 0 2px 10px var(--shadow-lg);
}

.navbar .nav-container,
.nav-container {
    max-width: 1440px !important;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem clamp(12px, 2vw, 24px);
    flex-wrap: nowrap !important;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 1.15rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.light-theme .logo-container span {
    color: #0f172a;
}

.logo-container img {
    background: transparent;
}

.nav-logo {
    width: 2.5rem;
    height: auto;
    max-width: 44px;
    flex-shrink: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: clamp(0.4rem, 0.85vw, 1.3rem);
    margin: 0;
    padding: 0;
    flex-wrap: nowrap !important;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: clamp(0.88rem, 0.92vw, 0.98rem);
    white-space: nowrap !important;
    transition: var(--transition);
    position: relative;
    padding: 0.3rem 0.2rem;
    display: inline-block;
}

.light-theme .nav-link {
    color: #0f172a;
    font-weight: 600;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-link.nav-link-espace::after {
    display: none !important;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.light-theme .nav-link:hover,
.light-theme .nav-link.active {
    color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 0.5rem;
    border-radius: 8px;
}

.light-theme .theme-toggle {
    color: #0f172a;
}

.theme-toggle:hover {
    color: var(--primary);
    background-color: var(--dark-light);
    transform: rotate(15deg);
}

.light-theme .theme-toggle:hover {
    color: var(--primary);
    background-color: #f1f5f9;
}

.btn-install-app {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary, #9f1239), #881337);
    color: #ffffff !important;
    border: none;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(159, 18, 57, 0.35);
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-install-app:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(159, 18, 57, 0.5);
    color: #ffffff !important;
}

@media (max-width: 640px) {
    .btn-install-app .btn-install-label {
        display: none;
    }
    .btn-install-app {
        padding: 8px;
        border-radius: 50%;
        width: 36px;
        height: 36px;
        justify-content: center;
    }
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
    z-index: 1001;
}

.mobile-toggle:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.light-theme .mobile-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.mobile-toggle span {
    width: 24px;
    height: 2.5px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center;
}

.light-theme .mobile-toggle span {
    background-color: #0f172a;
}

.mobile-toggle.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-8px);
}

.mobile-toggle.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* ===============================================
   Hero Section
   =============================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 90px;
    box-sizing: border-box;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    transition: background 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(180deg, rgba(10, 15, 30, 0.62) 0%, rgba(15, 23, 42, 0.75) 100%);
}

.light-theme .hero-overlay {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.50) 0%, rgba(255, 255, 255, 0.42) 45%, rgba(248, 250, 252, 0.62) 100%);
}

.hero-container {
    position: relative;
    z-index: 2;
    padding: 2.5rem 20px 3.5rem;
    width: 100%;
}

.hero-content {
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    color: #ffffff !important;
    background: linear-gradient(135deg, #7b1e3a, #541126);
    padding: 0.5rem 1.35rem;
    border-radius: 50px;
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 1.4rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 15px rgba(123, 30, 58, 0.35);
    letter-spacing: 0.5px;
}

.light-theme .hero-badge {
    color: #ffffff !important;
    background: linear-gradient(135deg, #7b1e3a, #541126);
    border-color: rgba(123, 30, 58, 0.3);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #ffffff !important;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9);
}

.light-theme .hero-title {
    color: #0f172a !important;
    text-shadow: 0 1px 14px rgba(255, 255, 255, 0.95), 0 2px 5px rgba(255, 255, 255, 0.85);
}

.hero-typewriter-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: clamp(0.95rem, 1.8vw, 1.25rem);
    font-weight: 600;
    color: var(--accent);
    margin: 0 auto 1.75rem;
    background: rgba(15, 23, 42, 0.7);
    padding: 0.45rem 1.4rem;
    border-radius: 50px;
    border: 1px solid rgba(192, 144, 48, 0.4);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    max-width: 92%;
}

.light-theme .hero-typewriter-wrap {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(123, 30, 58, 0.25);
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.hero-typewriter-prefix {
    opacity: 0.85;
    font-size: 0.88em;
    font-weight: 500;
}

.hero-typewriter-cursor {
    display: inline-block;
    color: var(--accent);
    font-weight: 700;
    animation: blinkCursor 0.8s infinite;
    margin-left: 2px;
}

.light-theme .hero-typewriter-cursor {
    color: var(--primary);
}

@keyframes blinkCursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-description {
    font-size: 1.25rem;
    color: #f8fafc !important;
    margin-bottom: 2.5rem;
    line-height: 1.8;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}

.light-theme .hero-description {
    color: #0f172a !important;
    font-weight: 600;
    text-shadow: 0 1px 10px rgba(255, 255, 255, 0.95), 0 1px 3px rgba(255, 255, 255, 0.85);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff !important;
}

.btn-primary:hover {
    background-color: var(--primary) !important;
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(123, 30, 58, 0.4);
    filter: brightness(1.08);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.light-theme .btn-secondary {
    background-color: #ffffff !important;
    color: var(--primary) !important;
    border: 2px solid var(--primary) !important;
    box-shadow: 0 2px 10px rgba(123, 30, 58, 0.12);
}

.light-theme .btn-secondary:hover {
    background-color: var(--primary) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(123, 30, 58, 0.3);
}

.btn-light {
    background-color: #ffffff !important;
    color: #7b1e3a !important;
    border: 2px solid #ffffff !important;
    font-weight: 700 !important;
}

.btn-light:hover {
    background-color: #ffffff !important;
    color: #7b1e3a !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    filter: brightness(1.02);
}

.btn-outline {
    background-color: transparent !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
    font-weight: 700 !important;
}

.btn-outline:hover {
    background-color: transparent !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.25);
}

.light-theme .btn-outline {
    color: #ffffff !important;
    border-color: #ffffff !important;
}

.light-theme .btn-outline:hover {
    background-color: transparent !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
    transform: translateY(-3px);
}

.hero-socials {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
    font-size: 1.25rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.light-theme .social-link {
    background-color: #ffffff !important;
    border: 1.5px solid rgba(123, 30, 58, 0.3) !important;
    color: var(--primary) !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.social-link.whatsapp:hover {
    background: #25d366;
    color: white;
}

.social-link.telegram:hover {
    background: #0088cc;
    color: white;
}

.social-link.discord:hover {
    background: #5865f2;
    color: white;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: var(--text-primary);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ===============================================
   Sections
   =============================================== */
.features,
.departments,
.projects {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-tertiary);
}

/* ===============================================
   Features
   =============================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px var(--shadow);
}

.light-theme .feature-card {
    box-shadow: 0 2px 8px var(--shadow);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-lg);
    border-color: var(--primary);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.25rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-tertiary);
    line-height: 1.7;
}

/* ===============================================
   about
   =============================================== */
.about{
    padding:  8rem 0;
}
.about-card {
    background-color: var(--bg-card);
    padding: 3rem 2.5rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-circle at center, var(--primary) 0%, transparent 70%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px var(--shadow-lg);
    border-color: var(--primary);
}

.about-card:hover .card-glow {
    opacity: 0.05;
}

.about-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.about-card h3 {
    font-size: 2rem;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.about-card p {
    color: var(--text-tertiary);
    line-height: 1.8;
    font-size: 1.05rem;
    position: relative;
    z-index: 1;
}

.partner {
    margin-top: 3.5rem;
    margin-bottom: 3.5rem;
    overflow: hidden;
    background: var(--bg-card);
    padding: 1.4rem 1.25rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px var(--shadow);
}

.light-theme .partner {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.carousel {
    overflow: hidden;
    width: 100%;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.carousel-track {
    display: flex;
    align-items: center;
    gap: 3.5rem;
    width: max-content;
    animation: scroll 24s linear infinite;
}

.carousel:hover .carousel-track {
    animation-play-state: paused;
}

.partner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0 12px;
}

.partner-logo {
    height: 64px;
    width: auto;
    max-width: 210px;
    object-fit: contain;
    transition: var(--transition);
    opacity: 0.95;
}

.partner-item:hover .partner-logo {
    opacity: 1;
    transform: scale(1.06);
}

/* Animation */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-reverse {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(100%);
    }
}

.team-carousel{
    overflow: hidden ;
}

.team-carousel-track{
    display: flex;
    flex-direction: row-reverse;
    gap: 3rem;
    animation: scroll-reverse 25s linear infinite;
}

.about-values {
    margin-bottom: 5rem;
}

.about-values h3 {
    font-size: 2.25rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
}

.value-item {
    text-align: center;
    padding: 2rem 1.5rem;
    background-color: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.value-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 8px 20px var(--shadow-lg);
}

.value-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background-color: rgba(123, 30, 58, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-icon {
    font-size: 2.5rem;
}

.value-item h4 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.value-item p {
    color: var(--text-tertiary);
    font-size: 1rem;
}

/* Team Carousel */
.about-team {
    margin-bottom: 2rem;
    position: relative;
}

.about-team h3 {
    font-size: 2.25rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}


.team-member {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    pointer-events: none;
}



.member-card {
    text-align: center;
}

.member-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 300px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 20px;
}

.member-avatar img{
    width: 100%;
    height: 100%;
    object-fit:  cover;
}

.member-info{
    position: relative;
    top: -5rem;
}

.member-info h4 {
    font-size: 1.75rem;
    margin: 0;
    color: var(--text-primary);
}

.member-role {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0;
}


/* Activities Section */
.about-activities {
    margin-bottom: 5rem;
}

.about-activities h3 {
    font-size: 2.25rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.activities-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.activity-item {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background-color: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.activity-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 8px 20px var(--shadow-lg);
}

.activity-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(123, 30, 58, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-icon i {
    font-size: 1.75rem;
    color: var(--primary);
}

.activity-content h4 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.activity-content p {
    color: var(--text-tertiary);
    font-size: 0.95rem;
    line-height: 1.6;
}


.statistics-container{
    display: flex;
    gap: 1rem;
    margin-bottom: 5rem;
}


.statistics-grid{
    width: 100%;
    display: flex;
    flex-flow: wrap;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap:  3rem;
}
.stat-item {
    border-radius: 14px;
    width: 12rem;
    padding: 1.8rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    text-align: center;
}

.light-theme .stat-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.stat-item:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow-lg);
}

.light-theme .stat-item:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(123, 30, 58, 0.15);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
}

.stat-item p {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0;
}

/* ===============================================
   Departments
   =============================================== */
.departments {
    background-color: var(--dark-light);
}

.departments .container {
    max-width: 1380px;
}

.departments-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

@media (max-width: 1150px) {
    .departments .container {
        max-width: 1000px;
    }
    .departments-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 680px) {
    .departments-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

.department-card {
    background-color: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px var(--shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.light-theme .department-card {
    box-shadow: 0 2px 8px var(--shadow);
}

.department-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-lg);
}

.light-theme .department-card:hover {
    box-shadow: 0 8px 24px var(--shadow-lg);
}

.department-header {
    padding: 25px;
    text-align: center;
    background-size: cover;
    background-position: center;
    height: 150px;
    position: relative;
    background-color: #1e293b;
}

.department-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.40) 0%, rgba(15, 23, 42, 0.78) 100%);
    z-index: 1;
}

.department-header i,
.department-header h3 {
    position: relative;
    z-index: 2;
    color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.department-header i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
    color: #ffffff !important;
}

.department-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
}

.department-card p {
    padding: 1.5rem 2rem 1rem;
    color: var(--text-tertiary);
}

.department-list {
    list-style: none;
    padding: 0 2rem 1.5rem;
    flex-grow: 1;
}

.department-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.department-list i {
    color: var(--success);
    font-size: 0.875rem;
}

.department-link {
    display: block;
    margin: auto 2rem 2rem;
    padding: 0.75rem;
    text-align: center;
    background-color: var(--primary);
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
}

.department-link:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(123, 30, 58, 0.3);
}

/* ===============================================
   Projects
   =============================================== */
.projects-search-wrapper {
    max-width: 580px;
    margin: 0 auto 2.25rem;
    position: relative;
    width: 100%;
}

.projects-search-input {
    width: 100%;
    padding: 0.85rem 1.25rem 0.85rem 3.25rem;
    background-color: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow);
}

.projects-search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 6px 20px rgba(123, 30, 58, 0.25);
}

.projects-search-icon {
    position: absolute;
    left: 1.35rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    font-size: 1.05rem;
    pointer-events: none;
    transition: color 0.3s ease;
}

.projects-search-wrapper:focus-within .projects-search-icon {
    color: var(--primary);
}

.projects-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-button {
    padding: 0.75rem 1.5rem;
    background-color: transparent;
    color: var(--text-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.tab-button.active,
.tab-button:hover {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.projects-content {
    display: none;
}

.projects-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px var(--shadow);
}

.light-theme .project-card {
    box-shadow: 0 2px 8px var(--shadow);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-lg);
}

.light-theme .project-card:hover {
    box-shadow: 0 8px 24px var(--shadow-lg);
}

.project-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(123, 30, 58, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-view {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    color: var(--primary);
    border-radius: 50%;
    font-size: 1.25rem;
    text-decoration: none;
    transition: var(--transition);
}

.project-view:hover {
    transform: scale(1.1);
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.project-info p {
    color: var(--text-tertiary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.25rem 0.75rem;
    background-color: rgba(123, 30, 58, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(123, 30, 58, 0.2);
}

.light-theme .tag {
    background-color: rgba(123, 30, 58, 0.08);
}

/* ===============================================
   CTA Section
   =============================================== */
.cta {
    background: linear-gradient(135deg, #7b1e3a 0%, #541126 100%) !important;
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.cta-content h2,
.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #ffffff !important;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.cta-content p,
.cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.92) !important;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.cta .btn-light {
    background-color: #ffffff !important;
    color: #7b1e3a !important;
    border: 2px solid #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta .btn-light:hover {
    background-color: #f8fafc !important;
    color: #541126 !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.cta .btn-outline {
    background-color: transparent !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
    font-weight: 700 !important;
}

.cta .btn-outline:hover {
    background-color: #ffffff !important;
    color: #7b1e3a !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* ===============================================
   Footer
   =============================================== */
.footer {
    background-color: #0f172a !important;
    color: #cbd5e1 !important;
    padding: 4rem 0 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo i {
    font-size: 1.75rem;
    color: #c09030;
}

.footer-logo h3 {
    font-size: 1.25rem;
    color: #ffffff !important;
    font-weight: 700;
}

.footer-col p {
    color: #94a3b8 !important;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.footer-col h4 {
    color: #ffffff !important;
    margin-bottom: 1.25rem;
    font-size: 1.125rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary);
}

.footer-col a {
    display: block;
    color: #cbd5e1 !important;
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.footer-col a:hover {
    color: #ffffff !important;
    padding-left: 6px;
}

.footer-socials {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.08) !important;
    color: #f8fafc !important;
    border-radius: 50%;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.footer-socials a:hover {
    background-color: var(--primary) !important;
    color: #ffffff !important;
    border-color: var(--primary) !important;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #64748b !important;
    font-size: 0.9rem;
}

/* ===============================================
   Responsive
   =============================================== */
@media (max-width: 1100px) {
    .mobile-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        background: rgba(15, 23, 42, 0.98) !important;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 0.75rem 0 1.5rem 0;
        gap: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        border-bottom: 2px solid var(--primary);
        box-shadow: 0 25px 50px -10px rgba(0, 0, 0, 0.75);
        z-index: 1000;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        
        /* Animation d'ouverture fluide et professionnelle */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px);
        transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1),
                    transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
                    visibility 0.28s ease;
        pointer-events: none;
    }

    .light-theme .nav-menu {
        background: rgba(255, 255, 255, 0.98) !important;
        border-top: 1px solid #e2e8f0;
        border-bottom: 2px solid var(--primary);
        box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-menu li {
        width: 100%;
        padding: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        transition: background-color 0.2s ease;
    }

    .light-theme .nav-menu li {
        border-bottom: 1px solid #f1f5f9;
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu .nav-link {
        display: flex;
        align-items: center;
        width: 100%;
        padding: 1rem 24px;
        font-size: 15px;
        font-weight: 600;
        color: #f8fafc;
        background: transparent;
        transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .light-theme .nav-menu .nav-link {
        color: #0f172a;
    }

    .nav-menu .nav-link:hover,
    .nav-menu .nav-link.active {
        background: rgba(123, 30, 58, 0.15);
        color: #b3395b;
        padding-left: 32px;
    }

    .light-theme .nav-menu .nav-link:hover,
    .light-theme .nav-menu .nav-link.active {
        background: #fdf2f4;
        color: #7b1e3a;
        padding-left: 32px;
    }

    .nav-menu .nav-link::after {
        display: none !important;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1.125rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .features-grid,
    .departments-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}
/* ===============================================
   Section Bureau
   =============================================== */
   .bureau {
    padding: 5rem 0;
    background-color: var(--dark-light);
}

.bureau-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.bureau-member-card {
    background-color: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.bureau-member-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.bureau-member-card:hover::before {
    opacity: 0.1;
}

.bureau-member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px var(--shadow-lg);
    border-color: var(--primary);
}

.bureau-member-photo {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary);
    position: relative;
    z-index: 1;
}

.bureau-member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.bureau-member-card:hover .bureau-member-photo img {
    transform: scale(1.1);
}

.bureau-member-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.bureau-role {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

/* ===============================================
   Modal Bureau
   =============================================== */
.member-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.member-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-modal-content {
    background-color: var(--bg-card);
    border-radius: 20px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.4s ease;
    border: 1px solid var(--border-color);
}

.member-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    font-weight: bold;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.member-modal-close:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

.member-modal-body {
    padding: 3rem;
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.member-modal-photo {
    flex: 0 0 250px;
    height: 250px;
    border-radius: 20px;
    overflow: hidden;
    border: 4px solid var(--primary);
    box-shadow: 0 10px 30px var(--shadow-lg);
}

.member-modal-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-modal-info {
    flex: 1;
    min-width: 300px;
}

.member-modal-info h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.modal-role {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.modal-bio {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.modal-contact {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.modal-contact a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.modal-contact a:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(123, 30, 58, 0.3);
}

/* ===============================================
   Project Modal
   =============================================== */
.project-modal-content {
    max-width: 680px !important;
    width: 92% !important;
    max-height: 90vh;
    overflow-y: auto;
    padding: 0 !important;
    border-radius: 20px !important;
    border: 1px solid rgba(123, 30, 58, 0.35);
    background-color: #1e293b;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
}

.light-theme .project-modal-content {
    background-color: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.project-modal-body {
    display: flex;
    flex-direction: column;
}

.project-modal-image-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    background: #0f172a;
    overflow: hidden;
}

.project-modal-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-modal-dept {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(123, 30, 58, 0.92);
    color: #ffffff;
    padding: 0.4rem 0.95rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.project-modal-details {
    padding: 2rem 2.25rem 2.5rem;
}

.project-modal-details h2 {
    font-size: 1.65rem;
    font-weight: 800;
    margin-bottom: 0.65rem;
    color: var(--text-primary);
}

.light-theme .project-modal-details h2 {
    color: #0f172a;
}

.project-modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1.25rem;
}

.project-modal-tags .tag {
    background: rgba(123, 30, 58, 0.12);
    color: var(--primary);
    border: 1px solid rgba(123, 30, 58, 0.25);
    padding: 0.25rem 0.7rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.light-theme .project-modal-tags .tag {
    background: #fdf2f4;
    color: #7b1e3a;
    border-color: #fbcfe8;
}

.project-modal-desc {
    color: var(--text-secondary);
    line-height: 1.75;
    font-size: 1.02rem;
    margin-bottom: 2rem;
}

.project-modal-actions {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.project-card {
    cursor: pointer;
}

/* ===============================================
   Toast Notification System
   =============================================== */
.toast-container {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(15, 23, 42, 0.96);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.92rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(123, 30, 58, 0.45);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
}

.light-theme .toast {
    background: #ffffff;
    color: #0f172a;
    border-color: #cbd5e1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.toast.toast-show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.toast-icon {
    font-size: 1.1rem;
    color: #10b981;
}

.toast-info .toast-icon {
    color: var(--accent);
}

.toast-error .toast-icon {
    color: #ef4444;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
/* ===============================================
   Mobile Responsive System (Optimisé Android & Smartphones)
   =============================================== */
@media (max-width: 768px) {
    /* Conteneur et grille générale */
    .container {
        padding: 0 16px;
    }

    /* En-tête et barre de navigation */
    .nav-container {
        padding: 0.4rem 16px;
    }

    .nav-logo {
        width: 2.5rem;
        max-width: 44px;
    }

    .logo-container {
        gap: 0.6rem;
        font-size: 1.15rem;
    }

    .nav-menu {
        top: 56px;
        max-height: calc(100dvh - 56px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0.5rem 0 1.25rem;
    }

    .nav-menu .nav-link {
        padding: 0.85rem 20px;
        font-size: 14.5px;
    }

    /* Section Hero */
    .hero {
        min-height: auto;
        padding: 105px 0 50px;
    }

    .hero-content {
        padding: 24px 16px;
        border-radius: 20px;
    }

    .light-theme .hero-content {
        background: rgba(255, 255, 255, 0.78);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.9);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    }

    .hero-badge {
        font-size: 0.82rem;
        padding: 0.4rem 1rem;
        margin-bottom: 1rem;
    }

    .hero-title {
        font-size: 2.1rem;
        line-height: 1.24;
        margin-bottom: 1rem;
        word-break: break-word;
    }

    .hero-description {
        font-size: 0.98rem;
        line-height: 1.6;
        margin-bottom: 1.6rem;
        padding: 0 5px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto 1.5rem;
        gap: 0.75rem;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
        padding: 0.85rem 1.25rem;
        font-size: 14px;
    }

    .hero-socials {
        gap: 0.85rem;
    }

    .social-link {
        width: 42px;
        height: 42px;
        font-size: 1.15rem;
    }

    .scroll-indicator {
        display: none !important;
    }

    /* Titres de sections */
    .features,
    .departments,
    .projects,
    .bureau,
    .about {
        padding: 3.5rem 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-title {
        font-size: 1.85rem;
        margin-bottom: 0.4rem;
    }

    .section-subtitle {
        font-size: 0.92rem;
        padding: 0 10px;
    }

    /* Carrousel Partenaires */
    .partner {
        margin-bottom: 2.75rem;
        padding: 1rem 0.6rem;
        border-radius: 12px;
    }

    .partner-logo {
        height: 50px;
        width: auto;
        max-width: 160px;
    }

    .carousel-track {
        gap: 1.5rem;
    }

    /* Grille de Statistiques 2x2 parfaite sur mobile */
    .statistics-container {
        margin-bottom: 2.75rem;
        width: 100%;
    }

    .statistics-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        width: 100% !important;
    }

    .stat-item {
        width: 100% !important;
        padding: 1.2rem 0.65rem !important;
        border-radius: 12px !important;
    }

    .stat-number {
        font-size: 1.65rem !important;
        margin-bottom: 0.2rem !important;
    }

    .stat-label {
        font-size: 0.82rem !important;
        font-weight: 600;
    }

    /* Activités */
    .about-activities {
        margin-bottom: 2.75rem;
    }

    .about-activities h3 {
        font-size: 1.65rem;
        margin-bottom: 1.5rem;
    }

    .activities-list {
        grid-template-columns: 1fr;
        gap: 0.9rem;
    }

    .activity-item {
        padding: 1.1rem 1rem;
        gap: 0.9rem;
        border-radius: 12px;
        align-items: center;
    }

    .activity-icon {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
        border-radius: 10px;
    }

    .activity-content h4 {
        font-size: 1.05rem;
        margin-bottom: 0.2rem;
    }

    .activity-content p {
        font-size: 0.88rem;
        line-height: 1.45;
    }

    /* Section Bureau */
    .bureau-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.25rem;
        margin-top: 1.75rem;
    }

    .bureau-member-card {
        padding: 1.5rem 1rem;
        border-radius: 14px;
    }

    .bureau-member-photo {
        width: 125px;
        height: 125px;
        margin-bottom: 1rem;
    }

    .bureau-member-card h3 {
        font-size: 1.15rem;
        margin-bottom: 0.25rem;
    }

    .bureau-role {
        font-size: 0.88rem;
    }

    /* Modale Membre Bureau sur Mobile */
    .member-modal-content {
        width: 94% !important;
        max-height: 88vh !important;
        border-radius: 16px !important;
        margin: auto !important;
    }

    .member-modal-body {
        flex-direction: column !important;
        padding: 2rem 1.25rem 1.5rem !important;
        gap: 1.25rem !important;
        align-items: center !important;
        text-align: center !important;
    }

    .member-modal-photo {
        width: 135px !important;
        height: 135px !important;
        flex: 0 0 auto !important;
        margin: 0 auto !important;
        border-width: 3px !important;
        border-radius: 16px !important;
    }

    .member-modal-info {
        min-width: 0 !important;
        width: 100% !important;
    }

    .member-modal-info h2 {
        font-size: 1.5rem !important;
        margin-bottom: 0.25rem !important;
    }

    .modal-role {
        font-size: 1.05rem !important;
        margin-bottom: 0.65rem !important;
    }

    .modal-bio {
        font-size: 0.9rem !important;
        line-height: 1.55 !important;
        margin-bottom: 1.25rem !important;
    }

    .modal-contact {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.65rem !important;
        width: 100% !important;
    }

    .modal-contact a {
        width: 100% !important;
        justify-content: center !important;
        font-size: 13.5px !important;
        padding: 0.7rem 1rem !important;
        border-radius: 8px !important;
    }

    .member-modal-close {
        font-size: 26px !important;
        top: 8px !important;
        right: 12px !important;
        padding: 6px !important;
        line-height: 1 !important;
        z-index: 20 !important;
    }

    /* Départements */
    .departments-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .department-card {
        border-radius: 12px;
    }

    .department-header {
        height: 125px;
        padding: 16px;
    }

    .department-header i {
        font-size: 2rem;
        margin-bottom: 0.35rem;
    }

    .department-header h3 {
        font-size: 1.2rem;
    }

    .department-card p {
        padding: 1rem 1.2rem 0.6rem;
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .department-list {
        padding: 0 1.2rem 1rem;
        font-size: 0.88rem;
    }

    .department-list li {
        margin-bottom: 0.45rem;
        gap: 0.5rem;
    }

    .department-link {
        margin: 0 1.2rem 1.25rem;
        padding: 0.65rem;
        font-size: 13.5px;
    }

    /* Projets */
    .projects-tabs {
        gap: 0.5rem;
        margin-bottom: 1.75rem;
    }

    .tab-button {
        padding: 0.45rem 0.85rem;
        font-size: 12.5px;
        border-radius: 6px;
    }

    .projects-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem;
    }

    .project-image {
        height: 180px;
    }

    .project-info {
        padding: 1.1rem 1rem;
    }

    .project-info h3 {
        font-size: 1.15rem;
        margin-bottom: 0.4rem;
    }

    .project-info p {
        font-size: 0.88rem;
        margin-bottom: 0.75rem;
    }

    .tag {
        font-size: 0.78rem;
        padding: 0.2rem 0.6rem;
    }

    /* Section CTA */
    .cta {
        padding: 3.5rem 0;
    }

    .cta-content h2,
    .cta h2 {
        font-size: 1.75rem !important;
        margin-bottom: 0.6rem;
    }

    .cta-content p,
    .cta p {
        font-size: 0.95rem !important;
        margin-bottom: 1.5rem;
        padding: 0 10px;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        gap: 0.75rem;
    }

    .cta-buttons .btn {
        width: 100%;
        text-align: center;
        padding: 0.85rem 1rem;
        font-size: 14px;
    }

    /* Pied de page */
    .footer {
        padding: 3rem 0 1.25rem;
    }

    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 1.75rem;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-bottom {
        font-size: 0.82rem;
        padding-top: 1.25rem;
    }
}

/* ===============================================
   Petits smartphones (Android <= 480px & 360px)
   =============================================== */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .logo-container span {
        font-size: 1.05rem;
    }

    .hero-title {
        font-size: 1.75rem;
        line-height: 1.22;
    }

    .hero-description {
        font-size: 0.92rem;
    }

    .section-title {
        font-size: 1.65rem;
    }

    .statistics-grid {
        gap: 8px !important;
    }

    .stat-item {
        padding: 1rem 0.5rem !important;
    }

    .stat-number {
        font-size: 1.45rem !important;
    }

    .stat-label {
        font-size: 0.78rem !important;
    }

    .bureau-grid {
        grid-template-columns: 1fr;
        max-width: 280px;
        margin: 1.5rem auto 0;
    }

    .member-modal-content {
        width: 96% !important;
    }

    .member-modal-body {
        padding: 1.75rem 1rem 1.25rem !important;
    }

    .member-modal-photo {
        width: 120px !important;
        height: 120px !important;
    }

    .cta-content h2,
    .cta h2 {
        font-size: 1.5rem !important;
    }
}

@media (max-width: 360px) {
    .logo-container span {
        font-size: 0.92rem;
    }

    .hero-title {
        font-size: 1.6rem;
    }
}

/* ===============================================
   Modale d'Installation (Zéro alert localhost)
   =============================================== */
.install-modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.install-modal-backdrop.show {
    display: flex;
    opacity: 1;
}

.install-modal-card {
    background: #1e293b;
    border: 1px solid rgba(158, 42, 77, 0.3);
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    animation: slideUp 0.3s ease;
    color: #f8fafc;
}

.install-modal-header {
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(15, 23, 42, 0.4);
}

.install-modal-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 17px;
    font-weight: 700;
    color: #b3395b;
}

.install-modal-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s;
}

.install-modal-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.install-modal-body {
    padding: 24px;
    max-height: 75vh;
    overflow-y: auto;
}

.install-step-card {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 14px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.install-step-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(123, 30, 58, 0.2);
    color: #b3395b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    flex-shrink: 0;
}

.install-step-content h4 {
    margin: 0 0 6px 0;
    font-size: 15px;
    color: #f1f5f9;
}

.install-step-content p {
    margin: 0;
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.5;
}

.install-step-content strong {
    color: #fbcfe8;
}

.install-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.3);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

/* Light Theme Overrides for Modal */
.light-theme .install-modal-card {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.light-theme .install-modal-header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.light-theme .install-modal-close {
    color: #64748b;
}

.light-theme .install-modal-close:hover {
    color: #0f172a;
    background: #f1f5f9;
}

.light-theme .install-step-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.light-theme .install-step-content h4 {
    color: #0f172a;
}

.light-theme .install-step-content p {
    color: #475569;
}

.light-theme .install-step-content strong {
    color: var(--primary);
}

.light-theme .install-modal-footer {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

/* ===============================================
   Textes Fondateurs & Espace Membre (Couleurs de Base)
   =============================================== */
.btn-nav-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1.2rem;
    background-color: var(--primary);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.btn-nav-login:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--shadow-lg);
}

.btn-nav-login.logged-in {
    background-color: #166534;
    border-color: #22c55e;
}

.light-theme .btn-doc-preview,
.light-theme .btn-doc-view {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
    color: #334155;
}

.light-theme .btn-doc-preview:hover,
.light-theme .btn-doc-view:hover {
    background-color: #e2e8f0;
    border-color: var(--primary);
    color: var(--primary);
}

.nav-link-espace {
    color: var(--primary) !important;
    font-weight: 700 !important;
    font-size: clamp(0.90rem, 0.94vw, 1rem) !important;
    white-space: nowrap !important;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0.38rem 0.85rem;
    border-radius: 7px;
    background: rgba(123, 30, 58, 0.12);
    border: 1px solid rgba(123, 30, 58, 0.25);
    transition: var(--transition);
    flex-shrink: 0;
}

.nav-link-espace:hover {
    background: var(--primary);
    color: #ffffff !important;
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(123, 30, 58, 0.3);
}

.light-theme .nav-link-espace {
    color: var(--primary) !important;
    background: #fdf2f4;
    border-color: #fbcfe8;
}

.light-theme .nav-link-espace:hover {
    background: var(--primary);
    color: #ffffff !important;
}

.nav-logo-sub {
    font-size: 10px;
    color: var(--secondary);
    letter-spacing: 1px;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.hero-motto-quote {
    display: inline-block;
    font-size: 1.2rem;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 1.3rem;
    font-style: italic;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.light-theme .hero-motto-quote {
    color: var(--primary) !important;
    text-shadow: 0 1px 8px rgba(255, 255, 255, 0.9);
    font-weight: 700;
}

/* ===============================================
   À Propos - Design Professionnel & Piliers Tech
   =============================================== */
.section-tag-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.95rem;
    background: rgba(123, 30, 58, 0.12);
    color: var(--primary);
    border: 1px solid rgba(123, 30, 58, 0.25);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 0.75rem;
}

.light-theme .section-tag-badge {
    background: #fdf2f4;
    color: var(--primary);
    border-color: #fbcfe8;
}

.about-overview {
    display: grid;
    grid-template-columns: 1.25fr 0.95fr;
    gap: 2.75rem;
    align-items: center;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem;
    margin-top: 2rem;
    margin-bottom: 3.5rem;
    box-shadow: 0 10px 30px var(--shadow);
    transition: var(--transition);
}

.light-theme .about-overview {
    background-color: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.about-overview-text h3 {
    font-size: 1.85rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    line-height: 1.35;
}

.about-overview-text p {
    font-size: 1.02rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.about-overview-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.75rem;
}

@media (max-width: 680px) {
    .about-overview-actions {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
        margin-top: 1.5rem !important;
    }
    .about-overview-actions .btn {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        padding: 0.65rem 0.6rem !important;
        font-size: 0.85rem !important;
        text-align: center !important;
        justify-content: center !important;
        white-space: nowrap !important;
    }
}

.btn-sm {
    padding: 0.6rem 1.4rem !important;
    font-size: 0.92rem !important;
    border-radius: 8px !important;
}

.about-highlights-list {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.about-highlight-card {
    display: flex;
    align-items: flex-start;
    gap: 1.15rem;
    padding: 1.25rem 1.4rem;
    background: rgba(123, 30, 58, 0.06);
    border: 1px solid rgba(123, 30, 58, 0.15);
    border-radius: 14px;
    transition: all 0.3s ease;
}

.light-theme .about-highlight-card {
    background: #fdf2f4;
    border-color: #fbcfe8;
}

.about-highlight-card:hover {
    transform: translateX(6px);
    border-color: var(--primary);
    box-shadow: 0 6px 18px rgba(123, 30, 58, 0.12);
}

.about-highlight-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(123, 30, 58, 0.3);
}

.about-highlight-content h5 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.35rem 0;
}

.about-highlight-content p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}

.value-item {
    text-align: center;
    padding: 2.25rem 1.5rem;
    background-color: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.light-theme .value-item {
    background-color: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.value-item:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 12px 28px rgba(123, 30, 58, 0.18);
}

.value-icon-wrapper {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.25rem;
    background: rgba(123, 30, 58, 0.1);
    border: 1px solid rgba(123, 30, 58, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.value-item:hover .value-icon-wrapper {
    background: var(--primary);
    border-color: var(--primary);
}

.value-icon {
    font-size: 1.85rem;
    color: var(--primary);
    transition: var(--transition);
}

.value-item:hover .value-icon {
    color: #ffffff;
    transform: scale(1.1);
}

.value-item h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.65rem;
    color: var(--text-primary);
}

.value-item p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 1024px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .about-overview {
        grid-template-columns: 1fr;
        padding: 2.25rem 1.5rem;
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    .values-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
   Section FAQ (Questions Fréquentes)
   ========================================================== */
.faq-section {
    padding: 5rem 0;
    background-color: var(--dark);
    position: relative;
    border-top: 1px solid var(--border-color);
}

.faq-container {
    max-width: 860px;
    margin: 0 auto;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2.5rem;
}

.faq-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: rgba(123, 30, 58, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.faq-question {
    width: 100%;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 600;
    transition: var(--transition);
}

.light-theme .faq-question {
    color: #0f172a;
}

.faq-question i {
    font-size: 0.9rem;
    color: var(--primary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0, 1, 0, 1), padding 0.35s ease;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
    padding: 0 1.5rem;
}

.light-theme .faq-answer {
    color: #475569;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding-bottom: 1.25rem;
}

/* ==========================================================
   Bouton Scroll-to-Top
   ========================================================== */
.scroll-top-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--primary);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(192, 144, 48, 0.4);
}

/* ==========================================================
   Planning des Labs & Rencontres Hebdomadaires (Workshops)
   ========================================================== */
.workshops-section {
    padding: 90px 0;
    background: linear-gradient(180deg, var(--dark) 0%, rgba(30, 41, 59, 0.5) 100%);
    position: relative;
    border-top: 1px solid var(--border-color);
}

.light-theme .workshops-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-top-color: #e2e8f0;
}

.workshops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.workshop-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.light-theme .workshop-card {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.workshop-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 16px 36px rgba(123, 30, 58, 0.2);
}

.workshop-day-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    padding: 6px 14px;
    border-radius: 8px;
    background: rgba(123, 30, 58, 0.2);
    color: var(--primary-light, #e06085);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
    border: 1px solid rgba(123, 30, 58, 0.35);
}

.light-theme .workshop-day-badge {
    background: rgba(123, 30, 58, 0.08);
    color: #7b1e3a;
    border-color: rgba(123, 30, 58, 0.2);
}

.workshop-day-badge.highlight-day {
    background: rgba(192, 144, 48, 0.2);
    color: #ffd166;
    border-color: rgba(192, 144, 48, 0.4);
}

.light-theme .workshop-day-badge.highlight-day {
    background: rgba(192, 144, 48, 0.12);
    color: #946914;
    border-color: rgba(192, 144, 48, 0.35);
}

.workshop-time-slots {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.workshop-time-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    padding: 6px 14px;
    border-radius: 50px;
    background: rgba(192, 144, 48, 0.15);
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-bottom: 14px;
    border: 1px solid rgba(192, 144, 48, 0.3);
}

.workshop-time-slots .workshop-time-badge {
    margin-bottom: 0;
}

.light-theme .workshop-time-badge {
    background: rgba(123, 30, 58, 0.07);
    color: #7b1e3a;
    border-color: rgba(123, 30, 58, 0.2);
}

.workshop-dept-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary-light, #b3395b);
    margin-bottom: 10px;
}

.light-theme .workshop-dept-badge {
    color: #7b1e3a;
}

.workshop-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.35;
}

.light-theme .workshop-title {
    color: #0f172a;
}

.workshop-location {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin-bottom: 16px;
}

.light-theme .workshop-location {
    color: #64748b;
}

.workshop-topics {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.workshop-topics li {
    font-size: 0.88rem;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}

.light-theme .workshop-topics li {
    color: #334155;
}

.workshop-topics li i {
    color: #10b981;
    font-size: 0.8rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.workshop-cta {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px dashed var(--border-color);
}

.light-theme .workshop-cta {
    border-top-color: #e2e8f0;
}

.workshop-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.light-theme .workshop-cta-link {
    color: #7b1e3a;
}

.workshop-cta-link:hover {
    gap: 10px;
}

/* Bandeau Note Importante (NB) */
.workshops-nb-banner {
    margin-top: 45px;
    background: linear-gradient(135deg, rgba(123, 30, 58, 0.18) 0%, rgba(192, 144, 48, 0.18) 100%);
    border: 1px solid rgba(192, 144, 48, 0.4);
    border-radius: 16px;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    gap: 22px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.light-theme .workshops-nb-banner {
    background: linear-gradient(135deg, rgba(123, 30, 58, 0.06) 0%, rgba(192, 144, 48, 0.12) 100%);
    border-color: rgba(192, 144, 48, 0.45);
    box-shadow: 0 6px 20px rgba(123, 30, 58, 0.08);
}

.workshops-nb-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #7b1e3a, #c09030);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.5rem;
    box-shadow: 0 6px 16px rgba(123, 30, 58, 0.35);
}

.workshops-nb-content h4 {
    margin: 0 0 6px 0;
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--accent);
}

.light-theme .workshops-nb-content h4 {
    color: #7b1e3a;
}

.workshops-nb-content p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.light-theme .workshops-nb-content p {
    color: #1e293b;
}

@media (max-width: 768px) {
    .workshops-nb-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 20px;
    }
}

/* ==========================================================
   Témoignages Étudiants & Success Stories
   ========================================================== */
.testimonials-section {
    padding: 90px 0;
    background: var(--dark);
    position: relative;
    border-top: 1px solid var(--border-color);
}

.light-theme .testimonials-section {
    background: #f8fafc;
    border-top-color: #e2e8f0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px 26px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.light-theme .testimonial-card {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    color: #f59e0b;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.testimonial-quote {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 24px;
    flex-grow: 1;
    position: relative;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.light-theme .testimonial-author {
    border-top-color: #f1f5f9;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.testimonial-info h4 {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 2px 0;
}

.testimonial-info span {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    display: block;
}

/* ===============================================
   Sécurité & Rendu Garanti des Blocs et Cartes (data-aos)
   Garantit que tous les éléments sont 100% visibles par défaut
   =============================================== */
[data-aos] {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

.about-overview-text h3 {
    color: var(--text-primary) !important;
    display: block !important;
}

.about-overview-text p {
    color: var(--text-secondary) !important;
    display: block !important;
}

.light-theme .about-overview-text h3 {
    color: #0f172a !important;
}

.light-theme .about-overview-text p {
    color: #334155 !important;
}

.departments-grid,
.projects-grid,
.workshops-grid,
.testimonials-grid,
.values-grid,
.features-grid {
    display: grid !important;
    visibility: visible !important;
    opacity: 1 !important;
}



