/**
 * Hero Base Styles
 * Styles communs à tous les layouts
 */

:root {
    --hero-title-color: #ffffff;
    --hero-subtitle-color: #ffffff;
    --hero-button-bg: #fb4d84;
    --hero-button-color: #ffffff;
    --hero-animation-speed: 800ms;
    --hero-overlay-opacity: 0.3;
}

/**
 * Base Hero Styles
 * Styles communs à tous les types de hero
 */

.wptotem-hero {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: hidden;
}

.wptotem-hero--elementor {
    /* Force full width for Elementor templates */
    max-width: none !important;
    min-height: auto !important;
    padding: 0 !important;
}

.wptotem-hero--elementor .elementor {
    width: 100% !important;
}

/* For ACF layouts, keep the full height */
.wptotem-hero:not(.wptotem-hero--elementor) {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Background */
.wptotem-hero__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.wptotem-hero__bg-image,
.wptotem-hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Overlay */
.wptotem-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, var(--hero-overlay-opacity));
    z-index: 2;
}

/* Container */
.wptotem-hero__container {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Content */
.wptotem-hero__content {
    text-align: center;
}

/* Position variants */
.wptotem-hero--h-left .wptotem-hero__content {
    text-align: left;
}

.wptotem-hero--h-right .wptotem-hero__content {
    text-align: right;
}

.wptotem-hero--v-top {
    align-items: flex-start;
    padding-top: 100px;
}

.wptotem-hero--v-bottom {
    align-items: flex-end;
    padding-bottom: 100px;
}

/* Typography */
.wptotem-hero__title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--hero-title-color);
    margin: 0 0 1rem;
}

.wptotem-hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    line-height: 1.6;
    color: var(--hero-subtitle-color);
    margin: 0 0 2rem;
    opacity: 0.9;
}

/* Button */
.wptotem-hero__actions {
    margin-top: 2rem;
}

.wptotem-hero__button {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--hero-button-color);
    background: var(--hero-button-bg);
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.wptotem-hero__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    opacity: 0.9;
}

.wptotem-hero__button:active {
    transform: translateY(0);
}

/* Animations */
.wptotem-hero--fade {
    animation: heroFadeIn var(--hero-animation-speed) ease-out;
}

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

/* Parallax effect */
.wptotem-hero--parallax .wptotem-hero__background {
    transform: translateY(var(--parallax-offset, 0));
    will-change: transform;
}

/* Disable parallax on mobile */
@media (max-width: 768px) {
    .wptotem-hero--parallax .wptotem-hero__background {
        transform: none !important;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .wptotem-hero {
        min-height: 80vh;
    }

    .wptotem-hero__container {
        padding: 0 15px;
    }

    .wptotem-hero__title {
        margin-bottom: 0.75rem;
    }

    .wptotem-hero__subtitle {
        margin-bottom: 1.5rem;
    }

    .wptotem-hero__button {
        padding: 0.875rem 2rem;
        font-size: 0.9375rem;
    }

    .wptotem-hero--v-top {
        padding-top: 80px;
    }

    .wptotem-hero--v-bottom {
        padding-bottom: 80px;
    }
}

@media (max-width: 480px) {
    .wptotem-hero {
        min-height: 70vh;
    }

    .wptotem-hero__button {
        width: 100%;
        max-width: 300px;
    }
}
