.avh {
    --avh-ink: #00566d;
    --avh-dark: #003f52;
    --avh-cyan: #40c2ca;
    --avh-orange: #f15a24;
    --avh-soft: #edf8f9;
    --avh-text: #25252d;
    width: 100%;
    margin: 0;
    color: var(--avh-text);
    font-family: inherit;
}

.avh__heading-row h2 {
    color: var(--avh-ink) !important;
    font-family: 'ITCavantGarde', 'ITC Avant Garde Gothic', Poppins, sans-serif !important;
}

.avh__type-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin: 0 0 72px;
}

.avh__type-pill,
.avh__topic-pill,
.avh__more {
    appearance: none;
    border: 1px solid rgba(0, 86, 109, .35) !important;
    background: #fff !important;
    color: var(--avh-ink) !important;
    font: inherit;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.avh__type-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 11px 24px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .01em;
}

.avh__type-pill.is-active,
.avh__type-pill:hover,
.avh__type-pill:focus-visible {
    border-color: var(--avh-cyan) !important;
    background: var(--avh-cyan) !important;
    color: #fff !important;
}

.avh__type-pill:focus-visible,
.avh__topic-pill:focus-visible,
.avh__more:focus-visible,
.avh-card button:focus-visible {
    outline: 3px solid rgba(64, 194, 202, .35);
    outline-offset: 3px;
}

.avh__stage {
    transition: opacity .2s ease;
}

.avh.is-loading .avh__stage {
    opacity: .45;
    pointer-events: none;
}

.avh__featured,
.avh__library {
    padding-right: 0;
    padding-left: 0;
}

.avh__featured {
    margin-bottom: 112px;
}

.avh__heading-row {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr);
    align-items: last baseline;
    gap: 48px;
    margin-bottom: 44px;
}

.avh__heading-row h2 {
    margin: 5px 0 0;
    color: var(--avh-ink);
    font-size: clamp(30px, 3.25vw, 50px);
    font-weight: 500;
    line-height: 1.08;
}

.avh__heading-row p {
    max-width: 520px;
    margin: 0;
    justify-self: end;
    text-align: right;
    color: #5b5b62;
    font-size: 17px;
    line-height: 1.55;
}

.avh__eyebrow,
.avh-card__topic {
    color: var(--avh-orange);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.avh__featured-grid,
.avh__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}

.avh-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff;
    outline: 0 !important;
    box-shadow: 0 10px 28px rgba(0, 63, 82, .09);
    transition: transform .24s ease, box-shadow .24s ease;
}

.avh-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 44px rgba(0, 63, 82, .15);
}

.avh-card__media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    appearance: none;
    cursor: pointer;
}

.avh-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover !important;
    transition: transform .35s ease;
}

.avh-card:hover .avh-card__media img {
    transform: scale(1.035);
}

.avh-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 58px;
    height: 58px;
    transform: translate(-50%, -50%);
    place-items: center;
    border: 2px solid rgba(255,255,255,.9);
    border-radius: 50%;
    background: rgba(0, 86, 109, .84);
    color: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
}

.avh-card__play svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.avh-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 26px 28px 28px;
}

.avh-card__body h3 {
    margin: 9px 0 0;
    color: var(--avh-text);
    font-size: clamp(19px, 1.35vw, 24px);
    font-weight: 500;
    line-height: 1.24;
}

.avh-card:not(.avh-card--featured) .avh-card__body h3 {
    font-size: 19px;
}

.avh-card__body p {
    margin: 14px 0 0;
    color: #626268;
    font-size: 15px;
    line-height: 1.5;
}

.avh-card__link {
    margin-top: auto;
    padding: 22px 0 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--avh-ink) !important;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    box-shadow: none !important;
    appearance: none;
    cursor: pointer;
}

.avh-card__link:hover,
.avh-card__link:focus,
.avh-card__link:active {
    border: 0 !important;
    background: transparent !important;
    color: var(--avh-cyan) !important;
    box-shadow: none !important;
}

.avh-card__link span {
    color: var(--avh-cyan);
    font-size: 20px;
    vertical-align: -1px;
}

.avh__library {
    padding-top: 72px;
    padding-bottom: 72px;
    background: transparent;
}

.avh__heading-row--library {
    align-items: last baseline;
}

.avh__search {
    position: relative;
    display: block;
    width: min(100%, 430px);
    margin-top: 0;
    justify-self: end;
}

.avh__search svg {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 18px;
    width: 19px;
    height: 19px;
    transform: translateY(-50%);
    fill: none;
    stroke: var(--avh-ink);
    stroke-width: 1.8;
    pointer-events: none;
}

.avh__search input {
    box-sizing: border-box;
    width: 100% !important;
    min-height: 50px !important;
    padding: 10px 18px 10px 52px !important;
    border: 1px solid rgba(0, 86, 109, .3) !important;
    border-radius: 999px !important;
    outline: 0;
    background: #fff !important;
    box-shadow: none !important;
    color: var(--avh-text);
    font: inherit;
    appearance: none;
}

