/* ========================================
   🎬 PARCOURS MILITAIRE - VERSION OPTIMISÉE
   ======================================== */

.section-parcours {
    background: #0a0e27;
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

/* ========================================
   📹 VIDÉO BACKGROUND - FIX CENTRAGE
   ======================================== */

.section-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 0;
    opacity: 0.65;
    filter: brightness(1.1) contrast(1.15);
}

/* ========================================
   🎨 OVERLAY OPTIMISÉ
   ======================================== */

.section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(10, 14, 39, 0.5) 0%,
        rgba(10, 14, 39, 0.2) 30%,
        rgba(10, 14, 39, 0.2) 70%,
        rgba(10, 14, 39, 0.6) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* ========================================
   ✨ VIGNETTE SUBTILE
   ======================================== */

.section-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse at center,
        transparent 40%,
        rgba(10, 14, 39, 0.3) 80%,
        rgba(10, 14, 39, 0.5) 100%
    );
    pointer-events: none;
}

/* ========================================
   📦 CONTAINER AU-DESSUS
   ======================================== */

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

/* ========================================
   📱 MOBILE
   ======================================== */

@media (max-width: 768px) {
    .section-bg-video {
        opacity: 0.5;
        filter: brightness(1) contrast(1.1);
    }
    
    .section-overlay {
        background: linear-gradient(
            180deg,
            rgba(10, 14, 39, 0.6) 0%,
            rgba(10, 14, 39, 0.3) 50%,
            rgba(10, 14, 39, 0.7) 100%
        );
    }
}


/* ========== EN-TÊTE SECTION ========== */
.section-parcours .section-badge {
    display: inline-block;
    padding: 10px 25px;
    background: linear-gradient(135deg, #0066ff, #00ccff);
    color: white;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 25px;
    margin-bottom: 20px;
    box-shadow: 0 5px 25px rgba(0, 102, 255, 0.6);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.section-parcours .section-badge i {
    margin-right: 8px;
}

/* ✅ Titre avec meilleur contraste */
.section-parcours .display-4 {
    font-weight: 800;
    color: #ffffff;
    text-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.8),
        0 4px 16px rgba(0, 102, 255, 0.4);
    margin-bottom: 15px;
}

/* ✅ Lead avec meilleur contraste */
.section-parcours .lead {
    color: #e0e0e0;
    font-size: 1.2rem;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
    font-weight: 400;
}

/* ========== TIMELINE MILITAIRE ========== */
.military-timeline {
    position: relative;
    padding: 40px 0;
    max-width: 1200px; /* ← Limite la largeur totale */
    margin: 0 auto;
}

/* Ligne verticale de la timeline - DÉPLACÉE À GAUCHE */
.military-timeline::before {
    content: '';
    position: absolute;
    left: 80px; /* ← Position fixe à gauche */
    transform: none; /* ← Plus de centrage */
    width: 4px;
    height: 100%;
    background: linear-gradient(
        180deg,
        transparent 0%,
        #0066ff 10%,
        #0066ff 90%,
        transparent 100%
    );
    border-radius: 2px;
    z-index: 0;
    box-shadow: 0 0 20px rgba(0, 102, 255, 0.6);
}

/* Timeline items */
.timeline-item {
    position: relative;
    margin-bottom: 60px;
    display: flex;
    align-items: flex-start;
    gap: 40px; /* ← Espace entre badge et contenu */
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.2s; }
.timeline-item:nth-child(2) { animation-delay: 0.4s; }
.timeline-item:nth-child(3) { animation-delay: 0.6s; }

/* Badge de la timeline - À GAUCHE */
.timeline-badge {
    position: absolute;
    left: 50px; /* ← Position fixe à gauche (aligné avec la ligne) */
    transform: none;
    top: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0066ff, #00ccff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    z-index: 2;
    flex-shrink: 0; /* ← Empêche le badge de rétrécir */
    box-shadow: 
        0 0 0 10px rgba(10, 14, 39, 0.8),
        0 0 30px rgba(0, 102, 255, 0.8),
        0 0 50px rgba(0, 204, 255, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 
            0 0 0 10px rgba(10, 14, 39, 0.8),
            0 0 30px rgba(0, 102, 255, 0.8),
            0 0 50px rgba(0, 204, 255, 0.4);
    }
    50% {
        box-shadow: 
            0 0 0 10px rgba(10, 14, 39, 0.8),
            0 0 40px rgba(0, 102, 255, 1),
            0 0 70px rgba(0, 204, 255, 0.6);
    }
}

/* Contenu de la timeline - PLUS LARGE */
.timeline-content {
    width: 100%; /* ← Prend toute la largeur disponible */
    margin-left: 150px; /* ← Espace pour le badge + ligne */
    min-height: 200px; /* ← Hauteur minimale pour éviter le tronquage */
}

/* ✅ Cartes avec fond plus opaque et PLUS GRANDES */
.timeline-content .card {
    background: rgba(10, 14, 39, 0.85);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(0, 102, 255, 0.4);
    border-radius: 20px;
    overflow: visible; /* ← Permet au contenu de s'étendre */
    transition: all 0.4s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    min-height: 250px; /* ← Hauteur minimale plus grande */
}

.timeline-content .card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 102, 255, 0.5);
    border-color: #0066ff;
    background: rgba(10, 14, 39, 0.92);
}

