/* assets/css/style.css */

/* --- Variables et Reset de base --- */
:root {
    --primary-color: #00bcd4;
    --background-color: #121212;
    --surface-color: #1e1e1e;
    --text-color: #e0e0e0;
    --error-color: #cf6679;
    --success-color: #66bb6a;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    background: linear-gradient(to right, #0f2027, #203a43, #2c5364);
    color: var(--text-color);
    line-height: 1.6;
	display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    padding: 20px;
	flex-grow: 1;
}

/* --- Structure et Conteneurs --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.form-container {
    max-width: 500px;
    margin: 40px auto;
    padding: 30px;
    background-color: #00283a;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

h1 {
    text-align: center;
    margin-bottom: 10px;
}

.form-container p {
    text-align: center;
    color: #a0a0a0;
}

.form-logo {
    text-align: center;
    margin-bottom: 20px;
}

.form-logo img {
    max-width: 200px; /* Ajustez la taille selon votre logo */
    height: auto;
}

/* --- Formulaires --- */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #444;
    border-radius: 4px;
    background-color: #ffffff;
    color: #000000;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 1em;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 188, 212, 0.3);
}

.compact-form .form-group label.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.form-group select {
    /* Apparence et dimensions */
    width: 100%;
    padding: 12px;
    border: 1px solid #444;
    border-radius: 4px;
    /* background-color: var(--input-bg);
    color: var(--text-color); */
    font-size: 1em;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;

    /* On retire l'apparence par défaut du navigateur */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;

    /* On ajoute notre propre flèche personnalisée en arrière-plan */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23d1d5db' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

/* Style au survol et au focus */
.form-group select:hover {
    border-color: var(--primary-color-light);
}

.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-color-translucent);
}

/* Style des options dans la liste déroulante */
.form-group select option {
    background-color: #ffffff;
    color: #000000;
}

.btn {
    display: inline-block;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #121212;
}

.form-group-row {
    display: flex;
    gap: 30px;
    align-items: flex-end;
    margin-bottom: 20px;
}

.form-separator {
    border: none;
    border: 1px solid #444;
    margin: 30px 0;
}

.form-footer {
    margin-top: 20px;
    font-size: 14px;
}

.form-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

/* --- Alertes --- */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    text-align: center;
}
.alert.error {
    background-color: var(--error-color);
    color: #fff;
}
.alert.success {
    background-color: var(--success-color);
    color: #fff;
}

/* --- Footer --- */
.site-footer {
    background-color: #0f2027; /* Couleur de départ de votre dégradé */
    color: #a0a0a0;
    text-align: center;
    padding: 20px 0;
    font-size: 14px;
	flex-shrink: 0;
}

.site-footer .container {
    padding-top: 10px;
}

.site-footer a {
    color: #a0a0a0;
    text-decoration: none;
    transition: color 0.3s;
}

.site-footer a:hover {
    color: var(--primary-color);
}

/* --- Barre de Navigation Principale --- */
.main-nav {
    background-color: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #333;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img {
	display: block;
    height: 30px;
    width: auto;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}

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

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

.nav-actions .btn-secondary {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 16px;
}
.nav-actions .btn-secondary:hover {
    background-color: var(--primary-color);
    color: #121212;
}

/* --- Page de Profil --- */
.section {
    margin-bottom: 40px;
}

