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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #000;
    color: #fff;
    overflow-x: hidden;
    scroll-behavior: smooth;
    line-height: 1.6;
}

/* Override Bootstrap colors for dark theme */
.text-light { color: rgba(255, 255, 255, 0.9) !important; }
.text-muted { color: rgba(255, 255, 255, 0.7) !important; }
.text-white { color: #fff !important; }



/* Responsive dropdown amélioré */
@media (max-width: 991px) {
    .dropdown-menu {
        position: static !important;
        transform: none !important;
        box-shadow: inset 0 0 20px rgba(188, 26, 26, 0.1) !important;
        border: 1px solid rgba(188, 26, 26, 0.2) !important;
        border-radius: 10px !important;
        margin: 5px 0 !important;
        backdrop-filter: blur(10px);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.4s ease;
    }
    
    .dropdown-menu.show {
        max-height: 400px;
        opacity: 1;
        margin: 10px 0 !important;
    }
    
    .dropdown-item {
        margin: 0 5px !important;
        padding: 12px 20px !important;
        border-radius: 8px !important;
    }

    /* Gestion spéciale pour mobile - éviter la navigation */
    .dropdown-toggle-mobile {
        pointer-events: auto;
        cursor: pointer;
    }

    .dropdown-toggle-mobile[href] {
        pointer-events: none;
    }

    /* Bouton pour mobile */
    .mobile-dropdown-btn {
        display: inline-block;
        padding: 0 10px;
        margin-left: 10px;
        color: rgba(255, 255, 255, 0.6);
        cursor: pointer;
        transition: all 0.3s ease;
        border-radius: 4px;
    }

    .mobile-dropdown-btn:hover {
        background: rgba(26, 188, 156, 0.1);
        color: #bc1a1a;
    }

    .navbar-nav .nav-link {
        padding: 10px 15px !important;
    }
}

/* Ajout d'un style pour les liens principaux sur mobile */
@media (max-width: 991px) {
    .nav-link-main {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .nav-link-main .main-text {
        flex-grow: 1;
    }

    .nav-link-main .dropdown-indicator {
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(188, 26, 26, 0.1);
        border-radius: 6px;
        margin-left: 10px;
        transition: all 0.3s ease;
    }

    .nav-link-main .dropdown-indicator:hover {
        background: rgba(188, 26, 26, 0.2);
        transform: scale(1.1);
    }
}

/* Hero section avec design spatial */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
}

.hero-content {
    animation: slideInLeft 1.2s ease;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-60px); }
    to { opacity: 1; transform: translateX(0); }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(188, 26, 26, 0.2), rgba(188, 26, 26, 0.1));
    color: #bc1a1a;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 25px;
    border: 2px solid rgba(188, 26, 26, 0.3);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(188, 26, 26, 0.2);
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 25px;
    color: #fff;
    text-shadow: 0 0 30px rgba(188, 26, 26, 0.3);
}

.hero-title .highlight {
    background: linear-gradient(135deg, #bc1a1a, #a01616, #c95252);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(188, 26, 26, 0.5);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 35px;
    font-weight: 400;
}

.btn-custom {
    padding: 18px 36px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
    display: inline-block;
    margin: 0 10px 10px 0;
}

.btn-primary-custom {
    background: linear-gradient(135deg, #bc1a1a, #a01616);
    color: white;
    box-shadow: 0 15px 40px rgba(188, 26, 26, 0.4);
}

.btn-primary-custom:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 25px 60px rgba(188, 26, 26, 0.6);
    color: white;
}

.btn-secondary-custom {
    background: transparent;
    color: #bc1a1a;
    border: 3px solid #bc1a1a;
    box-shadow: 0 0 30px rgba(188, 26, 26, 0.2);
}

.btn-secondary-custom:hover {
    background: rgba(188, 26, 26, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 25px 60px rgba(188, 26, 26, 0.4);
    color: #bc1a1a;
}

/* Feature cards */
.feature-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(188, 26, 26, 0.2);
    border-radius: 25px;
    padding: 40px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(188, 26, 26, 0.3);
    border-color: rgba(188, 26, 26, 0.4);
}

.feature-card:nth-child(even) {
    transform: translateY(30px);
}

.feature-card:nth-child(even):hover {
    transform: translateY(15px) scale(1.02);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #bc1a1a, #a01616);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 1.8rem;
    color: white;
    box-shadow: 0 0 30px rgba(188, 26, 26, 0.4);
}

.section-title {
    position: relative;
    margin-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #bc1a1a, #a01616);
    border-radius: 2px;
}

.cta-section {
    background: rgba(188, 26, 26, 0.05);
    backdrop-filter: blur(10px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .molecular-system {
        width: 300px;
        height: 300px;
    }

    .central-molecule {
        width: 100px;
        height: 100px;
    }

    .ring-1 { width: 160px; height: 160px; }
    .ring-2 { width: 220px; height: 220px; }
    .ring-3 { width: 280px; height: 280px; }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .feature-card:nth-child(even) {
        transform: translateY(0);
    }
}