/* =======================
   RESET
======================= */
* {
    box-sizing: border-box;
}

body {
    margin:0;
    font-family: Arial, sans-serif;
    background:#f5f7fb;
    color:#222;
}

a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    text-decoration: none;
}

/* =======================
   LAYOUT GLOBAL
======================= */
main {
    max-width:1200px;
    margin:0 auto;
    padding:0 20px;
}

/* =======================
   HEADER
======================= */
.header {
    text-align:center;
    background:#ffffff;
    padding:20px 10px 10px;
    box-shadow:0 2px 10px rgba(0,0,0,0.05);
}

/* LOGO */
.logo-wrapper {
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    margin-bottom:15px;
    text-decoration:none;
    color:inherit;
}

.site-title {
    margin-top:8px;
    font-size:18px;
    font-weight:600;
    color:#222;
}

.logo-wrapper,
.logo-wrapper:hover,
.logo-wrapper:focus,
.logo-wrapper:active {
    text-decoration: none;
    color: inherit;
}

.logo-wrapper:hover {
    opacity:0.85;
}

/* MENU */
.menu {
    display:flex;
    gap:10px;
    padding:12px 15px;
    min-width:max-content;
}

/* ITEMS */
.menu-item {
    padding:8px 14px;
    background:#f1f5f9;
    border-radius:20px;
    text-decoration:none;
    color:#333;
    font-size:13px;
    white-space:nowrap;
    transition:0.2s;
}

/* HOVER */
.menu-item:hover {
    background:#e0e7ff;
    color:#1d4ed8;
}

/* ACTIVE */
.menu-item.active {
    background:#3b82f6;
    color:#fff;
}

.menu-container {
    position:sticky;
    top:0;
    z-index:100;
}

/* =======================
   TITRES
======================= */
.home-title {
    text-align:center;
    margin:30px 0;
    font-weight:600;
    font-size:22px;
}

/* =======================
   CATEGORY
======================= */
.category {
    margin:40px 0;
}

.category-header {
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:10px;
}

.category-header h2 {
    margin:0;
    font-size:18px;
}

.see-all {
    text-decoration:none;
    font-size:14px;
    color:#3b82f6;
}

/* =======================
   GRID
======================= */
.grid {
    display:grid;
    grid-template-columns: repeat(auto-fill,minmax(250px,1fr));
    gap:20px;
    justify-content:center;
}

/* =======================
   CARD VIDEO
======================= */
.card {
    background:#ffffff;
    border-radius:14px;
    overflow:hidden;
    text-decoration:none;
    color:#000;
    box-shadow:0 6px 15px rgba(0,0,0,0.08);
    transition:0.25s;
    display:block;
}

.card:hover {
    transform:translateY(-6px);
    box-shadow:0 10px 25px rgba(0,0,0,0.12);
}

.thumb img {
    width:100%;
    display:block;
}

.card-title {
    padding:12px;
    font-size:15px;
    line-height:1.4;
}

/* =======================
   VIDEO PAGE
======================= */
.video-container {
    max-width:900px;
    margin:30px auto;
}

.video-container iframe {
    width:100%;
    height:500px;
    border-radius:10px;
}

.video-description {
    margin-top:20px;
    line-height:1.6;
    color:#444;
}

.video-description a {
    color:#3b82f6;
    text-decoration:underline;
}

.video-description a:hover {
    color:#1d4ed8;
}

/* =======================
   FOOTER
======================= */
.footer {
    margin-top:50px;
    padding:25px 10px;
    background:#ffffff;
    border-top:1px solid #eee;
}

.footer-content {
    text-align:center;
    font-size:14px;
    color:#666;
}

/* =======================
   RESPONSIVE
======================= */
@media (max-width:768px) {

    .grid {
        grid-template-columns: 1fr;
    }

    .video-container iframe {
        height:250px;
    }

    .menu {
        gap:6px;
    }

    .menu a {
        font-size:12px;
        padding:6px 10px;
    }
}

.menu a {
    padding:8px 14px;
    background:#eef2ff;
    border-radius:20px;
    text-decoration:none;
    color:#333;
    font-size:13px;
    transition:0.2s;
    white-space:nowrap;
}

.menu {
    overflow-x:auto;
    padding-bottom:5px;
}

/* SEARCH */
.search-bar {
    display:flex;
    justify-content:center;
    margin:20px auto;
    max-width:500px;
}

.search-bar input {
    flex:1;
    padding:10px 14px;
    border-radius:25px 0 0 25px;
    border:1px solid #ddd;
    outline:none;
    font-size:14px;
}

.search-bar button {
    padding:10px 16px;
    border:none;
    background:#3b82f6;
    color:#fff;
    border-radius:0 25px 25px 0;
    cursor:pointer;
}

.search-bar button:hover {
    background:#2563eb;
}

.search-btn {
    display:flex;
    align-items:center;
    justify-content:center;
    padding:10px 16px;
    background:linear-gradient(135deg,#3b82f6,#2563eb);
    border:none;
    border-radius:0 25px 25px 0;
    cursor:pointer;
    transition:0.2s;
}

.search-bar input:focus {
    border-color:#3b82f6;
    box-shadow:0 0 0 3px rgba(59,130,246,0.2);
}

.search-btn:hover {
    background:linear-gradient(135deg,#2563eb,#1d4ed8);
}

/*FLECHE*/

.scroll-btn {
    position:fixed;
    bottom:25px;
    right:25px;
    width:45px;
    height:45px;
    border-radius:50%;
    border:none;
    background:#3b82f6;
    color:#fff;
    font-size:20px;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 5px 15px rgba(0,0,0,0.2);
    transition:0.3s;
    opacity:0;
    visibility:hidden;
}

/* visible */
.scroll-btn.show {
    opacity:1;
    visibility:visible;
}

/* hover */
.scroll-btn:hover {
    background:#2563eb;
    transform:translateY(-3px);
}

.scroll-btn {
    backdrop-filter: blur(6px);
}