/* Formations Vidéos Page Styles */

.formations-page {
    background: #0a0e27;
    color: #e2e8f0;
}

/* Hero Section */
.formations-hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #3b82f6 100%);
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

.formations-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.formations-hero .container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-text {
    flex: 1;
}

.formations-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 30px;
}

.social-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.proof-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
}

/* Students count badge - green success theme */
.proof-item:first-child {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white !important;
    box-shadow: 0 3px 12px rgba(16, 185, 129, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
    font-weight: 700;
}

.proof-item:first-child * {
    color: white !important;
}

.proof-item.instructor-badge {
    background: linear-gradient(135deg, #f5b800 0%, #d4a000 100%);
    color: #1a1a2e !important;
    box-shadow: 0 3px 12px rgba(245, 184, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
    font-weight: 700;
}

/* Force dark text on instructor badge */
.instructor-badge,
.instructor-badge * {
    color: #1a1a2e !important;
}

.proof-icon {
    font-size: 1.3rem;
}

.hero-image {
    width: 300px;
    flex-shrink: 0;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Courses Section */
.courses-section {
    padding: 80px 20px;
    background: #0f172a;
}

.courses-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.courses-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: #f1f5f9;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.course-card {
    background: #1e293b;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

/* Best Seller Card Styling */
.course-card-bestseller {
    border: 3px solid #1a1a2e;
    box-shadow: 0 4px 20px rgba(245, 184, 0, 0.4), 0 0 0 1px #f5b800 inset;
    position: relative;
    background: linear-gradient(to bottom, rgba(26, 26, 46, 0.05) 0%, rgba(30, 41, 59, 0) 100%);
}

.course-card-bestseller:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(245, 184, 0, 0.5), 0 0 0 1px #fbbf24 inset;
    border-color: #0f0f1e;
}

.course-thumbnail-link {
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.course-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.course-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.course-thumbnail-link:hover .play-overlay {
    opacity: 1;
}

.course-thumbnail-link:hover .course-thumbnail img {
    transform: scale(1.05);
    filter: brightness(0.7);
}

/* Best Seller Badge */
.bestseller-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #f5b800 0%, #d4a000 100%);
    color: #1a1a2e !important;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
    z-index: 3;
    box-shadow: 0 3px 12px rgba(245, 184, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 3px 12px rgba(245, 184, 0, 0.5);
    }
    50% {
        box-shadow: 0 3px 20px rgba(245, 184, 0, 0.8);
    }
}

.course-year {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #10b981;
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.course-year.old {
    background: #ef4444;
}

.course-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 2;
}

.course-content {
    padding: 25px;
}

.course-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tag {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.tag-level {
    background: #3b82f6;
    color: white;
}

.tag-category {
    background: #10b981;
    color: white;
}

.course-content h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: #f1f5f9;
    line-height: 1.3;
}

.course-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.course-rating .stars {
    color: #fbbf24;
    font-size: 1rem;
    letter-spacing: 2px;
}

.course-rating .rating-text {
    color: #94a3b8;
    font-weight: 600;
}

.course-rating .views-text {
    color: #64748b;
    font-weight: 400;
}

.course-description {
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 15px;
}

.course-highlights {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    color: #94a3b8;
    font-size: 0.9rem;
}

.course-highlights li {
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
}

.course-highlights li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 700;
}

.course-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #334155;
}

.course-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #3b82f6;
}

.btn-course {
    background: #3b82f6;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-course:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.courses-placeholder {
    text-align: center;
    padding: 60px 20px;
    background: #1e293b;
    border-radius: 12px;
    font-size: 1.2rem;
    color: #94a3b8;
}

/* Why Section */
.why-section {
    padding: 80px 20px;
    background: #1e293b;
}

.why-section .container {
    max-width: 1000px;
    margin: 0 auto;
}

.why-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    color: #f1f5f9;
}

.why-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #cbd5e1;
    text-align: center;
}

.why-text strong {
    color: #3b82f6;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.benefit-item {
    display: flex;
    gap: 15px;
    background: #0f172a;
    padding: 25px;
    border-radius: 8px;
}

.benefit-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.benefit-text h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #f1f5f9;
}

.benefit-text p {
    font-size: 0.95rem;
    color: #94a3b8;
    line-height: 1.6;
}

/* Testimonials Section */
.testimonials-section {
    padding: 80px 20px;
    background: #0f172a;
}

