/* =========================================================
   WIKIMUSIC 404
   Bloc isolé, sans casser le header ni le footer
   ========================================================= */

.wm404 {
    --wm404-bg: #03152d;
    --wm404-bg-soft: #071c3d;
    --wm404-line: rgba(111, 141, 201, 0.18);
    --wm404-text: #f7f6ff;
    --wm404-muted: #b9c6e4;
    --wm404-purple: #b366ff;
    --wm404-purple-2: #d76eff;
    --wm404-pink: #ff5d87;
    --wm404-blue: #0e2f66;
    --wm404-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
    --wm404-radius-xl: 32px;
    --wm404-radius-lg: 22px;
    --wm404-radius-md: 18px;

    position: relative;
    padding: 34px 24px 54px;
    overflow: hidden;
    color: var(--wm404-text);
}

.wm404 * {
    box-sizing: border-box;
}

.wm404::before,
.wm404::after {
    content: "";
    position: absolute;
    inset: auto;
    pointer-events: none;
    z-index: 0;
    filter: blur(10px);
}

.wm404::before {
    width: 420px;
    height: 420px;
    top: -120px;
    left: -120px;
    background:
        radial-gradient(circle, rgba(175, 75, 255, 0.28) 0%, rgba(175, 75, 255, 0) 72%);
}

.wm404::after {
    width: 520px;
    height: 520px;
    right: -150px;
    bottom: -180px;
    background:
        radial-gradient(circle, rgba(255, 77, 128, 0.18) 0%, rgba(255, 77, 128, 0) 72%);
}

.wm404__inner {
    position: relative;
    z-index: 1;
    width: min(1280px, 100%);
    margin: 0 auto;
    padding: 40px 0px;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
    gap: 38px;
    align-items: center;
    min-height: auto;
}

.wm404__content {
    position: relative;
    z-index: 2;
    max-width: 640px;
}

.wm404__title {
    margin: 0 0 22px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.03em;
    font-size: 75px;
}

.wm404__title span:first-child {
    color: #ffffff;
}

.wm404__title span:last-child {
    color: #c56cff;
}

.wm404__description {
    margin: 0 0 28px;
    font-size: clamp(1rem, 1.6vw, 1.18rem);
    line-height: 1.6;
    color: var(--wm404-muted);
    max-width: 620px;
}

.wm404__search {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    width: min(100%, 720px);
    min-height: 76px;
    padding: 10px 10px 10px 22px;
    margin-bottom: 24px;
    border-radius: 999px;
    background: #eef1f8;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        0 16px 40px rgba(0, 0, 0, 0.18);
}

.wm404__search svg {
    width: 22px;
    height: 22px;
    color: #5f6a80;
}

.wm404__search input {
    min-width: 0;
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #18263e;
    font-size: 1rem;
    font-family: inherit;
    box-shadow: none;
}

.wm404__search input::placeholder {
    color: #6d7588;
    opacity: 1;
}

.wm404__search button {
    border: 0;
    outline: 0;
    cursor: pointer;
    min-height: 56px;
    padding: 0 28px;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #ff6b93, #ff5c80);
    box-shadow: 0 14px 34px rgba(255, 92, 128, 0.30);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.wm404__search button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 36px rgba(255, 92, 128, 0.36);
    filter: brightness(1.03);
}

.wm404__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.wm404__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 58px;
    padding: 0 28px;
    border-radius: 18px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.wm404__button svg {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
}

.wm404__button--primary {
    color: #ffffff;
    background: linear-gradient(135deg, #8e3cff, #c53cff);
    box-shadow: 0 16px 34px rgba(163, 68, 255, 0.28);
}

.wm404__button--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 38px rgba(163, 68, 255, 0.36);
}

.wm404__button--secondary {
    color: #ffffff;
    background: rgba(8, 25, 53, 0.72);
    border: 1px solid rgba(99, 137, 221, 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.wm404__button--secondary:hover {
    transform: translateY(-1px);
    border-color: rgba(139, 176, 255, 0.75);
    background: rgba(10, 32, 67, 0.92);
}

.wm404__visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.wm404__visual::before {
    content: "";
    position: absolute;
    inset: 9% 10% 9% 10%;
    border-radius: 30px;
    background:
        radial-gradient(circle at center, rgba(191, 79, 255, 0.26) 0%, rgba(191, 79, 255, 0) 68%);
    filter: blur(24px);
    z-index: 0;
}

.wm404__image {
    position: relative;
    z-index: 1;
    display: block;
    width: min(100%, 610px);
    height: auto;
    border-radius: 30px;
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.42),
        0 0 0 1px rgba(255, 255, 255, 0.04);
}

.wm404__desktop-only {
    display: inline;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 1100px) {
    .wm404__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 26px;
        min-height: auto;
        padding: 34px;
    }

    .wm404__content {
        max-width: 100%;
        order: 2;
    }

    .wm404__visual {
        order: 1;
    }

    .wm404__image {
        width: min(100%, 680px);
        margin: 0 auto;
    }
}

@media (max-width: 780px) {
    .wm404 {
        padding: 18px 14px 34px;
    }

    .wm404__inner {
        padding: 22px;
        gap: 22px;
        border-radius: 24px;
    }

    .wm404__title {
        font-size: clamp(2.5rem, 12vw, 4.1rem);
        gap: 2px;
    }

    .wm404__description {
        margin-bottom: 22px;
        font-size: 1rem;
    }

    .wm404__desktop-only {
        display: none;
    }

    .wm404__search {
        grid-template-columns: 24px minmax(0, 1fr);
        gap: 12px;
        min-height: unset;
        padding: 14px 16px;
        border-radius: 24px;
    }

    .wm404__search button {
        grid-column: 1 / -1;
        width: 100%;
        min-height: 52px;
        margin-top: 4px;
    }

    .wm404__actions {
        flex-direction: column;
    }

    .wm404__button {
        width: 100%;
        min-height: 54px;
        border-radius: 16px;
    }

    .wm404__image {
        border-radius: 22px;
    }
}

@media (max-width: 480px) {
    .wm404__inner {
        padding: 18px;
    }

    .wm404__search input {
        font-size: 0.96rem;
    }

    .wm404__search button,
    .wm404__button {
        font-size: 0.96rem;
    }
}

@media (max-width: 1100px) {
    .wm404__inner {
        grid-template-columns: minmax(0, 1fr);
        min-height: auto;
        padding: 24px 0;
        gap: 26px;
    }
}

@media (max-width: 780px) {
    .wm404__inner {
        padding: 15px 0;
        gap: 22px;
    }
}

.page-404
{
    padding-top: 0px;
    padding-bottom: 0px;
}

.page-404 .big-404
{
    font-size: 95px;
}