:root {
    --background: #F3F3F5;
    --header: #F58773;
    --color: rgb(29, 29, 31);
    --primary-color: #F87345;
    --primary-hover: #F58773;

    --glassy2: inset 0px 0px 10px rgba(242, 242, 242, 0.3),
              inset -2px -2px 1px rgba(179, 179, 179, 0.15),
              inset 2px 2px 1px rgba(179, 179, 179, 0.15),
              inset 2px 2px 1px rgba(255, 255, 255, 0.3),
              inset -2px -2px 1px rgba(255, 255, 255, 0.3),
              0px 2px 2px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* header - nav */
div.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--header);
    color: var(--color);
    padding: 10px 30px;
    display: flex; 
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

div.header h1 {
    margin: 0;
    padding: 0;
}

.menu {
    margin-top: 30px;
}

.logo {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.logo-img {
    height: 50px;
}

nav a {
    color: var(--color);
    margin-left: 15px;
    text-decoration: none;
}
nav a:hover {
    text-decoration: underline;
}

.burger {
    display: none;
    font-size: 30px;
    cursor: pointer;
    padding: 10px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    box-sizing: border-box;
    background-image: url('background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh; 
    color: var(--color);
    transition: background 0.2s ease;
    -webkit-transition: background 0.2s ease;
    -moz-transition: background 0.2s ease;
    -ms-transition: background 0.2s ease;
    -o-transition: background 0.2s ease;
    padding-top: 80px;
}

h1 {
    font-weight: bold;
    font-size: 2.5rem;
}

@media screen and (max-width: 800px) {
    .logo h1 {
        display: none;
    }

    .mon-compte {
        flex-direction: column;
    }
}

@media screen and (max-width: 600px) {
    nav {
        font-size: large;
        display: none;
        flex-direction: column;
        background-color: white;
        position: absolute;
        top: 80px;
        right: 0px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
        z-index: 1000;
    }

    nav a {
        padding: 10px;
        border-bottom: 1px solid #ccc;
    }

    .burger {
        display: block;
    }

    .nav-open {
        display: flex;
    }

    .podium {
        flex-direction: column;
        align-items: center;
    }
}

a {
    text-decoration: none;
    color: var(--color);
}

a.btn {
    display: inline-block;
    padding: 12px 25px;
    background: var(--primary-color);
    color: var(--color);
    border-radius: 8px;
    transition: 0.2s;
}

a.btn:hover {
    background: var(--primary-hover);;
}

a.btn-supprimer {
    color: rgb(255, 255, 255);
    font-size: 1.2em;
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary-color);
    border-radius: 8px;
    transition: 0.2s;
}

a.btn-supprimer:hover {
    color: darkred;
}

a.btn-modifier {
    color: rgb(255, 255, 255);
    font-size: 1.2em;
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary-color);
    border-radius: 8px;
    transition: 0.2s;
}

a.btn-modifier:hover {
    color: rgb(230, 196, 31);
}

.btn-enregistrer {
    box-shadow: var(--glassy2);
    background: rgba(255, 255, 255, 0.2); 
    backdrop-filter: blur(10px);         
    border: 1px solid rgba(255, 255, 255, 0.3); 
    color: #000;
    padding: 0.75rem 1.5rem;
    border-radius: 60px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-enregistrer:hover {
    background: var(--primary-hover);
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 85vh;
}

.login-container {
    position: relative;
    width: 22.2rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-container {
    border: 1px solid hsla(0, 0%, 65%, 0.158);
    box-shadow: 0 0 36px 1px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    backdrop-filter: blur(20px);
    z-index: 99;
    padding: 2rem;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
}

.glassy {
    border-radius: 20px;
    padding: 2rem;
    margin: 20px;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow:
        inset 0 0 0.5px rgba(255, 255, 255, 0.5),
        0 8px 32px rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
    z-index: 99;
    position: relative;
}

.glassy::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at bottom right,
        rgba(255, 0, 128, 0.15),
        rgba(0, 128, 255, 0.15),
        rgba(255, 255, 255, 0.1));
    z-index: -1;
    border-radius: inherit;
}

form input, form select {
    display: block;
    padding: 14.5px;
    width: 100%;
    color: var(--color);
    outline: none;
    background-color: #9191911f;
    border: none;
    border-radius: 5px;
    font-weight: 500;
    letter-spacing: 0.8px;
    font-size: 15px;
    backdrop-filter: blur(15px);
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
}

form.match-prono-form input, form.match-prono-form select {
    padding: 10px;
    width: 50px;
    margin: 0;
    outline: none;
    border: solid 2px white;
}

.match-prono-form {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap : 15px;
}

option {
    color: var(--color);
    background-color: var(--primary-hover);
}

form input:focus, form select:focus {
    box-shadow: 0 0 16px 1px rgba(0, 0, 0, 0.2);
}

