/* --- Définitions de Couleur (Variables) --- */
:root {
    --movex-yellow: #ffc72c;
    --movex-dark: #10181f; 
    --movex-white: #ffffff;
    --btn-padding-y: 0.5rem;
    --btn-padding-x: 1rem;
    --arrow-size: 1.75rem;
    --arrow-offset: -0.75rem;
}

/* --- 1. Style de la Section Hero --- */
.hero {
    min-height: 60vh;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: left;
    padding-top: 3rem;
    padding-bottom: 3rem;
    padding-left: clamp(16px, 3.3vw, 128px) !important;
    padding-right: clamp(16px, 3.3vw, 128px) !important;
    color: var(--movex-white) !important;
    width: 100%;
}

.hero-text {
    flex: 1;
    min-width: 50vw;
    max-width: 100%;
    padding-right: 0;
    font-size: clamp(1.25rem, 1.36vi + 0.91rem, 2rem);
}

.pre-heading {
    font-family: 'Sofia Sans', sans-serif !important;
    font-size: clamp(1rem, 1.05vi + 0.74rem, 2rem);
    font-weight: 500;
    margin-bottom: 0rem !important;
    color: var(--movex-white);
}

.hero h1 {
    font-size: clamp(2rem, 3.64vi + 1.09rem, 4rem);
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    color: var(--movex-yellow) !important;
    text-transform: uppercase;
}

.hero p.sub-heading {
    font-family: 'Sofia Sans', sans-serif !important;
    margin-bottom: 2rem;
    color: var(--movex-white);
}

.hero .btn-secondary {
    display: inline-block !important; 
    width: fit-content !important;
    text-decoration: none !important; 
    border-radius: 0 !important;
    
    padding: var(--btn-padding-y) var(--btn-padding-x) !important;
    font-family: 'Sofia Sans', sans-serif !important;
    font-weight: 600 !important; 
    font-size: 1.125rem !important;
    text-transform: uppercase !important;

    background: var(--movex-yellow) !important;
    color: var(--movex-dark) !important;
    
    transition: all 0.3s ease-in-out;
    border: none;
    cursor: pointer;
}

.hero .btn-secondary.arrow {
    position: relative;
    padding-right: 1.75rem !important;
    overflow: visible !important;
}

.hero .btn-secondary.arrow::after {
    content: '';
    position: absolute;
    top: 50% !important; 
    transform: translateY(-50%) !important; 
    right: var(--arrow-offset) !important; 
    
    width: var(--arrow-size) !important; 
    height: var(--arrow-size) !important; 
    
    background-repeat: no-repeat;
    background-position: center !important; 
    background-size: 100%;
    transition: all 0.3s ease-in-out;
    
    background-color: var(--movex-dark) !important; 
    background-image: url("https://movexinnovation.com/wp-content/themes/movex-website/images/icon/arrow_btn.svg") !important;
}

/* --- GESTION DU SURVOL --- */
.hero .btn-secondary:hover {
    background: var(--movex-white) !important; /* Fond: Blanc */
    color: var(--movex-dark) !important; /* Texte: Noir */
}

.hero .btn-secondary.arrow:hover::after {
    background-color: var(--movex-dark) !important; 
    background-image: url("https://movexinnovation.com/wp-content/themes/movex-website/images/icon/arrow_btn.svg") !important;
}

/* --- Styles de la Vidéo et de l'Image Statique --- */

.hero-media-col {
    flex: 1;
    min-width: 300px;
    padding-right: 2rem;
}

/* Wrapper pour l'image statique (si choisie) */
.static-image-wrapper {
    width: 100%;
    height: auto;
    overflow: hidden;
}

.static-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-video {
    flex: 1;
    min-width: 300px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        padding: 2rem 1rem;
    }
    
    .hero-text {
        padding-right: 0;
        margin-bottom: 2rem;
        order: 0; 
    }
   
 /* --- Définitions de Couleur (Variables) --- */
:root {
    --movex-yellow: #ffc72c;
    --movex-dark: #10181f; 
    --movex-white: #ffffff;
    --btn-padding-y: 0.5rem;
    --btn-padding-x: 1rem;
    --arrow-size: 1.75rem;
    --arrow-offset: -0.75rem;
}

/* --- 1. Style de la Section Hero --- */
.hero {
    min-height: 90vh; /* Hauteur ajustée */
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: left;
    padding-top: 3rem;
    padding-bottom: 3rem;
    padding-left: clamp(16px, 3.3vw, 128px) !important;
    padding-right: clamp(16px, 3.3vw, 128px) !important;
    color: var(--movex-white) !important;
    width: 100%;
}