.section h2 {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.stat-card {
    background-color: var(--surface-color);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.stat-card h3 {
    margin: 0 0 5px 0;
    font-size: 2em;
    color: var(--primary-color);
}

.stat-card p {
    margin: 0;
    color: #a0a0a0;
}

.logout-section {
    text-align: center;
    margin-top: 40px;
}
.btn-danger {
    background-color: var(--error-color);
    color: white;
}

/* --- Section Héros (Page d'accueil) --- */
.hero-section {
    /* background: url('../img/hero-background.jpg') no-repeat center center/cover; */
    color: white;
    text-align: center;
    /*padding: 100px 20px;*/
    padding: 50px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
}

.hero-section .container {
    max-width: 800px;
}

.hero-section h1 {
    font-size: 3em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.hero-section .subtitle {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

.btn-large {
    font-size: 1.2em;
    padding: 15px 30px;
}

/* --- Section des Fonctionnalités --- */
.features-section {
   /* padding: 60px 0; */
    padding: 10px 0;
}

.features-section .container {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    text-align: center;
}

.feature-item {
    flex: 1;
    max-width: 300px;
}

.feature-icon {
    height: 120px;
    /*margin-bottom: 20px;*/
}

.feature-item h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* --- Responsive pour les fonctionnalités --- */
@media (max-width: 768px) {
    .features-section .container {
        flex-direction: column;
        align-items: center;
    }
}

/* pour équipe */
.member-list {
    list-style: none;
    padding: 0;
    background-color: var(--surface-color);
    border-radius: 8px;
}
.member-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #333;
}
.member-list li:last-child {
    border-bottom: none;
}
.member-info { 
    flex-grow: 1; 
    display: flex;
    align-items: center;
}

.member-details {
    display: flex;
    flex-direction: column;
}

.member-name { 
    font-weight: bold; 
}

.member-points { 
    color: var(--primary-color);
    font-size: 0.9em;
}

.member-actions {
    display: flex; align-items: center;
}
.member-actions a {
    text-decoration: none;
    font-size: 1.5em;
    margin-left: 15px;
}
.member-actions a.promote {
    color: var(--success-color);
}
.member-actions a.danger {
    color: var(--error-color);
}

.no-team-container {
    text-align: center;
    padding: 50px 0;
}
.team-choices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.choice-card {
    background-color: var(--surface-color);
    padding: 30px;
    border-radius: 8px;
    flex-basis: 400px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
}
.choice-card h3 { 
    margin-top: 0;
    text-align: center;
}
.choice-card p {
    font-size: 1em;
    margin-bottom: 20px;
}

/* Responsive pour les cartes côte à côte */
@media (max-width: 992px) {
    .team-choices {
        grid-template-columns: 1fr;
    }
}

/* =================================== */
/* STYLES POUR LES PREVIEW TEAM */
/* =================================== */

.form-image-preview {
    height: 100px;
    border-radius: 8px;
    border: 1px solid var(--admin-border-color);
}
.form-image-preview.wide {
    width: 100%;
    max-width: 600px;
}

/* ============================================== */
/* --- AJOUTS POUR LA RECHERCHE ET LA LISTE --- */
/* ============================================== */

/* --- Formulaire de recherche --- */
.search-form {
    display: flex;
    margin-bottom: 25px;
}

.search-form input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #444;
    border-radius: 4px;
    background-color: #ffffff;
    color: #000000;
    box-sizing: border-box;
    flex-grow: 1;
    border-right: none;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.search-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.search-form button {
    padding: 0 15px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border: 1px solid #444;
    background-color: #333;
    color: white;
    cursor: pointer;
    font-size: 1.2em;
    transition: background-color 0.3s;
}
.search-form button:hover {
    background-color: #444;
}

.search-form .search-input-group {
    display: flex; /* Garde l'input et le bouton sur la même ligne */
}

/* --- Liste des équipes --- */
.team-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.team-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--surface-color);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}
.team-list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.team-item-info {
    flex-grow: 1;
    margin-right: 20px;
}
.team-item-info h3 {
    margin: 0 0 5px 0;
    color: var(--primary-color);
}
.team-item-info p {
    margin: 0;
    color: #a0a0a0;
    font-size: 14px;
}
.team-item-actions .btn-secondary {
    width: auto;
    padding: 8px 16px;
    font-size: 14px;
}

/* ============================================== */
/* --- Responsive pour la Navigation Principale --- */
/* ============================================== */

/* Cacher le bouton hamburger sur grand écran */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

/* Animation du hamburger en croix */
.mobile-menu-toggle.is-active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.mobile-menu-toggle.is-active .bar:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.is-active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --- Styles pour la version BUREAU --- */
/* On s'assure que le menu se comporte comme un groupe de liens et d'actions */
.nav-menu {
    display: flex; /* Affiche les liens et le bouton déconnexion sur la même ligne */
    align-items: center; /* Centre verticalement les éléments */
    gap: 25px; /* Espace entre les liens et le bouton */
}


/* On applique les styles mobiles pour les écrans de 768px ou moins */
@media (max-width: 768px) {

    /* Afficher le bouton hamburger */
    .mobile-menu-toggle {
        display: block;
    }

    /* Le conteneur du menu est caché par défaut et positionné pour apparaître */
    .nav-menu {
        /* On override les styles du bureau */
        position: absolute;
        top: 61px; /* Hauteur de la nav-bar */
        left: 0;
        right: 0;
        background-color: #1e1e1e;
        
        /* On passe en mode colonne pour mobile */
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 0; /* On retire l'espacement du bureau */
        
        /* Cacher le menu en le déplaçant hors de l'écran */
        transform: translateY(-150%);
        transition: transform 0.3s ease-in-out;
    }

    /* Quand le menu est ouvert, on le ramène à sa position visible */
    .nav-menu.is-open {
        transform: translateY(0);
    }

    /* Styliser les liens et actions pour un affichage vertical */
    .nav-links {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        width: 100%;
    }

    .nav-actions {
        margin-top: 20px;
        width: 90%;
    }
    .nav-actions .btn {
        width: 100%;
    }
}

/* ============================================== */
/* --- Styles pour le bouton d'édition du profil --- */
/* ============================================== */

/* Sur grand écran, on affiche l'icône et le texte */
.btn-icon-profile {
    display: inline-flex;
    align-items: center;
    gap: 8px; /* Espace entre l'icône et le texte */
}

/* On s'assure que le bouton ne prend que sa taille naturelle dans le header */
.profile-header .btn-icon-profile {
    width: auto;
    margin-left: auto; /* Pousse le bouton à droite */
}

/* --- Responsive pour le bouton d'édition du profil --- */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        position: relative; /* Indispensable pour positionner le bouton */
    }

    .profile-header .btn-icon-profile {
        top: 20px;
        right: 20px;
        padding: 10px; /* Padding carré pour un look d'icône */
        margin-left: 0;
    }

    .profile-header .btn-icon-profile svg {
        margin: 0; /* On retire la marge de l'icône qui était là pour le texte */
    }
}

