*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

@font-face {
    font-family: 'Afolkalips';
    src: url('../fonts/afolkalips.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/montserrat.ttf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --bg-deep: #080f08;
    --bg-dark: #0d1a0d;
    --bg-card: #111e11;
    --green-dark: #1a2e1a;
    --gold: #c8d400;
    --orange: #d97000;
    --red: #c0392b;
    --text-main: #e8e0c8;
    --text-dim: #8a8070;
    --border: #2a4a2a;
}

html,
body {
    height: 100%;
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-deep);
    color: var(--text-main);
}

/* ── Tribal background pattern ── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("../details/fond-xl.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 0;
}

/* Glowing orb background */
body::after {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(200, 212, 0, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.login-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

/* ── Logo / Header ── */
.brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 36px;
    gap: 8px;
    white-space: nowrap;
}

.brand-logo {
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    font-family: 'Afolkalips', serif;
    font-size: 22px;
    letter-spacing: -1px;
    margin-bottom: 4px;
}

.brand-title {
    font-family: 'Afolkalips', serif;
    font-size: 35px;
    color: var(--gold);
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(200, 212, 0, 0.4);
    line-height: 1;
}

.brand-subtitle {
    font-family: 'Afolkalips', sans-serif;
    font-size: 20px;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--text-dim);
}

/* ── Card ── */
.login-card {
    background: #00000080;
    width: 100%;
    max-width: 420px;
    padding: 40px 36px;
    position: relative;
    overflow: hidden;
    border-radius: 30px;
}

.card-heading {
    font-family: 'Afolkalips', serif;
    font-size: 60px;
    color: var(--gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 28px;
}

/* ── Form ── */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 8px;
}

input:focus,
textarea:focus {
    box-shadow: 0 0 21px rgb(248 170 69 / 35%);
}

input::placeholder {
    color: #3a4a3a;
}

/* ── Error message ── */
.error-msg {
    display: none;
    background: rgba(192, 57, 43, 0.15);
    border: 1px solid rgba(192, 57, 43, 0.4);
    color: #e74c3c;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 10px 14px;
    margin-bottom: 20px;
    text-align: center;
}

.error-msg.visible {
    display: block;
}

/* ── Submit button ── */
.btn-login,
.btn-register {
    width: 100%;
    padding-top: 5px !important;
    padding: 14px;
    background: var(--gold);
    border: none;
    color: var(--bg-deep);
    font-family: 'Afolkalips', serif;
    font-size: 25px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
    margin-top: 4px;
    border-radius: 25px;
}

.btn-login:hover,
.btn-register:hover {
    background: #d4e000;
    box-shadow: 0 0 24px rgba(200, 212, 0, 0.4);
}

.btn-login:active,
.btn-register:active {
    transform: scale(0.98);
}

/* ── Footer ── */
.login-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 1px;
}

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: var(--border);
    font-size: 10px;
    letter-spacing: 2px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* Loading state */
.btn-login.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Stripe accent top-bottom */
.stripe-top,
.stripe-bottom {
    position: fixed;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--orange), var(--gold), var(--orange));
    z-index: 10;
}

.stripe-top {
    top: 0;
}

.stripe-bottom {
    bottom: 0;
}

input {
    width: 100%;
    background: #ffffff0d;
    border: none;
    border-radius: 25px;
    color: var(--text-main);
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 500;
    padding: 12px 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    letter-spacing: 0.5px;
}

.register-card {
    background: #00000080;
    width: 100%;
    padding: 40px 36px;
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    max-width: 1100px;
}

textarea#synopsis {
    height: 126px;
    width: 100%;
    background: #ffffff0d;
    border: none;
    border-radius: 25px;
    color: var(--text-main);
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 500;
    padding: 12px 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    letter-spacing: 0.5px;
}

.title-register-card {
    height: 65px;
    font-size: 20px;
    text-align: center;
    font-weight: 900;
    margin-top: 20px;
}

.warning {
    color: var(--orange);
    font-size: 13px;
    font-style: italic;
    text-align: center;
}

.clns-register {
    gap: 40px;
    display: flex;
    justify-content: center;
}

.cln-register-rp {
    width: 40%;
}

