.hcb-hero {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    height: 80vh;
    min-height: 560px;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding: 0 !important;
    background: #0f1511;
    isolation: isolate;
    border-radius: 0 !important;
}

.hcb-hero.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
}

.hcb-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hcb-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 1.2s ease, transform 6s ease;
    filter: saturate(1.02) contrast(1.02);
}

.hcb-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hcb-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(
            90deg,
            rgba(8, 12, 10, 0.72) 0%,
            rgba(8, 12, 10, 0.48) 34%,
            rgba(8, 12, 10, 0.24) 62%,
            rgba(8, 12, 10, 0.10) 100%
        ),
        linear-gradient(
            180deg,
            rgba(201, 162, 97, 0.08) 0%,
            rgba(201, 162, 97, 0.02) 100%
        );
}

.hcb-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 30%, rgba(255,255,255,0.10), transparent 30%),
        radial-gradient(circle at 82% 20%, rgba(212,163,115,0.10), transparent 26%),
        linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0));
    mix-blend-mode: screen;
}

.hcb-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 760px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 88px 8% 94px;
}

.hcb-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    padding: 8px 16px;
    margin-bottom: 18px;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: rgba(255,255,255,0.88);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.hcb-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d4a373;
    box-shadow: 0 0 0 6px rgba(212,163,115,0.14);
}

.hcb-content h1 {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: clamp(2.8rem, 5.4vw, 5.4rem);
    line-height: 0.98;
    font-weight: 800;
    letter-spacing: -0.04em;
    text-wrap: balance;
    text-shadow: 0 6px 24px rgba(0,0,0,0.16);
}

.hcb-content p {
    margin: 0 0 30px;
    max-width: 600px;
    color: rgba(255,255,255,0.88);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.75;
    text-wrap: pretty;
    text-shadow: 0 4px 16px rgba(0,0,0,0.14);
}

.hcb-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.hcb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 15px 30px;
    border-radius: 999px;
    text-decoration: none;
    border: 1px solid transparent;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
    transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease, border-color 0.28s ease;
    box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}

.hcb-btn-primary {
    background: linear-gradient(135deg, #d9ae7b 0%, #c8945e 100%);
    color: #fff;
}

.hcb-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 46px rgba(0,0,0,0.22);
}

.hcb-btn-secondary {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-color: rgba(255,255,255,0.16);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hcb-btn-secondary:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.12);
}

.hcb-dots {
    position: absolute;
    left: 8%;
    bottom: 30px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hcb-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.34);
    transition: all 0.3s ease;
}

.hcb-dot.active {
    width: 30px;
    background: #ffffff;
    box-shadow: 0 0 0 5px rgba(255,255,255,0.10);
}

/* Compatibilité éditeur Gutenberg */
.wp-block[data-type="hero-carousel/block"] {
    max-width: 100%;
}

.editor-styles-wrapper .hcb-hero.alignfull {
    width: 100%;
    max-width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Containers thème */
.entry-content > .wp-block,
.entry-content > * {
    max-width: 100%;
}

.wp-site-blocks,
.site-content,
.ast-container,
.entry-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Tablette */
@media (max-width: 1200px) {
    .hcb-hero {
        height: 76vh;
        min-height: 520px;
    }

    .hcb-content {
        max-width: 700px;
        padding: 78px 7% 88px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .hcb-hero {
        height: 68vh;
        min-height: 460px;
    }

    .hcb-overlay {
        background:
            linear-gradient(
                180deg,
                rgba(8, 12, 10, 0.42) 0%,
                rgba(8, 12, 10, 0.34) 50%,
                rgba(8, 12, 10, 0.24) 100%
            ),
            linear-gradient(
                180deg,
                rgba(201, 162, 97, 0.05) 0%,
                rgba(201, 162, 97, 0.01) 100%
            );
    }

    .hcb-content {
        max-width: 100%;
        padding: 42px 22px 78px;
    }

    .hcb-badge {
        min-height: 34px;
        padding: 7px 14px;
        margin-bottom: 14px;
        font-size: 11px;
    }

    .hcb-content h1 {
        font-size: clamp(2.1rem, 9vw, 3.2rem);
        margin-bottom: 14px;
    }

    .hcb-content p {
        margin-bottom: 22px;
        line-height: 1.65;
    }

    .hcb-btn {
        min-height: 48px;
        padding: 12px 22px;
        font-size: 15px;
    }

    .hcb-dots {
        left: 22px;
        bottom: 18px;
        gap: 8px;
    }

    .hcb-dot {
        width: 9px;
        height: 9px;
    }

    .hcb-dot.active {
        width: 24px;
    }
}