/* ===== BLOC 09 · page Worlds ===== */

@property --a {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

@property --n {
    syntax: '<integer>';
    inherits: false;
    initial-value: 0;
}

.wld {
    padding: 0 0 clamp(72px, 8vw, 120px);
    overflow-x: clip;
}

.wld > .wrap {
    display: grid;
    gap: clamp(64px, 8vw, 120px);
}

.wld h2 {
    font: 800 var(--fs-h2)/1.1 var(--font-body);
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.wld h2 .au,
.wld h3 .au {
    color: var(--gold-2);
}

.wld .k {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font: 700 var(--fs-kicker)/1.4 var(--font-body);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
}

.wld .p {
    font: 500 var(--fs-body)/1.65 var(--font-body);
    color: #c9c2b6;
    max-width: 65ch;
    text-wrap: pretty;
}

.wld .p sup {
    font-size: 12px;
    line-height: 0;
}

.wld .shead {
    display: grid;
    gap: 12px;
    justify-items: start;
}

/* --- 1. le récap --- */

.wld .recap {
    position: relative;
    isolation: isolate;
    display: grid;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(201, 162, 39, 0.25);
    background: #0f0d0a;
    margin-top: calc(-1 * clamp(8px, 1vw, 16px));
}

@media (min-width: 1024px) {
    .wld .recap {
        grid-template-columns: 7fr 5fr;
        min-height: 560px;
    }
}

.wld .recap__body {
    display: grid;
    align-content: center;
    gap: 16px;
    justify-items: start;
    padding: clamp(24px, 4.4vw, 56px);
}

.wld .recap__title {
    font: 800 clamp(2rem, 4.4vw, 3.5rem)/1 var(--font-body);
    letter-spacing: -0.02em;
}

.wld .recap__src {
    font: 500 var(--fs-small)/1.4 var(--font-body);
    margin-bottom: 8px;
}

.wld .recap__src a {
    color: var(--gold-2);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.wld .recap__media {
    position: relative;
    min-height: 320px;
    overflow: hidden;
}

.wld .recap__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 115%;
    object-fit: cover;
    object-position: 50% 25%;
}

.wld .recap__media::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, #0f0d0a 0%, rgba(15, 13, 10, 0.2) 35%, transparent 60%),
        linear-gradient(0deg, rgba(10, 9, 8, 0.9), transparent 55%);
}

@media (max-width: 1023px) {
    .wld .recap__media {
        order: -1;
        aspect-ratio: 16/10;
        min-height: 0;
    }
    .wld .recap__media::before {
        background: linear-gradient(0deg, #0f0d0a 2%, transparent 55%);
    }
}

.wld .score {
    position: absolute;
    z-index: 2;
    left: clamp(16px, 2.4vw, 32px);
    right: clamp(16px, 2.4vw, 32px);
    bottom: clamp(16px, 2.4vw, 28px);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(232, 197, 71, 0.22);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.wld .score > div {
    display: grid;
    gap: 4px;
    align-content: start;
    padding: 14px 6px;
    background: rgba(12, 10, 8, 0.72);
    text-align: center;
}

.wld .score b {
    font: 800 clamp(1.75rem, 3.2vw, 2.75rem)/1 var(--font-display);
    color: var(--gold-2);
    counter-reset: n var(--n);
    --n: var(--to);
}

.wld .score b::before {
    content: counter(n);
}

.wld .score b sup {
    font-size: 0.45em;
    vertical-align: 0.9em;
}

.wld .score span {
    font: 600 12px/1.25 var(--font-body);
    color: #d9d3c9;
}

.wld .score b.sup-e::after {
    content: "e";
    font-size: 0.45em;
    vertical-align: 0.9em;
}

/* --- 2. quoi, quand, où --- */

.wld .what {
    display: grid;
    gap: 28px;
}

.wld .bento {
    display: grid;
    gap: 12px;
}

@media (min-width: 768px) {
    .wld .bento {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        grid-auto-rows: 1fr;
    }
}

.wld .wc {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 12px;
    align-content: start;
    padding: var(--card-pad, 24px);
    border-radius: 20px;
    background: linear-gradient(180deg, #16130e, #0f0d0a);
    border: 1px solid rgba(255, 255, 255, 0.07);
    overflow: hidden;
    transition: border-color 0.4s, transform 0.5s var(--ease);
}

.wld .wc__ic {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(201, 162, 39, 0.14);
    color: var(--gold-2);
    font-size: 18px;
}

.wld .wc h3 {
    align-self: center;
    font: 800 var(--fs-h3)/1.2 var(--font-body);
}

.wld .wc p {
    grid-column: 1/-1;
    font: 500 var(--fs-body)/1.6 var(--font-body);
    color: #c9c2b6;
}

.wld .wc__big {
    grid-column: 1/-1;
    font: 800 clamp(2.5rem, 5vw, 4.25rem)/0.95 var(--font-display);
    letter-spacing: 0.01em;
    color: rgba(248, 246, 240, 0.08);
    margin-top: auto;
    padding-top: 12px;
    user-select: none;
}

.wld .wc::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(115deg, transparent 35%, rgba(255, 236, 170, 0.08) 50%, transparent 65%);
    transform: translateX(-120%);
    transition: transform 0.9s var(--ease);
}

@media (hover: hover) {
    .wld .wc:hover,
    .wld .wc.is-hover {
        border-color: rgba(232, 197, 71, 0.45);
        transform: translateY(-4px);
    }
    .wld .wc:hover::after,
    .wld .wc.is-hover::after {
        transform: translateX(120%);
    }
}

.wld .wc--home {
    border-color: transparent;
    background: linear-gradient(180deg, #1a160f, #100e0b);
}

.wld .wc--home::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    pointer-events: none;
    background: conic-gradient(from var(--a), #0a0908 0 20%, #fdda24 33%, #ef3340 46%, #0a0908 60% 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    animation: b09-spin 8s linear infinite;
}

@keyframes b09-spin {
    to {
        --a: 360deg;
    }
}

.wld .wc--home .wc__ic {
    background: none;
}

.wld .wc--home .be-flag {
    width: 36px;
    height: 24px;
}

.wld .wc--home .tri {
    grid-column: 1/-1;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(90deg, #0a0908 0 33.3%, #fdda24 33.3% 66.6%, #ef3340 66.6%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    margin-top: auto;
}

/* --- 3. le joueur --- */

.wld .player {
    position: relative;
    isolation: isolate;
    display: grid;
    gap: 28px;
}

@media (min-width: 1024px) {
    .wld .player {
        grid-template-columns: 5fr 7fr;
        gap: 56px;
        align-items: center;
    }
}

.wld .player__ghost {
    position: absolute;
    z-index: -1;
    left: 50%;
    top: -0.3em;
    transform: translateX(-50%);
    white-space: nowrap;
    font: 900 clamp(5rem, 17vw, 15rem)/1 var(--font-body);
    letter-spacing: -0.04em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(232, 197, 71, 0.14);
    pointer-events: none;
    user-select: none;
}

.wld .player__photo {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 4/5;
    background: radial-gradient(120% 80% at 50% 0%, rgba(201, 162, 39, 0.25), #0e0c0a 70%);
    border: 1px solid rgba(201, 162, 39, 0.25);
    max-width: 480px;
    width: 100%;
}

.wld .player__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 30%;
    transform: scale(1.25);
    transform-origin: 50% 35%;
}

.wld .player__photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(10, 9, 8, 0.85), transparent 40%);
}

.wld .badges {
    position: absolute;
    z-index: 1;
    left: 20px;
    bottom: 20px;
    display: flex;
    gap: 8px;
}

.wld .badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 8px;
    background: rgba(10, 9, 8, 0.7);
    border: 1px solid rgba(232, 197, 71, 0.5);
    font: 800 12px/1 var(--font-body);
    letter-spacing: 0.1em;
    color: var(--gold-2);
}

.wld .player__txt {
    display: grid;
    gap: 16px;
    justify-items: start;
}

.wld .player__txt h3 {
    font: 800 clamp(1.375rem, 2.4vw, 1.875rem)/1.15 var(--font-body);
    letter-spacing: -0.01em;
}

.wld .palmares {
    list-style: none;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.wld .palmares li {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 12px;
    align-items: baseline;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font: 500 15px/1.5 var(--font-body);
    color: #d9d3c9;
}

.wld .palmares .r {
    font: 800 1.375rem/1 var(--font-display);
    color: var(--gold-2);
}

.wld .palmares .r sup {
    font-size: 0.55em;
    vertical-align: 0.7em;
}

.wld .palmares .r--q {
    font-size: 1rem;
}

.wld .palmares li:first-child {
    color: var(--text);
    font-weight: 700;
}

/* --- 4. citation (composant du bloc 07) + suivre Noa --- */

.wld .voice {
    display: grid;
    gap: 24px;
    justify-items: start;
}

.wld .press-quote {
    position: relative;
    display: grid;
    gap: 20px;
    padding: clamp(16px, 1vw, 12px) clamp(24px, 3vw, 0) clamp(16px, 1vw, 12px) clamp(24px, 3vw, 48px);
    border-left: 3px solid var(--gold-2);
    max-width: 1040px;
    text-align: center;
    margin-inline: auto;
}

@media (min-width: 768px) {
    .wld .press-quote {
        text-align: left;
        margin-inline: 0;
    }
}

.wld .press-quote::before {
    content: "\201C";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -16px;
    font: 900 clamp(5rem, 10vw, 9rem)/1 var(--font-display);
    color: rgba(232, 197, 71, 0.15);
    pointer-events: none;
    z-index: 0;
}

@media (min-width: 768px) {
    .wld .press-quote::before {
        left: clamp(8px, 2vw, 32px);
        transform: none;
        font-size: clamp(7rem, 12vw, 11rem);
    }
}

.wld .press-quote p {
    position: relative;
    font: italic 600 clamp(1.125rem, 2.4vw, 2.125rem)/1.35 var(--font-body);
    letter-spacing: -0.01em;
    text-wrap: pretty;
    margin: 0;
}

.wld .press-quote p span {
    color: var(--text);
}

.wld .press-quote cite {
    font: 600 var(--fs-small)/1.4 var(--font-body);
    font-style: normal;
    color: var(--muted);
}

.wld .press-quote cite a {
    color: var(--gold-2);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

/* --- 5. maillot --- */

.wld .kit {
    display: grid;
    gap: 28px;
}

@media (min-width: 1024px) {
    .wld .kit {
        grid-template-columns: 6fr 6fr;
        gap: 56px;
        align-items: center;
    }
}

.wld .gal {
    display: grid;
    gap: 12px;
    perspective: 1200px;
}

.wld .gal__main {
    position: relative;
    aspect-ratio: 1/1;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(201, 162, 39, 0.25);
    background: #11100d;
    transform-style: preserve-3d;
    transition: transform 0.6s var(--ease);
}

.wld .gal__main img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.45s var(--ease), transform 0.8s var(--ease);
}

.wld .gal__main img:first-child {
    opacity: 1;
}

.wld .gal__main::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 30%, rgba(255, 240, 190, 0.22) 45%, rgba(160, 220, 255, 0.1) 52%, transparent 65%);
    background-size: 250% 100%;
    background-position: 120% 0;
    mix-blend-mode: screen;
    transition: background-position 1.1s var(--ease);
    pointer-events: none;
}

.wld .gal__thumbs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.wld .gal__thumbs a {
    display: block;
    aspect-ratio: 1/1;
    min-height: 44px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.3s, transform 0.3s var(--ease);
}

.wld .gal__thumbs a:focus-visible {
    outline: none;
    box-shadow: var(--ring);
}

.wld .gal__thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (hover: hover) {
    .wld .gal:hover .gal__main,
    .wld .gal.is-hover .gal__main {
        transform: rotateY(-6deg) rotateX(3deg);
    }
    .wld .gal:hover .gal__main::after,
    .wld .gal.is-hover .gal__main::after {
        background-position: -20% 0;
    }
    .wld .gal__thumbs a:hover,
    .wld .gal.is-hover .gal__thumbs a:nth-child(3) {
        border-color: var(--gold-2);
        transform: translateY(-3px);
    }
}

.wld .gal:has(.gal__thumbs a:nth-child(2):is(:hover, :focus-visible)) .gal__main img:first-child {
    opacity: 0;
}

.wld .gal:has(.gal__thumbs a:nth-child(2):is(:hover, :focus-visible)) .gal__main img:nth-child(2) {
    opacity: 1;
}

.wld .gal:has(.gal__thumbs a:nth-child(3):is(:hover, :focus-visible)) .gal__main img:first-child,
.wld .gal.is-hover .gal__main img:first-child {
    opacity: 0;
}

.wld .gal:has(.gal__thumbs a:nth-child(3):is(:hover, :focus-visible)) .gal__main img:nth-child(3),
.wld .gal.is-hover .gal__main img:nth-child(3) {
    opacity: 1;
}

.wld .gal:has(.gal__thumbs a:nth-child(4):is(:hover, :focus-visible)) .gal__main img:first-child {
    opacity: 0;
}

.wld .gal:has(.gal__thumbs a:nth-child(4):is(:hover, :focus-visible)) .gal__main img:nth-child(4) {
    opacity: 1;
}

.wld .gal:has(.gal__thumbs a:nth-child(5):is(:hover, :focus-visible)) .gal__main img:first-child {
    opacity: 0;
}

.wld .gal:has(.gal__thumbs a:nth-child(5):is(:hover, :focus-visible)) .gal__main img:nth-child(5) {
    opacity: 1;
}

.wld .gal.gal--active-2 .gal__main img:first-child {
    opacity: 0;
}

.wld .gal.gal--active-2 .gal__main img:nth-child(2) {
    opacity: 1;
}

.wld .gal.gal--active-3 .gal__main img:first-child {
    opacity: 0;
}

.wld .gal.gal--active-3 .gal__main img:nth-child(3) {
    opacity: 1;
}

.wld .gal.gal--active-4 .gal__main img:first-child {
    opacity: 0;
}

.wld .gal.gal--active-4 .gal__main img:nth-child(4) {
    opacity: 1;
}

.wld .gal.gal--active-5 .gal__main img:first-child {
    opacity: 0;
}

.wld .gal.gal--active-5 .gal__main img:nth-child(5) {
    opacity: 1;
}

.wld .kit__txt {
    display: grid;
    gap: 16px;
    justify-items: start;
}

.wld .kit__txt h2 {
    font-size: clamp(1.75rem, 3.4vw, 2.75rem);
}

.wld .price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-top: 8px;
}