.timeline-content .card-body {
    padding: 40px; /* ← Padding augmenté de 35px à 40px */
}

/* ✅ Texte blanc vif pour les titres */
.timeline-content .card-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.6rem; /* ← Légèrement augmenté */
    margin-bottom: 18px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.4; /* ← Meilleure lisibilité */
}

.timeline-content .card-title i {
    margin-right: 12px;
}

.timeline-content .badge {
    padding: 10px 20px; /* ← Badges plus grands */
    font-size: 0.95rem;
    font-weight: 600;
    background: linear-gradient(135deg, #0066ff, #00ccff);
    border: none;
    box-shadow: 0 2px 8px rgba(0, 102, 255, 0.4);
}

/* ✅ Sous-titres cyan vif */
.timeline-content h6 {
    color: #00ccff;
    font-weight: 600;
    font-size: 1.15rem; /* ← Légèrement augmenté */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin-top: 20px;
    margin-bottom: 15px;
}

.timeline-content h6 i {
    margin-right: 10px;
}

/* Liste des réalisations */
.timeline-achievements {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

/* ✅ Texte liste en gris clair pour lisibilité */
.timeline-achievements li {
    padding: 12px 0; /* ← Espacement augmenté */
    color: #d0d0d0;
    position: relative;
    padding-left: 35px;
    line-height: 1.7; /* ← Meilleure lisibilité */
    font-size: 0.95rem; /* ← Texte légèrement plus grand */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.timeline-achievements li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #00ff88;
    font-weight: bold;
    font-size: 1.3rem;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.6);
}

/* Skills tags */
.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px; /* ← Gap augmenté */
    margin-top: 25px;
}