/* On garde les ajustements pour les très petits écrans */
@media (max-width: 480px) {
    .profile-header {
        text-align: center;
        align-items: center;
    }
    
    .profile-info h1 {
        text-align: center;
    }
}

/* ========================================================= */
/* --- SYSTÈME DE CARTE D'EN-TÊTE DE PAGE (Profil, Équipe, etc.) --- */
/* ========================================================= */

/* --- 1. Style de base pour la carte (Desktop) --- */
.page-header-card {
    background-color: var(--surface-color);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    
    display: flex;
    align-items: center;
    gap: 30px;
}

/* --- 2. Style pour l'avatar ou le logo --- */
.page-header-card-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    object-fit: cover;
    flex-shrink: 0;
}

.member-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 15px;
    flex-shrink: 0; /* Important pour ne pas qu'il se déforme */
    border: 2px solid var(--surface-color); /* petite bordure discrète */
}

/* --- 3. Style pour le bloc d'information --- */
.page-header-card-info {
    flex-grow: 1; /* Prend l'espace disponible */
}

.page-header-card-info h1,
.page-header-card-info h2 {
    margin: 0;
    text-align: left;
}

.page-header-card-info p {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--primary-color);
    margin: 5px 0 0 0;
}
.page-header-card-info .rank { /* Spécifique au profil */
    font-size: 1.1em;
    color: #a0a0a0;
    font-weight: normal;
}

/* --- 4. Style pour le conteneur des boutons --- */
.page-header-card-actions {
    margin-left: auto;
    display: flex;
    gap: 15px;
}
.page-header-card-actions .btn {
    width: auto;
}


