/* ===================================
   📅 TIMELINE EXPÉRIENCE & FORMATION
   Section moderne pour CV
   =================================== */

.timeline-section {
    margin: 60px 0;
}

.timeline-section h3 {
    color: #1f2937 !important;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
}

/* Ligne centrale */
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, #000000, #5a5a5a, #000000);
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-icon {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: #000000;
    border: 4px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #ffffff;
    z-index: 10;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-icon {
    transform: translateX(-50%) scale(1.2) rotate(360deg);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.timeline-content {
    width: 45%;
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    transform: translateY(-50%) rotate(45deg);
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -11px;
    border-left: none;
    border-bottom: none;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -11px;
    border-right: none;
    border-top: none;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    background: #ffffff;
    border-color: #000000;
}

.timeline-content h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #000000 !important;
    margin-bottom: 10px;
}

.timeline-subtitle {
    color: #374151 !important;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.timeline-subtitle i {
    margin-right: 5px;
    color: #4b5563 !important;
}

.timeline-date {
    color: #6b7280 !important;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.timeline-date i {
    margin-right: 5px;
}

.timeline-description {
    color: #000000 !important;
    line-height: 1.6;
    margin-bottom: 15px;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.timeline-tags .tag {
    background: #000000;
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.timeline-tags .tag:hover {
    background: #ffffff;
    color: #000000;
    border: 1px solid #000000;
    transform: scale(1.1);
}

/* Animation d'apparition */
.timeline-item {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s forwards;
}

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

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

/* Responsive */
@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: column !important;
        padding-left: 80px;
    }
    
    .timeline-icon {
        left: 30px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .timeline-content {
        width: 100%;
    }
    
    .timeline-content::before {
        left: -11px !important;
        border-right: none !important;
        border-top: none !important;
    }
}

/* ===================================
   🎓 SECTION INFORMATIONS SUPPLÉMENTAIRES
   =================================== */

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

.info-card {
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.info-card:hover {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.info-card-icon {
    width: 70px;
    height: 70px;
    background: #000000;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.info-card:hover .info-card-icon {
    background: #ffffff;
    color: #000000;
    transform: rotate(360deg);
}

.info-card h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: inherit;
}

.info-card p {
    line-height: 1.6;
    color: inherit;
}

.info-card ul {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.info-card ul li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.info-card:hover ul li {
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.info-card ul li:last-child {
    border-bottom: none;
}

.info-card ul li i {
    margin-right: 10px;
    color: inherit;
}
