* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #0b1020;
    --card-color: #151d35;
    --accent: #4f8cff;
    --accent-hover: #72a7ff;
    --text: #f5f7ff;
    --text-secondary: #aeb7d0;
    --border: rgba(255,255,255,0.08);
    --success: #00d084;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(180deg, #0b1020 0%, #111933 100%);
    color: var(--text);
    min-height: 100vh;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
    background-color: rgba(10, 15, 30, 0.85);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-container {
    padding: 0 20px 0 20px;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
}

.logo-sub {
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--text-secondary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    transition: 0.3s ease;
}


/* PAGE DE CONNEXION */

.login-page {
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-card {
    width: 420px;
    background-color: var(--card-color);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: 0 0 40px rgba(79, 140, 255, 0.15);
}

.login-card h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input {
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background-color: #0f172d;
    color: white;
    outline: none;
}

.form-group input:focus {
    border-color: var(--accent);
}

.login-form .register-link{
    text-decoration: none;
    color: var(--accent);
}
.login-form .register-link:hover {
    text-decoration: underline;
    color: var(--accent-hover);
}

.login-btn {
    width: 100%;
    margin-top: 1rem;
}

/* PAGE DE CREATION DE COMPTE */

.register-page {
    min-height: 85vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem 1rem;
}

.register-card {
    width: 100%;
    max-width: 720px;

    background: rgba(21, 29, 53, 0.95);

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

    border-radius: 28px;

    padding: 3rem;

    box-shadow:
        0 0 50px rgba(79, 140, 255, 0.12),
        inset 0 0 20px rgba(255,255,255,0.02);

    backdrop-filter: blur(12px);
}

.register-header {
    margin-bottom: 2.5rem;
}

.register-tag {
    color: var(--accent);
    letter-spacing: 3px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.register-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.register-subtitle {
    color: var(--text-secondary);
    line-height: 1.7;
}

.register-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.7rem;
    font-weight: 600;
    color: var(--text);
}

.form-group input,
.form-group select {
    background-color: #0f172d;

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

    border-radius: 14px;

    padding: 1rem 1.2rem;

    color: white;

    font-size: 1rem;

    transition: 0.3s ease;

    outline: none;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--accent);

    box-shadow: 0 0 12px rgba(79, 140, 255, 0.3);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.8rem;

    margin-top: 0.5rem;

    color: var(--text-secondary);
}

.btn-register {
    margin-top: 1rem;

    background: linear-gradient(
        135deg,
        var(--accent),
        #72a7ff
    );

    color: white;

    border: none;

    padding: 1rem;

    border-radius: 16px;

    font-size: 1rem;

    font-weight: 700;

    cursor: pointer;

    transition: 0.3s ease;
}

.btn-register:hover {
    transform: translateY(-2px);

    box-shadow: 0 0 25px rgba(79, 140, 255, 0.35);
}

.register-footer {
    margin-top: 2rem;
    text-align: center;
    color: var(--text-secondary);
}

.register-footer a {
    color: var(--accent);
    text-decoration: none;
}

.register-footer a:hover {
    text-decoration: underline;
}


@media screen and (max-width: 768px) {

    .register-card {
        padding: 2rem;
    }

    .register-header h1 {
        font-size: 2.2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}


/* PAGE INFOS EQUIPES */

.teams-page {
    padding: 2rem 0 4rem 0;
}

.teams-header {
    margin-bottom: 4rem;
}

.teams-tag {
    color: var(--accent);
    letter-spacing: 3px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.teams-header h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.teams-subtitle {
    color: var(--text-secondary);
    max-width: 700px;
    line-height: 1.8;
}

.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2rem;
}

.team-card {
    background: rgba(21, 29, 53, 0.95);

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

    border-radius: 28px;

    overflow: hidden;

    transition: 0.35s ease;

    position: relative;
}

.team-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 0 35px rgba(79, 140, 255, 0.18);
}

.team-banner {
    height: 140px;

    background:
        linear-gradient(
            135deg,
            #4f8cff,
            #1d3c78
        );
}

.g2-banner {
    background:
        linear-gradient(
            135deg,
            #ffb347,
            #ff6b00
        );
}