.hero-text {
    flex: 1;
    min-width: 50vw; /* Par défaut : occupe la moitié */
    max-width: 100vw;
    padding-right: 2rem;
    font-size: clamp(1.25rem, 1.36vi + 0.91rem, 2rem);
}

/* --- LOGIQUE : SANS MÉDIA (Centrage) --- */
.hero.hero-no-media {
    justify-content: center;
    text-align: center;
}

.hero.hero-no-media .hero-text {
    flex: none;
    width: 100%;
    min-width: 0;       /* Annule le 50vw */
    max-width: 900px;   /* Largeur lecture confortable */
    padding-right: 0;
    margin: 0 auto;
}

.hero.hero-no-media .hero-btn-wrapper {
    display: flex;
    justify-content: center;
}

/* --- TYPOGRAPHIE --- */
.pre-heading {
    font-family: 'Sofia Sans', sans-serif !important;
    font-size: clamp(1rem, 1.05vi + 0.74rem, 2rem);
    font-weight: 500;
    margin-bottom: 0rem !important;
    color: var(--movex-white);
}

.hero h1 {
    font-size: clamp(2rem, 3.64vi + 1.09rem, 4rem);
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    color: var(--movex-yellow) !important; /* Jaune forcé */
    text-transform: uppercase;
}

.hero p.sub-heading {
    font-family: 'Sofia Sans', sans-serif !important;
    margin-bottom: 2rem;
    color: var(--movex-white);
    font-weight: 600;
}

/* --- BOUTONS --- */
.hero .btn-secondary {
    display: inline-block !important; 
    width: fit-content !important;
    text-decoration: none !important; 
    border-radius: 0 !important;
    padding: var(--btn-padding-y) var(--btn-padding-x) !important;
    font-family: 'Sofia Sans', sans-serif !important;
    font-weight: 600 !important; 
    font-size: 1.125rem !important;
    text-transform: uppercase !important;
    background: var(--movex-yellow) !important;
    color: var(--movex-dark) !important;
    transition: all 0.3s ease-in-out;
    border: none;
    cursor: pointer;
}

.hero .btn-secondary.arrow {
    position: relative;
    padding-right: 1.75rem !important;
    overflow: visible !important;
}

.hero .btn-secondary.arrow::after {
    content: '';
    position: absolute;
    top: 50% !important; 
    transform: translateY(-50%) !important; 
    right: var(--arrow-offset) !important; 
    width: var(--arrow-size) !important; 
    height: var(--arrow-size) !important; 
    background-repeat: no-repeat;
    background-position: center !important; 
    background-size: 100%;
    transition: all 0.3s ease-in-out;
    background-color: var(--movex-dark) !important; 
    background-image: url("https://movexinnovation.com/wp-content/themes/movex-website/images/icon/arrow_btn.svg") !important;
}

/* --- HOVER --- */
.hero .btn-secondary:hover {
    background: var(--movex-white) !important;
    color: var(--movex-dark) !important;
}

.hero .btn-secondary.arrow:hover::after {
    background-color: var(--movex-dark) !important; 
    background-image: url("https://movexinnovation.com/wp-content/themes/movex-website/images/icon/arrow_btn.svg") !important;
}

/* --- MÉDIAS (Vidéo/Image) --- */
.hero-media-col {
    flex: 1;
    min-width: 300px;
}

.static-image-wrapper {
    width: 100%;
    height: auto;
    overflow: hidden;
}

.static-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-video {
    flex: 1;
    min-width: 300px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* --- RESPONSIVE --- */

/* 1. TABLETTES (et plus petit) */
@media (max-width: 992px) {
    .hero.hero-no-media {
        min-height: 70vh; 
    }
}

/* 2. MOBILE (et plus petit) */
@media (max-width: 768px) {
    .hero {
        width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
        flex-direction: column;
        padding: 2rem 1rem !important;
    }
    
    .hero-text {
        width: 100%;
        padding-right: 0;
        margin: 0;
        min-width: 0;
        text-align: center;
    }

    .hero-btn-wrapper {
        display: flex;
        justify-content: center;
    }
    
    .hero-media-col,
    .hero-video {
        order: 1;
        margin-bottom: 1rem;
    }
  
    .hero .btn-secondary {
        display: inline-block !important;
        width: fit-content !important;
    }
    
    /* Responsive spécifique au mode "Sans Média" */
    .hero.hero-no-media {
        flex-direction: column;
        min-height: 50vh !important; 
        align-items: center; 
    }

    .hero.hero-no-media .hero-media-col {
        display: none; 
    }

    .hero.hero-no-media .hero-text {
        flex: none !important;
        width: 100%;
        max-width: 800px;
        padding-right: 0;
        margin-bottom: 0;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    } 

    .hero.hero-no-media .btn-secondary {
        margin-left: auto;
        margin-right: auto;
    } 
}