/* ARC HERO HEADER - AVEC TEXTES */

/* Empêcher la scrollbar horizontale causée par full width */
body {
    overflow-x: hidden;
}

/* === BASE === */

.ed-hero-header {
    position: relative;
    margin: 0 auto;
    width: 100%;
}

/* === MODE CONTENEUR === */

.hero-width-container {
    max-width: 1400px;
}

/* === MODE FULL WIDTH === */

.hero-width-full {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* === HAUTEUR === */

/* Home page et pages : hauteur automatique selon l'image */
.hero-homepage,
.hero-interior {
    position: relative;
    /* Hauteur auto = suit l'image */
}

/* Pages intérieures : hauteur personnalisée (définie inline) */
.hero-interior {
    height: 500px;
}

/* === IMAGE === */

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

/* Picture element */
.hero-picture {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* === OVERLAY === */

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

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

.hero-video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-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;
}

/* Iframe vidéo (YouTube/Vimeo) */
.hero-video-youtube,
.hero-video-vimeo {
    width: 100%;
    height: 56.25vw; /* Ratio 16:9 */
    min-height: 100%;
    min-width: 100%;
}

/* Vidéo uploadée */
.hero-video-upload {
    will-change: transform;
    transform: translate(-50%, -50%) translateZ(0);
}

/* Image de fallback (cachée quand vidéo charge) */
.hero-video-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* Masquer la vidéo sur mobile (économie data) */
@media screen and (max-width: 767px) {
    .hero-video {
        display: none;
    }
    
    .hero-video-fallback {
        z-index: 0; /* Afficher l'image à la place */
    }
}



/* === CONTENU TEXTE === */

.hero-content {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1400px;
    height: 100%;
    z-index: 2; /* Au-dessus de l'overlay (z-index: 1) */
    display: flex;
    padding: 0 80px;
}

/* Alignement horizontal */
.hero-align-left .hero-content {
    justify-content: flex-start;
}

.hero-align-center .hero-content {
    justify-content: center;
}

.hero-align-right .hero-content {
    justify-content: flex-end;
}

/* Alignement vertical */
.hero-valign-top .hero-content {
    align-items: flex-start;
    padding-top: 100px;
}

.hero-valign-center .hero-content {
    align-items: center;
}

.hero-valign-bottom .hero-content {
    align-items: flex-end;
    padding-bottom: 100px;
}

/* Texte */
.hero-text {
    max-width: 800px;
}

/* Titre H1 */
.hero-title {
    font-size: 60px;
    font-weight: 700;
    line-height: 1;
    margin: 0 0 20px 0;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Sous-titre H2 */
.hero-subtitle {
    font-size: 30px;
    font-weight: 600;
    line-height: 1;
    margin: 0;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Alignement texte */
.hero-align-left .hero-text {
    text-align: left;
}

.hero-align-center .hero-text {
    text-align: center;
}

.hero-align-right .hero-text {
    text-align: right;
}

/* === RESPONSIVE === */

@media screen and (max-width: 1024px) {
    .hero-title {
        font-size: 48px;
    }
    
    .hero-subtitle {
        font-size: 22px;
    }
}

@media screen and (max-width: 767px) {
    /* Hauteur réduite sur mobile */
    
    .hero-interior {
        height: 400px !important;
    }

    .hero-content {
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 36px;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-valign-top .hero-content {
        padding-top: 60px;
    }
    
    .hero-valign-bottom .hero-content {
        padding-bottom: 60px;
    }
}

@media screen and (max-width: 480px) {
    .hero-homepage {
        height: 60vh;
        min-height: 400px;
    }
    
    .hero-interior {
        height: 300px !important;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
}

/* === APERÇU VIDE === */

.arc-hero-empty {
    padding: 60px 40px;
    background: #f7f8fc;
    border-radius: 10px;
    text-align: center;
}

.arc-hero-empty p {
    margin: 0;
    font-size: 18px;
    color: #666;
}

.arc-hero-empty strong {
    display: block;
    margin-bottom: 10px;
    font-size: 20px;
}