/* --- 5. LOGIQUE RESPONSIVE (Mobile < 768px) --- */
@media (max-width: 768px) {
    .page-header-card {
        flex-direction: column; /* La clé : on passe en colonne */
        text-align: center;   /* On centre le texte pour mobile */
    }

    .page-header-card-info h1,
    .page-header-card-info h2 {
        text-align: center;
    }
    
    .page-header-card-actions {
        margin-left: 0; /* On annule la marge */
        margin-top: 20px; /* On ajoute un espace au-dessus */
        width: 100%;
        max-width: 320px; /* On limite la largeur max des boutons */
    }

    .page-header-card-actions .btn {
        width: 100%; /* Les boutons prennent toute la largeur disponible */
    }
}

/* =================================================== */
/* --- DESIGN COMPLET PAGE MISSIONS (UTILISATEUR) --- */
/* =================================================== */

/* --- En-tête de page générique --- */
.page-header {
    background-color: var(--surface-color);
    border-radius: 12px;
    padding: 25px 30px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 25px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.page-header .header-icon {
    flex-shrink: 0;
    color: var(--primary-color);
    padding: 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.page-header .header-info {
    flex-grow: 1;
}
.page-header .header-info h1 {
    text-align: left;
    margin: 0;
    font-size: 2em;
}
.page-header .header-info p {
    margin: 5px 0 0 0;
    color: #a0a0a0;
    font-size: 1.1em;
}
.page-header .header-stats {
    display: flex;
    gap: 30px;
    background-color: var(--background-color);
    padding: 15px 25px;
    border-radius: 8px;
}
.header-stats .stat-item {
    text-align: center;
}
.header-stats .stat-value {
    display: block;
    font-size: 1.8em;
    font-weight: bold;
    color: var(--primary-color);
}
.header-stats .stat-label {
    font-size: 0.9em;
    color: #a0a0a0;
}

/* --- Système d'onglets --- */
.tabs-container {
    margin-top: 20px;
}
.tabs-nav {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid #333;
    margin-bottom: 30px;
}
.tab-link {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: #a0a0a0;
    padding: 10px 5px;
    margin-bottom: -1px; /* Pour que la bordure active touche la ligne */
    cursor: pointer;
    font-size: 1.1em;
    transition: all 0.2s;
}
.tab-link:hover {
    color: var(--text-color);
}
.tab-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: 600;
}
.tab-link .badge {
    background-color: #555;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    margin-left: 8px;
    font-weight: normal;
}
.tab-link.active .badge {
    background-color: var(--primary-color);
    color: #121212;
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}

/* --- Grille des missions --- */
.missions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}
.mission-card {
    background-color: var(--surface-color);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #333;
    transition: transform 0.2s, box-shadow 0.2s;
}
.mission-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.mission-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: rgba(0,0,0,0.2);
    border-bottom: 1px solid #333;
}
.mission-type-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
    color: white;
}
.mission-type-badge.type-capture { background-color: #0ea5e9; }
.mission-type-badge.type-exploration { background-color: #f97316; }
.mission-type-badge.type-community { background-color: #8b5cf6; }
.mission-type-badge.type-special { background-color: #eab308; color: #1e293b; }
.mission-reward { font-weight: bold; color: var(--primary-color); }

.mission-card-body {
    padding: 15px;
    flex-grow: 1;
}
.mission-card-body h3 {
    margin: 0 0 10px 0;
    text-align: left;
    font-size: 1.2em;
}
.mission-card-body p {
    margin: 0;
    font-size: 0.9em;
    color: #ccc;
    line-height: 1.5;
}
.mission-location {
    margin-top: 15px;
    font-size: 0.9em;
    padding-top: 10px;
    border-top: 1px dashed #444;
}
.mission-location a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}
.mission-location a:hover {
    text-decoration: underline;
}

.mission-card-footer {
    padding: 15px;
    background-color: rgba(0,0,0,0.2);
    border-top: 1px solid #333;
}
.mission-card-footer .btn {
    width: 100%;
}
.mission-status-info {
    text-align: center;
    font-weight: bold;
    color: #ccc;
    padding: 12px 0;
}
.mission-submit-form textarea {
    width: 100%;
    margin-bottom: 10px;
    background-color: #333;
    border-color: #555;
    color: white;
    padding: 10px;
    border-radius: 4px;
}
.btn-link {
    background: none; border: none; color: #a0a0a0; cursor: pointer;
    text-decoration: underline; font-size: 0.9em; padding: 5px; width: 100%;
}
.btn-link:hover {
    color: var(--text-color);
}

.empty-state {
    text-align: center;
    padding: 50px 20px;
    background-color: var(--surface-color);
    border: 2px dashed #444;
    border-radius: 8px;
}
.empty-state p {
    font-size: 1.1em;
    color: #a0a0a0;
}

/* --- Responsive pour les en-têtes de page --- */
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .page-header .header-info h1 {
        text-align: center;
    }
    .page-header .header-stats {
        justify-content: space-around;
        width: 100%;
    }
    .tabs-nav {
        overflow-x: auto; /* Permet de scroller les onglets sur mobile */
    }
}

/* Style pour le statut des missions en cours */
.mission-status-in-progress {
    text-align: center;
}
.mission-status-in-progress small {
    display: block;
    font-size: 0.8em;
    color: #a0a0a0;
    margin-top: -10px;
}

/* =================================================== */
/* --- STYLES POUR LEADERBOARD & MARKETPLACE --- */
/* =================================================== */

/* --- Classement (Leaderboard) --- */
.leaderboard-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.leaderboard-column h2 {
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}
.leaderboard-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.leaderboard-list li {
    background-color: var(--surface-color);
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
}
.leaderboard-list li .rank {
    font-size: 1.2em;
    font-weight: bold;
    color: #a0a0a0;
    width: 40px;
    flex-shrink: 0;
}
.leaderboard-list li .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}
.leaderboard-list li .info {
    flex-grow: 1;
}
.leaderboard-list li .info .name {
    font-weight: bold;
    display: block;
}
.leaderboard-list li .info .team {
    font-size: 0.9em;
    color: #a0a0a0;
}
.leaderboard-list li .points {
    font-weight: bold;
    color: var(--primary-color);
}

/* --- Boutique (Marketplace) --- */
.marketplace-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.item-card {
    background-color: var(--surface-color);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #333;
}
.item-image-container {
    position: relative;
}
.item-image-container img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}
.item-image-container .item-type {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
}
.item-info {
    padding: 15px;
}
.item-info h3 {
    margin: 0 0 15px 0;
    font-size: 1.1em;
    text-align: left;
}
.item-purchase {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.item-price {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--primary-color);
}
.item-purchase .btn {
    width: auto;
    padding: 8px 16px;
}
.item-purchase .btn:disabled {
    background-color: #555;
    cursor: not-allowed;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .leaderboard-container {
        grid-template-columns: 1fr;
    }
}

