/* Modern Itinerary Section Styles */
.itinerary-section-modern {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.itinerary-section-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(26, 54, 93, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(26, 54, 93, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* Enhanced Header Styles - FORCED WCAG COMPLIANCE */
.section-header-modern {
    position: relative;
    z-index: 2;
    padding: 3rem 0;
    background: linear-gradient(135deg, 
        rgba(26, 54, 93, 0.08) 0%, 
        rgba(44, 82, 130, 0.05) 50%, 
        rgba(43, 108, 176, 0.08) 100%);
    border-radius: 1rem;
    margin-bottom: 3rem;
    overflow: hidden;
    border: 2px solid rgba(26, 54, 93, 0.1);
}

/* Force override parent CSS */
.section-header-modern h2,
.section-header-modern .display-4,
.section-header-modern .text-gradient-enhanced {
    color: #1a365d !important;
    -webkit-text-fill-color: transparent !important;
}

.section-header-modern p,
.section-header-modern .description-enhanced,
.section-header-modern .lead {
    color: #1e293b !important;
    font-weight: 600 !important;
}

.section-header-modern .section-badge-enhanced {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 50%, #2b6cb0 100%) !important;
    color: white !important;
    border: 2px solid #1a365d !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4) !important;
}

/* Header Decorations */
.header-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.decoration-circle-1 {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    top: -60px;
    left: 10%;
    animation-delay: 0s;
}

.decoration-circle-2 {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2c5282 0%, #2b6cb0 100%);
    top: 20px;
    right: 15%;
    animation-delay: 2s;
}

.decoration-circle-3 {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2b6cb0 0%, #3182ce 100%);
    bottom: -30px;
    right: 25%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Enhanced Section Badge */
.section-badge-enhanced {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 50%, #2b6cb0 100%);
    border: 2px solid rgba(26, 54, 93, 0.2);
    border-radius: 2rem;
    font-size: 1rem;
    font-weight: 700;
    color: white !important;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 10px 30px rgba(26, 54, 93, 0.3);
}

.section-badge-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.section-badge-enhanced:hover::before {
    left: 100%;
}

.section-badge-enhanced:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(26, 54, 93, 0.4);
}

.badge-shine {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Enhanced Title - ÉLÉGANT ET LISIBLE */
.display-4 {
    font-size: 3rem !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    margin-bottom: 1.5rem !important;
    position: relative !important;
}

.title-background {
    position: relative;
    display: inline-block;
}

.text-gradient-enhanced {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 30%, #2b6cb0 60%, #3182ce 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    position: relative !important;
    font-weight: 800 !important;
    filter: drop-shadow(0 1px 2px rgba(255, 255, 255, 0.9)) !important;
}

.title-underline {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 50%, #2b6cb0 100%) !important;
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(26, 54, 93, 0.3) !important;
}

.title-underline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: titleShine 3s ease-in-out infinite;
}

@keyframes titleShine {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

/* Enhanced Description - ÉLÉGANT ET LISIBLE */
.description-container {
    max-width: 600px;
    margin: 0 auto;
}

.description-enhanced {
    font-size: 1.25rem !important;
    font-weight: 500 !important;
    color: #334155 !important;
    line-height: 1.8 !important;
    margin-bottom: 2rem !important;
}

/* Description Stats - DESIGN ÉLÉGANT */
.description-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(248, 250, 252, 0.6) 100%);
    border: 1px solid rgba(26, 54, 93, 0.15);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    min-width: 120px;
}

.stat-item:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.8) 100%);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(26, 54, 93, 0.2);
    border-color: rgba(26, 54, 93, 0.25);
}

.stat-item i {
    font-size: 1.5rem;
    color: #1a365d;
    margin-bottom: 0.5rem;
}

.stat-item span {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a365d;
    text-align: center;
}

/* Original Section Badge (keeping for compatibility) */
.section-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.1) 0%, rgba(44, 82, 130, 0.05) 100%);
    border: 1px solid rgba(26, 54, 93, 0.2);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a365d;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.section-badge:hover {
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.15) 0%, rgba(44, 82, 130, 0.1) 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 54, 93, 0.2);
}

