/* =========================================================
   Hero — accroche, chiffres clés et visuel
   ========================================================= */

.kc-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100vh;
    min-height: 100svh;
    padding: 124px 0 88px;
    overflow: hidden;
    background: linear-gradient(180deg, #FAFAF7 0%, #F4F2EC 100%);
    font-family: var(--kc-font);
    color: var(--kc-text);
    isolation: isolate;
}

/* ---------- Fond : halo doré ---------- */
.kc-hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.kc-hero__glow {
    position: absolute;
    top: -12%;
    right: -8%;
    width: 52vw;
    max-width: 760px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(198, 168, 93, 0.22) 0%, rgba(198, 168, 93, 0) 65%);
    filter: blur(20px);
}

/* ---------- Layout ---------- */
.kc-hero__container {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: clamp(2.5rem, 6vw, 6rem);
    width: 100%;
    max-width: var(--kc-container);
    margin-inline: auto;
    padding-inline: 24px;
}

/* ---------- Contenu ---------- */
.kc-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 1.5rem;
    padding: 0.45rem 0.9rem 0.45rem 0.7rem;
    border: 1px solid rgba(198, 168, 93, 0.35);
    border-radius: var(--kc-radius-pill);
    background: rgba(255, 255, 255, 0.7);
    color: var(--kc-gold-700);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.kc-hero__eyebrow-dot {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--kc-gold);
}

.kc-hero__eyebrow-dot::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid var(--kc-gold);
    animation: kc-hero-pulse 2.4s var(--kc-ease) infinite;
}

.kc-hero__title {
    margin: 0 0 1.5rem;
    color: var(--kc-ink);
    font-size: clamp(2.3rem, 3.8vw, 3.5rem);
    font-weight: 600;
    line-height: 1.06;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.kc-hero__accent {
    display: block;
    background: linear-gradient(100deg, var(--kc-gold-700) 0%, var(--kc-gold-600) 55%, var(--kc-gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.kc-hero__subtitle {
    max-width: 34rem;
    margin: 0 0 2rem;
    color: var(--kc-text-muted);
    font-size: clamp(1.02rem, 1.3vw, 1.15rem);
    font-weight: 400;
    line-height: 1.7;
}

.kc-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* ---------- Chiffres clés ---------- */
.kc-hero__stats {
    display: inline-flex;
    align-items: center;
    margin: 2.5rem 0 0;
    padding: 0.85rem 0.25rem;
    border: 1px solid var(--kc-border);
    border-radius: var(--kc-radius-lg);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: var(--kc-shadow-md);
    list-style: none;
}

.kc-hero__stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.2rem 1.15rem;
}

.kc-hero__stat + .kc-hero__stat {
    border-left: 1px solid var(--kc-border);
}

.kc-hero__stat-icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--kc-radius-md);
    background: var(--kc-gold-soft);
    color: var(--kc-gold-700);
    font-size: 1.1rem;
}

.kc-hero__stat-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.kc-hero__stat-value {
    color: var(--kc-ink);
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.01em;
}

.kc-hero__stat-label {
    color: var(--kc-text-muted);
    font-size: 0.75rem;
    line-height: 1.3;
    white-space: nowrap;
}

/* ---------- Visuel ---------- */
.kc-hero__visual {
    position: relative;
    justify-self: end;
    width: 100%;
}

.kc-hero__frame {
    position: absolute;
    inset: 28px -28px -28px 28px;
    border: 1px solid rgba(198, 168, 93, 0.45);
    border-radius: 32px;
    animation: kc-hero-fade 1.2s var(--kc-ease) 0.6s both;
}

.kc-hero__media {
    position: relative;
    margin: 0;
    aspect-ratio: 5 / 4;
    max-height: min(550px, calc(100svh - 220px));
    overflow: hidden;
    border-radius: 28px;
    background: var(--kc-ink);
    box-shadow: var(--kc-shadow-lg);
    animation: kc-hero-media 1.3s var(--kc-ease) 0.15s both;
}

.kc-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transform: scale(1.04);
    transition: transform 1.6s var(--kc-ease);
}

.kc-hero__visual:hover .kc-hero__media img {
    transform: scale(1);
}

.kc-hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 27, 45, 0) 55%, rgba(15, 27, 45, 0.55) 100%);
    pointer-events: none;
}

.kc-hero__caption {
    position: absolute;
    left: 20px;
    bottom: 20px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--kc-radius-pill);
    background: rgba(15, 27, 45, 0.35);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* ---------- Cartes flottantes ---------- */
.kc-hero__card {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    max-width: 270px;
    padding: 0.9rem 1.1rem 0.9rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--kc-radius-lg);
    background: rgba(255, 255, 255, 0.86);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: var(--kc-shadow-md);
}

.kc-hero__card--top {
    top: 12%;
    left: -56px;
    animation:
        kc-hero-card-in 0.9s var(--kc-ease) 0.9s both,
        kc-hero-float 6s ease-in-out 1.8s infinite;
}

