/**
 * Liftfoils Swift Clone - CSS
 * Complément au CSS Atelier déjà chargé (atelier-base-required.css)
 * Version: 1.0.0
 */

/* ================================================
   VIDÉO BACKGROUND
   ================================================ */

.spb-row .video-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.spb-row .video-wrap video.parallax-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: 0;
}

/* Overlay vidéo */
.spb-row .row-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.spb-row .row-overlay.video-overlay {
    background: rgba(0, 0, 0, 0.3); /* Défaut */
}

.spb-row .row-overlay.overlay-none {
    background: transparent;
}

/* Overlay patterns (optionnel, si utilisé) */
.row-overlay.overlay-lightgrid {
    background: url('../images/patterns/lightgrid.png') repeat;
}

.row-overlay.overlay-darkgrid {
    background: url('../images/patterns/darkgrid.png') repeat;
}

/* ================================================
   CONTENU AU-DESSUS VIDÉO/OVERLAY
   ================================================ */

.spb-row .spbcontentelement {
    position: relative;
    z-index: 2; /* Au-dessus vidéo + overlay */
}

/* ================================================
   HEIGHT MODES
   ================================================ */

.spb-row[data-row-height="window-height"] {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.spb-row[data-row-height="content-height"] {
    min-height: auto;
}

/* ================================================
   FLEXBOX COLONNES
   ================================================ */

.spb-row-flex {
    display: flex;
    flex-wrap: wrap;
}

.spb-row-flex[data-col-v-pos="top"] {
    align-items: flex-start;
}

.spb-row-flex[data-col-v-pos="center"] {
    align-items: center;
}

.spb-row-flex[data-col-v-pos="bottom"] {
    align-items: flex-end;
}

.spb-row-flex[data-col-v-pos="stretch"] {
    align-items: stretch;
}

/* ================================================
   SPACING COLONNES
   ================================================ */

.spb-row-col-spacing[data-col-spacing="10"] .spb-column {
    padding-left: 5px;
    padding-right: 5px;
}

.spb-row-col-spacing[data-col-spacing="20"] .spb-column {
    padding-left: 10px;
    padding-right: 10px;
}

.spb-row-col-spacing[data-col-spacing="30"] .spb-column {
    padding-left: 15px;
    padding-right: 15px;
}

.spb-row-col-spacing[data-col-spacing="40"] .spb-column {
    padding-left: 20px;
    padding-right: 20px;
}

/* ================================================
   REMOVE ELEMENT SPACING
   ================================================ */

.spb-remove-element-spacing .spb-text-block,
.spb-remove-element-spacing .spb-image,
.spb-remove-element-spacing .spb-button {
    margin-bottom: 0 !important;
}

/* ================================================
   ANIMATIONS
   ================================================ */

.spb-animation {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.spb-animation.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================
   COLONNES - BACKGROUND
   ================================================ */

.spb-column-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.spb-column-inner {
    position: relative;
    z-index: 1;
}

/* ================================================
   RESPONSIVE - MOBILE
   ================================================ */

@media (max-width: 767px) {
    /* Masquer vidéo sur mobile (performance) */
    .spb-row .video-wrap video {
        display: none;
    }

    /* Pas de 100vh sur mobile (problème avec barres navigateur) */
    .spb-row[data-row-height="window-height"] {
        min-height: auto;
        padding-top: 60px;
        padding-bottom: 60px;
    }

    /* Padding réduit sur mobile */
    .spb-row[data-wrap="full-width-contained"] .spbcontentelement,
    .spb-row[data-wrap="full-width-stretch"] .spbcontentelement {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Colonnes 100% width sur mobile */
    .spb-column {
        width: 100% !important;
        float: none;
        margin-bottom: 30px;
    }
}

/* ================================================
   RESPONSIVE - TABLETTE
   ================================================ */

@media (min-width: 768px) and (max-width: 991px) {
    .hidden-sm {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .hidden-xs {
        display: none !important;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .hidden-md {
        display: none !important;
    }
}

@media (min-width: 1200px) {
    .hidden-lg {
        display: none !important;
    }
}

/* ================================================
   UTILITAIRES
   ================================================ */

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}
