/**
 * FICHIER: assets/css/main.css
 * Tous les styles du thème Loop Formations
 */
 .featured-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #3951fc;
}
 * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #ff9760;
    --secondary: #1e2334;
    --bg: #fafbfc;
    --text: #4a5568;
    --text-light: #718096;
    --text-dark: #2d3748;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   NAVIGATION
   ============================================ */
.main-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 40px;
}

.logo img {
    width: 100% !important;
    max-width: 113px;
    max-height: unset !important;
    min-height: unset !important;
    height: auto !important;
    object-fit: contain !important;
}
.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
}

.search-nav {
    position: relative;
}

.search-nav i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    z-index: 1;
}

.search-nav input {
    padding: 0.7rem 1rem 0.7rem 2.8rem;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    width: 280px;
    background: white;
    color: var(--text);
    font-size: 0.9rem;
    transition: all 0.3s;
}

.search-nav input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 151, 96, 0.1);
    width: 320px;
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
    background: white;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 1rem 0;
    margin-top: 76px;
}

.breadcrumb-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--text-light);
    transition: all 0.3s;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb .current {
    color: var(--text-dark);
    font-weight: 500;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    margin-top: 80px;
    height: 65vh;
    background: linear-gradient(135deg, rgba(30, 35, 52, 0.95), rgba(30, 35, 52, 0.85)), 
                url('https://images.unsplash.com/photo-1516321318423-f06f85e504b3?w=1600') center/cover;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 151, 96, 0.15), transparent 50%);
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-gradient {
    background: linear-gradient(135deg, var(--primary), #ff7a3d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 2.5rem;
    max-width: 700px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #ff7a3d);
    color: white;
    box-shadow: 0 10px 30px rgba(255, 151, 96, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 151, 96, 0.4);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats {
    max-width: 1400px;
    margin: -60px auto 4rem;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.12);
}

.stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, rgba(255, 151, 96, 0.1), rgba(255, 122, 61, 0.1));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 0.3rem;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    max-width: 1400px;
    margin: 0 auto 5rem;
    padding: 0 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
}

.view-all {
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.view-all:hover {
    gap: 0.8rem;
}

/* ============================================
   CATEGORIES GRID
   ============================================ */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 5rem;
}

.category-card {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.category-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, rgba(255, 151, 96, 0.1), rgba(255, 122, 61, 0.1));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    transition: all 0.3s;
}

.category-card:hover .category-icon {
    background: linear-gradient(135deg, var(--primary), #ff7a3d);
    color: white;
    transform: scale(1.1);
}

.category-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
    font-size: 1.05rem;
}

.category-count {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ============================================
   FEATURED VIDEO
   ============================================ */
.featured-video {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 5rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    min-height: 500px;
}

.featured-thumbnail {
    position: relative;
    background: linear-gradient(135deg, #667eea, #764ba2);
    overflow: hidden;
}

.featured-thumbnail img {
    width: 100%;
    height: 100%;
   
}

.featured-badge {
    position: absolute;
    top: 2rem;
    left: 2rem;
    background: var(--primary);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.featured-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    background: rgba(255, 151, 96, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.featured-play:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--primary);
}

.featured-play i {
    font-size: 2rem;
    color: white;
    margin-left: 5px;
}

.featured-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-category {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.featured-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.featured-description {
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.featured-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text);
}

.meta-item i {
    color: var(--primary);
    font-size: 1.1rem;
}

/* ============================================
   VIDEOS SCROLL
   ============================================ */
.videos-scroll {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) #f0f0f0;
}

.videos-scroll::-webkit-scrollbar {
    height: 8px;
}

.videos-scroll::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.videos-scroll::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.video-card {
    /* min-width: 340px; */
    background: white;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.video-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;width: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-duration {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.75);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

.video-info {
    padding: 1.5rem;
}
button.btn.btn-outline.btn-favorite {
    color: #ff9760;
    border-color: #ff9760;
}.nav-content .logo {
    height: auto;
}
.video-category {
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.video-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.video-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.video-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.difficulty-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.difficulty-badge.debutant {
    background: rgba(46, 213, 115, 0.1);
    color: #2ed573;
}

.difficulty-badge.intermediaire {
    background: rgba(255, 159, 67, 0.1);
    color: #ff9f43;
}

.difficulty-badge.avance {
    background: rgba(255, 71, 87, 0.1);
    color: #ff4757;
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
    background: linear-gradient(135deg, var(--secondary), #2d3748);
    border-radius: 24px;
    padding: 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 5rem;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 151, 96, 0.15), transparent 70%);
    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-banner h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}

.cta-banner p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
    background: var(--secondary);
    color: rgba(255,255,255,0.7);
    padding: 3rem 2rem 2rem;
    margin-top: 5rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    height: 50px;
    margin-bottom: 1.5rem;
}

.footer-logo img {
    height: 100%;
    width: auto;
}

/* ============================================
   SINGLE COURSE PAGE
   ============================================ */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
}

