/* Lato Local Fonts */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/lato-v24-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/lato-v24-latin-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/lato-v24-latin-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('assets/fonts/lato-v24-latin-900.woff2') format('woff2');
}

:root {
    --primary: #0066cc;
    --link-blue: #0066cc;
    --bg: #f8fafc;
    --surface: #ffffff;
    --text: #000000;
    --text-light: #334155;
    --border: #e2e8f0;
    --radius: 8px;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --container-width: 1200px;
}

/* Reset & Base */
* { box-sizing: border-box; }
body { font-family: 'Lato', sans-serif; background-color: var(--bg); color: var(--text); margin: 0; line-height: 1.5; }
a { text-decoration: none; transition: all 0.2s; color: var(--link-blue); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }

/* Header & Nav */
header#header { background: var(--surface); padding: 20px 0; border-bottom: 1px solid var(--border); }
#header .container { display: flex; justify-content: space-between; align-items: center; }
#logo img { max-height: 110px; }
#titre { font-size: 2rem; font-weight: 900; color: var(--text); letter-spacing: -1px; line-height: 1.1; margin-left: 20px; flex: 1; }

@media (max-width: 768px) {
    #header .container { flex-direction: column; gap: 15px; text-align: center; }
    #logo img { max-height: 80px; }
    #titre { margin-left: 0; font-size: 1.4rem; line-height: 1.3; }
}

#navigation-wrapper { background: #0f172a; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
#navigation-wrapper .container { max-width: none; padding: 0 40px; }
#navigation-wrapper nav ul { list-style: none; padding: 0; margin: 0; display: flex; justify-content: center; flex-wrap: wrap; }
#navigation-wrapper nav li a { display: block; padding: 12px 10px; color: #cbd5e1; font-weight: 700; font-size: 0.75rem; text-transform: uppercase; white-space: nowrap; }
#navigation-wrapper nav li a:hover, #navigation-wrapper nav li.current-menu-item a { color: white; background: rgba(255,255,255,0.05); }

@media (max-width: 768px) {
    #navigation-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    #navigation-wrapper::-webkit-scrollbar { display: none; }
    #navigation-wrapper nav ul { flex-wrap: nowrap; justify-content: flex-start; padding: 0 10px; }
    #navigation-wrapper nav li a { padding: 12px 15px; }
}

/* Layouts */
.main-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; margin: 30px 0; }
.main-content-full { width: 100%; max-width: 1000px; margin: 30px auto; }
.home .main-content-full { max-width: 1200px; }
@media (max-width: 768px) { .main-grid { grid-template-columns: 1fr; } }

/* Section Header & Footer */
.section-header { display: flex; justify-content: space-between; align-items: center; margin: 40px 0 20px; border-bottom: 2px solid var(--border); padding-bottom: 10px; }
.section-header h3 { margin: 0; font-size: 1.4rem; font-weight: 800; text-transform: uppercase; display: flex; align-items: center; gap: 12px; }
.section-header h3:before { 
    content: ""; 
    display: inline-block; 
    width: 6px; 
    height: 24px; 
    background: var(--primary); 
    border-radius: 3px; 
}
.section-footer { margin-top: 25px; text-align: center; }
.view-all-link { color: var(--link-blue); font-weight: 700; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 8px; transition: all 0.2s; }
.view-all-link:hover { transform: translateX(5px); }

@media (max-width: 768px) {
    .view-all-link {
        display: flex;
        background: var(--primary);
        color: white !important;
        padding: 15px 20px;
        border-radius: 8px;
        justify-content: center;
        text-align: center;
        font-size: 1rem;
        box-shadow: 0 4px 10px rgba(0, 102, 204, 0.15);
        margin: 10px 0;
    }
    .view-all-link i { font-size: 1.2rem; }
    .view-all-link:hover { transform: translateY(-2px); }
}

