.video-index-v2 {
    --video-navy: #102542;
    --video-navy-2: #173a5e;
    --video-blue: #4f6b9d;
    --video-cyan: #59c9e8;
    --video-ink: #202c3b;
    --video-muted: #68778b;
    --video-line: #d5deea;
    width: 100%;
    min-width: 0;
    padding: 14px 0 38px;
    color: var(--video-ink);
    box-sizing: border-box;
}

.video-index-v2 *,
.video-index-v2 *::before,
.video-index-v2 *::after {
    box-sizing: border-box;
}

.video-index-v2 a:focus-visible,
.video-index-v2 button:focus-visible,
.video-index-v2 input:focus-visible {
    outline: 3px solid var(--video-cyan);
    outline-offset: 3px;
}

.video-index-breadcrumb,
.video-index-hero,
.video-index-categories,
.video-index-content {
    width: min(100% - 24px, 1320px);
    margin-right: auto;
    margin-left: auto;
}

.video-index-breadcrumb {
    margin-bottom: 12px;
    color: #68778b;
    font-size: 13px;
}

.video-index-breadcrumb a {
    color: var(--video-blue);
    text-decoration: none;
}

.video-index-breadcrumb span + span,
.video-index-breadcrumb a + span {
    margin-left: 7px;
}

.video-index-hero {
    position: relative;
    z-index: 5;
    overflow: visible;
    margin-bottom: 16px;
    padding: 28px 30px 26px;
    border-radius: 4px;
    background: linear-gradient(115deg, var(--video-navy) 0%, var(--video-navy-2) 58%, #1f5577 100%);
    box-shadow: 0 12px 32px rgb(16 37 66 / 13%);
    color: #fff;
}

.video-index-hero::before {
    position: absolute;
    inset: 0 0 0 auto;
    width: min(480px, 100%);
    border-radius: inherit;
    background:
        radial-gradient(circle at 87% 10%, transparent 0 78px, rgb(89 201 232 / 20%) 79px 80px, transparent 81px),
        radial-gradient(circle at 87% 10%, transparent 0 138px, rgb(89 201 232 / 8%) 139px 140px, transparent 141px),
        radial-gradient(circle at 87% 10%, rgb(89 201 232 / 7%), transparent 58%);
    content: "";
    pointer-events: none;
}

.video-index-eyebrow,
.video-index-hero h1,
.video-index-intro,
.video-index-search {
    position: relative;
    z-index: 1;
}

.video-index-eyebrow {
    margin: 0 0 6px;
    color: #9ddff0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.video-index-hero h1 {
    margin: 0 0 9px;
    color: #fff;
    font-size: clamp(31px, 3vw, 46px);
    line-height: 1.13;
    letter-spacing: -.025em;
}

.video-index-intro {
    max-width: 930px;
    margin: 0;
    color: #dce8f3;
    font-size: 16px;
    line-height: 1.55;
}

.video-index-search {
    z-index: 20;
    max-width: 930px;
    margin-top: 22px;
}

.video-index-v2 .video-search-form {
    position: relative;
    z-index: 20;
    margin: 0;
}

.video-index-v2 .video-search-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.video-index-v2 .video-search-input {
    min-height: 54px;
    border: 1px solid rgb(255 255 255 / 72%);
    border-radius: 3px;
    background: #fff;
    box-shadow: 0 7px 20px rgb(0 0 0 / 16%);
    color: #243346;
    font-size: 16px;
}

.video-index-v2 .video-search-button {
    min-width: 134px;
    min-height: 54px;
    border: 0;
    border-radius: 3px;
    background: var(--video-cyan);
    color: #0b2e48;
    font-size: 15px;
    font-weight: 800;
}

.video-index-v2 .video-search-button:hover {
    background: #83daf0;
}

.video-index-v2 .video-search-suggestions {
    z-index: 120;
    top: calc(100% + 9px);
    padding: 10px;
    border: 1px solid rgb(89 201 232 / 78%);
    border-radius: 4px;
    background: linear-gradient(145deg, rgb(247 253 255 / 99%), rgb(255 255 255 / 99%));
    box-shadow: 0 20px 50px rgb(5 24 42 / 34%), 0 0 0 1px rgb(255 255 255 / 55%) inset;
    color: #163e70;
    backdrop-filter: blur(8px);
}

.video-index-v2 .video-search-option {
    position: relative;
    overflow: hidden;
    border-color: #c8dceb;
    border-radius: 3px;
    background: linear-gradient(100deg, #fff, #f4fbfe);
    color: #163e70;
    font-weight: 700;
}

.video-index-v2 .video-search-option::before {
    width: 3px;
    height: 22px;
    margin-right: 9px;
    border-radius: 999px;
    background: var(--video-cyan);
    box-shadow: 0 0 10px rgb(89 201 232 / 70%);
    content: "";
}

.video-index-v2 .video-search-option:hover,
.video-index-v2 .video-search-option-active {
    border-color: #5fb8d3;
    background: #e7f7fb;
}

.video-index-categories {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin-bottom: 16px;
    padding: 4px 1px 10px;
    scrollbar-width: thin;
}

.video-index-category {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 10px 17px;
    border: 2px solid #9eb5cc;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 4px 12px rgb(35 58 84 / 8%);
    color: #243f5c;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.video-index-category:hover {
    transform: translateY(-1px);
    border-color: #365f85;
    background: #f4fbfd;
}

.video-index-category.is-active {
    border-color: #1f557f;
    background: #1f557f;
    box-shadow: 0 6px 16px rgb(16 37 66 / 22%);
    color: #fff;
}

.video-index-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    align-items: start;
}

.video-index-main {
    min-width: 0;
}

.video-index-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #cdd7e3;
}

