/**
 * Hero Split - Two Sections Layout
 * 65% fond clair à gauche, 35% image à droite
 */

/* ============================================================
   STRUCTURE PRINCIPALE
   ============================================================ */

.hero-split {
    position: relative;
    display: flex;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

/* ============================================================
   PARTIE GAUCHE (65%) - FOND CLAIR
   ============================================================ */

.hero-split__left {
    width: 55%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 2rem 3rem;
    overflow: hidden;
    background: var(--color-secondary);
}


.hero-split__content {
    max-width: 700px;
    width: 100%;
    position: relative;
    z-index: 2;
}

/* Titre (nom entreprise sur 2 lignes) */
.hero-split__title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    margin: 0 0 2rem 0;
    color: var(--color-light);
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-family: var(--font-heading);
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    position: relative;
}

.hero-split__title .highlight {
    color: white;
}

@keyframes revealMetal {
    to { transform: scaleY(1); }
}




.hero-split__title-line {
    display: block;
}

/* ============================================================
   LOGO DE L'ENTREPRISE DANS LE HERO
   ============================================================ */

.hero-split__logo {
    padding-top: 2rem;
    margin: 0 0 2rem 0;
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    position: relative;
    display: flex;
    align-items: center;
}

/* Image du logo */
.hero-split__logo img,
.hero-split__logo .custom-logo {
    max-height: 150px;
    width: auto;
    display: block;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

/* Texte de fallback si pas de logo */
.hero-split__logo-text {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    color: var(--color-light);
    text-transform: uppercase;
    letter-spacing: -0.08em;
    font-family: var(--font-heading);
    display: block;
}

/* Slogan */
.hero-split__subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-light);
    margin: 0 0 3rem 0;
    line-height: 1.4;
    font-family: var(--font-primary);
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.hero-split__subtitle .highlight {
    color: var(--color-primary);
}

/* ============================================================
   BOUTONS DE CONTACT
   ============================================================ */

.hero-split__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
    position: relative;
}

/* Croix en bas à droite du conteneur des boutons */
.hero-split__cross-button {
    position: absolute;
    bottom: 9px;
    right: 215px;
    width: 20px;
    height: 99px;
    z-index: 3;
    pointer-events: none;
}

/* Ligne verticale */
.hero-split__cross-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: var(--color-primary);
    opacity: 1;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Ligne horizontale */
.hero-split__cross-button::after {
    content: '';
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    width: 277%;
    height: 3px;
    background: var(--color-primary);
    opacity: 1;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* ============================================================
   PARTIE DROITE (35%) - IMAGE
   ============================================================ */

.hero-split__right {
    width: 45%;
    position: relative;
}

/* Dégradé sur le bord gauche de l'image */
.hero-split__right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 250px;
    background: linear-gradient(
        to right,
        var(--color-secondary) 0%,
        color-mix(in srgb, var(--color-secondary) 80%, transparent) 30%,
        color-mix(in srgb, var(--color-secondary) 50%, transparent) 55%,
        color-mix(in srgb, var(--color-secondary) 20%, transparent) 80%,
        transparent 100%
    );
    z-index: 2;
    pointer-events: none;
}

.hero-split__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    animation: fadeIn 1s ease-out 0.3s forwards;
    opacity: 0;
}

/* ============================================================
   CROIX STYLE CROQUIS - Overlay sur l'image droite (bas-droite)
   ============================================================ */

.hero-split__cross {
    position: absolute;
    top: 90%;
    left: 90%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    z-index: 3;
    pointer-events: none;
}

/* Ligne verticale */
.hero-split__cross::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: var(--color-primary);
    opacity: 1;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Ligne horizontale */
.hero-split__cross::after {
    content: '';
    position: absolute;
    left: -200px;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 3px;
    background: var(--color-primary);
    opacity: 1;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* ============================================================
   CROIX STYLE CROQUIS - Overlay sur l'image droite (haut-gauche)
   ============================================================ */

.hero-split__cross-top {
    position: absolute;
    top: 17%;
    left: 21%;
    transform: translate(-50%, -50%);
    width: 497px;
    height: 308px;
    z-index: 3;
    pointer-events: none;
}

/* Ligne verticale */
.hero-split__cross-top::before {
    content: '';
    position: absolute;
    top: 97px;
    left: 27%;
    transform: translateX(-50%);
    width: 3px;
    height: 61%;
    background: var(--color-primary);
    opacity: 1;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Ligne horizontale */
.hero-split__cross-top::after {
    content: '';
    position: absolute;
    left: -96px;
    top: 50%;
    transform: translateY(-50%);
    width: 59%;
    height: 3px;
    background: var(--color-primary);
    opacity: 1;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* ============================================================
   CROIX STYLE CROQUIS - Partie gauche (fixée au titre)
   ============================================================ */

.hero-split__cross-left {
    position: absolute;
    top: -45px;
    left: -58px;
    width: 220px;
    height: 80px;
    z-index: 3;
    pointer-events: none;
}

/* Ligne verticale */
.hero-split__cross-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 18%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: var(--color-primary);
    opacity: 1;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Ligne horizontale */
.hero-split__cross-left::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 3px;
    background: var(--color-primary);
    opacity: 1;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* ============================================================
   RESPONSIVE - MOBILE
   ============================================================ */

@media (max-width: 767px) {
    .hero-split {
        flex-direction: column;
        min-height: 100vh;
    }

    .hero-split__left {
        width: 100%;
        min-height: 60vh;
        padding: 2rem 1.5rem;
    }

    .hero-split__content {
        max-width: 100%;
    }

    .hero-split__logo img,
    .hero-split__logo .custom-logo {
        max-height: 100px;
    }

    .hero-split__logo-text {
        font-size: 2.5rem;
    }

    .hero-split__subtitle {
        font-size: 1.125rem;
        margin-bottom: 2rem;
    }

    .hero-split__buttons {
        flex-direction: column;
    }

    .hero-split__btn {
        justify-content: center;
        width: 100%;
    }

    .hero-split__right {
        width: 100%;
        min-height: 40vh;
    }
}

/* ============================================================
   RESPONSIVE - TABLET
   ============================================================ */

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-split__left {
        width: 60%;
        padding: 2.5rem 2rem;
    }

    .hero-split__right {
        width: 40%;
    }

    .hero-split__logo img,
    .hero-split__logo .custom-logo {
        max-height: 120px;
    }

    .hero-split__logo-text {
        font-size: 3rem;
    }

    .hero-split__subtitle {
        font-size: 1.25rem;
        margin-bottom: 2.5rem;
    }
}

/* ============================================================
   RESPONSIVE - LARGE DESKTOP
   ============================================================ */

@media (min-width: 1280px) {
    .hero-split__left {
        padding: 3rem 5rem;
    }

    .hero-split__logo img,
    .hero-split__logo .custom-logo {
        max-height: 200px;
    }

    .hero-split__logo-text {
        font-size: 5rem;
    }

    .hero-split__subtitle {
        font-size: 1.75rem;
    }
}

/* ============================================================
   COMPENSATION HEADER FIXE
   ============================================================ */

/* Ajuster si le header prend de la place */
body.has-fixed-header .hero-split {
    margin-top: -80px;
    padding-top: 80px;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: scaleY(0);
    }
    to {
        transform: scaleY(1);
    }
}

@keyframes gradientMove {
    0%, 100% {
        background-position: center top;
    }
    50% {
        background-position: center bottom;
    }
}

