/* clanwar.css */

/* Reset & base */
body {
    /* Couleur de fond de secours */
    background-color: #f5f5f3;

    /* Image de fond */
    background-image: url('/images/backgrounds/default_2.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed; /* Pour un effet fixe au scroll */

    /* Police et couleur de base */
    font-family: 'Poppins', sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
    min-height: 100vh;

    /* Pour améliorer le rendu sur certains navigateurs */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* Overlay semi-transparent pour améliorer la lisibilité */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(245, 245, 243, 0.7); /* voile beige clair semi-transparent */
    pointer-events: none; /* pour ne pas bloquer les interactions */
    z-index: -1; /* Derrière tout le contenu */
}


.container {
    max-width: 960px;
    margin: 4rem auto 6rem;
    padding: 2rem 2.5rem;
    background: #faf9f7; /* beige clair */
    border-radius: 16px;
    box-shadow: 0 4px 12px rgb(0 0 0 / 0.1);
    border: 1px solid #ddd;
}

h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    color: #5a5045; /* gris chaud */
    margin-bottom: 2.5rem;
    letter-spacing: 0.1em;
    user-select: none;
}

section {
    background: #fff; /* blanc pur */
    border-radius: 14px;
    box-shadow: 0 1px 6px rgb(0 0 0 / 0.1);
    padding: 2rem 2.5rem;
    margin-bottom: 2.5rem;
    border: 1px solid #e0ddd8;
    transition: box-shadow 0.3s ease;
}
section:hover {
    box-shadow: 0 4px 20px rgb(0 0 0 / 0.15);
}

h2 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    font-size: 1.8rem;
    margin-bottom: 1.3rem;
    color: #7a6f63; /* gris marron */
}

form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #7a6f63;
}

form input[type="text"],
form input[type="email"],
form input[type="password"] {
    width: 100%;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    border: 1.5px solid #c2bfb8;
    font-size: 1.1rem;
    background: #fdfaf6;
    color: #555;
    margin-bottom: 1.2rem;
    transition: border-color 0.3s ease;
    font-family: 'Poppins', sans-serif;
}
form input[type="text"]:focus,
form input[type="email"]:focus,
form input[type="password"]:focus {
    outline: none;
    border-color: #a38f74;
    background: #fcf8f4;
}

button {
    background: #a38f74; /* beige-marron */
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    color: #fff;
    font-weight: 700;
    font-size: 1.15rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgb(163 143 116 / 0.7);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    user-select: none;
    font-family: 'Orbitron', sans-serif;
}
button:hover {
    background: #8c7b5f;
    box-shadow: 0 6px 16px rgb(140 123 95 / 0.85);
}
button:active {
    transform: scale(0.95);
}

/* Liste des équipes */
ul.team-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.8rem;
}

ul.team-list li {
    background: #fefcf9;
    padding: 1.4rem 1.6rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgb(0 0 0 / 0.07);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: box-shadow 0.25s ease;
    font-family: 'Poppins', sans-serif;
    border: 1px solid #ddd6cc;
}
ul.team-list li:hover {
    box-shadow: 0 6px 22px rgb(0 0 0 / 0.12);
}

ul.team-list li strong {
    font-size: 1.4rem;
    color: #8c7b5f;
    letter-spacing: 0.03em;
}

ul.team-list li span.member-label {
    margin-left: 10px;
    background: #c7b89e;
    color: #403727;
    font-weight: 700;
    padding: 0.3rem 0.7rem;
    border-radius: 12px;
    font-size: 0.95rem;
    user-select: none;
    align-self: flex-start;
    box-shadow: 0 0 8px rgb(199 184 158 / 0.5);
}

ul.team-list li a.stats-link {
    margin-top: 1rem;
    align-self: flex-end;
    font-weight: 600;
    color: #8c7b5f;
    text-decoration: none;
    transition: color 0.25s ease;
}
ul.team-list li a.stats-link:hover {
    color: #5a4c3d;
}

/* Bouton rejoindre */
ul.team-list li form {
    margin-top: 1rem;
}
ul.team-list li form button {
    width: 100%;
    padding: 0.7rem;
    font-size: 1.05rem;
    background: #8c7b5f;
    box-shadow: 0 4px 10px rgb(140 123 95 / 0.6);
    border-radius: 12px;
    border: none;
    font-weight: 700;
    transition: background 0.3s ease;
    cursor: pointer;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
}
ul.team-list li form button:hover {
    background: #7a6f63;
    box-shadow: 0 6px 14px rgb(122 111 99 / 0.8);
}

/* Message d'erreur / info */
p.info-msg {
    text-align: center;
    font-style: italic;
    font-weight: 600;
    color: #999a98;
    margin-top: 2rem;
    user-select: none;
}

/* Section inscription clan war */
section.clanwar-register {
    text-align: center;
    font-size: 1.15rem;
    color: #7a6f63;
    font-style: italic;
    font-weight: 600;
}

.profile-link {
    color: black;
    text-decoration: none; /* optionnel, pour enlever le soulignement */
}

/* Responsive */
@media (max-width: 600px) {
    h1 {
        font-size: 2.4rem;
    }
    section {
        padding: 1.6rem 2rem;
    }
    ul.team-list {
        grid-template-columns: 1fr;
        gap: 1.3rem;
    }
}