.circle {
    width: 8rem;
    height: 8rem;
    background: var(--primary-color);
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    position: absolute;
}

.illustration {
    position: absolute;
    top: -27%;
    right: -100px;
    width: 80%;
}

.circle-one {
    top: 0;
    left: 0;
    z-index: -1;
    transform: translate(-45%, -45%);
    -webkit-transform: translate(-45%, -45%);
    -moz-transform: translate(-45%, -45%);
    -ms-transform: translate(-45%, -45%);
    -o-transform: translate(-45%, -45%);
}

.circle-two {
    bottom: 0;
    right: 0;
    z-index: -1;
    transform: translate(45%, 45%);
    -webkit-transform: translate(45%, 45%);
    -moz-transform: translate(45%, 45%);
    -ms-transform: translate(45%, 45%);
    -o-transform: translate(45%, 45%);
}

.register-forget {
    margin: 1rem 0;
    display: flex;
    justify-content: space-between;
}

.opacity {
    opacity: 0.6;
}

/* Pronostics */
.jour {
    margin-top: 2rem;
    font-size: 1.0rem;
    font-weight: bold;
}

.liste-matchs {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.match-card {
    border: none;
    border-radius: 20px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px) saturate(100%);
    background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
    background-color: #9191911f;
    z-index: 99;
    padding: 1rem;
    width: 330px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--color);
    outline: none;
    font-weight: 500;
    letter-spacing: 0.8px;
    font-size: 15px;
    -webkit-border-radius: 20px;
}

.phase {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.bas-match {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 10px;
}

.pronostic-section {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;

    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.pronostic-section table {
    width: 100%;
}

.pronostic-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    flex-direction: row;
}

.pronostic-form input[type="number"] {
    width: 40px;
    text-align: center;
    border: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 4px;
    padding: 4px;
}

.pronostic-form button {
    background-color: #a678de;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    margin-left: 10px;
}

.pronostic-form button:hover {
    background-color: #8e60c9;
}

.match-prono {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-direction: column;
}

.match-prono .equipe {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: bold;
}

.equipe p {
    margin : 0;
    width: 35px;
}

/* Classement */
.podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 2rem;
    margin: 3rem 0;
}

.podium-place {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem;
    width: 100px;
    text-align: center;
    position: relative;
}

.podium-1 {
    height: 180px;
    background: gold;
    color: black;
}

.podium-2 {
    height: 150px;
    background: silver;
    color: black;
}

.podium-3 {
    height: 120px;
    background: #cd7f32;
    color: black;
}

.place-number {
    font-size: 2rem;
    font-weight: bold;
}

.liste-classement ol {
    list-style: none;
    padding: 0;
}

.liste-classement li {
    display: flex;
    justify-content: space-between;
    border: none;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px) saturate(100%);
    background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
    background-color: #9191911f;
    z-index: 99;
    padding: 0.8rem 1rem;
    margin: 0.4rem 0;
    border-radius: 5px;
}

.liste-classement li:nth-child(odd) {
    background: rgba(255, 255, 255, 0.1);
}

.podium {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: flex-end;
}

.podium-place {
    padding: 1rem;
    border-radius: 1rem;
    text-align: center;
    position: relative;
    width: 120px;
}

.podium-place {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end; 
    box-sizing: border-box;
}

.podium-place .place-number {
    font-size: 1.5rem;
}

.podium-place .pseudo {
    font-size: 1rem;
}

.podium-place .points {
    font-weight: bold;
    color: #333;
}

.liste-classement ol {
    list-style: none;
    padding-left: 0;
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}

.liste-classement li {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    margin: 0.5rem 0;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.liste-classement li .pseudo {
    font-weight: bold;
    flex: 1;
}

.liste-classement li .points {
    font-weight: bold;
}

.classement-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
}

@media screen and (max-width: 600px) {
    .classement-container {
        margin: 1rem 1rem;
        padding: 1rem;
    }

    .podium {
        gap: 1rem;
        flex-direction: row;
    }

}

.classement-container h2 {
    margin-bottom: 1rem;
}

.compte-container{
    max-width: 800px;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
}

.compte-container h2 {
    margin: 0;
}

.compte-container-update{
    max-width: 800px;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
    min-width: 50%;
}

.compte-container-update button{
    margin-top:10px;
}

div.mon-compte {
    display: flex;
    justify-content: center;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 0 8px rgba(0,0,0,0.2);
    margin-bottom: auto; 
    margin-top: -60px;
}

.avatar-compte {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 0 8px rgba(0,0,0,0.2);
}

.avatar-small {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    vertical-align: middle;
}

.avatar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.avatar-choice {
    position: relative;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
}

.avatar-choice input[type="radio"] {
    display: none;
}

.avatar-choice img {
    width: 80px;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    transition: 0.2s ease;
}

.avatar-choice input[type="radio"]:checked + img {
    border: 3px solid #007BFF;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.7);
}