:root {
    --bg: #07111f;
    --panel: #0f1c2a;
    --panel-soft: #101d2d;
    --line: rgba(255, 255, 255, 0.08);
    --text: #ffffff;
    --muted: #b8c2d1;
    --accent: #ff8c00;
    --accent-2: #7289da;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background:
    linear-gradient(180deg, rgba(7, 17, 31, 0.78), rgba(7, 17, 31, 0.9)),
    url('/assets/statics/images/DivisionBackground.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text);
    overflow-x: hidden;
}

button {
    font: inherit;
}

a {
    text-decoration: none;
    color: inherit;
}


.ligueteam-page{
    max-width: 1400px;
    margin: 0 auto;
    padding: 150px 30px 80px;
}

.division-picker-view {
    min-height: min(70vh, 760px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 26px;
}

.select-ligue {
    width: 100%;
}


.division-layout{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin-bottom: 32px;
}

.division-switcher{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 22px;

}


.division-switcher-card{
    position: relative;
    width: min(900px, 92vw);
    min-height: 190px;
    padding: 22px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
    color: var(--text);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.division-switcher-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.45) 0%, rgba(255, 171, 88, 0.22) 26%, rgba(255, 255, 255, 0) 58%),
        linear-gradient(110deg, rgba(255, 255, 255, 0) 44%, rgba(255, 255, 255, 0.55) 50%, rgba(255, 255, 255, 0) 56%);
    background-size: 0% 0%, 0% 100%;
    background-position: center, -150% 0;
    background-repeat: no-repeat;
    transition: background-size 0.42s cubic-bezier(0.22, 1, 0.36, 1), background-position 0.42s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
    will-change: background-size, background-position;
    pointer-events: none;
    z-index: 0;
}

.division-switcher-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
    border-color: rgba(255, 255, 255, 0.22);
}

.division-switcher-card:hover::after {
    background-size: 175% 175%, 190% 100%;
    background-position: center, 55% 0;
    animation: division-center-flash 0.95s ease-out;
}

.division-button {
    position: relative;
    z-index: 1;
}

.division-switcher-card.is-active{
    border: 2px solid var(--accent);
    box-shadow: 0 0 0 1px rgba(255, 140, 0, 0.3), 0 14px 30px rgba(0, 0, 0, 0.32);
}

.division-switcher-card[data-division="division0"] {
    min-height: 350px;
    background-image:
        linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
        url('/assets/statics/images/Division0.png');
    background-size: 100%;
    background-position: center 100%;
    background-repeat: no-repeat;
}

.division-switcher-card[data-division="division1"] {
    background-image:
        linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
        url('/assets/statics/images/Division1.png');
    background-size: 100%;
    background-position: center 20%;
    background-repeat: no-repeat;
}

.division-switcher-card[data-division="division2"] {
    background-image:
        linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
        url('/assets/statics/images/Division2.png');
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
}

.division-switcher-card[data-division="division3"] {
    background-image:
        linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
        url('/assets/statics/images/Division3.png');
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
}

.division-button h3 {
    margin: 0;
    font-size: clamp(1.55rem, 2.8vw, 2.4rem);
    letter-spacing: 0.08em;
}

.division-detail-view {
    display: none;
}

.division-back-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.division-back-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 280px;
    padding: 12px 20px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
    overflow: hidden;
    color: var(--text);
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}

.division-back-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 55%),
        linear-gradient(110deg, rgba(255, 255, 255, 0) 42%, rgba(255, 255, 255, 0.45) 50%, rgba(255, 255, 255, 0) 58%);
    background-size: 0% 0%, 0% 100%;
    background-position: center, -140% 0;
    background-repeat: no-repeat;
    transition: background-size 0.32s ease, background-position 0.32s ease;
    pointer-events: none;
}

.division-back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
    border-color: rgba(255, 255, 255, 0.35);
    filter: brightness(1.04);
}

.division-back-btn:hover::after {
    background-size: 130% 130%, 180% 100%;
    background-position: center, 60% 0;
}

@keyframes division-center-flash {
    0% {
        filter: brightness(1);
    }

    45% {
        filter: brightness(1.18);
    }

    100% {
        filter: brightness(1.04);
    }
}


@media (max-width: 900px) {
    .ligueteam-page {
        padding: 120px 16px 60px;
    }

    .division-switcher-card {
        min-width: 100%;
        width: 100%;
        min-height: 140px;
        padding: 14px 16px;
    }

    .division-back-btn {
        min-width: 100%;
    }

}