/* ═══════════════════════════════════════════════════════════════════════════
   KODA HERO SPLIT — Accueil Worlds / Academy
   ═══════════════════════════════════════════════════════════════════════════
   Split screen 50/50 avec expansion au hover.
   Dark Academia style.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Section principale ────────────────────────────────────────────── */

.koda-hero-split {
    position: relative;
    display: flex;
    width: 100%;
    height: var(--hero-height, 85vh);
    min-height: 500px;
    overflow: hidden;
    background: var(--koda-void, #0a0a0a);
}

/* ── Côtés ─────────────────────────────────────────────────────────── */

.koda-hero-split__side {
    position: relative;
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: flex 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Background images */
.koda-hero-split__worlds {
    background-image:
        linear-gradient(135deg, rgba(10, 10, 10, 0.5) 0%, rgba(10, 10, 10, 0.3) 100%),
        url('../../uploads/koda-heroes/hero-worlds.jpg');
}

.koda-hero-split__academy {
    background-image:
        linear-gradient(225deg, rgba(10, 10, 10, 0.5) 0%, rgba(10, 10, 10, 0.3) 100%),
        url('../../uploads/koda-heroes/hero-academy.jpg');
}

/* Overlay sombre */
.koda-hero-split__overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.45);
    transition: background 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

/* Séparateur central doré */
.koda-hero-split__worlds::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background: linear-gradient(
        to bottom,
        transparent,
        var(--koda-gold, #d4af37) 20%,
        var(--koda-gold, #d4af37) 80%,
        transparent
    );
    opacity: 0.4;
    z-index: 5;
    transition: opacity 0.5s ease;
}

/* ── Contenu ───────────────────────────────────────────────────────── */

.koda-hero-split__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    max-width: 420px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.5s ease;
}

.koda-hero-split__logo {
    height: 56px;
    width: auto;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.koda-hero-split__title {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--koda-text-primary, #f4f1ea);
    margin: 0 0 0.75rem;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.koda-hero-split__desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--koda-text-secondary, #a89f8d);
    margin: 0 0 1.75rem;
    line-height: 1.5;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* CTA button */
.koda-hero-split__cta {
    display: inline-block;
    padding: 0.7rem 2.2rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--koda-void, #0a0a0a);
    background: var(--koda-gold, #d4af37);
    border: 1px solid var(--koda-gold, #d4af37);
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.koda-hero-split__cta:hover {
    background: var(--koda-gold-light, #e5c76b);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px var(--koda-gold-glow, rgba(212, 175, 55, 0.25));
}

/* ── Hover : expansion ────────────────────────────────────────────── */

/* Worlds hovered → 65% */
.koda-hero-split__worlds:hover {
    flex: 1.86 1 0%; /* ~65% vs 35% */
}

.koda-hero-split__worlds:hover .koda-hero-split__overlay {
    background: rgba(10, 10, 10, 0.25);
}

.koda-hero-split__worlds:hover .koda-hero-split__content {
    transform: scale(1.05);
}

/* Quand Worlds est hovered, assombrir Academy */
.koda-hero-split__worlds:hover ~ .koda-hero-split__academy .koda-hero-split__overlay {
    background: rgba(10, 10, 10, 0.65);
}

.koda-hero-split__worlds:hover ~ .koda-hero-split__academy .koda-hero-split__content {
    opacity: 0.7;
}

/* Academy hovered → 65% */
.koda-hero-split__academy:hover {
    flex: 1.86 1 0%;
}

.koda-hero-split__academy:hover .koda-hero-split__overlay {
    background: rgba(10, 10, 10, 0.25);
}

.koda-hero-split__academy:hover .koda-hero-split__content {
    transform: scale(1.05);
}

/* Quand Academy est hovered, assombrir Worlds via :has() */
.koda-hero-split:has(.koda-hero-split__academy:hover) .koda-hero-split__worlds .koda-hero-split__overlay {
    background: rgba(10, 10, 10, 0.65);
}

.koda-hero-split:has(.koda-hero-split__academy:hover) .koda-hero-split__worlds .koda-hero-split__content {
    opacity: 0.7;
}

/* Masquer le séparateur au hover */
.koda-hero-split:has(.koda-hero-split__side:hover) .koda-hero-split__worlds::after {
    opacity: 0;
}

/* ── Titre central flottant ───────────────────────────────────────── */

.koda-hero-split__center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    pointer-events: none;
    padding: 1.5rem 2.5rem;
    background: rgba(10, 10, 10, 0.75);
    border: 1px solid var(--koda-gold-border, rgba(212, 175, 55, 0.3));
    border-radius: 8px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.koda-hero-split__center h1 {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--koda-text-primary, #f4f1ea);
    margin: 0;
    line-height: 1.4;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* ═══════════════════════════════════════════════════════════════════════════
   SLOGAN — Bandeau sous le split
   ═══════════════════════════════════════════════════════════════════════════ */

.koda-hero-split__slogan {
    padding: 2rem 1.5rem;
    text-align: center;
    background: transparent;
}

.koda-hero-split__slogan p {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: 1.5rem;
    font-weight: 500;
    font-style: italic;
    color: var(--koda-text-secondary, #a89f8d);
    margin: 0;
    letter-spacing: 0.02em;
    line-height: 1.4;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TRUST PILLARS — Bloc confiance sous le split
   ═══════════════════════════════════════════════════════════════════════════ */

.koda-trust-pillars {
    background: var(--koda-panel, #121212);
    border-top: 1px solid var(--koda-border, #2d2a25);
    border-bottom: 1px solid var(--koda-border, #2d2a25);
    padding: 3.5rem 2rem;
}

.koda-trust-pillars__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.koda-trust-pillars__item {
    text-align: center;
    padding: 1.5rem 1rem;
}

.koda-trust-pillars__icon {
    display: block;
    font-size: 2rem;
    margin-bottom: 1rem;
    filter: grayscale(0.3);
}

.koda-trust-pillars__item h3 {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--koda-gold, #d4af37);
    margin: 0 0 0.5rem;
    letter-spacing: 0.01em;
}

.koda-trust-pillars__item p {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: var(--koda-text-secondary, #a89f8d);
    margin: 0;
    line-height: 1.55;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile (<768px) : stack vertical
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .koda-hero-split {
        flex-direction: column;
        height: auto;
        min-height: auto;
    }

    .koda-hero-split__side {
        flex: none;
        height: 50vh;
        min-height: 300px;
        transition: none;
    }

    /* Désactiver l'expansion hover sur mobile */
    .koda-hero-split__worlds:hover,
    .koda-hero-split__academy:hover {
        flex: none;
    }

    .koda-hero-split__worlds:hover .koda-hero-split__content,
    .koda-hero-split__academy:hover .koda-hero-split__content {
        transform: none;
    }

    .koda-hero-split__worlds:hover ~ .koda-hero-split__academy .koda-hero-split__overlay,
    .koda-hero-split:has(.koda-hero-split__academy:hover) .koda-hero-split__worlds .koda-hero-split__overlay {
        background: rgba(10, 10, 10, 0.45);
    }

    .koda-hero-split__worlds:hover ~ .koda-hero-split__academy .koda-hero-split__content,
    .koda-hero-split:has(.koda-hero-split__academy:hover) .koda-hero-split__worlds .koda-hero-split__content {
        opacity: 1;
    }

    /* Séparateur horizontal au lieu de vertical */
    .koda-hero-split__worlds::after {
        top: auto;
        bottom: 0;
        right: 10%;
        left: 10%;
        height: 1px;
        width: 80%;
    }

    /* Titre central repositionné */
    .koda-hero-split__center {
        top: auto;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%) translateY(50%);
        width: calc(100% - 2rem);
        max-width: 400px;
        padding: 1rem 1.5rem;
    }

    .koda-hero-split__center h1 {
        font-size: 1.3rem;
    }

    .koda-hero-split__title {
        font-size: 1.6rem;
    }

    .koda-hero-split__logo {
        height: 44px;
    }

    /* Trust pillars : stack */
    .koda-trust-pillars {
        padding: 3rem 1.5rem;
    }

    .koda-trust-pillars__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ── Tablette (769–1024px) ──────────────────────────────────────── */

@media (min-width: 769px) and (max-width: 1024px) {
    .koda-hero-split__center h1 {
        font-size: 1.5rem;
    }

    .koda-hero-split__title {
        font-size: 1.75rem;
    }
}