/* Video Grids */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 30px; }
.video-grid-large { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-bottom: 30px; }
@media (max-width: 1200px) { .video-grid-large { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 992px) { .video-grid, .video-grid-large { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (max-width: 576px) { .video-grid, .video-grid-large { grid-template-columns: 1fr; } }

/* Video Items (Cards) */
article.item { background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); transition: transform 0.2s, box-shadow 0.2s; position: relative; margin-bottom: 10px; }
.item:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.item-img { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #000; }
.item-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.item:hover .item-img img { transform: scale(1.05); }
.img-hover {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4); display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.2s ease; z-index: 2;
}
.img-hover i { color: #fff; font-size: 2.5rem; }
.item:hover .img-hover { opacity: 1; }
.item h3 { padding: 15px 15px 5px; margin: 0; font-size: 0.95rem; font-weight: 700; line-height: 1.4; color: var(--text); }
.stretched-link { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 10; }
.item-meta { padding: 0 15px 15px; font-size: 0.75rem; color: var(--text-light); display: flex; gap: 8px; }

/* Video Page */
.video-header { margin: 20px 0; }
.video-header h1 { font-size: 2.2rem; font-weight: 900; margin-bottom: 10px; line-height: 1.2; }
.video-content-area { background: var(--surface); padding: 30px; border-radius: var(--radius); border: 1px solid var(--border); margin-bottom: 30px; }

.player-container.layout-side { display: grid; grid-template-columns: auto auto; gap: 30px; margin: 30px 0; justify-content: center; }
@media (max-width: 992px) { .player-container.layout-side { grid-template-columns: 1fr; } }

.episode-duration { font-weight: 700; color: var(--text-light); margin: 25px 0; padding: 12px 20px; background: var(--bg); border-radius: var(--radius); display: inline-flex; align-items: center; gap: 10px; }
.episode-summary { border-left: 4px solid var(--primary); padding-left: 25px; margin: 30px 0; font-style: italic; color: var(--text-light); font-size: 1.1rem; line-height: 1.6; }

.block-box { 
    background: var(--surface); 
    border-radius: var(--radius); 
    padding: 15px; 
    border: 1px solid var(--border); 
    display: flex; 
    flex-direction: column; 
    align-items: center;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.box-inner {
    width: 336px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.block-label { 
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 30px;
    font-size: 11px; 
    text-transform: uppercase; 
    text-align: center; 
    color: var(--text-light); 
    margin-bottom: 10px; 
    font-weight: 700; 
    opacity: 0.6; 
    letter-spacing: 1px;
}

/* YouTube Play Button Overlay */
.video-placeholder { position: relative; cursor: pointer; width: 336px; height: 280px; display: block; }
.video-placeholder img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 992px) {
    .block-box, .video-placeholder, .box-inner { width: 100%; height: auto; }
}
.play-overlay-red { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 10; }
.yt-play-button { width: 68px; height: 48px; background-color: rgba(255, 0, 0, 0.9); border-radius: 12px; position: relative; transition: background-color 0.2s; }
.yt-play-button:after { content: ""; border-style: solid; border-width: 10px 0 10px 20px; border-color: transparent transparent transparent white; position: absolute; top: 50%; left: 50%; transform: translate(-40%, -50%); }
.video-placeholder:hover .yt-play-button { background-color: #ff0000; }

/* Social Share */
.social-share { display: flex; gap: 15px; margin: 30px 0; padding-bottom: 25px; border-bottom: 1px solid var(--border); flex-wrap: wrap; justify-content: flex-start; }
.share-btn { 
    width: 48px; height: 48px; padding: 0; border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; 
    border: 1px solid var(--border); transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); 
    background: var(--surface); color: #000 !important; 
}
.share-btn svg { width: 24px; height: 24px; fill: #000; transition: all 0.2s; }
.share-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.share-btn:hover svg { fill: var(--primary); transform: scale(1.1); }

.share-btn.fb:hover { border-color: #1877f2; }
.share-btn.fb:hover svg { fill: #1877f2; }
.share-btn.x-twitter:hover { border-color: #000; }
.share-btn.x-twitter:hover svg { fill: #000; }
.share-btn.wa:hover { border-color: #25d366; }
.share-btn.wa:hover svg { fill: #25d366; }
.share-btn.snap:hover { border-color: #fffc00; background: #fffc0010; }
.share-btn.snap:hover svg { fill: #ca8a04; }

/* Buttons & Tags */
.cocon-link { margin: 25px 0; }
.btn-saison-full { display: inline-flex; overflow: hidden; border-radius: 6px; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; transition: opacity 0.2s; }
.btn-saison-full:hover { opacity: 0.9; }
.btn-saison-full .tag { background: #dc2626; color: white; padding: 8px 15px; }
.btn-saison-full .name { background: #94a3b8; color: white; padding: 8px 20px; }

/* Footer */
#footer { background: #030712; color: #cbd5e1; padding: 60px 0 30px; margin-top: 60px; }
.footer-widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; }
.copyright { text-align: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.08); font-size: 0.8rem; }

/* Breadcrumbs (Yoast) */
#breadcrumbs { font-size: 0.85rem; margin: 15px 0; color: var(--text-light); }
#breadcrumbs a { color: var(--text-light); }

/* Pagination */
.pagination-container { margin: 60px 0; }
.pagination-container ul.page-numbers { 
    display: flex; justify-content: center; list-style: none; padding: 0; margin: 0; gap: 10px; flex-wrap: wrap;
}
.pagination-container ul.page-numbers li { margin: 0; padding: 0; list-style: none !important; }
.pagination-container ul.page-numbers li:before { content: none !important; }

.pagination-container .page-numbers { 
    display: flex; align-items: center; justify-content: center; 
    min-width: 42px; height: 42px; padding: 0 15px; 
    background: transparent; border: none; 
    color: #111827; 
    font-weight: 700; font-size: 1rem;
    transition: all 0.2s;
}

.pagination-container a.page-numbers:hover { 
    color: var(--primary); 
    background: #e2e8f0;
    border-radius: 6px;
    transform: translateY(-2px);
}

.pagination-container .page-numbers.current { 
    background: var(--primary); 
    color: white; 
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0, 102, 204, 0.2);
}

.pagination-container .prev, .pagination-container .next {
    font-weight: 600;
}

@media (max-width: 768px) {
    .container { padding: 0 10px !important; }
    .video-content-area { padding: 15px 10px; border-radius: 0; border-left: none; border-right: none; }
    .player-container.ad-left { grid-template-columns: 1fr; gap: 10px; }
    .player-wrapper.compact-player { width: 100% !important; max-width: 100% !important; }
}
