/* =========================================================
   MATHÉO MAHIEUX — DARK LIQUID GLASS / Y2K
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: #05080d;
}

body {
    min-height: 100vh;
    margin: 0;

    color: #f1f6fb;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "SF Pro Display",
        "Segoe UI",
        Arial,
        sans-serif;

    background:
        radial-gradient(
            circle at 50% -15%,
            rgba(100,150,200,0.25) 0%,
            rgba(30,55,80,0.15) 25%,
            transparent 55%
        ),
        radial-gradient(
            circle at 0% 50%,
            rgba(40,90,140,0.20),
            transparent 38%
        ),
        radial-gradient(
            circle at 100% 70%,
            rgba(70,110,150,0.16),
            transparent 40%
        ),
        linear-gradient(
            135deg,
            #06090e 0%,
            #0a1119 45%,
            #070b11 100%
        );

    background-attachment: fixed;
    overflow-x: hidden;
}

/* =========================================================
   DARK LIQUID ATMOSPHERE
   ========================================================= */

body::before {
    content: "";

    position: fixed;

    width: 600px;
    height: 600px;

    top: -240px;
    left: 50%;

    transform: translateX(-50%);

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(180,215,245,0.14) 0%,
            rgba(80,130,175,0.08) 35%,
            transparent 70%
        );

    filter: blur(25px);

    pointer-events: none;
    z-index: -1;
}

body::after {
    content: "";

    position: fixed;
    inset: 0;

    pointer-events: none;

    background:
        radial-gradient(
            ellipse at 50% 100%,
            rgba(50,100,145,0.13),
            transparent 48%
        );

    z-index: -1;
}

/* =========================================================
   MAIN GLASS
   ========================================================= */

main {
    width: calc(100% - 32px);
    max-width: 620px;

    margin: 35px auto;

    padding: 42px 28px 30px;

    text-align: center;

    border-radius: 32px;

    border: 1px solid rgba(255,255,255,0.13);

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,0.075),
            rgba(255,255,255,0.025)
        );

    box-shadow:
        0 30px 80px rgba(0,0,0,0.45),
        0 10px 30px rgba(0,0,0,0.30),
        inset 0 1px 1px rgba(255,255,255,0.13),
        inset 0 -1px 1px rgba(0,0,0,0.25);

    backdrop-filter: blur(30px) saturate(135%);
    -webkit-backdrop-filter: blur(30px) saturate(135%);
}

/* =========================================================
   AVATAR
   ========================================================= */

.avatar {
    width: 112px;
    height: 112px;

    border-radius: 50%;

    border: 3px solid rgba(255,255,255,0.20);

    box-shadow:
        0 0 0 1px rgba(120,175,220,0.18),
        0 15px 35px rgba(0,0,0,0.40),
        inset 0 2px 5px rgba(255,255,255,0.16);

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.12),
            rgba(255,255,255,0.035)
        );
}

/* =========================================================
   NOM
   ========================================================= */

h1 {
    margin-top: 21px;
    margin-bottom: 9px;

    color: #f4f8fc;

    font-size: 2rem;
    font-weight: 700;

    letter-spacing: -0.045em;

    text-shadow:
        0 1px 0 rgba(255,255,255,0.20),
        0 4px 12px rgba(0,0,0,0.35);
}

h1::after {
    content: "";

    display: block;

    width: 48px;
    height: 3px;

    margin: 12px auto 0;

    border-radius: 99px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,0.65),
            rgba(100,180,240,0.70),
            rgba(255,255,255,0.65),
            transparent
        );

    box-shadow:
        0 0 10px rgba(100,180,240,0.25);
}

/* =========================================================
   DESCRIPTION
   ========================================================= */

main > p {
    margin-top: 15px;
    margin-bottom: 28px;

    color: rgba(215,228,240,0.65);

    font-size: 0.92rem;
    font-weight: 500;

    text-shadow:
        0 2px 5px rgba(0,0,0,0.35);
}