.cln-register {
    width: 30%;
}

.passurmobile {
    display: contents !important;
}

.passurpc {
    display: none;
}

.spec-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.spec-help {
    position: relative;
    cursor: pointer;
}

.tooltip-image {
    position: absolute;
    display: none;
    left: -134px;
    top: 20px;
    z-index: 100;
}

.spec-help:hover .tooltip-image,
.tooltip-image.visible {
    display: block;
}

.tooltip-image img {
    width: 380px;
    display: block;
    cursor: zoom-in;
    border-radius: 10px;
}

.tooltip-image a {
    display: block;
}

select#specification {
    width: 100%;
    padding: 12px 14px;
    border-radius: 25px;
    font-family: 'Montserrat';
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}

/* ── Responsive ── */
@media (max-width: 860px) {
    .clns-register {
        flex-direction: column;
    }

    .cln-register,
    .cln-register-rp {
        width: 100%;
    }

    .champ-hero {
        padding: 10px 15px 30px !important;
        gap: 10px !important;
    }



    .passurmobile {
        display: none !important;
    }

    .passurpc {
        display: contents !important;
    }

    .section-title,
    .team-cta,
    .tournament-name,
    .champion-label {
        margin-top: 10px !important;
    }

    div#seasonTitle {
        margin-top: 10px !important;
    }

    a.player-name {
        margin-bottom: -5px;
    }

    .hero-banner p {
        margin-top: 10px !important;
    }
}

/* Problèème de marge sur le titre du joueur en mode mobile */
@media (max-width: 860px) {
    .champ-hero-title {
        margin-top: 50px !important;
    }

    .hero-banner p {
        margin-top: 20px !important;
    }

    .mobile-menu-item a {
        margin-top: 10px;
    }

    .sb-roster-name {

        margin-bottom: -10px;
    }

    .sb-modal-name {

        margin-top: 0 !important;
    }

    span.sb-modal-pos {
        margin-top: 9px;
    }

    .sb-slot-rating {
        top: 0% !important;
    }

    .champ-column {
        width: 93%;
    }

    a#teamLink {
        margin-bottom: -20px;
    }

    .player-name {
        position: relative;
        bottom: -6px;
    }

    span.team-name-cell {
        bottom: -5px;
        position: relative;
    }

    .stats-rank-num {
        position: relative;
        bottom: -5px;
        left: -2px;
    }

    .match-score {
        margin-top: 0 !important;
    }

    .sb-home-card-title {
        font-size: 42px !important;
    }

    td.td-rank {
        position: relative;
        left: 5px;
        bottom: -1px;
    }

    .champion-label,
    .champ-card-label {
        margin-top: 6px;
    }

    div#journeeLabel {
        position: relative;
        bottom: -10px;
    }

    .btn-reset {
        padding: 16px !important;
    }

    h1#joueurName {
        position: relative;
        top: 10px;
    }

    .meta-pays img.flag-icon,
    .meta-sep,
    .meta-poste {
        position: relative;
        top: -10px;
    }

    .prog-title {
        position: relative;
        top: 10px;
    }

    .eq-see-all-btn,
    .eq-seeall-label {
        padding-top: 14px !important;
    }

    span#clubFilterLabel,
    span#compFilterLabel {
        margin-top: 5px !important;
    }

    .sb-action-btn {
        padding: 15px 10px 5px !important;
    }

    .col-preteur-cell::after {
        position: absolute;
        content: 'Prêté par ';
        font-size: 10px;
        letter-spacing: 1px;
        text-transform: uppercase;
        color: var(--text-dim);
        font-weight: 700;
        left: 205px;
        margin-top: 45px !important;
    }

    span#teamFilterLabel {
        padding: 8px !important;
    }

    .tr-player-name a {
        position: relative;
        top: 2px;
    }

    .btn-action {
        padding: 12px 4px 10px 4px !important;
    }

    button.btn-login,
    button.btn-register {
        padding-top: 12px !important;
    }

    button#btnCreatePlayer {
        padding: 13px 16px 0 !important;
    }

    button.btn-entr-individual {
        padding: 10px 10px 6px !important;
    }

    .btn-entr {
        padding: 15px 14px 11px !important;
    }




}