/* template/css/formations.css */
.page-formations {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Hero Section */
.hero-formations {
    background: linear-gradient(135deg, #1a3a8f 0%, #2c5aa0 100%);
    color: white;
    padding: 100px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero-formations::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: cover;
}

.hero-content-formations {
    max-width: 800px;
}

.hero-title-formations {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle-formations {
    font-size: 1.5rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-description-formations {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    border-left: 4px solid #fff;
    backdrop-filter: blur(10px);
}

.hero-description-formations p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.hero-features-formations {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.feature-item-formations {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 25px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    font-weight: 500;
    transition: transform 0.3s ease;
}

.feature-item-formations:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.15);
}

.feature-item-formations i {
    font-size: 1.2rem;
}

.hero-illustration-formations {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.illustration-container-formations {
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: white;
    animation: float 6s ease-in-out infinite;
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.2);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Section Headers */
.section-header-formations {
    text-align: center;
    margin-bottom: 50px;
}

.section-title-formations {
    font-size: 2.8rem;
    font-weight: 700;
    color: #1a3a8f;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 1rem;
}

.section-title-formations::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: #2c5aa0;
    border-radius: 2px;
}

.section-subtitle-formations {
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Programmes Section */
.programmes-section {
    background: #f8fafc;
}

.programmes-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.programme-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8eff7;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.programme-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, #2c5aa0, #1a3a8f);
    transition: width 0.3s ease;
}

.programme-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(26, 58, 143, 0.15);
}

.programme-card:hover::before {
    width: 8px;
}

.programme-number {
    display: inline-block;
    background: #e8eff7;
    color: #1a3a8f;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.programme-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a3a8f;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.programme-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Sessions Section */
.sessions-section {
    background: white;
}

.sessions-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.session-card-formations {
    flex: 1;
    min-width: 300px;
    background: linear-gradient(135deg, #f8fafc 0%, #e8eff7 100%);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #dce7f3;
    transition: all 0.3s ease;
}

.session-card-formations:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(52, 152, 219, 0.15);
}

.session-header-formations {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #2c5aa0;
}

.session-icon {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #2c5aa0;
    box-shadow: 0 5px 15px rgba(26, 58, 143, 0.2);
}

.session-title-formations {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a3a8f;
    margin: 0;
}

.session-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.session-details li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
}

.session-details li:last-child {
    border-bottom: none;
}

.session-details li i {
    color: #2c5aa0;
    font-size: 1.1rem;
    width: 25px;
}

/* Process Section */
.process-section-formations {
    background: #f8fafc;
}

.process-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
}

.process-step {
    flex: 1;
    min-width: 250px;
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8eff7;
    transition: all 0.3s ease;
    position: relative;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(26, 58, 143, 0.15);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1a3a8f 0%, #2c5aa0 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: 0 5px 15px rgba(26, 58, 143, 0.3);
}

.step-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1a3a8f;
    margin-bottom: 15px;
}

.step-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Important Notes */
.important-notes {
    background: #fff9e6;
    border-radius: 15px;
    padding: 30px;
    margin: 40px 0;
    border-left: 5px solid #f39c12;
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.1);
}

.notes-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.notes-header i {
    font-size: 2rem;
    color: #f39c12;
}

.notes-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #856404;
    margin: 0;
}

.note-item {
    padding: 15px 20px;
    background: white;
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 3px solid #f39c12;
    transition: transform 0.2s ease;
}

.note-item:hover {
    transform: translateX(5px);
}

.note-item p {
    margin: 0;
    color: #856404;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.note-item i {
    color: #f39c12;
    margin-top: 3px;
}

/* Cost Section */
.cost-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin: 40px auto;
    max-width: 800px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #e8eff7;
    text-align: center;
}

.cost-icon {
    font-size: 4rem;
    color: #2c5aa0;
    margin-bottom: 20px;
}

.cost-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a3a8f;
    margin-bottom: 15px;
}

.cost-description {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 30px;
}

.contact-info {
    background: #e8f4fd;
    border-radius: 15px;
    padding: 25px;
    margin-top: 30px;
    border: 1px solid #d1e7ff;
}

.contact-info p {
    margin: 0;
    color: #1a3a8f;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.contact-info i {
    color: #2c5aa0;
}

/* CTA Section */
.cta-section-formations {
    background: linear-gradient(135deg, #1a3a8f 0%, #2c5aa0 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-content-formations {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.cta-title-formations {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.cta-text-formations {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    opacity: 0.9;
    line-height: 1.7;
}

.btn-primary-formations {
    background: #2c5aa0;
    border-color: #2c5aa0;
    padding: 15px 45px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary-formations:hover {
    background: #1a3a8f;
    border-color: #1a3a8f;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(26, 58, 143, 0.4);
}

.cta-benefits {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 60px;
}

.benefit-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 15px;
    min-width: 200px;
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.15);
}

.benefit-item i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: white;
}

.benefit-item p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-title-formations {
        font-size: 2.5rem;
    }
    
    .hero-subtitle-formations {
        font-size: 1.3rem;
    }
    
    .section-title-formations {
        font-size: 2.2rem;
    }
    
    .programmes-container {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .cta-title-formations {
        font-size: 2.3rem;
    }
}

@media (max-width: 768px) {
    .hero-title-formations {
        font-size: 2.2rem;
    }
    
    .hero-subtitle-formations {
        font-size: 1.1rem;
    }
    
    .section-title-formations {
        font-size: 1.8rem;
    }
    
    .programme-card {
        min-width: 100%;
    }
    
    .session-card-formations {
        min-width: 100%;
    }
    
    .cta-benefits {
        flex-direction: column;
        align-items: center;
    }
    
    .benefit-item {
        width: 100%;
        max-width: 300px;
    }
    
    .illustration-container-formations {
        width: 200px;
        height: 200px;
        font-size: 5rem;
    }
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in-up:nth-child(1) { animation-delay: 0.1s; }
.fade-in-up:nth-child(2) { animation-delay: 0.2s; }
.fade-in-up:nth-child(3) { animation-delay: 0.3s; }
.fade-in-up:nth-child(4) { animation-delay: 0.4s; }
.fade-in-up:nth-child(5) { animation-delay: 0.5s; }
.fade-in-up:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}