/* =========================================================
   DARK GLASS BUTTONS
   ========================================================= */

.button {
    position: relative;

    display: flex !important;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 58px;

    margin: 13px 0;
    padding: 0 22px;

    overflow: hidden;

    color: #edf5fc !important;

    text-decoration: none !important;

    font-size: 0.95rem;
    font-weight: 600;

    border-radius: 18px !important;

    border: 1px solid rgba(255,255,255,0.15) !important;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,0.105),
            rgba(255,255,255,0.035)
        ) !important;

    box-shadow:
        0 12px 30px rgba(0,0,0,0.25),
        inset 0 1px 1px rgba(255,255,255,0.15),
        inset 0 -1px 1px rgba(0,0,0,0.25);

    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        background 0.22s ease,
        border-color 0.22s ease;
}

/* Reflet */
.button::before {
    content: "";

    position: absolute;

    top: -60%;
    left: -25%;

    width: 150%;
    height: 100%;

    transform: rotate(-8deg);

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.10),
            transparent 55%
        );

    pointer-events: none;
}

/* Ligne brillante */
.button::after {
    content: "";

    position: absolute;

    top: 1px;
    left: 8%;

    width: 84%;
    height: 1px;

    background: rgba(255,255,255,0.28);

    pointer-events: none;
}

/* =========================================================
   HOVER
   ========================================================= */

a.button:hover {
    transform: translateY(-3px);

    border-color: rgba(180,220,250,0.25) !important;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,0.145),
            rgba(100,160,210,0.065)
        ) !important;

    box-shadow:
        0 18px 40px rgba(0,0,0,0.38),
        0 0 25px rgba(90,160,220,0.10),
        inset 0 1px 1px rgba(255,255,255,0.20);
}

a.button:active {
    transform: translateY(0);

    box-shadow:
        0 7px 15px rgba(0,0,0,0.30),
        inset 0 2px 6px rgba(0,0,0,0.25);
}

/* =========================================================
   ICONES
   ========================================================= */

.button .icon {
    width: 22px;
    height: 22px;

    margin-right: 12px;

    opacity: 0.88;

    filter:
        drop-shadow(0 1px 2px rgba(0,0,0,0.45))
        drop-shadow(0 0 2px rgba(255,255,255,0.10));

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

a.button:hover .icon {
    transform: scale(1.08);
    opacity: 1;
}

/* =========================================================
   DISCORD
   ========================================================= */

.button-discord {
    cursor: default !important;
}

/* =========================================================
   FOOTER
   ========================================================= */

footer {
    margin-top: 30px;

    color: rgba(180,200,218,0.48);

    font-size: 0.72rem;

    text-shadow:
        0 2px 5px rgba(0,0,0,0.4);
}

footer a {
    color: rgba(180,210,235,0.65) !important;
    text-decoration: none;
}

/* =========================================================
   SELECTION
   ========================================================= */

::selection {
    background: rgba(90,160,220,0.65);
    color: white;
}

/* =========================================================
   APPARITION
   ========================================================= */

.button {
    animation: glassAppear 0.45s ease both;
}

.button:nth-child(1) {
    animation-delay: 0.04s;
}

.button:nth-child(2) {
    animation-delay: 0.08s;
}

.button:nth-child(3) {
    animation-delay: 0.12s;
}

.button:nth-child(4) {
    animation-delay: 0.16s;
}

.button:nth-child(5) {
    animation-delay: 0.20s;
}

@keyframes glassAppear {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {
    main {
        width: calc(100% - 20px);

        margin: 10px auto;

        padding: 35px 17px 25px;

        border-radius: 27px;
    }

    .avatar {
        width: 100px;
        height: 100px;
    }

    h1 {
        font-size: 1.75rem;
    }

    .button {
        min-height: 56px;
        border-radius: 17px !important;
    }
}

/* =========================================================
   BACKGROUND IMAGE — FULL SCREEN
   ========================================================= */

html,
body {
    min-height: 100%;
    background: transparent !important;
}

body::before {
    content: "";
    position: fixed !important;
    inset: -30px !important;

    width: auto !important;
    height: auto !important;

    top: -30px !important;
    left: -30px !important;
    right: -30px !important;
    bottom: -30px !important;

    border-radius: 0 !important;
    transform: none !important;

    z-index: -2 !important;

    background:
        linear-gradient(
            rgba(0, 0, 0, 0.25),
            rgba(0, 0, 0, 0.25)
        ),
        url("../images/background.jpg") center center / cover no-repeat !important;

    filter: blur(2px);

    pointer-events: none;
}

body::after {
    display: none !important;
}

footer {
    text-align: center;
}

/* =========================================================
   PROFIL — AVATAR + NOM
   ========================================================= */

.profile-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 30px;
}

.profile-header .avatar {
    flex-shrink: 0;
    margin: 0;
}

.profile-info {
    text-align: left;
}

.profile-info h1 {
    margin: 0 0 5px;
}

.profile-info p {
    margin: 0;
}

.profile-info p::before,
.profile-info p::after {
    display: none !important;
    content: none !important;
}

@media (max-width: 480px) {
    .profile-header {
        gap: 14px;
    }

    .profile-info h1 {
        font-size: 1.5rem;
    }
}


/* PROFILE HEADER */
.profile-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 30px;
}

