/* ============================================
   Ressources (Vidéos) — Page Styles
   Secure Exchanges — Charte v9
   Dépend de design-system.css (tokens)
   ============================================ */

/* Active nav link (current page) */
.nav-active {
    color: var(--se-orange) !important;
}

/* Hero Section */
.hero-videos {
    background: linear-gradient(135deg, var(--se-navy) 0%, var(--se-navy-dark) 100%);
    color: var(--se-white);
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-videos::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: none;
}

.hero-videos .container {
    position: relative;
    z-index: 1;
}

.hero-videos h1 {
    font-family: var(--font-heading);
    font-weight: normal;
    font-size: 3.5rem;
    letter-spacing: 0.02em;
    margin-bottom: 20px;
}

.hero-videos h1 span {
    color: var(--se-orange);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Video Sections */
.video-section {
    padding: var(--space-2xl) 0;
}

.video-section:nth-child(even) {
    background: var(--se-offwhite);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-weight: normal;
    font-size: 2.5rem;
    color: var(--se-navy);
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--se-gray);
    font-size: 1.1rem;
}

.section-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 10px;
}

.section-header .category-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.section-header .category-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.section-title-row h2 {
    margin-bottom: 0;
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.video-card {
    background: var(--se-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-thumbnail {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

.video-thumbnail:hover img {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(238, 101, 37, 0.95);
    border-radius: var(--radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.play-button i {
    color: var(--se-white);
    font-size: 1.8rem;
    margin-left: 5px;
}

.video-thumbnail:hover .play-button {
    background: var(--se-orange);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: var(--shadow-orange-lg);
}

.video-info {
    padding: 20px;
}

.video-info h3 {
    font-size: 1rem;
    color: var(--se-navy);
    margin-bottom: 8px;
    line-height: 1.4;
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.video-modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.modal-content iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: var(--se-white);
    font-size: 2rem;
    cursor: pointer;
}

.youtube-fallback {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #FF0000;
    color: var(--se-white);
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
}

.youtube-fallback:hover {
    background: #CC0000;
    color: var(--se-white);
}

/* CTA Section */
.cta-banner {
    background: linear-gradient(135deg, var(--se-navy) 0%, var(--se-navy-dark) 100%);
    padding: var(--space-2xl) 0;
    text-align: center;
    color: var(--se-white);
}

.cta-title {
    font-family: var(--font-heading);
    font-weight: normal;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-description {
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto 30px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-primary,
.btn-cta-secondary {
    padding: 16px 32px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition-smooth);
    text-transform: uppercase;
}

.btn-cta-primary {
    background: var(--se-white);
    color: var(--se-orange);
}

.btn-cta-primary:hover {
    color: var(--se-orange-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-cta-secondary {
    background: transparent;
    color: var(--se-white);
    border: 2px solid var(--se-white);
}

.btn-cta-secondary:hover {
    background: var(--se-white);
    color: var(--se-orange);
}

/* Responsive */
@media (max-width: 992px) {
    .header-menu {
        display: none;
    }

    .hero-videos h1 {
        font-size: 2.5rem;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }
}