/* Timeline Structure */
.itinerary-timeline-modern {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline-connector {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 80%;
    background: linear-gradient(180deg, 
        transparent 0%, 
        #cbd5e1 10%, 
        #94a3b8 50%, 
        #cbd5e1 90%, 
        transparent 100%);
    z-index: 1;
}

/* Modern Steps */
.itinerary-step-modern {
    display: flex;
    align-items: flex-start;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.itinerary-step-modern:nth-child(even) {
    flex-direction: row-reverse;
}

/* Step Marker - Z-INDEX CORRIGÉ */
.step-marker-modern {
    position: relative;
    flex-shrink: 0;
    margin: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

.step-number {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 50%, #2b6cb0 100%);
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(26, 54, 93, 0.3);
    position: relative;
    z-index: 12;
    transition: all 0.3s ease;
}

.step-marker-modern:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(26, 54, 93, 0.4);
}

.step-icon {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2c5282 0%, #2b6cb0 100%);
    color: white;
    border-radius: 50%;
    font-size: 0.875rem;
    box-shadow: 0 5px 15px rgba(44, 82, 130, 0.4);
    animation: iconPulse 2s ease-in-out infinite;
    z-index: 15;
    border: 2px solid white;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Step Content */
.step-content-modern {
    flex: 1;
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.step-content-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.02) 0%, rgba(44, 82, 130, 0.01) 100%);
    pointer-events: none;
}

.step-content-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Step Header */
.step-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.step-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a365d;
    margin: 0;
    line-height: 1.3;
}

.step-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 1px solid #cbd5e1;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    transition: all 0.3s ease;
}

.step-badge:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(71, 85, 105, 0.2);
}

/* Step Description */
.step-description {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Step Features */
.step-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.step-features li {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    color: #475569;
    font-size: 0.95rem;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

.step-features li:last-child {
    border-bottom: none;
}

.step-features li:hover {
    color: #1a365d;
    padding-left: 0.5rem;
    background: linear-gradient(90deg, rgba(26, 54, 93, 0.05) 0%, transparent 100%);
}

.step-features i {
    color: #1a365d;
    font-size: 1rem;
    width: 20px;
    text-align: center;
    margin-right: 0.75rem;
}

/* Animations */
.animate-fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    animation: fadeInLeft 0.8s ease forwards;
}

.animate-fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    animation: fadeInRight 0.8s ease 0.2s forwards;
}

@keyframes fadeInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .timeline-connector {
        left: 2rem;
        width: 2px;
    }
    
    .itinerary-step-modern {
        flex-direction: row !important;
        margin-left: 4rem;
    }
    
    .itinerary-step-modern:nth-child(even) {
        flex-direction: row !important;
    }
    
    .step-marker-modern {
        margin-left: -4rem;
        margin-right: 2rem;
    }
    
    .step-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .step-badge {
        align-self: flex-start;
    }
}

@media (max-width: 768px) {
    .itinerary-section-modern {
        padding: 3rem 0;
    }
    
    .timeline-connector {
        left: 1rem;
    }
    
    .itinerary-step-modern {
        margin-left: 3rem;
        margin-bottom: 3rem;
    }
    
    .step-marker-modern {
        margin-left: -3rem;
        margin-right: 1.5rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .step-icon {
        width: 25px;
        height: 25px;
        font-size: 0.75rem;
    }
    
    .step-content-modern {
        padding: 1.5rem;
    }
    
    .step-title {
        font-size: 1.25rem;
    }
    
    .step-features li {
        font-size: 0.875rem;
    }
}

@media (max-width: 576px) {
    .timeline-connector {
        left: 0.5rem;
    }
    
    .itinerary-step-modern {
        margin-left: 2.5rem;
    }
    
    .step-marker-modern {
        margin-left: -2.5rem;
        margin-right: 1rem;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .step-icon {
        width: 20px;
        height: 20px;
        font-size: 0.625rem;
        top: -5px;
        right: -5px;
    }
    
    .step-content-modern {
        padding: 1rem;
    }
    
    .step-title {
        font-size: 1.125rem;
    }
    
    .step-description {
        font-size: 0.875rem;
    }
    
    .step-features li {
        font-size: 0.8rem;
        padding: 0.5rem 0;
    }
    
    .step-features i {
        font-size: 0.875rem;
        width: 16px;
    }
}