.video-index-section-head h2 {
    min-width: 0;
    overflow: hidden;
    margin: 0;
    color: #2f435a;
    font-size: 24px;
    line-height: 1.3;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.video-index-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.video-index-card {
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid var(--video-line);
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 5px 14px rgb(21 44 71 / 6%);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

/* Evite de peindre trop tot les cartes deja chargees sous la ligne de flottaison. */
@supports (content-visibility: auto) {
    .video-index-card {
        content-visibility: auto;
        contain-intrinsic-size: auto 420px;
    }

    @media screen and (max-width: 767px) {
        .video-index-card {
            contain-intrinsic-size: auto 240px;
        }
    }
}

.video-index-card:hover {
    transform: translateY(-2px);
    border-color: #a8c3da;
    box-shadow: 0 11px 24px rgb(21 44 71 / 11%);
}

.video-index-thumb {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #20364c;
    text-decoration: none;
}

.video-index-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-index-thumb::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 38%;
    background: linear-gradient(transparent, rgb(5 19 33 / 72%));
    content: "";
}

.video-index-play {
    position: absolute;
    z-index: 2;
    bottom: 16px;
    left: 18px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgb(255 255 255 / 94%);
    box-shadow: 0 4px 18px rgb(0 0 0 / 22%);
}

.video-index-play::before {
    position: absolute;
    top: 14px;
    left: 19px;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 15px solid #315c82;
    content: "";
}

.video-index-aircraft,
.video-index-new {
    position: absolute;
    z-index: 3;
    top: 12px;
    padding: 6px 10px;
    border: 1px solid rgb(128 209 229 / 45%);
    border-radius: 999px;
    background: rgb(16 37 66 / 94%);
    box-shadow: 0 3px 10px rgb(0 0 0 / 22%);
    color: #fff;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: .015em;
    text-shadow: 0 1px 2px rgb(0 0 0 / 72%);
}

.video-index-aircraft {
    left: 12px;
    max-width: 58%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.video-index-new {
    right: 12px;
    max-width: 40%;
    border-color: #8ce6f7;
    background: #16658b;
}

.video-index-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 15px 16px 0;
}

.video-index-card h3 {
    margin: 0 0 8px;
    color: #24374c;
    font-size: 18px;
    line-height: 1.31;
}

.video-index-card h3 a {
    color: inherit;
    text-decoration: none;
}

.video-index-card h3 a:hover {
    text-decoration: underline;
}

.video-index-description {
    margin: 0;
    color: #5f6d7d;
    font-size: 14px;
    line-height: 1.55;
}

.video-index-v2.has-description-toggles .video-index-description {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.video-index-v2.has-description-toggles .video-index-description.is-expanded {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
}

.video-index-description p {
    margin: 0;
}

.video-index-description a {
    color: #265d87;
}

.video-index-actions {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding: 13px 0 14px;
    border-top: 1px solid #e7edf3;
    color: #4c6580;
    font-size: 12px;
    font-weight: 700;
}

.video-index-actions time {
    grid-column: 1;
    justify-self: start;
}

.video-index-actions a,
.video-index-description-toggle {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #265d87;
    line-height: 1.3;
    text-decoration: none;
}

.video-index-description-toggle {
    grid-column: 2;
    justify-self: center;
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    text-align: center;
    cursor: pointer;
}

.video-index-description-toggle[hidden] {
    display: none;
}

.video-index-actions a:hover,
.video-index-description-toggle:hover {
    text-decoration: underline;
}

.video-index-video-link {
    grid-column: 3;
    justify-self: end;
    text-align: right;
}

.video-index-video-link::after {
    margin-left: 4px;
    content: "→";
}

.video-index-v2 .video-search-pagination {
    margin: 26px 0 8px;
}

.video-index-v2 .video-search-pagination ul {
    gap: 8px;
}

.video-index-v2 .video-search-pagination a,
.video-index-v2 .video-search-pagination span {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 8px 11px;
    border: 1px solid #9eb5cc;
    border-radius: 4px;
    background: #fff;
    color: #234969;
    font-weight: 800;
    text-decoration: none;
}

.video-index-v2 .video-search-pagination a:hover {
    border-color: #3f799c;
    background: #eef9fc;
}

.video-index-v2 .video-search-pagination span[aria-current="page"] {
    border-color: #1f557f;
    background: #1f557f;
    color: #fff;
}

.video-index-v2 .video-search-pagination p {
    color: var(--video-muted);
    font-size: 12px;
}

.video-index-empty {
    padding: 18px;
    border-left: 4px solid var(--video-blue);
    background: #fff;
}

.video-index-progress {
    display: flex;
    min-height: 64px;
    align-items: center;
    justify-content: center;
    padding: 12px;
    color: var(--video-muted);
    text-align: center;
}

.video-index-progress[hidden],
.video-index-progress [hidden] {
    display: none;
}

.video-index-progress p {
    margin: 0;
}

.video-index-load-error {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.video-index-load-error button {
    min-height: 44px;
    padding: 8px 14px;
    border: 1px solid #3f799c;
    border-radius: 4px;
    background: #fff;
    color: #234969;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.video-index-load-error button:hover {
    background: #eef9fc;
}

.video-index-load-error button:focus-visible {
    outline: 3px solid #0a6ca8;
    outline-offset: 3px;
}

.video-index-sentinel {
    width: 100%;
    height: 1px;
}

.video-index-noscript {
    margin-top: 22px;
    padding: 18px;
    border: 1px solid var(--video-line);
    border-radius: 4px;
    background: #fff;
}

.video-index-noscript h3 {
    margin: 0 0 12px;
    color: #24374c;
    font-size: 18px;
}

.video-index-noscript ul {
    margin: 0;
    padding-left: 22px;
}

.video-index-noscript li + li {
    margin-top: 8px;
}

.video-index-noscript a {
    color: #265d87;
}

.video-index-sidebar {
    position: sticky;
    top: 16px;
}

.video-index-ad {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    border: 1px solid #d9dfe7;
    background: #f7f8fa;
}

.video-index-ad-top {
    width: min(100% - 24px, 970px);
    min-height: 108px;
    margin: 0 auto 22px;
}

.video-index-ad-infeed {
    grid-column: 1 / -1;
    min-height: 250px;
}

.video-index-ad-sidebar {
    min-height: 600px;
}

.video-index-ad-label {
    position: absolute;
    z-index: 1;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    color: #8b96a5;
    font-size: 10px;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.video-index-ad .adsbygoogle {
    width: 100%;
}

.video-index-ad:has(.adsbygoogle[data-ad-status="unfilled"]) {
    display: none;
}

@media screen and (max-width: 1050px) {
    .video-index-content {
        grid-template-columns: 1fr;
    }

    .video-index-sidebar {
        display: none;
    }
}

@media screen and (max-width: 767px) {
    .video-index-v2 {
        padding-top: 14px;
    }

    .video-index-breadcrumb {
        display: none;
    }

    .video-index-hero {
        width: 100%;
        margin-bottom: 12px;
        padding: 22px 16px 20px;
        border-radius: 0;
    }

    .video-index-hero h1 {
        font-size: 31px;
    }

    .video-index-intro {
        font-size: 14px;
    }

    .video-index-search {
        margin-top: 18px;
    }

    .video-index-v2 .video-search-controls {
        grid-template-columns: 1fr;
    }

    .video-index-v2 .video-search-button {
        min-height: 48px;
    }

    .video-index-v2 .video-search-button span:last-child {
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
        clip: auto;
    }

    .video-index-categories,
    .video-index-content {
        width: calc(100% - 20px);
    }

    .video-index-categories {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        overflow-x: visible;
        padding-right: 0;
        padding-left: 0;
    }

    .video-index-category {
        width: 100%;
        min-width: 0;
        min-height: 48px;
        padding: 7px;
        font-size: .875rem;
        font-weight: 700;
    }

    .video-index-category span {
        display: block;
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .video-index-ad-top {
        width: calc(100% - 20px);
        min-height: 100px;
        margin-bottom: 16px;
    }

    .video-index-section-head {
        align-items: start;
    }

    .video-index-section-head h2 {
        font-size: 21px;
    }

    .video-index-section-head p {
        display: none;
    }

    .video-index-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .video-index-card {
        display: grid;
        min-height: 178px;
        grid-template-columns: 42% 58%;
    }

    .video-index-thumb {
        height: 100%;
        aspect-ratio: auto;
    }

    .video-index-aircraft,
    .video-index-new {
        top: 7px;
        padding: 4px 7px;
        font-size: .8125rem;
        line-height: 1.3;
    }

    .video-index-aircraft {
        left: 7px;
        max-width: calc(100% - 14px);
        overflow-wrap: anywhere;
        white-space: normal;
        text-overflow: clip;
    }

    .video-index-new {
        top: auto;
        right: 7px;
        bottom: 7px;
        max-width: calc(100% - 14px);
    }

    .video-index-play {
        bottom: 10px;
        left: 10px;
        width: 38px;
        height: 38px;
    }

    .video-index-play::before {
        top: 11px;
        left: 15px;
        border-top-width: 8px;
        border-bottom-width: 8px;
        border-left-width: 12px;
    }

    .video-index-card-body {
        padding: 10px 11px 0;
    }

    .video-index-card h3 {
        display: -webkit-box;
        overflow: hidden;
        margin-bottom: 5px;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        font-size: 1rem;
        line-height: 1.3;
    }

    .video-index-v2.has-description-toggles .video-index-description {
        -webkit-line-clamp: 2;
    }

    .video-index-description {
        font-size: .875rem;
        line-height: 1.5;
    }

    .video-index-actions {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 6px 0 8px;
        font-size: .8125rem;
        line-height: 1.4;
    }

    .video-index-actions time,
    .video-index-description-toggle,
    .video-index-video-link {
        grid-column: 1;
        justify-self: start;
        text-align: left;
    }

    .video-index-actions a {
        min-height: 44px;
    }
}

@media screen and (max-width: 430px) {
    .video-index-categories {
        gap: 6px;
    }

    .video-index-category {
        padding-right: 3px;
        padding-left: 3px;
    }

    .video-index-card {
        grid-template-columns: 44% 56%;
    }
}

@media screen and (max-width: 359px) {
    .video-index-categories {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .video-index-category {
        padding-right: 5px;
        padding-left: 5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .video-index-category,
    .video-index-card {
        transition: none;
    }
}