.team-content {
    padding: 2rem;
}

.team-top {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 2rem;
}

.team-top h2 {
    font-size: 2rem;
    margin-bottom: 0.4rem;
}

.team-top p {
    color: var(--text-secondary);
}

.team-ranking {
    background-color: rgba(79, 140, 255, 0.18);

    color: var(--accent);

    padding: 0.7rem 1rem;

    border-radius: 14px;

    font-weight: 700;
}

.team-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 1rem;

    margin-bottom: 2rem;
}

.team-stat {
    background-color: rgba(255,255,255,0.03);

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

    border-radius: 18px;

    padding: 1rem;

    text-align: center;
}

.team-stat h3 {
    color: var(--accent);

    font-size: 1.6rem;

    margin-bottom: 0.3rem;
}

.team-stat p {
    color: var(--text-secondary);

    font-size: 0.9rem;
}

.team-roster h4 {
    margin-bottom: 1rem;
}

.roster-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;

    margin-bottom: 2rem;
}

.roster-list span {
    background-color: rgba(79, 140, 255, 0.12);

    border: 1px solid rgba(79, 140, 255, 0.2);

    color: white;

    padding: 0.6rem 1rem;

    border-radius: 999px;

    font-size: 0.9rem;
}

.team-btn {
    width: 100%;

    background: linear-gradient(
        135deg,
        var(--accent),
        #72a7ff
    );

    border: none;

    color: white;

    padding: 1rem;

    border-radius: 16px;

    font-weight: 700;

    cursor: pointer;

    transition: 0.3s ease;
}

.team-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 0 20px rgba(79, 140, 255, 0.3);
}

@media screen and (max-width: 768px) {

    .teams-header h1 {
        font-size: 2.7rem;
    }

    .teams-grid {
        grid-template-columns: 1fr;
    }

    .team-stats {
        grid-template-columns: 1fr;
    }
}

/* PAGE INFOS JOUEURS*/

.players-page {
    padding: 2rem 0 4rem 0;
}

.players-header {
    margin-bottom: 4rem;
}

.players-tag {
    color: var(--accent);
    letter-spacing: 3px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.players-header h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.players-subtitle {
    color: var(--text-secondary);
    max-width: 700px;
    line-height: 1.8;
}

.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2rem;
}

.player-card {
    background: rgba(21, 29, 53, 0.95);

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

    border-radius: 28px;

    padding: 2rem;

    transition: 0.35s ease;
}

.player-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 0 35px rgba(79, 140, 255, 0.18);
}

.player-top {
    display: flex;
    align-items: center;
    gap: 1.2rem;

    margin-bottom: 2rem;
}

.player-avatar {
    width: 72px;
    height: 72px;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #4f8cff,
            #2451a6
        );

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

    font-size: 1.8rem;
    font-weight: 700;
}

.caps-avatar {
    background:
        linear-gradient(
            135deg,
            #ffb347,
            #ff6b00
        );
}

.player-identity {
    flex: 1;
}

.player-identity h2 {
    font-size: 1.8rem;
    margin-bottom: 0.4rem;
}

.player-identity p {
    color: var(--text-secondary);
}

.player-role {
    background-color: rgba(79, 140, 255, 0.18);

    color: var(--accent);

    padding: 0.7rem 1rem;

    border-radius: 14px;

    font-size: 0.85rem;

    font-weight: 700;
}

.player-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 1rem;

    margin-bottom: 2rem;
}

.player-stat {
    background-color: rgba(255,255,255,0.03);

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

    border-radius: 18px;

    padding: 1rem;

    text-align: center;
}

.player-stat h3 {
    color: var(--accent);

    font-size: 1.6rem;

    margin-bottom: 0.3rem;
}

.player-stat p {
    color: var(--text-secondary);

    font-size: 0.9rem;
}

.champions-section h4 {
    margin-bottom: 1rem;
}

.champions-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;

    margin-bottom: 2rem;
}

.champions-list span {
    background-color: rgba(79, 140, 255, 0.12);

    border: 1px solid rgba(79, 140, 255, 0.2);

    color: white;

    padding: 0.6rem 1rem;

    border-radius: 999px;

    font-size: 0.9rem;
}