.skills-tags .badge {
    background: rgba(0, 102, 255, 0.3);
    color: #00ccff;
    border: 1px solid #0066ff;
    padding: 10px 18px; /* ← Badges plus grands */
    font-size: 0.9rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* ========================================
   📱 RESPONSIVE
   ======================================== */

/* Tablette */
@media (max-width: 992px) {
    .military-timeline::before {
        left: 40px;
    }
    
    .timeline-badge {
        left: 10px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .timeline-content {
        margin-left: 100px;
    }
    
    .timeline-content .card-body {
        padding: 30px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .military-timeline::before {
        left: 30px;
    }
    
    .timeline-badge {
        left: 5px;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
        top: 15px;
    }
    
    .timeline-content {
        margin-left: 75px;
    }
    
    .timeline-content .card-body {
        padding: 25px;
    }
    
    .timeline-content .card-title {
        font-size: 1.3rem;
    }
    
    .timeline-content h6 {
        font-size: 1rem;
    }
    
    .timeline-achievements li {
        font-size: 0.9rem;
        padding-left: 30px;
    }
}


/* ========== PARALLÈLE MILITAIRE/CYBER ========== */
.military-cyber-parallel {
    background: rgba(10, 14, 39, 0.85);
    backdrop-filter: blur(15px);
    padding: 50px;
    border-radius: 25px;
    border: 2px solid rgba(0, 102, 255, 0.4);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
}

/* ✅ Titre parallèle blanc vif */
.parallel-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 40px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.parallel-title i {
    color: #0066ff;
    margin-right: 10px;
    filter: drop-shadow(0 0 10px rgba(0, 102, 255, 0.8));
}

.parallel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.parallel-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 25px;
    background: rgba(10, 14, 39, 0.7);
    border-radius: 15px;
    border: 1px solid rgba(0, 102, 255, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.parallel-item:nth-child(1) { animation-delay: 0.1s; }
.parallel-item:nth-child(2) { animation-delay: 0.2s; }
.parallel-item:nth-child(3) { animation-delay: 0.3s; }
.parallel-item:nth-child(4) { animation-delay: 0.4s; }
.parallel-item:nth-child(5) { animation-delay: 0.5s; }
.parallel-item:nth-child(6) { animation-delay: 0.6s; }

.parallel-item:hover {
    transform: translateY(-5px);
    border-color: #0066ff;
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.4);
    background: rgba(10, 14, 39, 0.85);
}

.parallel-col {
    flex: 1;
    text-align: center;
}

.parallel-col.military i {
    font-size: 2.5rem;
    color: #ff4444;
    margin-bottom: 10px;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(255, 68, 68, 0.5));
}

.parallel-col.cyber i {
    font-size: 2.5rem;
    color: #00ccff;
    margin-bottom: 10px;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0, 204, 255, 0.5));
}

/* ✅ Texte parallèle blanc */
.parallel-col p {
    font-size: 0.95rem;
    color: #ffffff;
    margin: 0;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.parallel-arrow {
    font-size: 2rem;
    color: #0066ff;
    animation: arrowPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(0, 102, 255, 0.6));
}

@keyframes arrowPulse {
    0%, 100% {
        transform: translateX(0);
        opacity: 1;
    }
    50% {
        transform: translateX(8px);
        opacity: 0.7;
    }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
    .military-timeline::before {
        left: 30px;
    }
    
    .timeline-badge {
        left: 30px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .timeline-content {
        width: calc(100% - 90px);
        margin-left: 90px !important;
    }
    
    .parallel-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section-parcours .display-4 {
        font-size: 2rem;
    }
    
    .section-parcours .lead {
        font-size: 1rem;
    }
    
    .timeline-content .card-body {
        padding: 25px;
    }
    
    .military-cyber-parallel {
        padding: 30px 20px;
    }
    
    .parallel-title {
        font-size: 1.5rem;
    }
    
    .parallel-item {
        flex-direction: column;
        gap: 15px;
    }
    
    .parallel-arrow {
        transform: rotate(90deg);
    }
    
    .parallel-col.military i,
    .parallel-col.cyber i {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .timeline-badge {
        left: 20px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .timeline-content {
        width: calc(100% - 75px);
        margin-left: 75px !important;
    }
    
    .military-timeline::before {
        left: 20px;
    }
}

/* ========== OPTIMISATIONS PERFORMANCES ========== */
.section-bg-video {
    will-change: transform;
    transform: translateZ(0);
}

/* Désactiver les animations si préférence utilisateur */
@media (prefers-reduced-motion: reduce) {
    .timeline-item,
    .parallel-item,
    .timeline-badge {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}