/* ── Viro Video Section ── */

.viro-video-section {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.video-bg-wrapper {
    position: relative;
    width: 100%;
    min-height: 500px;
    /* Padding vertical garantit que le contenu empilé reste DANS le wrapper */
    padding: var(--spacing-2xl) var(--spacing-md);
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    box-sizing: border-box;
}

/* L'image et l'overlay sont en position:absolute avec inset:0
   pour toujours couvrir 100% de la hauteur RÉELLE du wrapper,
   même quand le contenu empilé le force à grandir */
.video-bg-img {
    position: absolute;
    inset: 0;
    /* top/right/bottom/left: 0 en une seule ligne */
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    z-index: 0;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.video-bg-wrapper .container-website {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* ══════════════════════════════════════════
   LAYOUTS
══════════════════════════════════════════ */
.video-content-grid {
    display: grid;
    align-items: center;
    gap: var(--spacing-xl);
    color: var(--color-white);
}

/* Layout: Play left, Text right (default) */
.video-content-grid.layout-play-left {
    grid-template-columns: auto 1fr;
}

/* Layout: Text left, Play right */
.video-content-grid.layout-text-left {
    grid-template-columns: 1fr auto;
}

.video-content-grid.layout-text-left .video-play-col {
    order: 2;
}

.video-content-grid.layout-text-left .video-text-col {
    order: 1;
}

/* Layout: Play top, Text bottom */
.video-content-grid.layout-play-top {
    grid-template-columns: 1fr;
    text-align: center;
}

.video-content-grid.layout-play-top .video-play-col {
    order: 1;
}

.video-content-grid.layout-play-top .video-text-col {
    order: 2;
}

/* Layout: Text top, Play bottom */
.video-content-grid.layout-text-top {
    grid-template-columns: 1fr;
    text-align: center;
}

.video-content-grid.layout-text-top .video-play-col {
    order: 2;
}

.video-content-grid.layout-text-top .video-text-col {
    order: 1;
}

/* Layout: Play center only */
.video-content-grid.layout-center {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
}

/* ── Play Column ── */
.video-play-col {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ══════════════════════════════════════════
   PLAY BUTTON BASE
══════════════════════════════════════════ */
.btn-play-video {
    position: relative;
    width: 100px;
    height: 100px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    padding: 0;
    background: transparent;
    flex-shrink: 0;
    transition: transform var(--transition-normal);
}

.btn-play-video:hover {
    transform: scale(1.07);
}

/* ── Shapes ── */
.btn-play-video.shape-circle {
    border-radius: var(--radius-full);
}

.btn-play-video.shape-rounded {
    border-radius: var(--radius-xl);
}

.btn-play-video.shape-square {
    border-radius: 0;
}

.btn-play-video.shape-circle .play-icon-wrapper {
    border-radius: var(--radius-full);
}

.btn-play-video.shape-rounded .play-icon-wrapper {
    border-radius: var(--radius-lg);
}

.btn-play-video.shape-square .play-icon-wrapper {
    border-radius: var(--radius-sm);
}

.btn-play-video.shape-circle .pulse-ring {
    border-radius: var(--radius-full);
}

.btn-play-video.shape-rounded .pulse-ring {
    border-radius: var(--radius-xl);
}

.btn-play-video.shape-square .pulse-ring {
    border-radius: 0;
}

/* ══════════════════════════════════════════
   STYLE 1 : SONAR (transparent + border)
 
══════════════════════════════════════════ */
.btn-play-video.style-sonar {
    border: var(--border-width-2) solid rgba(255, 255, 255, 0.8);
    background: transparent;
}

.btn-play-video.style-sonar .play-icon-wrapper {
    width: 65%;
    height: 65%;
    background: var(--viro-primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    transition: transform var(--transition-normal);
    position: relative;
    z-index: 2;
}

.btn-play-video.style-sonar:hover .play-icon-wrapper {
    transform: scale(1.1);
}

/* Sonar pulse ring: border, not background fill */
.btn-play-video.style-sonar .pulse-ring.sonar {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    animation: viro-sonar 1.5s ease-out infinite;
    z-index: 1;
}

@keyframes viro-sonar {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* ══════════════════════════════════════════
   STYLE 2 : FILLED (solid background)
══════════════════════════════════════════ */
.btn-play-video.style-filled {
    background: var(--viro-primary-color);
    box-shadow: 0 0 30px rgba(98, 208, 182, 0.45);
}

.btn-play-video.style-filled .play-icon-wrapper {
    position: relative;
    z-index: 2;
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Filled pulse ring: radiating background */
.btn-play-video.style-filled .pulse-ring.filled-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-color: var(--viro-primary-color);
    animation: viro-filled-pulse 2s infinite ease-out;
    z-index: 1;
}

@keyframes viro-filled-pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }

    100% {
        transform: translate(-50%, -50%) scale(2.2);
        opacity: 0;
    }
}

/* ══════════════════════════════════════════
   TEXT COLUMN
══════════════════════════════════════════ */
.video-text-col .video-title {
    font-size: var(--font-size-6xl);
    font-weight: var(--font-weight-extrabold);
    margin-bottom: var(--spacing-md);
    color: var(--color-white);
    line-height: var(--line-height-tight);
}

.video-text-col .video-desc {
    font-size: var(--font-size-xl);
    line-height: var(--line-height-base);
    opacity: 0.9;
    color: var(--color-white);
    max-width: 500px;
}

/* Center layout: allow paragraph to be wide */
.layout-center .video-desc,
.layout-play-top .video-desc,
.layout-text-top .video-desc {
    max-width: 700px;
    margin: 0 auto;
}

/* ══════════════════════════════════════════
   MODAL
══════════════════════════════════════════ */
.viro-video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.viro-video-modal.is-active {
    display: flex;
    opacity: 1;
}

.video-modal-container {
    position: relative;
    width: 90%;
    max-width: 1000px;
    background: #000;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

.modal-video-box {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
}

.modal-video-box iframe,
.modal-video-box video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.video-modal-close {
    position: absolute;
    top: -45px;
    right: -10px;
    background: none;
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    font-weight: 300;
    line-height: 1;
    transition: transform 0.3s ease;
}

.video-modal-close:hover {
    transform: scale(1.2);
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 992px) {

    .video-bg-wrapper {
        padding: var(--spacing-xl) var(--spacing-md);
    }


    .video-content-grid.layout-play-left,
    .video-content-grid.layout-text-left {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-lg);
    }

    /* Remettre l'ordre standard quelle que soit la variante */
    .video-content-grid.layout-text-left .video-play-col,
    .video-content-grid.layout-play-left .video-play-col {
        order: 1;
    }

    .video-content-grid.layout-text-left .video-text-col,
    .video-content-grid.layout-play-left .video-text-col {
        order: 2;
    }

    .video-text-col .video-desc {
        margin: 0 auto;
        max-width: 600px;
    }

    .video-text-col .video-title {
        font-size: var(--font-size-4xl);
    }
}

@media (max-width: 576px) {
    .video-bg-wrapper {
        padding: var(--spacing-lg) var(--spacing-sm);
        min-height: 0;

    }

    .video-text-col .video-title {
        font-size: var(--font-size-3xl);
    }

    .video-text-col .video-desc {
        font-size: var(--font-size-base);
    }
}