/**
 * Horizon Vérité — V2, P26 Actualités du jour & fiche vidéo dédiée.
 * Zéro couleur littérale : variables CSS existantes uniquement.
 */

html.hv-v2.hv-p26 .p26-main {
    display: block;
    padding-block: 32px 48px;
}

html.hv-v2.hv-p26 .p26-head {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 26px 28px;
    border: 1px solid var(--hv-border-subtle);
    border-inline-start: 4px solid var(--color-turquoise);
    border-radius: 16px;
    background: var(--hv-surface, var(--color-white));
}

html.hv-v2.hv-p26 .p26-head-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
}

html.hv-v2.hv-p26 .p26-date-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 4px 12px;
    border: 1px solid var(--hv-border-subtle);
    border-radius: 999px;
    background: var(--hv-surface-canvas, var(--hv-surface-soft));
    color: var(--hv-link, var(--color-primary));
    font-family: var(--font-ui);
    font-size: 13.5px;
    font-weight: 600;
}

html.hv-v2.hv-p26 .p26-title {
    margin: 0;
    font-family: var(--font-french);
    font-size: clamp(30px, 4.2vw, 48px);
    line-height: 1.18;
    color: var(--hv-link, var(--color-primary));
    overflow-wrap: break-word;
}

html[dir="rtl"].hv-p26 .p26-title,
html[lang="ar"].hv-p26 .p26-title {
    font-family: var(--font-arabic);
    line-height: 1.48;
}

html.hv-v2.hv-p26 .p26-intro {
    margin: 0;
    max-width: 68ch;
    font-size: 17px;
    line-height: 1.65;
    color: var(--color-dark-gray);
}

html[dir="rtl"].hv-p26 .p26-intro,
html[lang="ar"].hv-p26 .p26-intro,
html[dir="rtl"].hv-p26 .p26-date-pill {
    font-family: var(--font-arabic);
}

html.hv-v2.hv-p26 .p26-head-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
    margin-top: 6px;
}

html.hv-v2.hv-p26 .p26-toolbar {
    margin-top: 22px;
}

html.hv-v2.hv-p26 .p26-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

html.hv-v2.hv-p26 .p26-filters button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 18px;
    border: 1px solid var(--hv-border-subtle);
    border-radius: 999px;
    background: var(--hv-surface, var(--color-white));
    color: var(--color-dark-gray);
    font-family: var(--font-ui);
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
}

html[dir="rtl"].hv-p26 .p26-filters button {
    font-family: var(--font-arabic);
}

html.hv-v2.hv-p26 .p26-filters button[aria-pressed="true"] {
    background: var(--hv-link, var(--color-primary));
    border-color: var(--hv-link, var(--color-primary));
    color: var(--color-white);
}

html.hv-v2.hv-p26 .p26-filters button:focus-visible {
    outline: 2px solid var(--color-turquoise);
    outline-offset: 2px;
}

html.hv-v2.hv-p26 .p26-status:not(:empty) {
    margin-top: 24px;
    padding: 20px 22px;
    border: 1px solid var(--hv-border-subtle);
    border-radius: 14px;
    background: var(--hv-surface, var(--color-white));
}

html.hv-v2.hv-p26 .p26-section {
    margin-top: 34px;
}

html.hv-v2.hv-p26 .p26-section[hidden] {
    display: none;
}

html.hv-v2.hv-p26 .p26-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px 18px;
    margin-bottom: 18px;
}

html.hv-v2.hv-p26 .p26-section-title {
    margin: 0;
    font-size: clamp(22px, 2.5vw, 30px);
    line-height: 1.3;
    color: var(--hv-link, var(--color-primary));
}

html[dir="rtl"].hv-p26 .p26-section-title {
    font-family: var(--font-arabic);
    line-height: 1.5;
}

html.hv-v2.hv-p26 .p26-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

html.hv-v2.hv-p26 .p26-card,
html.hv-v2.hv-p26 .p26-video-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    box-sizing: border-box;
    border: 1px solid var(--hv-border-subtle);
    border-radius: 14px;
    background: var(--hv-surface, var(--color-white));
    overflow: hidden;
}

html.hv-v2.hv-p26 .p26-card-body,
html.hv-v2.hv-p26 .p26-video-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 20px 20px;
    min-width: 0;
}

