body {
    margin: 0;
    padding: 0;
    background: #eee;
    font-family: 'Barlow Condensed', Arial, sans-serif;
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    display: block;
}
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
    background: url('logo-style2ouf-noir.png') no-repeat center center;
    background-size: auto;
    opacity: 1;
    pointer-events: none;
    transition: opacity 0.3s;
}
body.no-logo::before {
    background: none;
}
body.logo-faded::before {
    opacity: 0.18;
}
header {
    width: 100%;
    background: #fff;
    position: relative;
    background: linear-gradient(to bottom, #fff 70%, #eee 100%);
    z-index: 10;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1250px;
    margin: 0 auto;
    padding: 10px 32px 0px 32px;
}
.header-left {
    display: flex;
    align-items: center;
    gap: 24px;
}
.header-logo {
    height: 120px;
    width: auto;
}
.header-search {
    margin: 0;
}
.header-search input[type="text"] {
    padding: 8px 16px;
    width: 200px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 1em;
}
.header-search button {
    padding: 8px 18px;
    border-radius: 4px;
    border: none;
    background: red;
    color: #fff;
    font-size: 1em;
    cursor: pointer;
}
.video-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    max-width: 1300px;
    justify-content: center;
    padding: 8px;
    opacity: 0;
    transition: opacity 1.2s;
    position: relative;
    margin: 0 auto;
    z-index: 1;
}
.video-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px #0001;
    max-width: 600px;
    padding: 14px 16px 8px 16px;
    border-left: 6px solid red;
    flex: 1 1 300px;
    max-width: 30%;
    min-width: 260px;
    box-sizing: border-box;
}
.video-title {
    font-size: 1.4em;
    font-weight: bold;
    color: red;
    margin-bottom: 8px;
}
.video-meta {
    color: #444;
    font-size: 0.8em;
    margin-bottom: 8px;
}
.video-desc {
    color: #222;
    background: #f5f5f5;
    border-radius: 0 0 8px 8px;
}
.description {
    padding: 0 10px 8px 10px;
    font-size: 0.9em;
}
.video-date {
    color: #888;
    font-size: 0.98em;
    text-align: right;
    margin-top: 8px;
}
.pagination {
    text-align: center;
    margin: 16px 0 10px 0;
    font-size: 1.1em;
}
.page-link, .current-page {
    display: inline-block;
    margin: 0 6px;
    padding: 7px 14px;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    background: #ccc;
    transition: background 0.2s, color 0.2s;
}
.page-link:hover {
    background: red;
    color: #fff;
}
.current-page {
    background: red;
    color: #fff;
    font-weight: bold;
    cursor: default;
}
.dots {
    color: #888;
    margin: 0 6px;
}
/* Lightbox */
#yt-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.85);
    align-items: center;
    justify-content: center;
}
#yt-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}
#yt-lightbox-close {
    position: absolute;
    top: -32px;
    right: 0;
    font-size: 2.5em;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
}
#yt-lightbox-iframe {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 32px #0008;
}
.search-result-info {
    text-align: center;
    margin-bottom: 20px;
}
.search-result-info span {
    display: inline-block;
    background: #ffeaea;
    color: red;
    border-radius: 18px;
    padding: 7px 18px;
    font-size: 1.1em;
}
.search-result-info a {
    color: red;
    text-decoration: none;
    margin-left: 12px;
    font-weight: bold;
    font-size: 1.2em;
}
.yt-thumb {
    display: block;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}
.yt-thumb img {
    display: block;
    width: 100%;
    border-radius: 8px 8px 0 0;
    transition: transform 0.25s cubic-bezier(.4,1.6,.4,1);
    will-change: transform;
}
.yt-thumb:hover img {
    transform: scale(1.07);
    box-shadow: 0 6px 24px #0003;
    z-index: 2;
}
@media (max-width: 1100px) {
    .video-card {
        max-width: 45%;
    }
}
@media (max-width: 800px) {
    .video-card {
        max-width: 100%;
        min-width: 100%;
    }
    .header-inner {
        flex-direction: column;
        gap: 18px;
        align-items: flex-start;
    }
    .header-search input[type="text"] {
        width: 100%;
        min-width: 0;
    }
}

/* Lien en bas de page */
.footer-link {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: red;
    color: #fff;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: background 0.3s, transform 0.2s;
    z-index: 100;
}
.footer-link:hover {
    background: #cc0000;
    transform: translateY(-2px);
}