.avh__search input:focus {
    border-color: var(--avh-cyan) !important;
    outline: 3px solid rgba(64, 194, 202, .22) !important;
    outline-offset: 2px;
    box-shadow: none !important;
}

.avh__topic-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 40px;
}

.avh__topic-pill {
    min-height: 42px;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 14px;
}

.avh__topic-pill.is-active,
.avh__topic-pill:hover {
    border-color: var(--avh-cyan) !important;
    background: var(--avh-cyan) !important;
    color: #fff !important;
}

.avh__grid {
    row-gap: 40px;
}

.avh__more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 52px;
}

.avh__more {
    min-height: 48px;
    padding: 10px 26px;
    border-radius: 999px;
    font-weight: 600;
}

.avh__more:hover {
    border-color: var(--avh-ink) !important;
    background: var(--avh-ink) !important;
    color: #fff !important;
}

.avh__empty {
    grid-column: 1 / -1;
    display: flex;
    min-height: 190px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 32px;
    background: var(--avh-soft);
    color: var(--avh-ink);
    text-align: center;
}

.avh__empty span {
    color: #666;
}

.avh__dialog {
    position: fixed;
    inset: 50% auto auto 50%;
    width: min(92vw, 1100px);
    max-width: none;
    max-height: calc(100dvh - 32px);
    margin: 0 !important;
    padding: 0;
    border: 0;
    background: #000;
    box-shadow: 0 28px 90px rgba(0,0,0,.36);
    overflow: visible;
    transform: translate(-50%, -50%);
}

.avh__dialog::backdrop {
    background: rgba(0, 35, 46, .82);
}

.avh__dialog-frame {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.avh__dialog-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.avh__dialog-close {
    position: absolute;
    z-index: 2;
    top: 10px;
    right: 10px;
    display: grid;
    width: 42px;
    height: 42px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(255,255,255,.5);
    border-radius: 50%;
    background: rgba(0,0,0,.65);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

@media (max-width: 1024px) {
    .avh {
        overflow-x: clip;
    }

    .avh__featured-grid,
    .avh__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .avh__heading-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .avh__heading-row p,
    .avh__search {
        margin-top: 0;
    }

    .avh__heading-row p {
        justify-self: start;
        text-align: left;
    }

    .avh__search {
        width: min(100%, 520px);
        justify-self: start;
    }
}

@media (max-width: 767px) {
    .avh__type-nav {
        justify-content: center;
        gap: 10px;
        margin-bottom: 48px;
        padding-inline: 0;
    }

    .avh__type-pill {
        min-height: 46px;
        padding: 9px 14px;
        font-size: 13px;
        white-space: nowrap;
    }

    .avh__featured {
        margin-bottom: 64px;
    }

    .avh__library {
        padding-top: 52px;
        padding-bottom: 52px;
    }

    .avh__featured-grid,
    .avh__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .avh__heading-row {
        gap: 14px;
        margin-bottom: 28px;
    }

    .avh__heading-row h2 {
        max-width: 100%;
        font-size: clamp(27px, 8.2vw, 34px);
        line-height: 1.08;
        overflow-wrap: break-word;
    }

    .avh__heading-row p {
        max-width: 100%;
        font-size: 15px;
        line-height: 1.5;
    }

    .avh__search {
        width: 100%;
    }

    .avh__search input {
        min-height: 48px !important;
        padding-left: 48px !important;
    }

    .avh__topic-nav {
        gap: 8px;
        margin-bottom: 32px;
    }

    .avh__topic-pill {
        min-height: 40px;
        padding: 7px 14px;
        font-size: 13px;
    }

    .avh-card__body {
        padding: 20px;
    }

    .avh-card__body h3,
    .avh-card:not(.avh-card--featured) .avh-card__body h3 {
        font-size: 19px;
        line-height: 1.28;
    }

    .avh-card__play {
        width: 52px;
        height: 52px;
    }

    .avh__more-wrap {
        margin-top: 40px;
    }

    .avh__dialog {
        width: calc(100vw - 24px);
        max-width: none;
    }

    .avh__dialog-close {
        top: 8px;
        right: 8px;
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 380px) {
    .avh__type-nav {
        gap: 8px;
    }

    .avh__type-pill {
        min-height: 42px;
        padding: 8px 11px;
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .avh *,
    .avh *::before,
    .avh *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

/* Icône SVG du CTA YouTube de la page Vidéos — ciblage limité au widget Elementor. */
.page-id-208623 .elementor-element-744fd93 .elementor-button-icon {
    width: 24px;
    height: 17px;
    flex: 0 0 24px;
    background: url("youtube-icon-red.svg") center / contain no-repeat;
}

.page-id-208623 .elementor-element-744fd93 .elementor-button-icon > * {
    display: none !important;
}