html.hv-v2.hv-p26 .p26-card-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
}

html.hv-v2.hv-p26 .p26-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    font-family: var(--font-ui);
    font-size: 13px;
    color: var(--color-secondary-gray);
}

html.hv-v2.hv-p26 .p26-cat-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border: 1px solid var(--hv-border-subtle);
    border-radius: 999px;
    background: var(--hv-surface-canvas, var(--hv-surface-soft));
    color: var(--hv-link, var(--color-primary));
    font-weight: 600;
}

html.hv-v2.hv-p26 .p26-card-title {
    margin: 0;
    font-family: var(--font-french);
    font-size: 21px;
    line-height: 1.35;
    color: var(--hv-link, var(--color-primary));
    overflow-wrap: anywhere;
}

html.hv-v2.hv-p26 [lang="ar"] .p26-card-title,
html.hv-v2.hv-p26 [lang="ar"].p26-card .p26-card-title,
html.hv-v2.hv-p26 [lang="ar"].p26-video-card .p26-card-title {
    font-family: var(--font-arabic);
    line-height: 1.6;
}

html.hv-v2.hv-p26 .p26-card-excerpt {
    margin: 0;
    max-width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
    font-size: 15.5px;
    line-height: 1.65;
    color: var(--color-dark-gray);
}

html.hv-v2.hv-p26 [lang="ar"].p26-card .p26-card-excerpt,
html.hv-v2.hv-p26 [lang="ar"].p26-video-card .p26-card-excerpt {
    font-family: var(--font-arabic);
    line-height: 1.8;
}

html.hv-v2.hv-p26 .p26-card-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding-top: 10px;
    border-top: 1px solid var(--hv-border-subtle);
    min-width: 0;
}

html.hv-v2.hv-p26 .p26-card-actions a,
html.hv-v2.hv-p26 .p26-card-actions button {
    min-height: 44px;
    max-width: 100%;
    overflow-wrap: anywhere;
}

html.hv-v2.hv-p26 .p26-video-stage,
html.hv-v2.hv-p26 .p26v-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--color-primary);
    overflow: hidden;
}

html.hv-v2.hv-p26 .p26v-stage {
    border-radius: 14px;
    margin-block: 22px;
    border: 1px solid var(--hv-border-subtle);
}

html.hv-v2.hv-p26 .p26-video-facade {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    height: 100%;
    padding: 16px 18px;
    border: 0;
    border-inline-start: 4px solid var(--color-turquoise);
    background: var(--color-primary);
    color: var(--color-white);
    text-align: start;
    font-family: var(--font-ui);
    cursor: pointer;
}

html.hv-v2.hv-p26 .p26-video-brand {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-white);
}

html.hv-v2.hv-p26 .p26-video-play {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--color-white);
    color: var(--color-primary);
    font-family: var(--font-ui);
    font-size: 15px;
    font-weight: 700;
    align-self: center;
}

html[dir="rtl"].hv-p26 .p26-video-play,
html.hv-v2.hv-p26 [lang="ar"] .p26-video-play {
    font-family: var(--font-arabic);
}

html.hv-v2.hv-p26 .p26-video-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

html.hv-v2.hv-p26 .p26v-linked-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 18px;
    margin-block: 18px 22px;
    padding: 14px 18px;
    border: 1px solid var(--hv-border-subtle);
    border-inline-start: 4px solid var(--color-turquoise);
    border-radius: 12px;
    background: var(--hv-surface, var(--color-white));
}

html.hv-v2.hv-p26 .p26v-linked-banner[hidden] {
    display: none;
}

html.hv-v2.hv-p26 .p26v-linked-banner p {
    margin: 0;
    font-weight: 600;
    color: var(--color-dark-gray);
}

html.hv-v2.hv-p26 .p26v-end-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
    margin-bottom: 14px;
}

html.hv-v2.hv-p26 .p26v-end-actions a,
html.hv-v2.hv-p26 .p26v-end-actions button {
    min-height: 44px;
}

@media (max-width: 1080px) {
    html.hv-v2.hv-p26 .p26-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    html.hv-v2.hv-p26 .p26-main {
        padding-block: 20px 36px;
    }
    html.hv-v2.hv-p26 .p26-head {
        padding: 18px 16px;
    }
    html.hv-v2.hv-p26 .p26-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