.profile-header .avatar {
    flex-shrink: 0;
    margin: 0;
}

.profile-info {
    text-align: left;
}

.profile-info h1 {
    margin: 0 0 5px;
}

.profile-info p {
    margin: 0;
}

.profile-info p::before,
.profile-info p::after {
    display: none !important;
    content: none !important;
}

@media (max-width: 480px) {
    .profile-header {
        gap: 14px;
    }

    .profile-info h1 {
        font-size: 1.5rem;
    }
}

/* =========================================================
   FORCE PROFILE HEADER LAYOUT
   ========================================================= */

.profile-header {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 18px !important;
    width: 100% !important;
    margin: 0 0 30px !important;
    text-align: left !important;
}

.profile-header .avatar {
    display: block !important;
    flex: 0 0 128px !important;
    width: 128px !important;
    height: 128px !important;
    margin: 0 !important;
}

.profile-info {
    display: block !important;
    text-align: left !important;
}

.profile-info h1 {
    display: block !important;
    margin: 0 0 4px !important;
}

.profile-info p {
    display: block !important;
    margin: 0 !important;
}

@media (max-width: 480px) {
    .profile-header {
        gap: 12px !important;
    }

    .profile-header .avatar {
        flex-basis: 90px !important;
        width: 90px !important;
        height: 90px !important;
    }

    .profile-info h1 {
        font-size: 1.35rem !important;
    }
}

/* Suppression du dégradé entre le nom et la description */
.profile-info h1::before,
.profile-info h1::after,
.profile-info p::before,
.profile-info p::after {
    content: none !important;
    display: none !important;
    background: none !important;
    box-shadow: none !important;
}

.profile-info h1,
.profile-info p {
    border: none !important;
    background-image: none !important;
}

/* Centrer la capsule sur la page */
body {
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

main {
    margin: auto !important;
}

footer {
    text-align: center !important;
}

/* Corriger les bandes blanches sur mobile */
html {
    min-height: 100%;
    background: #000 !important;
}

body {
    min-height: 100vh !important;
    min-height: 100dvh !important;
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Garder le fond flouté sur toute la hauteur */
body::before {
    position: fixed !important;
    inset: -30px !important;
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
    background:
        linear-gradient(rgba(0,0,0,.25), rgba(0,0,0,.25)),
        url("../images/background.jpg") center center / cover no-repeat !important;
    z-index: -2 !important;
}

/* Éviter que le contenu crée des marges blanches */
@media (max-width: 600px) {
    html, body {
        width: 100% !important;
        overflow-x: hidden !important;
    }

    body {
        justify-content: center !important;
    }
}