.testimonials-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.testimonials-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: #f1f5f9;
}

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

.testimonial-card {
    background: #1e293b;
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid #3b82f6;
}

.testimonial-rating {
    color: #fbbf24;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.testimonial-text {
    font-size: 1rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.testimonial-author strong {
    color: #f1f5f9;
    font-size: 1rem;
}

.testimonial-author span {
    color: #94a3b8;
    font-size: 0.875rem;
}

/* B2B CTA Section */
/* Option 3: Dégradé ardoise avec accent bleu - Ultra cohérent et sobre */
.b2b-cta-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    position: relative;
    overflow: hidden;
    border-top: 3px solid #3b82f6;
    border-bottom: 3px solid #3b82f6;
}

/* Force color overrides for B2B section text */
.b2b-cta-section p,
.b2b-cta-section div,
.b2b-cta-section span,
.b2b-cta-section h2,
.b2b-cta-section li {
    color: white !important;
}

.b2b-cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.b2b-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.b2b-text h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 20px;
}

.b2b-text p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7;
    margin-bottom: 30px;
}

.b2b-features {
    list-style: none;
    padding: 0;
    display: inline-block;
    text-align: left;
    margin: 20px 0 30px;
}

.b2b-features li {
    font-size: 1.1rem;
    color: white;
    padding: 8px 0;
    font-weight: 500;
}

.b2b-cta {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

/* B2B Buttons - Option 3: Ardoise sobre avec bleu électrique */
/* Palette: Fond ardoise (#1e293b → #0f172a) avec boutons bleu électrique vibrant et blanc pur */

.b2b-cta-section .btn-b2b,
.b2b-cta-section a.btn-b2b,
a.btn-b2b {
    /* Bouton primaire : Bleu électrique vibrant sur fond sombre */
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    color: white !important;
    padding: 18px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    display: inline-block;
    border: 2px solid rgba(59, 130, 246, 0.5) !important;
}

.b2b-cta-section .btn-b2b:hover,
.b2b-cta-section a.btn-b2b:hover,
a.btn-b2b:hover {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%) !important;
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(59, 130, 246, 0.6);
    border-color: rgba(96, 165, 250, 0.7) !important;
}

.b2b-cta-section .btn-secondary,
.b2b-cta-section a.btn-secondary,
a.btn-secondary {
    /* Bouton secondaire : Blanc pur avec bordure pour contraste subtil */
    background: white !important;
    color: #0f172a !important;
    border: 2px solid white !important;
    padding: 15px 35px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
}

.b2b-cta-section .btn-secondary:hover,
.b2b-cta-section a.btn-secondary:hover,
a.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #1e40af !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.95) !important;
}

/* Cross-link Section */
.cross-link-section {
    padding: 60px 20px;
    background: #1e293b;
    border-top: 3px solid #3b82f6;
}

.cross-link-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.cross-link-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 20px;
}

.cross-link-content h3 {
    font-size: 2rem;
    color: #f1f5f9;
    margin-bottom: 15px;
}

.cross-link-content p {
    font-size: 1.1rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 30px;
}

.btn-outline {
    background: transparent;
    color: #3b82f6;
    border: 2px solid #3b82f6;
    padding: 15px 35px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-outline:hover {
    background: #3b82f6;
    color: white;
}

/* LinkedIn Notice */
.linkedin-notice {
    display: flex;
    gap: 15px;
    background: rgba(59, 130, 246, 0.1);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.notice-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1;
}

.notice-content {
    flex: 1;
}

.notice-content p {
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 10px 0;
}

.notice-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.notice-link:hover {
    color: #60a5fa;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .formations-hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-image {
        width: 100%;
        max-width: 300px;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .courses-section h2,
    .why-section h2,
    .testimonials-section h2 {
        font-size: 1.8rem;
    }

    .b2b-text h2 {
        font-size: 1.8rem;
    }

    .b2b-text p {
        font-size: 1rem;
    }

    .b2b-cta {
        flex-direction: column;
    }

    .course-footer {
        flex-direction: column;
        gap: 15px;
    }

    .btn-course {
        width: 100%;
        text-align: center;
    }

    .linkedin-notice {
        flex-direction: column;
        gap: 10px;
    }

    .notice-icon {
        font-size: 1.3rem;
    }

    .notice-content p {
        font-size: 0.95rem;
    }
}