.wld .price b {
    font: 800 clamp(2.25rem, 4vw, 3rem)/1 var(--font-display);
    color: var(--gold-2);
}

.wld .price span {
    font: 500 var(--fs-small)/1.4 var(--font-body);
    color: var(--muted);
}

/* --- 6. sections EN-only (watch, schedule, results) --- */

.wld .section {
    padding: clamp(64px, 8vw, 120px) 0;
}

.wld .section-head {
    display: grid;
    gap: 12px;
    margin-bottom: 32px;
}

.wld .section-head.center {
    text-align: center;
    justify-items: center;
}

.wld .section-head .eyebrow {
    font: 700 var(--fs-kicker)/1.4 var(--font-body);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
}

.wld .section-head .h2 {
    font: 800 var(--fs-h2)/1.1 var(--font-body);
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.wld .section-head .lead {
    font: 500 var(--fs-body)/1.6 var(--font-body);
    color: var(--muted);
    max-width: 54ch;
}

.wld .wlist,
.wld .wnudge,
.wld .wrecap {
    max-width: 840px;
    margin: 0 auto;
}

.wld .anvers-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* --- 7. mouvement --- */

@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .wld .recap__media img {
            animation: b09-par linear both;
            animation-timeline: view();
        }
        @keyframes b09-par {
            from {
                transform: translateY(-12%);
            }
            to {
                transform: translateY(0);
            }
        }

        .wld .score b {
            animation: b09-count linear both;
            animation-timeline: view();
            animation-range: entry 20% cover 45%;
        }
        @keyframes b09-count {
            from {
                --n: 0;
            }
            to {
                --n: var(--to);
            }
        }

        .wld .wc {
            animation: b09-tileIn linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 70%;
        }
        @keyframes b09-tileIn {
            from {
                opacity: 0;
                translate: 0 40px;
                scale: 0.97;
            }
        }

        .wld .player__ghost {
            animation: b09-ghost linear both;
            animation-timeline: view();
        }
        @keyframes b09-ghost {
            from {
                translate: 12% 0;
            }
            to {
                translate: -12% 0;
            }
        }

        .wld .player__photo img {
            animation: b09-zoom linear both;
            animation-timeline: view();
            animation-range: entry 0% cover 60%;
        }
        @keyframes b09-zoom {
            from {
                transform: scale(1.45);
            }
            to {
                transform: scale(1.25);
            }
        }

        .wld .palmares li {
            animation: b09-li linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 70%;
        }
        @keyframes b09-li {
            from {
                opacity: 0;
                translate: -24px 0;
            }
        }

        .wld .gal__main {
            animation: b09-kitIn linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 80%;
        }
        @keyframes b09-kitIn {
            from {
                opacity: 0;
                transform: rotateY(14deg) translateY(40px);
            }
        }
    }
}

@media (prefers-reduced-motion: reduce) {
    .wld *,
    .wld *::before,
    .wld *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* --- responsive --- */

@media (max-width: 767px) {
    .wld .recap__media {
        aspect-ratio: 4/3;
    }

    .wld .score {
        left: 12px;
        right: 12px;
        bottom: 12px;
        border-radius: 12px;
    }

    .wld .score > div {
        padding: 10px 4px;
    }

    .wld .score b {
        font-size: 1.5rem;
    }

    .wld .wc__big {
        display: none;
    }

    .wld .player__photo {
        aspect-ratio: 1/1;
        max-width: none;
    }

    .wld .player__ghost {
        top: -0.1em;
    }
}
