/**
 * Hunik AI Hero Block Styles V2
 * Fond blanc, animations modernes, charte groupe
 */

/* Hero Section — plein écran, colle en haut absolu, passe derrière le header */
.wp-block-group.hunik-hero {
    position: relative;
    background: var(--color-white, #ffffff);
    overflow: hidden;
    padding: 170px 24px 160px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    /* Annuler toute marge TT25 et coller au top */
    margin-top: 0 !important;
    margin-block-start: 0 !important;
}

/* Background pattern subtil */
.hunik-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(56, 84, 255, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(144, 36, 245, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

/* Motif de points décoratifs */
.hunik-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle, rgba(56, 84, 255, 0.06) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 1;
}

/* SVG Visual (right side) */
.hunik-hero__visual {
    position: absolute;
    right: -60px;
    top: 50%;
    transform: translateY(-50%);
    width: 550px;
    height: 380px;
    opacity: 0.6;
    z-index: 2;
}

@media (max-width: 1024px) {
    .hunik-hero__visual {
        right: -150px;
        width: 450px;
        height: 310px;
        opacity: 0.3;
    }
}

@media (max-width: 768px) {
    .hunik-hero__visual {
        display: none;
    }
}

/* Content container */
.hunik-hero__content {
    position: relative;
    z-index: 3;
    max-width: 700px;
    animation: fadeInSlideUp 1s ease-out;
}

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

/* Hero Title */
.hunik-hero__title {
    font-family: var(--font-primary, 'Montserrat', sans-serif);
    font-size: 48px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--color-dark, #333333);
    margin: 0 0 16px 0;
    letter-spacing: -1px;
    animation: fadeInSlideUp 1s ease-out 0.1s both;
}

.hunik-hero__title .ha-gradient-text {
    background: linear-gradient(135deg, #3854ff 0%, #9024f5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 768px) {
    .hunik-hero__title {
        font-size: 36px;
    }
}

/* Hero Subtitle */
.hunik-hero__subtitle {
    font-family: var(--font-secondary, 'Raleway', sans-serif);
    font-size: 18px;
    line-height: 1.6;
    color: var(--color-text-light, #707070);
    margin: 0 0 24px 0;
    animation: fadeInSlideUp 1s ease-out 0.2s both;
}

@media (max-width: 768px) {
    .hunik-hero__subtitle {
        font-size: 16px;
    }
}

/* Hero Accent */
.hunik-hero__accent {
    font-family: var(--font-secondary, 'Raleway', sans-serif);
    font-size: 14px;
    line-height: 1.8;
    color: var(--color-text-light, #707070);
    margin: 0 0 32px 0;
    padding: 16px 0;
    border-top: 1px solid rgba(56, 84, 255, 0.15);
    animation: fadeInSlideUp 1s ease-out 0.3s both;
}

/* CTA Buttons */
.hunik-hero__buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInSlideUp 1s ease-out 0.4s both;
}

.hunik-hero__btn {
    padding: 14px 32px;
    border-radius: 8px;
    font-family: var(--font-secondary, 'Raleway', sans-serif);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    text-align: center;
}

.hunik-hero__btn--primary {
    background: linear-gradient(135deg, #3854ff 0%, #9024f5 100%);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(56, 84, 255, 0.2);
}

.hunik-hero__btn--primary:hover {
    box-shadow: 0 12px 36px rgba(56, 84, 255, 0.35);
    transform: translateY(-3px);
}

.hunik-hero__btn--secondary {
    background: transparent;
    color: var(--color-primary, #3854ff);
    border: 1.5px solid rgba(56, 84, 255, 0.3);
}

.hunik-hero__btn--secondary:hover {
    border-color: var(--color-primary, #3854ff);
    background: rgba(56, 84, 255, 0.05);
}

@media (max-width: 768px) {
    .hunik-hero__buttons {
        flex-direction: column;
    }

    .hunik-hero__btn {
        width: 100%;
    }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .wp-block-group.hunik-hero {
        padding: 60px 24px 50px;
        min-height: 420px;
    }
}

@media (max-width: 768px) {
    .wp-block-group.hunik-hero {
        padding: 50px 24px 100px;
        min-height: auto;
    }
}

/* Pages internes : hero réduit */
body:not(.home) .wp-block-group.hunik-hero {
    min-height: 50vh;
    padding-top: 120px;
    align-items: flex-start;
}