.kc-hero__card--bottom {
    right: -40px;
    bottom: 16%;
    animation:
        kc-hero-card-in 0.9s var(--kc-ease) 1.1s both,
        kc-hero-float 6s ease-in-out 3s infinite;
}

.kc-hero__card-icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--kc-radius-md);
    background: var(--kc-gold-soft);
    color: var(--kc-gold-700);
    font-size: 1.15rem;
}

.kc-hero__card-icon--ink {
    background: var(--kc-ink);
    color: var(--kc-gold);
}

.kc-hero__card-body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.kc-hero__card-body strong {
    color: var(--kc-ink);
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
}

.kc-hero__card-body span {
    color: var(--kc-text-muted);
    font-size: 0.75rem;
    line-height: 1.35;
}

/* ---------- Indicateur de défilement ---------- */
.kc-hero__scroll {
    position: absolute;
    left: 50%;
    bottom: 28px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--kc-text-muted);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    transform: translateX(-50%);
    animation: kc-hero-fade 1s ease 1.6s both;
    transition: color 0.25s ease;
}

.kc-hero__scroll:hover,
.kc-hero__scroll:focus-visible {
    color: var(--kc-ink);
}

.kc-hero__scroll:focus-visible {
    outline: 2px solid var(--kc-gold-ring);
    outline-offset: 6px;
    border-radius: var(--kc-radius-sm);
}

.kc-hero__scroll-mouse {
    position: relative;
    width: 22px;
    height: 34px;
    border: 1.5px solid currentColor;
    border-radius: 12px;
}

.kc-hero__scroll-mouse span {
    position: absolute;
    top: 7px;
    left: 50%;
    width: 3px;
    height: 7px;
    margin-left: -1.5px;
    border-radius: 2px;
    background: var(--kc-gold);
    animation: kc-hero-wheel 1.8s var(--kc-ease) infinite;
}

/* ---------- Animations ---------- */
.kc-hero__reveal {
    animation: kc-hero-up 0.9s var(--kc-ease) both;
    animation-delay: calc(0.1s + var(--d, 0) * 0.1s);
}

@keyframes kc-hero-up {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: none; }
}

@keyframes kc-hero-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes kc-hero-media {
    from { opacity: 0; transform: translateY(32px) scale(0.97); }
    to   { opacity: 1; transform: none; }
}

@keyframes kc-hero-card-in {
    from { opacity: 0; transform: translateY(16px) scale(0.96); }
    to   { opacity: 1; transform: none; }
}

@keyframes kc-hero-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

@keyframes kc-hero-pulse {
    0%   { opacity: 0.9; transform: scale(0.6); }
    100% { opacity: 0;   transform: scale(1.6); }
}

@keyframes kc-hero-wheel {
    0%   { opacity: 0; transform: translateY(-3px); }
    30%  { opacity: 1; }
    100% { opacity: 0; transform: translateY(9px); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
    .kc-hero__card--top    { left: -24px; }
    .kc-hero__card--bottom { right: -16px; }
}

@media (max-width: 991.98px) {
    .kc-hero {
        min-height: 0;
        padding: 120px 0 72px;
    }

    .kc-hero__container {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }

    .kc-hero__visual {
        justify-self: center;
        max-width: 560px;
    }

    .kc-hero__media {
        aspect-ratio: 4 / 3;
        max-height: none;
    }

    .kc-hero__frame {
        inset: 18px -18px -18px 18px;
    }

    .kc-hero__card--top    { top: -20px; left: 16px; }
    .kc-hero__card--bottom { right: 16px; bottom: -24px; max-width: 236px; }

    .kc-hero__scroll {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .kc-hero {
        padding: 108px 0 64px;
    }

    .kc-hero__container {
        padding-inline: 20px;
        gap: 3rem;
    }

    .kc-hero__eyebrow {
        font-size: 0.75rem;
    }

    .kc-hero__actions .kc-btn {
        flex: 1 1 100%;
    }

    .kc-hero__stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        width: 100%;
        margin-top: 2rem;
        padding: 1rem 0;
    }

    .kc-hero__stat {
        flex-direction: column;
        gap: 0.6rem;
        padding: 0 0.5rem;
        text-align: center;
    }

    .kc-hero__stat-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .kc-hero__stat-text {
        align-items: center;
    }

    .kc-hero__stat-label {
        white-space: normal;
    }

    .kc-hero__media {
        aspect-ratio: 4 / 3;
        border-radius: 22px;
    }

    .kc-hero__frame {
        display: none;
    }

    .kc-hero__card--top {
        display: none;
    }

    .kc-hero__card--bottom {
        position: relative;
        inset: auto;
        max-width: none;
        margin: -22px 12px 0;
    }

    .kc-hero__caption {
        top: 14px;
        bottom: auto;
        left: 14px;
    }
}

@media (min-width: 992px) and (max-height: 720px) {
    .kc-hero__scroll {
        display: none;
    }
}