/* CSS pour rendre l'autosuggestion propre et fonctionnelle */
.address-group .input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.address-group .input-wrapper input {
    width: 100%;
}
.address-group .input-wrapper #loading-spinner {
    position: absolute;
    right: 10px;
    color: #888;
}
.address-results-container {
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 4px 4px;
    background-color: white;
    color: #000000;
    position: absolute;
    width: 100%;
    z-index: 1000;
    max-height: 250px;
    max-width: 500px;
    overflow-y: auto;
    box-sizing: border-box; /* S'assure que le padding/border ne change pas la largeur */
}
.address-suggestion {
    padding: 12px;
    cursor: pointer;
    font-size: 0.9em;
    border-bottom: 1px solid #eee;
}
.address-suggestion:last-child {
    border-bottom: none;
}
.address-suggestion:hover, .address-suggestion.selected {
    background-color: #f0f0f0;
}
.current-address {
    margin-top: 8px;
    font-size: 0.9em;
    color: #555;
}

/* =================================== */
/* STYLES POUR LES MESSAGES DE FEEDBACK */
/* =================================== */

.feedback-message {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 5px;
    font-weight: 500;
}

/* Style pour les messages de succès (fond vert) */
.feedback-message.success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

/* Style pour les messages d'erreur (fond rouge) */
.feedback-message.error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* Style pour les messages d'information (fond bleu clair) */
.feedback-message.info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}