/* =========================
   RESET & BODY
========================= */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Orbitron', 'Roboto', sans-serif;
    background-color: #0f0f15;
    color: #fff;
    display: flex;
    flex-direction: column;
}

.events-table th {
    font-family: 'Orbitron', 'Roboto', sans-serif;
    text-align: left;
}

.page-wrapper {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.content {
    flex: 1;
}

/* =========================
   HEADER / NAVBAR
========================= */
header, .navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 30px;
    background-color: #111;
    box-shadow: 0 3px 10px rgba(0,0,0,0.5), 0 4px 8px #ff6600; /* ajout d'une ombre orange vers le bas */
    border-bottom: 3px solid #ff6600; /* border orange */
    position: sticky;
    top: 0;
    z-index: 1000;
	height: 60px !important;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
}

.navbar .logo img {
    height: 70px;
    width: auto;
    display: block;
    padding: 10px;
	margin-top: 10px;
	
}

.navbar .nav-links {
    display: flex;
    gap: 25px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.navbar .user-links {
    display: flex;
    gap: 15px;
}

.navbar a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
}

.navbar a:hover {
    color: #ff6600;
}

/* =========================
   USER MENU
========================= */
/* Conteneur principal : avatar à gauche, pseudo + stats à droite */
.user-menu {
    display: flex;
    align-items: flex-start; /* avatar en haut aligné avec pseudo */
    position: relative;
    cursor: pointer;
    gap: 8px; /* espace entre avatar et info */
}

/* Avatar */
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

/* Conteneur pseudo + stats */
.user-info {
    display: flex;
    flex-direction: column; /* pseudo au-dessus des stats */
}

/* Pseudo */
.user-name {
    font-weight: bold;
    line-height: 1.2em;
    color: white;
}

/* Style du rating */
.user-stats small:last-child {
    color: orange;      /* texte orange */
    font-weight: bold;  /* gras */
}

/* Stats sous le pseudo */
.user-stats {
    display: flex;
    gap: 10px; /* espace entre chaque stat */
    font-size: 0.75em;
    color: #ccc;
    margin-top: 2px;
}

/* Menu déroulant */

.user-menu .dropdown {
    list-style: none;      /* supprime les puces */
    padding: 0;            /* supprime le padding par défaut du ul */
    margin: 0;             /* supprime la marge par défaut */
    position: absolute;
    top: 60px;             /* ajuste selon la hauteur pseudo + stats */
    right: 0;
    background-color: #2a2a2a;
    border-radius: 5px;
    min-width: 150px;
    display: none;
    flex-direction: column;
    z-index: 999;
}

.user-menu.active .dropdown {
    display: flex;
}

/* Liens dans le dropdown */
.user-menu .dropdown li a {
    display: block;
    padding: 10px 15px;
    color: white;
    text-decoration: none;
}
.user-menu .dropdown li a:hover {
    background-color: #ff6600;
}

/* =========================
   SECTIONS / CARDS
========================= */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    color: #ff6600;
    margin: 20px 0 15px;
    text-transform: uppercase;
    font-size: 1.8em;
    width: 100%;
    max-width: 980px;
    text-align: left;
}

.section-cards,
.leagues-container,
.premium-section {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    max-width: 980px;
}

.card, .league-card, .premium-card {
    background: #1b1b25;
    border-radius: 12px;
    overflow: hidden;
    width: 300px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.card:hover, .league-card:hover, .premium-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.7);
}

.card img, .league-img, .premium-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-content, .league-info {
    padding: 15px 20px;
}

.card-content h3, .league-info h2, .premium-card h3 {
    margin: 0 0 10px;
    font-family: 'Orbitron', sans-serif;
    color: #ff6600;
}

.card-content p, .league-info p, .premium-card p {
    color: #ccc;
    font-size: 0.9rem;
}

.btn, .btn-primary {
    background-color: #ff6600;
    color: #fff;
    padding: 12px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
    border: 2px solid #ff6600;
    transition: background 0.3s, color 0.3s;
    display: inline-block;
    text-align: center;
}

.btn:hover, .btn-primary:hover {
    background-color: #e55b00;
    border-color: #e55b00;
}

/* Horizontal scrolling sections */
.section-cards-horizontal,
.section-cards-horizontal-events {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 10px 0;
    max-width: 980px;
}

.section-cards-horizontal::-webkit-scrollbar,
.section-cards-horizontal-events::-webkit-scrollbar {
    height: 8px;
}

.section-cards-horizontal::-webkit-scrollbar-thumb,
.section-cards-horizontal-events::-webkit-scrollbar-thumb {
    background-color: #ff6600;
    border-radius: 4px;
}

