/****************************************************
 RAUCIMS — HERO ACCUEIL (banniere principale)
 Page : index.php
 Fichier : assets/css/banniere-index.css

 ARCHITECTURE 2 COUCHES:
   - Couche 1 (fond) : Video MP4 / Image fallback
   - Couche 2 (avant) : Texte (titre + sous-titre)

 Palette :
   - Orange #f39c12
   - Bleu Marine #1A2E4A
****************************************************/

/* -------------------------------
   VARIABLES GLOBALES
--------------------------------*/
:root {
    --raucims-orange: #f39c12;
    --raucims-blue: #1A2E4A;
    --raucims-white: #FFFFFF;
}

/* -------------------------------
   WRAPPER GLOBAL HERO
--------------------------------*/
#hero_accueil_wrapper,
.fullwidthbanner-container {
    width: 100%;
    position: relative;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
    background: #0c1a2c;
}

/* -------------------------------
   HAUTEURS RESPONSIVE
   Desktop: 85vh | Mobile: 60vh
--------------------------------*/

/* Desktop (> 992px) */
#hero_accueil_slider,
#hero_accueil_wrapper .rev_slider {
    height: 85vh !important;
    min-height: 500px;
    max-height: 900px;
}

/* Tablette (768px - 991px) */
@media (max-width: 991px) {
    #hero_accueil_slider,
    #hero_accueil_wrapper .rev_slider {
        height: 70vh !important;
        min-height: 400px;
    }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
    #hero_accueil_slider,
    #hero_accueil_wrapper .rev_slider {
        height: 60vh !important;
        min-height: 350px;
    }
}

/* -------------------------------
   SLIDER VISIBLE AU CHARGEMENT
--------------------------------*/
#hero_accueil_slider {
    visibility: visible !important;
    opacity: 1 !important;
}

/* Slides visibles apres init */
#hero_accueil_wrapper .tp-revslider-slidesli {
    visibility: visible !important;
}

/* -------------------------------
   VIDEO BACKGROUND LAYER
   (rs-background-video-layer)
--------------------------------*/
#hero_accueil_wrapper .rs-background-video-layer {
    z-index: 1 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

#hero_accueil_wrapper .rs-background-video-layer video {
    object-fit: cover !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* Cache le bouton play natif */
#hero_accueil_wrapper .tp-video-play-button {
    display: none !important;
}

/* -------------------------------
   IMAGE FALLBACK (rev-slidebg)
   Visible uniquement si video ne charge pas
--------------------------------*/
#hero_accueil_wrapper .rev-slidebg {
    z-index: 0 !important;
}

/* Overlay leger sur image/video pour lisibilite */
#hero_accueil_wrapper .slotholder::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(10, 20, 40, 0.2) 0%,
        rgba(10, 20, 40, 0.35) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* -------------------------------
   TEXTE FOREGROUND
   z-index eleve pour passer devant video
--------------------------------*/
#hero_accueil_wrapper .tp-caption.title-slide,
#hero_accueil_wrapper .tp-caption.sub-title {
    z-index: 10 !important;
    position: relative;
}

/* Titre principal */
.tp-caption.title-slide {
    color: #FFFFFF !important;
    font-weight: 700 !important;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.5),
        0 4px 15px rgba(0, 0, 0, 0.3);
}

.tp-caption.title-slide span {
    color: var(--raucims-orange) !important;
}

/* Sous-titre */
.tp-caption.sub-title {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 400 !important;
    letter-spacing: 0.3px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    line-height: 1.6 !important;
}

/* -------------------------------
   RESPONSIVE TEXTE
--------------------------------*/
@media (max-width: 991px) {
    .tp-caption.title-slide {
        letter-spacing: 0.5px;
    }
}

@media (max-width: 767px) {
    .tp-caption.title-slide {
        letter-spacing: 0;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    }

    .tp-caption.sub-title {
        text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
    }
}

/* -------------------------------
   BOUTONS CTA (si utilises)
--------------------------------*/
.tp-caption.flat-button {
    display: inline-block;
    padding: 12px 28px;
    font-size: 14px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border-radius: 50px;
    border: 2px solid transparent;
    font-weight: 600;
    background: var(--raucims-orange);
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.35);
    transition: all 0.3s ease;
    text-decoration: none;
    z-index: 10 !important;
}

.tp-caption.flat-button:hover {
    background: #fff;
    color: var(--raucims-blue) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}