.player-btn {
    width: 100%;

    background: linear-gradient(
        135deg,
        var(--accent),
        #72a7ff
    );

    border: none;

    color: white;

    padding: 1rem;

    border-radius: 16px;

    font-weight: 700;

    cursor: pointer;

    transition: 0.3s ease;
}

.player-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 0 20px rgba(79, 140, 255, 0.3);
}

@media screen and (max-width: 768px) {

    .players-header h1 {
        font-size: 2.7rem;
    }

    .players-grid {
        grid-template-columns: 1fr;
    }

    .player-stats {
        grid-template-columns: 1fr;
    }

    .player-top {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* PAGE PROFIL */

.profile-page {
    padding: 2rem 0 4rem 0;
}

.profile-header {
    margin-bottom: 3rem;
}



.profile-main {
    display: flex;
    align-items: center;
    gap: 2rem;

    margin-top: -60px;

    padding: 0 2rem;
}


.profile-identity {
    flex: 1;
}

.profile-tag {
    color: var(--accent);

    letter-spacing: 3px;

    font-size: 0.8rem;

    margin-bottom: 0.8rem;
}

.profile-identity h1 {
    font-size: 3rem;

    margin-bottom: 0.5rem;
}

.profile-region {
    color: var(--text-secondary);
}

.edit-profile-btn {
    background:
        linear-gradient(
            135deg,
            var(--accent),
            #72a7ff
        );

    border: none;

    color: white;

    padding: 1rem 1.5rem;

    border-radius: 16px;

    font-weight: 700;

    cursor: pointer;

    transition: 0.3s ease;
}

.edit-profile-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 0 20px rgba(79, 140, 255, 0.3);
}

.favorite-button{
    background:
        linear-gradient(
            135deg,
            var(--accent),
            #72a7ff
        );

    border: none;

    color: white;

    padding: 1rem 1.5rem;

    border-radius: 16px;

    font-weight: 700;

    cursor: pointer;

    transition: 0.3s ease;
}

.favorite-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 0 20px rgba(79, 140, 255, 0.3);
}

.profile-stats-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 1.5rem;

    margin-bottom: 3rem;
}

.profile-stat-card {
    background: rgba(21, 29, 53, 0.95);

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

    border-radius: 24px;

    padding: 2rem;

    text-align: center;
}

.profile-stat-card h2 {
    color: var(--accent);

    font-size: 2.4rem;

    margin-bottom: 0.5rem;
}

.profile-stat-card p {
    color: var(--text-secondary);
}

.profile-content {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 2rem;
}

