/* ==========================================================================
   MK HAUTE COUTURE — DÉGRADÉS LUXE ANIMÉS (Compositor GPU, in oklab, WCAG)
   ========================================================================== */
:root {
    --in-oklab: ;
}

@supports (background: linear-gradient(in oklab, white, black)) {
    :root {
        --in-oklab: in oklab;
    }
}

/* ── Scène Hero Haute Couture (Zéro photo, Logo + Dégradés Soie & Or) ── */
.hero-luxury-stage {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: clamp(440px, 52vw, 570px);
    padding: 1.35rem;
    border-radius: 26px;
    border: 1px solid var(--mk-border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem;
    background:
        radial-gradient(circle at 80% 18%, rgba(235, 213, 174, 0.28), transparent 55%),
        radial-gradient(circle at 18% 82%, rgba(230, 196, 189, 0.22), transparent 55%),
        linear-gradient(145deg var(--in-oklab), #1f1728 0%, #120e19 48%, #261b17 100%);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(235, 213, 174, 0.32);
}

.lux-aurora {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(42px);
    opacity: 0.65;
}
.lux-aurora-a {
    width: 72%;
    aspect-ratio: 1;
    inset-block-start: -24%;
    inset-inline-end: -18%;
    background: radial-gradient(circle, rgba(235, 213, 174, 0.55) 0%, rgba(201, 171, 122, 0.14) 55%, transparent 72%);
}
.lux-aurora-b {
    width: 68%;
    aspect-ratio: 1;
    inset-block-end: -22%;
    inset-inline-start: -20%;
    background: radial-gradient(circle, rgba(230, 196, 189, 0.42) 0%, rgba(164, 96, 114, 0.18) 52%, transparent 72%);
}
.lux-aurora-c {
    width: 56%;
    aspect-ratio: 1;
    inset-block-start: 28%;
    inset-inline-start: 24%;
    background: radial-gradient(circle, rgba(201, 171, 122, 0.26) 0%, transparent 70%);
}

.lux-sheen,
.canvas-shimmer {
    position: absolute;
    inset: -30% -60%;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(
        112deg var(--in-oklab),
        transparent 38%,
        rgba(235, 213, 174, 0.16) 49%,
        rgba(255, 248, 236, 0.24) 50%,
        rgba(235, 213, 174, 0.12) 52%,
        transparent 63%
    );
    transform: translate3d(-45%, 0, 0);
}

.lux-weave {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.16;
    background:
        repeating-linear-gradient(-45deg, rgba(235, 213, 174, 0.22) 0 1px, transparent 1px 18px),
        repeating-linear-gradient(45deg, rgba(235, 213, 174, 0.12) 0 1px, transparent 1px 18px);
}

.hero-stage-top {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
}

.stage-edition {
    padding: 0.32rem 0.85rem;
    border-radius: 999px;
    background: rgba(11, 10, 15, 0.55);
    border: 1px solid var(--mk-border);
    color: var(--mk-gold-light);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.motion-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.34rem 0.78rem;
    border-radius: 999px;
    background: rgba(11, 10, 15, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: var(--mk-muted);
    font: inherit;
    font-size: 0.72rem;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}
.motion-toggle-btn:hover { border-color: var(--mk-gold); color: var(--mk-text); }

.hero-stage-emblem {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 1.75rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
}

.emblem-halo {
    position: absolute;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    border: 1px solid rgba(235, 213, 174, 0.26);
    background: radial-gradient(circle, rgba(235, 213, 174, 0.14) 0%, transparent 68%);
    pointer-events: none;
    z-index: -1;
}

.hero-stage-logo {
    width: clamp(148px, 24vw, 210px);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 26px rgba(235, 213, 174, 0.35));
}

.hero-stage-tagline {
    margin: 0.35rem 0 0;
    font-family: var(--mk-font-serif);
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-style: italic;
    font-weight: 600;
    color: var(--mk-gold-light);
    line-height: 1.1;
}

.hero-stage-motto {
    margin: 0;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mk-text);
    opacity: 0.88;
}

.hero-stage-tags {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
}
.hero-stage-tags li {
    padding: 0.25rem 0.72rem;
    border-radius: 999px;
    font-size: 0.73rem;
    color: var(--mk-gold-light);
    background: rgba(11, 10, 15, 0.48);
    border: 1px solid rgba(235, 213, 174, 0.24);
}

.hero-luxury-stage .hero-floating-badge {
    position: relative;
    inset: auto;
    z-index: 2;
}

/* ── Cartes Collections & Showcase : Canvases Dégradés Haute Couture ── */
.world-canvas {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    border-block-end: 1px solid var(--mk-border-soft);
}

.world-canvas--mariage,
.dress-canvas--mariage {
    background:
        radial-gradient(circle at 22% 20%, rgba(255, 246, 232, 0.28), transparent 55%),
        linear-gradient(135deg var(--in-oklab), #2f2523 0%, #4b3930 48%, #21191d 100%);
}
.world-canvas--soiree,
.dress-canvas--soiree {
    background:
        radial-gradient(circle at 78% 22%, rgba(212, 175, 122, 0.34), transparent 55%),
        linear-gradient(135deg var(--in-oklab), #12172d 0%, #241b3d 50%, #1a1220 100%);
}
.world-canvas--caftan,
.dress-canvas--caftan {
    background:
        radial-gradient(circle at 75% 75%, rgba(235, 198, 122, 0.32), transparent 55%),
        linear-gradient(135deg var(--in-oklab), #33101d 0%, #521a29 48%, #241214 100%);
}

.canvas-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(32px);
    z-index: 0;
}
.canvas-orb-1 {
    width: 68%;
    aspect-ratio: 1;
    inset-block-start: -22%;
    inset-inline-start: -15%;
    background: radial-gradient(circle, rgba(235, 213, 174, 0.42), transparent 70%);
}
.canvas-orb-2 {
    width: 62%;
    aspect-ratio: 1;
    inset-block-end: -26%;
    inset-inline-end: -14%;
    background: radial-gradient(circle, rgba(230, 196, 189, 0.36), transparent 70%);
}

.canvas-editorial {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
}
.canvas-monogram {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: var(--mk-font-serif);
    font-size: 2.15rem;
    font-style: italic;
    font-weight: 600;
    color: var(--mk-gold-light);
    background: rgba(11, 10, 15, 0.42);
    border: 1px solid rgba(235, 213, 174, 0.45);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
.canvas-divider {
    width: 48px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--mk-gold-light), transparent);
}
.canvas-poetic {
    margin: 0;
    font-family: var(--mk-font-serif);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--mk-text);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.dress-canvas {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 112px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    border-block-end: 1px solid var(--mk-border-soft);
}
.dress-canvas-pill {
    position: relative;
    z-index: 2;
    padding: 0.22rem 0.65rem;
    border-radius: 999px;
    background: rgba(11, 10, 15, 0.6);
    border: 1px solid var(--mk-border);
    color: var(--mk-gold-light);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.dress-canvas-ref {
    position: relative;
    z-index: 2;
    font-family: var(--mk-font-serif);
    font-size: 1.05rem;
    font-style: italic;
    color: var(--mk-text);
    opacity: 0.9;
}

/* ── Animations GPU Compositor (Uniquement transform & opacity, opt-in motion) ── */
@media (prefers-reduced-motion: no-preference) {
    @keyframes mk-aurora-drift-a {
        0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
        50% { transform: translate3d(-12%, 14%, 0) scale(1.12); }
    }
    @keyframes mk-aurora-drift-b {
        0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
        50% { transform: translate3d(14%, -12%, 0) scale(1.15); }
    }
    @keyframes mk-sheen-glide {
        0% { transform: translate3d(-48%, 0, 0); opacity: 0.25; }
        50% { opacity: 0.75; }
        100% { transform: translate3d(52%, 0, 0); opacity: 0.25; }
    }
    @keyframes mk-halo-breathe {
        0%, 100% { transform: scale(0.96); opacity: 0.6; }
        50% { transform: scale(1.06); opacity: 1; }
    }

    .lux-aurora-a,
    .canvas-orb-1 { animation: mk-aurora-drift-a 14s ease-in-out infinite; }
    .lux-aurora-b,
    .canvas-orb-2 { animation: mk-aurora-drift-b 17s ease-in-out infinite; }
    .lux-aurora-c { animation: mk-aurora-drift-a 20s ease-in-out infinite reverse; }
    .lux-sheen { animation: mk-sheen-glide 11s ease-in-out infinite; }
    .canvas-shimmer { animation: mk-sheen-glide 13s ease-in-out infinite; }
    .emblem-halo { animation: mk-halo-breathe 7s ease-in-out infinite; }
}

html.animations-paused .lux-aurora,
html.animations-paused .lux-sheen,
html.animations-paused .canvas-orb,
html.animations-paused .canvas-shimmer,
html.animations-paused .emblem-halo {
    animation-play-state: paused !important;
}