.video-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2.5rem;
}

.video-section {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.video-player {
    position: relative;
    background: linear-gradient(135deg, #667eea, #764ba2);
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-player img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button {
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(255, 151, 96, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.play-button:hover {
    transform: scale(1.1);
    background: var(--primary);
}

.play-button i {
    font-size: 2rem;
    color: white;
    margin-left: 5px;
}

.video-info {
    padding: 2rem;
}

.video-header {
    margin-bottom: 1.5rem;
}

.category-badge {
    display: inline-block;
    background: rgba(255, 151, 96, 0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.video-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.video-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rating i {
    color: var(--primary);
    font-size: 1rem;
}

.rating-text {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* TABS */
.tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 2rem;
}

.tab {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    color: var(--text-light);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    font-family: inherit;
}

.tab:hover {
    color: var(--text-dark);
}

.tab.active {
    color: var(--primary);
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.description {
    color: var(--text);
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

/* CHAPTERS LIST */
.chapters-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.chapter-item {
    background: var(--bg);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.chapter-item:hover {
    border-color: var(--primary);
    background: white;
    transform: translateX(5px);
}

.chapter-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), #ff7a3d);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.chapter-info {
    flex: 1;
}

.chapter-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.chapter-duration {
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* TAGS */
.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag {
    background: var(--bg);
    border: 1px solid #e5e7eb;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    color: var(--text);
    font-size: 0.9rem;
    transition: all 0.3s;
}

.tag:hover {
    border-color: var(--primary);
    background: white;
    color: var(--primary);
}

/* SIDEBAR */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-card {
    background: white;
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.sidebar-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.objectives-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.objective-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.objective-icon {
    width: 24px;
    height: 24px;
    background: rgba(255, 151, 96, 0.1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
    font-size: 0.8rem;
}

.objective-text {
    color: var(--text);
    line-height: 1.6;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-label {
    color: var(--text-light);
    font-size: 0.9rem;
}

.info-value {
    color: var(--text-dark);
    font-weight: 600;
}

.share-buttons {
    display: flex;
    gap: 0.75rem;
}

.share-btn {
    flex: 1;
    padding: 0.75rem;
    background: var(--bg);
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    color: var(--text);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* PROGRESS */
.progress-section {
    background: linear-gradient(135deg, rgba(255, 151, 96, 0.1), rgba(255, 122, 61, 0.05));
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.progress-label {
    font-weight: 600;
    color: var(--text-dark);
}

.progress-percentage {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #ff7a3d);
    border-radius: 10px;
    transition: width 0.3s;
}

/* RELATED VIDEOS */
.related-section {
    margin-top: 4rem;
}

.related-header {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 2rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.related-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.related-thumbnail {
    position: relative;
    height: 180px;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.related-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-duration {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    background: rgba(0,0,0,0.75);
    color: white;
    padding: 0.4rem 0.7rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.related-info {
    padding: 1.25rem;
}

.related-category {
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.related-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
}

/* ============================================
   RATING INTERACTIVE SYSTEM
   ============================================ */
.rating-interactive {
    display: flex;
    justify-content: center;
    gap: 0.3rem;
}

.rating-interactive .star-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    padding: 0 0.2rem;
    color: var(--primary);
    transition: all 0.2s;
}

.rating-interactive .star-btn:hover {
    transform: scale(1.2);
}

.rating-interactive .star-btn:active {
    transform: scale(0.9);
}

.rating-interactive .star-btn i {
    pointer-events: none;
}

/* ============================================
   CHAPTERS - CLICKABLE
   ============================================ */
.chapter-item[data-timestamp] {
    cursor: pointer;
    user-select: none;
}

.chapter-item[data-timestamp]:hover {
    background: white;
    border-color: var(--primary);
    transform: translateX(5px);
}

.chapter-item[data-timestamp]:hover .chapter-number {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(255, 151, 96, 0.3);
}

.chapter-item[data-timestamp]:active {
    transform: translateX(3px);
}

.chapter-description {
    margin-top: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ============================================
   VIDEO PLAYER ENHANCEMENTS
   ============================================ */
.video-player iframe,
.video-player video {
    border-radius: 0;
}

.video-player.playing .play-button {
    display: none;
}

/* ============================================
   COMMENTS SECTION
   ============================================ */
.comments-section {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    background: var(--bg);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.comment-author {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.comment-content {
    color: var(--text);
    line-height: 1.6;
}

.comment-meta {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

/* ============================================
   NOTIFICATIONS
   ============================================ */
@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* ============================================
   FAVORITES BUTTON STATE
   ============================================ */
.btn-favorite.is-favorite {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-favorite.is-favorite:hover {
    background: #ff7a3d;
}

/* ============================================
   ADMIN BAR COMPATIBILITY
   ============================================ */
.admin-bar nav {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar nav {
        top: 46px;
    }
    .video-info {
        padding: 10px;
    }
    .container{
        padding: 2.5rem 10px;
    }.description ul {
        margin-left: 2px !important;
    }
}

/* ============================================
   RESPONSIVE ENHANCEMENTS
   ============================================ */
@media (max-width: 1024px) {
    .hero h1 { 
        font-size: 3rem; 
    }
    
    .stats-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
    
    .categories-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
    
    .featured-video { 
        grid-template-columns: 1fr; 
    }
    
    .video-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        grid-template-columns: repeat(2, 1fr);
        display: grid;
    }
}

@media (max-width: 768px) {
    .nav-links { 
        display: none; 
    }
    
    .hero {
        height: auto;
        min-height: 50vh;
        padding: 3rem 0;
    }
    
    .hero h1 { 
        font-size: 2.2rem; 
    }
    
    .hero p { 
        font-size: 1.1rem; 
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .categories-grid { 
        grid-template-columns: 1fr; 
    }
    
    .video-card { 
        min-width: 280px; 
    }
    
    .video-title {
        font-size: 1.5rem;
    }

    .video-meta {
        flex-direction: column;
        gap: 1rem;
    }

    .tabs {
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .tabs::-webkit-scrollbar {
        display: none;
    }

    .tab {
        white-space: nowrap;
    }

    .sidebar {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .rating-interactive .star-btn {
        font-size: 1.5rem;
    }
    
    .share-buttons {
        flex-wrap: wrap;
    }
    
    .share-btn {
        flex: 0 0 calc(50% - 0.375rem);
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    nav,
    .hero,
    .stats,
    .cta-banner,
    footer,
    .sidebar,
    .related-section,
    .comments-section {
        display: none;
    }
    
    .video-layout {
        grid-template-columns: 1fr;
    }
    
    .video-player {
        display: none;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--secondary);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Focus visible pour la navigation au clavier */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* ============================================
   LOADING STATES
   ============================================ */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin-top: -15px;
    margin-left: -15px;
    border: 3px solid var(--primary);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   DARK MODE SUPPORT (optionnel)
   ============================================ */
@media (prefers-color-scheme: dark) {
    /* Si vous voulez supporter le dark mode */
    /* Décommentez et adaptez ces règles */
    /*
    :root {
        --bg: #1a1a1a;
        --text: #e0e0e0;
        --text-dark: #ffffff;
        --card-bg: #2d2d2d;
    }
    */
}