.profile-left,
.profile-right {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.profile-card {
    background: rgba(21, 29, 53, 0.95);

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

    border-radius: 24px;

    padding: 2rem;
}

.profile-card h3 {
    margin-bottom: 1.8rem;

    font-size: 1.4rem;
}

.info-group {
    margin-bottom: 1.5rem;
}

.info-group label {
    display: block;

    color: var(--text-secondary);

    margin-bottom: 0.4rem;

    font-size: 0.9rem;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.activity-dot {
    width: 12px;
    height: 12px;

    border-radius: 50%;

    background-color: var(--accent);
}

.followed-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.followed-team {
    background-color: rgba(255,255,255,0.03);

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

    border-radius: 18px;

    padding: 1rem;
}

.followed-team p {
    color: var(--text-secondary);

    margin-top: 0.3rem;
}

.prediction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;

    background-color: rgba(255,255,255,0.03);

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

    border-radius: 18px;

    padding: 1rem;

    margin-bottom: 1rem;
}

.prediction-item p {
    color: var(--text-secondary);

    margin-top: 0.3rem;
}

.prediction-result {
    width: 40px;
    height: 40px;

    border-radius: 50%;

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

    font-weight: bold;
}

.win {
    background-color: rgba(0, 208, 132, 0.15);
    color: #00d084;
}

.lose {
    background-color: rgba(255, 77, 77, 0.15);
    color: #ff4d4d;
}

@media screen and (max-width: 1000px) {

    .profile-content {
        grid-template-columns: 1fr;
    }

    .profile-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {

    .profile-main {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-identity h1 {
        font-size: 2.3rem;
    }

    .profile-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* PAGE TOURNOIS */

.tournaments-page {
    padding: 2rem 0 4rem 0;
}

.tournaments-header {
    margin-bottom: 4rem;
}

.tournaments-tag {
    color: var(--accent);

    letter-spacing: 3px;

    font-size: 0.8rem;

    margin-bottom: 1rem;
}

.tournaments-header h1 {
    font-size: 4rem;

    margin-bottom: 1rem;
}

.tournaments-subtitle {
    color: var(--text-secondary);

    max-width: 700px;

    line-height: 1.8;
}

.tournaments-grid {
    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));

    gap: 2rem;
}

.tournament-card {
    background: rgba(21, 29, 53, 0.95);

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

    border-radius: 28px;

    overflow: hidden;

    transition: 0.35s ease;
}

.tournament-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 0 35px rgba(79, 140, 255, 0.18);
}

.tournament-banner {
    height: 180px;

    position: relative;
}

.worlds-banner {
    background:
        linear-gradient(
            135deg,
            #4f8cff,
            #132850
        );
}

.lec-banner {
    background:
        linear-gradient(
            135deg,
            #ff7b00,
            #ffb347
        );
}

.tournament-status {
    position: absolute;

    top: 20px;
    right: 20px;

    padding: 0.6rem 1rem;

    border-radius: 999px;

    font-size: 0.8rem;

    font-weight: 700;
}

.live {
    background-color: rgba(0, 208, 132, 0.2);

    color: #00d084;
}

.upcoming {
    background-color: rgba(255,255,255,0.12);

    color: white;
}

.tournament-content {
    padding: 2rem;
}

.tournament-top {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 2rem;
}

.tournament-top h2 {
    font-size: 2rem;

    margin-bottom: 0.4rem;
}

.tournament-top p {
    color: var(--text-secondary);
}

.tournament-prize {
    background-color: rgba(79, 140, 255, 0.15);

    color: var(--accent);

    padding: 0.7rem 1rem;

    border-radius: 14px;

    font-weight: 700;
}

.tournament-info-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 1rem;

    margin-bottom: 2rem;
}

.tournament-info {
    background-color: rgba(255,255,255,0.03);

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

    border-radius: 18px;

    padding: 1rem;

    text-align: center;
}

.tournament-info h3 {
    color: var(--accent);

    font-size: 1.6rem;

    margin-bottom: 0.3rem;
}

.tournament-info p {
    color: var(--text-secondary);

    font-size: 0.9rem;
}

.tournament-teams {
    margin-bottom: 2rem;
}

.tournament-teams h4 {
    margin-bottom: 1rem;
}

.teams-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.teams-list span {
    background-color: rgba(79, 140, 255, 0.12);

    border: 1px solid rgba(79, 140, 255, 0.2);

    padding: 0.6rem 1rem;

    border-radius: 999px;

    font-size: 0.9rem;
}

.next-match {
    background-color: rgba(255,255,255,0.03);

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

    border-radius: 18px;

    padding: 1.2rem;

    margin-bottom: 2rem;
}

.next-match h4 {
    margin-bottom: 0.5rem;
}

.next-match p {
    margin-bottom: 0.5rem;

    font-weight: 600;
}

.next-match span {
    color: var(--text-secondary);

    font-size: 0.9rem;
}

.tournament-btn {
    width: 100%;

    background:
        linear-gradient(
            135deg,
            var(--accent),
            #72a7ff
        );

    border: none;

    color: white;

    padding: 1rem;

    border-radius: 16px;

    font-weight: 700;

    cursor: pointer;

    transition: 0.3s ease;
}

.tournament-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 0 20px rgba(79, 140, 255, 0.3);
}

@media screen and (max-width: 768px) {

    .tournaments-header h1 {
        font-size: 2.7rem;
    }

    .tournaments-grid {
        grid-template-columns: 1fr;
    }

    .tournament-info-grid {
        grid-template-columns: 1fr;
    }
}