/* Styles spécifiques à NexusOS */



.nexusos-hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
    min-height: 90vh;
}

.nexusos-visual {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.nexusos-video-container {
    position: relative;
    width: 600px;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.nexusos-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

/* Masquer l'animation fallback par défaut */
.fallback-animation {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Afficher l'animation fallback si la vidéo ne se charge pas */
.nexusos-video:not([src]) + .fallback-animation,
.nexusos-video[src=""] + .fallback-animation {
    display: block;
}

/* Animation NexusOS */
.os-animation {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 2rem auto;
}

.pulse-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.6) 70%, transparent 100%);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.pulse-core::before {
    content: 'OS';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--primary-color);
    font-weight: 800;
    font-size: 1.2rem;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
}

.connection-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.line {
    position: absolute;
    background: rgba(255, 255, 255, 0.4);
    animation: flow 3s ease-in-out infinite;
}

.line-1 {
    top: 50%;
    left: 50%;
    width: 100px;
    height: 2px;
    transform-origin: left center;
    transform: translate(0, -50%) rotate(-45deg);
    animation-delay: 0s;
}

.line-2 {
    top: 50%;
    left: 50%;
    width: 100px;
    height: 2px;
    transform-origin: left center;
    transform: translate(0, -50%) rotate(45deg);
    animation-delay: 0.5s;
}

.line-3 {
    top: 50%;
    left: 50%;
    width: 100px;
    height: 2px;
    transform-origin: left center;
    transform: translate(0, -50%) rotate(135deg);
    animation-delay: 1s;
}

.line-4 {
    top: 50%;
    left: 50%;
    width: 100px;
    height: 2px;
    transform-origin: left center;
    transform: translate(0, -50%) rotate(225deg);
    animation-delay: 1.5s;
}

@keyframes flow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.departments {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.dept {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-md);
    animation: float 4s ease-in-out infinite;
}

.dept-1 {
    top: 20px;
    right: 20px;
    animation-delay: 0s;
}

.dept-2 {
    bottom: 20px;
    right: 20px;
    animation-delay: 1s;
}

.dept-3 {
    bottom: 20px;
    left: 20px;
    animation-delay: 2s;
}

.dept-4 {
    top: 20px;
    left: 20px;
    animation-delay: 3s;
}

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

/* Section Nexans */
.nexans-section {
    padding: 8rem 0;
    background: var(--background-light);
}

.nexans-intro {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pillar-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

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

.pillar-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.pillar-icon svg {
    width: 30px;
    height: 30px;
}

.pillar-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.pillar-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Section Démonstration CTA */
.demonstration-cta {
    padding: 8rem 0;
    background: var(--gradient-primary);
    color: white;
}

.demo-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.demonstration-cta .section-title {
    color: white;
    margin-bottom: 2rem;
}

.demo-description {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 3rem;
    opacity: 0.95;
}

.demonstration-cta .cta-button.primary {
    background: white;
    color: var(--primary-color);
    font-weight: 600;
}

.demonstration-cta .cta-button.primary:hover {
    background: var(--background-light);
    transform: translateY(-2px);
}

/* Section Parcours d'Intégration */
.integration-journey {
    padding: 8rem 0;
    background: var(--background-light);
}

.journey-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.step-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    text-align: center;
    max-width: 300px;
    flex: 1;
    min-width: 250px;
    transition: all 0.3s ease;
}

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

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.step-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

.step-arrow {
    color: var(--primary-color);
    flex-shrink: 0;
}

.step-arrow svg {
    width: 30px;
    height: 30px;
}

/* Section Architecture */
.architecture {
    padding: 8rem 0;
}

.architecture-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.arch-diagram {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.arch-layer {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.arch-layer:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
}

.arch-layer h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.arch-layer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.architecture-text ul {
    list-style: none;
    padding: 0;
}

.architecture-text li {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.architecture-text li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.architecture-text strong {
    color: var(--text-primary);
}

/* Responsive Design pour NexusOS */
@media (max-width: 768px) {
    .nexusos-video-container {
        width: 400px;
        height: 300px;
    }
    
    .os-animation {
        width: 250px;
        height: 250px;
    }
    
    .pillars-grid {
        grid-template-columns: 1fr;
    }
    

    
    .journey-steps {
        flex-direction: column;
    }
    
    .step-arrow {
        transform: rotate(90deg);
    }
    
    .architecture-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .pillar-card,
    .step-card {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .nexusos-video-container {
        width: 320px;
        height: 240px;
    }
}