/* Variables CSS pour la page Formation Professionnelle */
:root {
    --formation-primary: #1d4ed8;
    --formation-secondary: #3b82f6;
    --formation-accent: #60a5fa;
    --formation-light: #dbeafe;
    --formation-dark: #1e40af;
    --formation-gradient: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 50%, #60a5fa 100%);
    --formation-shadow: 0 10px 25px rgba(29, 78, 216, 0.15);
    --formation-glow: 0 0 20px rgba(96, 165, 250, 0.3);
}

/* Page principale */
.formation-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #dbeafe 100%);
}

/* Hero Section */
.formation-hero {
    background: var(--formation-gradient);
    color: white;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.formation-hero::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"><defs><pattern id="books" x="0" y="0" width="25" height="25" patternUnits="userSpaceOnUse"><rect x="8" y="5" width="3" height="15" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/><rect x="12" y="3" width="3" height="17" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/><rect x="16" y="6" width="3" height="14" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23books)"/></svg>');
    opacity: 0.3;
}

.formation-hero .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.formation-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.formation-hero p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Stats Hero */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item strong {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #dbeafe;
}

.stat-item span {
    font-size: 1rem;
    opacity: 0.9;
}

/* Section Overview */
.formation-overview {
    padding: 80px 0;
    background: white;
}

.formation-overview h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--formation-primary);
    margin-bottom: 1rem;
}

.formation-overview > p {
    text-align: center;
    font-size: 1.2rem;
    color: #6b7280;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Timeline */
.formation-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.timeline-step {
    text-align: center;
    padding: 2rem;
    background: #f9fafb;
    border-radius: 20px;
    border: 2px solid transparent;
    transition: all 0.6s ease;
    opacity: 0.5;
    transform: translateY(20px);
}

.timeline-step.active {
    opacity: 1;
    transform: translateY(0);
    border-color: var(--formation-accent);
    background: var(--formation-light);
    box-shadow: var(--formation-shadow);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--formation-gradient);
    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;
    box-shadow: var(--formation-glow);
}

.timeline-step h3 {
    font-size: 1.3rem;
    color: var(--formation-primary);
    margin-bottom: 1rem;
}

.timeline-step p {
    color: #6b7280;
    line-height: 1.6;
}

/* Section Services */
.formation-services {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, white 100%);
}

.formation-services h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--formation-primary);
    margin-bottom: 3rem;
}

.service-detail {
    background: white;
    border-radius: 20px;
    margin-bottom: 2rem;
    overflow: hidden;
    box-shadow: var(--formation-shadow);
    border: 1px solid #f3f4f6;
    transition: all 0.3s ease;
}

.service-detail:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(29, 78, 216, 0.2);
}

.service-header {
    background: var(--formation-gradient);
    color: white;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.service-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.service-header h3 {
    flex: 1;
    font-size: 1.8rem;
    margin: 0;
}

.coverage {
    background: var(--formation-dark);
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
}

.service-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.service-features h4,
.service-tools h4,
.service-benefits h4 {
    color: var(--formation-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-features ul,
.service-tools ul {
    list-style: none;
    padding: 0;
}

.service-features li,
.service-tools li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before,
.service-tools li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--formation-accent);
    font-weight: bold;
}

.benefit-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.benefit-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--formation-light);
    border-radius: 10px;
    border-left: 4px solid var(--formation-accent);
}

.benefit-name {
    font-weight: 600;
    color: var(--formation-dark);
}

.benefit-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--formation-primary);
}

/* Section Types */
.formation-types {
    padding: 80px 0;
    background: white;
}

.formation-types h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--formation-primary);
    margin-bottom: 1rem;
}

.formation-types > p {
    text-align: center;
    font-size: 1.2rem;
    color: #6b7280;
    margin-bottom: 3rem;
}

.types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.type-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    border: 2px solid #f3f4f6;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.1), transparent);
    transition: left 0.6s ease;
}

.type-card:hover::before {
    left: 100%;
}

.type-card:hover {
    border-color: var(--formation-accent);
    box-shadow: var(--formation-shadow);
    transform: translateY(-5px);
}

.type-icon {
    width: 80px;
    height: 80px;
    background: var(--formation-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.type-icon i {
    font-size: 2rem;
    color: white;
}

.type-card h4 {
    font-size: 1.3rem;
    color: var(--formation-primary);
    margin-bottom: 1rem;
}

.type-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.type-card li {
    padding: 0.3rem 0;
    color: #6b7280;
    font-size: 0.9rem;
}

.type-duration {
    background: var(--formation-light);
    padding: 0.8rem;
    border-radius: 10px;
    font-weight: 600;
    color: var(--formation-dark);
    font-size: 0.9rem;
}

/* Section Outils */
.formation-tools {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, white 100%);
}

.formation-tools h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--formation-primary);
    margin-bottom: 3rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.tool-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    border: 2px solid #f3f4f6;
    transition: all 0.4s ease;
    position: relative;
}

.tool-card:hover {
    border-color: var(--formation-accent);
    box-shadow: var(--formation-shadow);
    transform: translateY(-5px);
}

.tool-icon {
    width: 70px;
    height: 70px;
    background: var(--formation-gradient);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.tool-icon i {
    font-size: 1.8rem;
    color: white;
}

.tool-card h4 {
    font-size: 1.2rem;
    color: var(--formation-primary);
    margin-bottom: 1rem;
}

.tool-card p {
    color: #6b7280;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Section Plumes */
.formation-plumes {
    padding: 80px 0;
    background: var(--formation-primary);
    color: white;
    position: relative;
    overflow: hidden;
}

.formation-plumes::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"><defs><pattern id="feathers" x="0" y="0" width="30" height="30" patternUnits="userSpaceOnUse"><path d="M15,5 Q20,10 15,25 Q10,10 15,5" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23feathers)"/></svg>');
}

.formation-plumes .container {
    position: relative;
    z-index: 2;
}

.formation-plumes h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: white;
}

.plumes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.plumes-section h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.earn-list,
.spend-list {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.earn-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.earn-item:last-child {
    border-bottom: none;
}

.earn-action {
    flex: 1;
    font-size: 0.95rem;
}

.earn-points {
    font-weight: 700;
    color: var(--formation-accent);
    font-size: 1.1rem;
}

.spend-category {
    margin-bottom: 2rem;
}

.spend-category:last-child {
    margin-bottom: 0;
}

.spend-category h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--formation-light);
}

.spend-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.spend-item:last-child {
    border-bottom: none;
}

.spend-service {
    flex: 1;
    font-size: 0.9rem;
}

.spend-cost {
    font-weight: 700;
    color: var(--formation-accent);
}

/* Section CTA */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--formation-light) 0%, white 100%);
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    color: var(--formation-primary);
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    color: #6b7280;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--formation-gradient);
    color: white;
    box-shadow: var(--formation-shadow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(29, 78, 216, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--formation-primary);
    border-color: var(--formation-primary);
}

.btn-secondary:hover {
    background: var(--formation-primary);
    color: white;
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .formation-hero h1 {
        font-size: 2.5rem;
    }
    
    .formation-hero p {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .formation-timeline {
        grid-template-columns: 1fr;
    }
    
    .service-content {
        grid-template-columns: 1fr;
    }
    
    .types-grid,
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .plumes-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .formation-hero {
        padding: 80px 0 60px;
    }
    
    .formation-hero h1 {
        font-size: 2rem;
    }
    
    .stat-item strong {
        font-size: 2rem;
    }
    
    .service-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .service-header h3 {
        font-size: 1.5rem;
    }
}

/* Animations spéciales */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}