.section-cards-horizontal::-webkit-scrollbar-track,
.section-cards-horizontal-events::-webkit-scrollbar-track {
    background-color: #1e1e1e;
}

/* =========================
   PROFILE PAGE
========================= */
.profile-page {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

.profile-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.profile-left, .profile-right {
    background: #1c1c1c;
    border-radius: 12px;
    padding: 20px;
    color: #fff;
}

.avatar-wrapper, .avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #FFD700;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.stat-card {
    background: #111;
    padding: 20px;
    text-align: center;
    border-radius: 10px;
}

.stat-card h3 {
    color: #FFD700;
    margin-bottom: 10px;
}

/* =========================
   ADMIN PANEL
========================= */
.admin-panel {
    margin-top: 30px;
    background: #1a1a1a;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #FFD700;
}

.admin-actions {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.admin-btn {
    background: #FFD700;
    color: black;
    padding: 10px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}

/* =========================
   FOOTER
========================= */
footer {
    background-color: #111;
    color: #fff;
    text-align: center;
    padding: 15px 0;
    border-top: 3px solid #ff6600; /* bordure orange en haut */
    box-shadow: 0 -4px 8px #ff6600; /* ombre orange vers le haut */
}


/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1024px) {
    .section-cards, .leagues-container, .premium-section {
        justify-content: center;
    }

    .card, .league-card, .premium-card {
        flex: 1 1 calc(50% - 20px);
    }

    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .card, .league-card, .premium-card {
        flex: 1 1 100%;
    }

    .section-cards-horizontal, .section-cards-horizontal-events {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .events-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .user-stats {
        margin-left: 50px; /* réduit sur tablette/mobile */
    }
}

.user-menu {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.user-menu .dropdown {
    display: none; 
    position: absolute;
    top: 50px;
    right: 0;
    background: #1e1e1e;
    border-radius: 6px;
    min-width: 150px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    z-index: 100;
}

.user-menu .dropdown li {
    padding: 10px 20px;
}

.user-menu .dropdown li a {
    color: #fff;
    text-decoration: none;
    display: block;
}

/* Afficher le dropdown lorsqu’on ajoute une classe 'active' */
.user-menu.active .dropdown {
    display: block;
}

.admin-btn.results {
    background: #00c853; /* vert */
    color: white;
}

.messages-container {
    margin-bottom: 20px;
}

.alert {
    padding: 12px 18px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-weight: bold;
}

/* Succès */
.alert.success {
    background: #1e7e34;
    color: white;
}

/* Erreur */
.alert.error {
    background: #c82333;
    color: white;
}

.edit-profile-container {
    max-width: 700px;
    margin: 40px auto;
    background: #111;
    padding: 30px;
    border-radius: 12px;
    color: white;
}

/* Layout horizontal */
.profile-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Avatar */
.avatar-section {
    width: 150px;
    text-align: center;
}

.avatar-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f1c40f;
    margin-bottom: 10px;
}

/* Partie droite */
.info-section {
    flex: 1;
}

/* Inputs */
.info-section input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 6px;
    border: none;
}

/* Boutons */
.buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.btn-back {
    background: #f1c40f;
    color: black;
    padding: 10px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}

.btn-save {
    background: #2ecc71;
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    border: none;
}

.btn-danger {
    background: #e74c3c;
    color: white;
    padding: 6px 10px;
    border: none;
    border-radius: 6px;
    margin-top: 5px;
    font-size: 12px;
}

/* =========================
   EDIT PROFILE (UPGRADE)
========================= */

/* Container centré */
.edit-profile-container {
    max-width: 800px;
    margin: 60px auto;
    background: linear-gradient(145deg, #111, #1a1a1a);
    padding: 30px;
    border-radius: 15px;
    color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.7);
}

/* Layout équilibré */
.profile-layout {
    display: flex;
    gap: 40px;
    align-items: center;
}

/* Avatar */
.avatar-section {
    width: 180px;
    text-align: center;
}

.avatar-preview {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ff6600;
    box-shadow: 0 0 15px rgba(255,102,0,0.6);
    transition: transform 0.3s;
}

.avatar-preview:hover {
    transform: scale(1.05);
}

/* Bouton supprimer */
.btn-danger {
    background: #e74c3c;
    color: white;
    padding: 6px 10px;
    border: none;
    border-radius: 6px;
    margin-top: 8px;
    font-size: 12px;
    cursor: pointer;
}

/* Partie droite */
.info-section {
    flex: 1;
}

/* Inputs stylés */
.info-section input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #333;
    background: #0f0f15;
    color: white;
    transition: 0.3s;
}

.info-section input:focus {
    border-color: #ff6600;
    box-shadow: 0 0 10px rgba(255,102,0,0.5);
    outline: none;
}

/* Labels */
.info-row span {
    font-size: 13px;
    margin-bottom: 5px;
    color: #888;
}

