/* 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 : pleine hauteur écran */
.hero-homepage {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

/* Pages intérieures */
.hero-interior {
    position: relative;
}

/* 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: 40%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1400px;
    height: 100%;
    z-index: 2;
    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: 200px;
}

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

/* Titre H1 */
.hero-title {
    font-size: 80px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px 0;
    color: #ffffff;
}

.hero-title span {
    background: #000;
    padding: 4px 10px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

/* Sous-titre H2 */
.hero-subtitle {
    font-size: 30px;
    font-weight: 600;
    line-height: 1.6;
    margin: 0;
    color: #ffffff;
}

.hero-subtitle span {
    background: #000;
    padding: 2px 8px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

/* 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-content {
        left: 45%;
    }

    .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 {
        left: 50%;
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 40px;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-valign-top .hero-content {
        padding-top: 60px;
    }
    
    .hero-valign-bottom .hero-content {
        padding-bottom: 100px;
    }
}

@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;
    }
}

/* === SCROLL INDICATOR === */

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: hero-bounce 2s ease infinite;
}

.hero-scroll-indicator {
    text-decoration: none;
    cursor: pointer;
}

.hero-scroll-icon {
    width: 26px;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.hero-scroll-indicator:hover .hero-scroll-icon {
    opacity: 1;
}

@keyframes hero-bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* === LOGO OVERLAY === */

.hero-logo-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 20%; /* 1/5 de la largeur */
    background: #fff;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.hero-logo-left {
    left: 0;
}

.hero-logo-right {
    right: 0;
}

.hero-logo-image {
    max-width: 100%;
    max-height: 60%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Ajuster le contenu texte quand le logo est présent */
.hero-has-logo.hero-logo-pos-left .hero-content {
    padding-left: calc(20% + 40px);
}

.hero-has-logo.hero-logo-pos-right .hero-content {
    padding-right: calc(20% + 40px);
}

/* Responsive logo */
@media screen and (max-width: 1024px) {
    .hero-logo-overlay {
        width: 25%;
        padding: 30px;
    }

    .hero-has-logo.hero-logo-pos-left .hero-content {
        padding-left: calc(25% + 30px);
    }

    .hero-has-logo.hero-logo-pos-right .hero-content {
        padding-right: calc(25% + 30px);
    }
}

@media screen and (max-width: 767px) {
    .hero-logo-overlay {
        width: 30%;
        padding: 20px;
    }

    .hero-has-logo.hero-logo-pos-left .hero-content {
        padding-left: calc(30% + 20px);
    }

    .hero-has-logo.hero-logo-pos-right .hero-content {
        padding-right: calc(30% + 20px);
    }
}

/* === 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;
}