
:root {
    --ohtt-gold: #c8a45d;
    --ohtt-gold-light: #e0c487;
    --ohtt-card: rgba(255, 255, 255, 0.045);
    --ohtt-text: #f5f2eb;
    --ohtt-muted: #b8b4ab;
}

.ohtt-videotheque {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 12px 22px 64px;
    box-sizing: border-box;
}

.ohtt-video-intro {
    max-width: 760px;
    margin: 0 auto 38px;
    text-align: center;
}

.ohtt-video-intro p {
    margin: 0;
    color: var(--ohtt-muted);
    font-size: clamp(1rem, 1.4vw, 1.12rem);
    line-height: 1.7;
}

.ohtt-video-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px 24px;
}

.ohtt-video-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(200, 164, 93, 0.22);
    border-radius: 7px;
    background: var(--ohtt-card);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.ohtt-video-card:hover {
    transform: translateY(-3px);
    border-color: rgba(200, 164, 93, 0.52);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25);
}

.ohtt-video-open {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
    font: inherit;
}

.ohtt-video-thumb {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #080808;
}

.ohtt-video-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.01);
    transition: transform .3s ease, filter .3s ease;
}

.ohtt-video-card:hover .ohtt-video-thumb img {
    transform: scale(1.045);
    filter: brightness(.82);
}

.ohtt-video-play {
    position: absolute;
    inset: 50% auto auto 50%;
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.ohtt-video-card:hover .ohtt-video-play {
    transform: translate(-50%, -50%) scale(1.07);
    background: var(--ohtt-gold);
    border-color: var(--ohtt-gold);
}

.ohtt-video-play-triangle {
    display: block;
    width: 0;
    height: 0;
    margin-left: 4px;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 13px solid #fff;
}

.ohtt-video-info {
    display: block;
    padding: 18px 18px 17px;
}

.ohtt-video-title {
    display: -webkit-box;
    overflow: hidden;
    color: var(--ohtt-gold-light);
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.42;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.ohtt-video-date {
    display: block;
    margin-top: 10px;
    color: var(--ohtt-muted);
    font-size: .88rem;
}

.ohtt-video-footer,
.ohtt-video-message {
    margin-top: 38px;
    text-align: center;
}

.ohtt-youtube-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 20px;
    border: 1px solid var(--ohtt-gold);
    border-radius: 4px;
    color: var(--ohtt-gold-light) !important;
    text-decoration: none !important;
    font-weight: 600;
    transition: background .2s ease, color .2s ease;
}

.ohtt-youtube-link:hover {
    background: var(--ohtt-gold);
    color: #111 !important;
}

/* Fenêtre de lecture */
.ohtt-video-modal {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
    box-sizing: border-box;
}

.ohtt-video-modal.is-open {
    display: flex;
}

.ohtt-video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .88);
    backdrop-filter: blur(3px);
}

.ohtt-video-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(1120px, 96vw);
    max-height: 92vh;
}

.ohtt-video-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
    box-shadow: 0 18px 70px rgba(0, 0, 0, .55);
}

.ohtt-video-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.ohtt-video-close {
    position: absolute;
    z-index: 2;
    top: -48px;
    right: -2px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.48);
    border-radius: 50%;
    background: rgba(0,0,0,.55);
    color: #fff;
    font: 300 30px/38px Arial, sans-serif;
    text-align: center;
    cursor: pointer;
}

.ohtt-video-close:hover {
    border-color: var(--ohtt-gold);
    color: var(--ohtt-gold-light);
}

.ohtt-video-modal-title {
    margin-top: 13px;
    color: #fff;
    font-size: 1rem;
    line-height: 1.45;
    text-align: center;
}

body.ohtt-video-modal-open {
    overflow: hidden;
}

@media (max-width: 900px) {
    .ohtt-video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .ohtt-videotheque {
        padding-right: 16px;
        padding-left: 16px;
    }

    .ohtt-video-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .ohtt-video-info {
        padding: 15px 15px 14px;
    }

    .ohtt-video-modal {
        padding: 12px;
    }

    .ohtt-video-close {
        top: -45px;
        right: 0;
    }
}