/* Bouton password */
.btn-password {
    width: 100%;
    background: linear-gradient(90deg, #3498db, #2980b9);
    color: white;
    padding: 12px;
    border-radius: 8px;
    border: none;
    margin-bottom: 15px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-password:hover {
    transform: translateY(-2px);
}

/* Boutons */
.buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.btn-save {
    background: linear-gradient(90deg, #2ecc71, #27ae60);
    padding: 12px 18px;
    border-radius: 8px;
    border: none;
}

.btn-back {
    background: #444;
    color: white;
}

/* =========================
   MODAL UPGRADE
========================= */

.modal-content {
    background: linear-gradient(145deg, #111, #1a1a1a);
    margin: 8% auto;
    padding: 30px;
    width: 380px;
    border-radius: 12px;
    color: white;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    animation: fadeIn 0.3s ease;
}

.modal-content h3 {
    margin-bottom: 15px;
    color: #ff6600;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    justify-content: center;
    align-items: center;

    background: rgba(0,0,0,0.7);
}

/* quand ouverte */
.modal.active {
    display: flex;
}


.manage-team-btn {
    display: inline-block;
    margin-top: 5px;
    padding: 5px 10px;
    background: #FFD700;
    color: black;
    border-radius: 6px;
    font-size: 12px;
    text-decoration: none;
    transition: background 0.2s;
}
.manage-team-btn:hover {
    background: #FFC107;
}

.role-badge {
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
    color: black;
}

.role-badge.superuser {
    background-color: #ff5555; /* rouge vif */
}

.role-badge.staff {
    background-color: #ffaa00; /* doré */
}

.role-badge.user {
    background-color: #555555; /* gris neutre */
}

.role-badge.subscription.free {
    background-color: #555555;  /* gris */
}
.role-badge.subscription.premium {
    background-color: #FFD700;  /* doré */
}
.role-badge.subscription.vip {
    background-color: #ff00aa;  /* violet flashy */
}
.role-badge.subscription {
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
    color: black;
}

/* ===== Signup Page ===== */
.signup-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 40px 20px;
}

.signup-container {
    display: flex;
    background: #1a1a1a;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    max-width: 1000px;
    width: 100%;
}

.signup-form {
    flex: 1;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.signup-form h1.signup-title {
    color: #ff6600;
    margin-bottom: 15px;
    font-family: 'Orbitron', sans-serif;
}

.signup-subtitle {
    color: #ccc;
    margin-bottom: 30px;
    font-size: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: bold;
    color: #fff;
}

.form-group input {
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #333;
    background: #0f0f15;
    color: #fff;
    font-size: 1rem;
    transition: 0.3s;
}

.form-group input:focus {
    border-color: #ff6600;
    box-shadow: 0 0 10px rgba(255,102,0,0.5);
    outline: none;
}

.btn-primary {
    padding: 14px 20px;
    background: #ff6600;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn-primary:hover {
    background: #e55b00;
}

.signup-login-link {
    margin-top: 20px;
    color: #ccc;
}

.signup-login-link a {
    color: #ff6600;
    font-weight: bold;
    text-decoration: none;
}

.signup-login-link a:hover {
    text-decoration: underline;
}

/* Colonne image */
.signup-image {
    flex: 1;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.signup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .signup-container {
        flex-direction: column-reverse;
    }

    .signup-image {
        height: 250px;
    }
}

/* =========================
   EVENTS PAGE
========================= */
.section-events {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    color: #ff6600;
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: left;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.card {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.7);
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.card-image-wrapper:hover img {
    transform: scale(1.05);
}

/* Badges */
.event-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 10px;
    font-size: 0.7rem;
    font-weight: bold;
    border-radius: 5px;
    color: black;
}

.event-badge.type {
    background-color: #FFD700; /* doré pour type */
}

.event-badge.format {
    background-color: #ff6600; /* orange pour format */
    left: auto;
    right: 10px;
}

.card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-content h3 {
    font-family: 'Orbitron', sans-serif;
    color: #ff6600;
    margin-bottom: 10px;
}

.card-content p {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 15px;
    flex: 1;
}

.card-content .btn {
    align-self: flex-start;
    padding: 10px 16px;
    font-weight: bold;
    border-radius: 6px;
    background: #ff6600;
    border: none;
    color: white;
    transition: background 0.3s;
}

.card-content .btn:hover {
    background: #e55b00;
}

/* Responsive */
@media (max-width: 1024px) {
    .events-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   ÉVÉNEMENTS - BADGES VERTICAUX
========================= */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.card {
    background: #1b1b25;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.7);
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 12px;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Badges verticaux droits à gauche */
.card-image-wrapper .event-badge {
    position: absolute;
    left: 0;
    width: 100px;  /* largeur fixe pour aligner verticalement */
    padding: 6px 10px;
    font-weight: bold;
    color: #fff;
    text-align: center;
    border-radius: 0; /* plus de bord arrondi */
    box-shadow: none; /* plus de shadow */
    display: block;
}

/* Badge type - couleur site orange */
.card-image-wrapper .event-badge.type {
    top: 5px; /* descend l'ensemble de 5px */
    background-color: #ff6600;
}

/* Badge format - couleur site bleu */
.card-image-wrapper .event-badge.format {
    top: 40px; /* top du premier badge + 35px */
    background-color: #00aaff;
}

/* Card content */
.card-content {
    padding: 15px 20px;
    background: #1b1b25;
}

.card-content h3 {
    margin: 0 0 10px;
    color: #FFD700;
}

.card-content p {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.btn-primary {
    background-color: #ff6600;
    color: #fff;
    padding: 10px 15px;
    border-radius: 0; /* angle droit */
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-primary:hover {
    background-color: #e55b00;
}

/* Responsive */
@media (max-width: 768px) {
    .card-image-wrapper {
        height: 140px;
    }

    .card-image-wrapper .event-badge {
        width: 80px;
        font-size: 0.75rem;
        padding: 4px 8px;
    }

    .card-image-wrapper .event-badge.type {
        top: 0;
    }

    .card-image-wrapper .event-badge.format {
        top: 30px;
    }
}

/* Effet zoom badges au survol */
.card-image-wrapper .event-badge {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-image-wrapper .event-badge:hover {
    transform: scale(1.1); /* zoom léger */
    box-shadow: 0 2px 5px rgba(0,0,0,0.3); /* légère ombre pour le relief */
    cursor: pointer;
}

/* =========================
   EVENTS PAGE - GRID 4 COLS
========================= */
.section-events {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    color: #ff6600;
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: left;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 colonnes fixes */
    gap: 25px;
}

.card {
    background: #1b1b25;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.7);
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 12px;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Badges verticaux */
.card-image-wrapper .event-badge {
    position: absolute;
    left: 0;
    width: 100px;
    padding: 6px 10px;
    font-weight: bold;
    color: #fff;
    text-align: center;
    border-radius: 0;
    display: block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-image-wrapper .event-badge:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    cursor: pointer;
}

.card-image-wrapper .event-badge.type {
    top: 5px;
    background-color: #ff6600;
}

.card-image-wrapper .event-badge.format {
    top: 40px;
    background-color: #00aaff;
}

.card-content {
    padding: 15px 20px;
    background: #1b1b25;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-content h3 {
    margin: 0 0 10px;
    color: #FFD700;
}

.card-content p {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 10px;
    flex: 1;
}

.btn-primary {
    background-color: #ff6600;
    color: #fff;
    padding: 10px 15px;
    border-radius: 0;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-primary:hover {
    background-color: #e55b00;
}

/* Responsive */
@media (max-width: 1024px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur tablette */
    }
}

@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: 1fr; /* 1 colonne sur mobile */
    }

    .card-image-wrapper {
        height: 140px;
    }

    .card-image-wrapper .event-badge {
        width: 80px;
        font-size: 0.75rem;
        padding: 4px 8px;
    }

    .card-image-wrapper .event-badge.type {
        top: 0;
    }

    .card-image-wrapper .event-badge.format {
        top: 30px;
    }
}


#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background-color: #222; /* sombre */
    color: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInOut 5s forwards;
    font-size: 14px;
}

/* Couleurs par type */
.toast.success { background-color: #4CAF50; }
.toast.error   { background-color: #f44336; }
.toast.warning { background-color: #FFC107; color: #222; }

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(20px); }
    10%, 90% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(20px); }
}

/* Bloc MA LIGUE (identique à MA TEAM) */
.my-leagues {
    margin-top: 30px;
    padding: 20px;
    background: #1b1b25;
    border-radius: 10px;
    color: #fff;
}

.team-cards {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.team-card {
    display: flex;
    align-items: center;
    background: #2a2a36;
    padding: 10px 15px;
    border-radius: 8px;
    width: 100%;
    max-width: 300px;
    transition: transform 0.2s;
}

.team-card:hover {
    transform: translateY(-2px);
}

.team-logo {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    margin-right: 15px;
    object-fit: cover;
}

.team-info h4 {
    margin: 0;
    font-size: 16px;
}

.team-info p {
    margin: 2px 0 0;
    font-size: 14px;
    color: #ccc;
}

.manage-team-btn {
    display: inline-block;
    margin-top: 5px;
    background: #FFD700;
    color: black;
    padding: 5px 10px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}

.manage-team-btn:hover {
    background: #FFC107;
}