/* ===================================
   STYLE-V2.CSS - REFONTE MMM100
   Design moderne premium paysite
   ================================== */

/* === VARIABLES & BASE === */
:root {
    --primary-red: #cc0000;
    --dark-bg: #0a0a0a;
    --card-bg: #151515;
    --card-hover: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --gradient-overlay: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0) 100%);
}

body {
    background: var(--dark-bg);
    color: var(--text-primary);
}

/* === HERO SECTION === */
.hero-section {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    max-height: 800px;
    overflow: hidden;
    margin-bottom: 60px;
}

.hero-video-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 40%, rgba(0,0,0,0) 100%);
    padding: 80px 5% 40px 5%;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

/* === SEO HEADER === */
.seo-header {
    text-align: center;
    padding: 40px 20px 10px;
}

.seo-h1 {
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--primary-red);
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
}

.seo-tagline {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* === SEO FOOTER TEXT === */
.seo-footer-text {
    border-top: 1px solid #222;
    margin-top: 60px;
    padding: 40px 20px;
}

.seo-footer-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin: 0 0 15px 0;
}

.seo-footer-text p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.8;
    max-width: 1000px;
}

.hero-meta {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.hero-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-description {
    font-size: 1.1rem;
    color: #ddd;
    margin-bottom: 30px;
    max-width: 700px;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background: var(--primary-red);
    color: #fff;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(204, 0, 0, 0.4);
}

.btn-hero-primary:hover {
    background: #ff0000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(204, 0, 0, 0.6);
    color: #fff;
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

/* === SECTION HEADERS === */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 15px;
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--primary-red);
    margin: 0;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 5px;
}

.btn-view-all {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid #333;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-view-all:hover {
    background: var(--card-hover);
    border-color: var(--primary-red);
    color: var(--primary-red);
}

/* === VIDEO GRID === */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 0 15px;
    margin-bottom: 60px;
}

@media (min-width: 768px) {
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .video-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1600px) {
    .video-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 2000px) {
    .video-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* === VIDEO CARD === */
.video-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.video-card:hover .video-thumbnail {
    transform: scale(1.05);
}

.video-thumbnail-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    overflow: hidden;
    background: #000;
}

.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--gradient-overlay);
    padding: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-card:hover .video-overlay {
    opacity: 1;
}

.video-play-icon {
    display: none;
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.video-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary-red);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* === VIDEO INFO === */
.video-info {
    padding: 15px;
}

.video-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-meta-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.video-meta-info span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.video-meta-info img {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

/* === CTA BANNERS === */
.cta-banner {
    background: linear-gradient(135deg, #1a0000 0%, #000000 100%);
    border: 2px solid var(--primary-red);
    border-radius: 16px;
    padding: 40px 30px;
    margin: 60px 15px;
    text-align: center;
}

.cta-banner-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--primary-red);
    margin-bottom: 15px;
}

.cta-banner-subtitle {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 25px;
}

.cta-banner .btn-hero-primary {
    margin: 0 auto;
}

/* === FEATURED SECTION (MMM100 Exclusives) === */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    padding: 0 15px;
    margin-bottom: 60px;
}

@media (min-width: 992px) {
    .featured-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.featured-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #222;
    transition: all 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-red);
    box-shadow: 0 12px 35px rgba(204, 0, 0, 0.3);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .hero-section {
        height: 50vh;
        min-height: 400px;
    }
    
    .hero-overlay {
        padding: 40px 20px 30px 20px;
    }
    
    .hero-meta {
        font-size: 0.85rem;
        gap: 12px;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .video-grid {
        grid-template-columns: 1fr; /* 1 SEULE COLONNE */
        gap: 15px;
        padding: 0 10px;
		}
    
    .cta-banner {
        padding: 30px 20px;
        margin: 40px 10px;
    }
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.video-card {
    animation: fadeInUp 0.6s ease backwards;
}

.video-card:nth-child(1) { animation-delay: 0.05s; }
.video-card:nth-child(2) { animation-delay: 0.1s; }
.video-card:nth-child(3) { animation-delay: 0.15s; }
.video-card:nth-child(4) { animation-delay: 0.2s; }
.video-card:nth-child(5) { animation-delay: 0.25s; }
.video-card:nth-child(6) { animation-delay: 0.3s; }

/* === UTILITIES === */
.container-custom {
    max-width: 2400px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-spacer {
    height: 80px;
}

@media (max-width: 768px) {
    .section-spacer {
        height: 40px;
    }
}
/* AJOUTE ÇA À LA FIN DE style-v2.css */

.badge-soft {
    background: #17a2b8;
}

.badge-making {
    background: #ffc107;
    color: #000;
}

.badge-hd {
    background: var(--primary-red);
}

.badge-free {
    background: #28a745;
}

.video-overlay-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
}
/* === GRID ROWS - Lignes pleines selon breakpoint === */
/* grid-rows-1 = 1 ligne, grid-rows-2 = 2 lignes */

/* Mobile: 1 colonne */
@media (max-width: 767px) {
    .video-grid.grid-rows-1 > .video-card:nth-child(n+3) { display: none; }
    .video-grid.grid-rows-2 > .video-card:nth-child(n+5) { display: none; }
}

/* 3 colonnes: 768-1199px */
@media (min-width: 768px) and (max-width: 1199px) {
    .video-grid.grid-rows-1 > .video-card:nth-child(n+4) { display: none; }
    .video-grid.grid-rows-2 > .video-card:nth-child(n+7) { display: none; }
}

/* 4 colonnes: 1200-1599px */
@media (min-width: 1200px) and (max-width: 1599px) {
    .video-grid.grid-rows-1 > .video-card:nth-child(n+5) { display: none; }
    .video-grid.grid-rows-2 > .video-card:nth-child(n+9) { display: none; }
}

/* 5 colonnes: 1600-1999px */
@media (min-width: 1600px) and (max-width: 1999px) {
    .video-grid.grid-rows-1 > .video-card:nth-child(n+6) { display: none; }
    .video-grid.grid-rows-2 > .video-card:nth-child(n+11) { display: none; }
}

/* 6 colonnes: 2000px+ */
@media (min-width: 2000px) {
    .video-grid.grid-rows-1 > .video-card:nth-child(n+7) { display: none; }
    .video-grid.grid-rows-2 > .video-card:nth-child(n+13) { display: none; }
}
