/****************************************************
 RAUCIMS — HERO ACCUEIL (Sans plugin)
 Fichier : assets/css/hero.css

 4 slides video avec rotation automatique 9s
 Responsive desktop & mobile
****************************************************/

/* -------------------------------
   VARIABLES
--------------------------------*/
:root {
    --hero-orange: #f39c12;
    --hero-blue: #1A2E4A;
    --hero-white: #FFFFFF;
    --hero-transition: 1000ms;
}

/* -------------------------------
   CONTAINER PRINCIPAL
--------------------------------*/
.hero-container {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 500px;
    max-height: 900px;
    overflow: hidden;
    background: #0c1a2c;
}

/* Tablette */
@media (max-width: 991px) {
    .hero-container {
        height: 70vh;
        min-height: 400px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .hero-container {
        height: 60vh;
        min-height: 350px;
    }
}

/* -------------------------------
   SLIDES
--------------------------------*/
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--hero-transition) ease-in-out, visibility var(--hero-transition) ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* -------------------------------
   VIDEO BACKGROUND
--------------------------------*/
.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Image fallback (poster) */
.hero-slide .hero-video-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/hero/hero-placeholder.jpg');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

/* -------------------------------
   OVERLAY (lisibilite texte)
--------------------------------*/
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(10, 20, 40, 0.25) 0%,
        rgba(10, 20, 40, 0.4) 100%
    );
    z-index: 2;
    pointer-events: none;
}

/* -------------------------------
   CONTENU TEXTE
--------------------------------*/
.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    width: 90%;
    max-width: 900px;
    padding: 0 20px;
}

/* Titre */
.hero-title {
    color: var(--hero-white);
    font-size: 58px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.5),
        0 4px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out 0.3s, transform 0.8s ease-out 0.3s;
}

.hero-slide.active .hero-title {
    opacity: 1;
    transform: translateY(0);
}

.hero-title span {
    color: var(--hero-orange);
}

/* Sous-titre */
.hero-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.6;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out 0.6s, transform 0.8s ease-out 0.6s;
}

.hero-slide.active .hero-subtitle {
    opacity: 1;
    transform: translateY(0);
}

/* -------------------------------
   RESPONSIVE TEXTE
--------------------------------*/
@media (max-width: 1199px) {
    .hero-title {
        font-size: 48px;
    }
    .hero-subtitle {
        font-size: 18px;
    }
}

@media (max-width: 991px) {
    .hero-title {
        font-size: 38px;
        letter-spacing: 0.5px;
    }
    .hero-subtitle {
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 28px;
        letter-spacing: 0;
        margin-bottom: 15px;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    }
    .hero-subtitle {
        font-size: 14px;
        text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
    }
    .hero-content {
        width: 95%;
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 24px;
    }
    .hero-subtitle {
        font-size: 13px;
    }
}

/* -------------------------------
   INDICATEURS (optionnel)
--------------------------------*/
.hero-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.hero-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    padding: 0;
}

.hero-indicator:hover {
    background: rgba(255, 255, 255, 0.7);
}

.hero-indicator.active {
    background: var(--hero-orange);
    transform: scale(1.2);
}

@media (max-width: 767px) {
    .hero-indicators {
        bottom: 20px;
    }
    .hero-indicator {
        width: 10px;
        height: 10px;
    }
}
