/* -------------------------------------------------- */
/* --- CONTENEUR PRINCIPAL PRESENTATION EVENEMENT --- */
/* -------------------------------------------------- */
.evenement-main-card {
    /* Fond sombre par défaut avec un léger dégradé pour le volume */
    background: linear-gradient(145deg, #1e2126, #2a2e35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); /* Ombre marquée en mode sombre */
    color: #ffffff; /* Texte blanc par défaut */
    overflow: visible;
    transition: all 0.3s ease;
}
#template-evenement .evenement-main-card .text-muted{
color: #ffffff !important; 
}

body.light-mode .evenement-main-card {
    /* 1. Fond blanc dégradé comme ton exemple */
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    /* 2. Bordure grise claire */
    border-color: #dee2e6;
    /* 3. Texte principal en noir */
    color: #212529;
    /* Ombre plus douce en mode clair */
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
body.light-mode #template-evenement .evenement-main-card .text-muted{
color: #212529 !important; 
}

/* --- CONTENEUR DES TUILES --- */
#template-evenement .event-actions-wrapper {
    display: grid;
    /* On force 5 colonnes sur desktop, et on laisse le navigateur gérer sur mobile */
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 12px;
    margin-bottom: 2rem;
    width: 100%;
}

/* --- STYLE DE BASE D'UNE TUILE --- */
#template-evenement .btn-event-tile {
    background-color: #2a2d30;
    color: #FFF !important;
    border: 1px solid var(--border-color);
    padding: 15px 10px;
    border-radius: 12px;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 100px;
    text-align: center;
}

/* Icônes */
#template-evenement .btn-event-tile i {
    font-size: 1.6rem;
    margin-bottom: 8px;
    display: block;
    transition: all 0.3s ease;
}

/* Texte (Labels) */
#template-evenement .btn-event-tile span {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    line-height: 1.2;
}

/* --- ÉTAT : DISPONIBLE (ACTIF) --- */
#template-evenement .btn-event-tile:not(.disabled) i {
    color: var(--gold);
}

#template-evenement .btn-event-tile:not(.disabled):hover {
    /*background-color: var(--bg-card-hover);*/
    border-color: var(--gold);
   /* transform: translateY(-5px);*/
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

#template-evenement .btn-event-tile:not(.disabled):hover i {
    transform: scale(1.2);
    filter: drop-shadow(0 0 5px rgba(237, 193, 59, 0.4));
}

/* --- ÉTAT : GRISÉ (INDISPONIBLE) --- */
#template-evenement .btn-event-tile.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    border-style: dashed; /* Effet pointillé pour le côté "emplacement vide" */
    background-color: rgba(0, 0, 0, 0.05);
}

#template-evenement .btn-event-tile.disabled i, 
#template-evenement .btn-event-tile.disabled span {
    color: var(--text-meta) !important;
    filter: grayscale(100%);
}

/* --- ADAPTATION MOBILE / TABLETTE --- */
@media (max-width: 992px) {
#template-evenement    .event-actions-wrapper {
        grid-template-columns: repeat(3, 1fr); /* 3 colonnes sur tablette */
    }
}

@media (max-width: 576px) {
 #template-evenement   .event-actions-wrapper {
        grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur mobile */
        gap: 8px;
    }
 #template-evenement   .btn-event-tile {
        min-height: 85px;
        padding: 10px 5px;
    }
#template-evenement    .btn-event-tile i {
        font-size: 1.3rem;
    }
#template-evenement .btn-event-tile span {
        font-size: 0.65rem;
    }
}

/* --- AJUSTEMENT MODE CLAIR --- */
body.light-mode #template-evenement .btn-event-tile.disabled {
    background-color: #e9ecef;
    border-color: #dee2e6;
}

body.light-mode #template-evenement .btn-event-tile:not(.disabled) {
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* -------------------------------------------------- */
/* --- CONTENEUR PRESENTATION EVENEMENT + POSTER  --- */
/* -------------------------------------------------- */
#template-evenement .event-details-box {
    color: var(--text-title);
	position:relative;
}
#template-evenement .logo-organisation-evenement {
	height:84px;
	width:84px;
	background:#FFF; 
	border-radius:16px;
	padding:0 5px;
	position:absolute; 
	right :-20px; 
	top :10px;
	display: flex;            /* Active le mode Flexbox */
    align-items: center;      /* Centre verticalement l'image */
    justify-content: center;   /* Centre horizontalement l'image */
	
	}
/* On s'assure que l'image ne dépasse pas du carré de 84px */
#template-evenement .logo-organisation-evenement img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;      /* Garde les proportions du logo sans le déformer */
}
body.light-mode #template-evenement .logo-organisation-evenement {border: 1px solid var(--border-color);}

#template-evenement .meta-link{color:#edc13b;}
#template-evenement .meta-label{color: var(--text-meta);font-size: 0.7rem !important;}
#template-evenement .countdown-container {
background: linear-gradient(to right, #282d30 0%, rgba(40, 45, 48, 0) 100%);
border-left: 10px solid #de510b;
border-radius:0;
color:#eee;
letter-spacing: 1px;
/*box-shadow: 0 4px 15px rgba(0,0,0,0.2);*/
}

/* Badge Gold */
#template-evenement .bg-gold {
    background-color: var(--gold) !important;
}

/* Cercles pour les icônes */
#template-evenement .icon-circle {
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1rem;
    flex-shrink: 0;
}

/* Typographie des labels */
#template-evenement .event-meta-list .small {
    font-size: 0.65rem;
    letter-spacing: 1px;
    opacity: 0.7;
}

#template-evenement .event-meta-list .text-white {
    font-size: 1.05rem;
    color: var(--text-title) !important;
}


/* Mode Clair */
body.light-mode #template-evenement .icon-circle {
    background: #2a2d30;
    border-color: #2a2d30;
	box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

body.light-mode #template-evenement .countdown-container a {
    /*background: #edc13b !important;*/
    /*box-shadow: 0 4px 15px rgba(0,0,0,0.05);*/
	color: #edc13b;
}


#template-evenement .poster-meta {
    font-size: 0.68rem;
    color: var(--text-meta);
    padding: 0 2px;
}

#template-evenement .poster-meta i {
    color: var(--gold);
    margin-right: 2px;
    font-size: 0.7rem;
}

#template-evenement .meta-update span, 
#template-evenement .meta-views span {
    font-weight: 500;
}

/* Optionnel : harmoniser avec le dégradé si besoin */
.meta-views {
    opacity: 0.9;
}


/* ============================================================
   STRUCTURE GLOBALE DE LA CARTE DE COMBAT
   ============================================================ */
#template-evenement .fight-card-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 2px;
    overflow: hidden;
    width: 100%;
    transition: all 0.3s ease;
    /*margin-bottom: 15px;*/
}

#template-evenement .fight-card-container:hover {
   /* border-bottom-color: #edc13b;
	border-left-color: #edc13b;
	border-right-color: #edc13b;*/
    /*box-shadow: 0 4px 15px rgba(0,0,0,0.3);*/
	background: #313538;
}

/* Header (Catégorie & Event) */
#template-evenement .fight-header {
    background: rgba(0, 0, 0, 0.2);
    font-family: 'Oswald', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
}

#template-evenement .lien-combat-list { color: #888; text-decoration:none;}
#template-evenement .cat-label { color: #f6e3ab; }
#template-evenement .card-type { color: #888;}
#template-evenement .card-combat-combat-annule {color:var(--rouge) !important;}

body.light-mode #template-evenement .cat-label {color: #111;}
body.light-mode #template-evenement .card-type { color: #333;}
body.light-mode #template-evenement .fight-card-container:hover {border:0;background: none;box-shadow:none;border-bottom:1px solid #333;}
body.light-mode #template-evenement .fight-card-container {border:0;border-bottom:1px solid #333;}
/* ============================================================
   LE CŒUR DU CENTRAGE (ÉQUILIBRE GAUCHE / DROITE)
   ============================================================ */
#template-evenement .fight-body {
    display: flex;
    align-items: center;
    width: 100%;
}

/* Force les deux blocs de texte à 50% chacun pour que le VS soit au milieu */
#template-evenement .fighter-side {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
}

/* Alignement vers le centre */
#template-evenement .fighter-side.text-end { align-items: flex-end; }
#template-evenement .fighter-side.text-start { align-items: flex-start; }


/* ============================================================
   PHOTOS ET DRAPEAUX
   ============================================================ */
/* --- PHOTOS AGRANDIES --- */
/* Conteneur parent pour positionner le bouton sur la photo */
#template-evenement .photo-wrapper {
    width: 85px;
	position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#template-evenement .photo-column {
    width: 85px !important;
    height: 85px !important;
	border-radius: 50%;
	position: relative; /* Indispensable pour que le bouton se cale dessus */
    overflow: hidden;
    flex-shrink: 0;
	z-index: 1;
}

#template-evenement .img-fighter {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.4s ease;
	border-radius: 50%; /* L'image reste ronde */
}

#template-evenement .fight-card-container:hover .img-fighter {
    transform: scale(1.2);
}

#template-evenement .flag-img {
    width: 22px;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
body.light-mode #template-evenement .flag-img {box-shadow: none;}
/*body.light-mode #template-evenement .photo-column {box-shadow: 0 2px 8px rgba(0,0,0,0.3);}*/

/* Le bouton Bleu à l'extérieur */
#template-evenement .btn-vote {
    position: absolute;
    bottom: -5px;
	left: 50%; /* On le place à 50% du bord gauche */
    transform: translateX(-50%); /* On le décale de sa propre moitié vers la gauche */
    background: #007bff; /* Bleu */
    color: #fff;
    border: 1px solid #007bff;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: bold;
    padding: 1px 8px;
    z-index: 10; /* Toujours au-dessus */
    cursor: pointer;
	right: auto !important;
	/* On réinitialise les styles qui pourraient gêner */
    margin: 0 !important;
    text-align: center;
    white-space: nowrap;
}

#template-evenement .btn-vote:hover {
    background: #0056b3;
}
/* ============================================================
   TYPOGRAPHIE ET BADGES
   ============================================================ */
#template-evenement .fighter-name {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-title);
    text-decoration: none;
}

#template-evenement .rank-tag {
    font-family: 'Oswald', sans-serif;
    color: #ffd700;
    font-size: 0.85rem;
}
body.light-mode #template-evenement .rank-tag {color: #fc6b01;}

#template-evenement .rank-tag-fan {
    font-family: 'Oswald', sans-serif;
    color: #888;
    font-size: 0.85em;
}

#template-evenement .trend-pill {
    font-family: 'Oswald', sans-serif;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: bold;
    text-transform: uppercase;
}

#template-evenement .trend-pill.up { background: var(--vert); color: #fff; }
#template-evenement .trend-pill.down { background: var(--rouge); color: #fff; }

/* Badge No-Contest (Gris) */
#template-evenement .badge-nc {
    background: #95a5a6 !important;
    color: #fff !important;
    font-family: 'Oswald', sans-serif;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: bold;
}

/* Badge Draw (Orange) */
#template-evenement .badge-draw {
    background: #e67e22 !important;
    color: #fff !important;
    font-family: 'Oswald', sans-serif;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: bold;
}

#template-evenement .palmares {
    font-family: 'Oswald', sans-serif;
    font-size: 0.8rem;
    color: #888;
    letter-spacing: 1px;
}

/* Animation Badge DEBUT */
#template-evenement .badge-debut {
    background: #edc13b !important;
    color: #000 !important;
    animation: pulse-debut 2s infinite;
}

@keyframes pulse-debut {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(237, 193, 59, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(237, 193, 59, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(237, 193, 59, 0); }
}

/* Responsive Mobile */
@media (max-width: 768px) {
    #template-evenement .photo-column { width: 45px; height: 45px; }
    #template-evenement .fighter-name { font-size: 0.9rem; }
    #template-evenement .vs-zone { flex: 0 0 40px; }
}

/* ============================================================
   RESULTATS DES COMBATS	
   ============================================================ */
#template-evenement .fight-result {
    background: rgba(255, 255, 255, 0.01); /* Très léger contraste */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    font-family: 'Oswald', sans-serif;
}
body.light-mode #template-evenement .fight-result {background: #dedede;}

#template-evenement .result-link {
    color: #aaa;
    text-decoration: none;
    text-transform: uppercase;
}
body.light-mode #template-evenement .result-link  {color: #000;}

#template-evenement .result-link:hover {
    color: #edc13b;
}
body.light-mode #template-evenement .result-link:hover {color: #454545;}

/* --- GAGNANT (Vert) --- */
#template-evenement .border-win {
    border: 2px solid var(--vert) !important;
}

/* --- PERDANT (Rouge) --- */
#template-evenement .border-loss {
    border: 2px solid var(--rouge) !important;
}

/* --- NO-CONTEST (Gris) --- */
#template-evenement .border-nc {
    border: 2px solid #95a5a6 !important;
    box-shadow: 0 0 8px rgba(149, 165, 166, 0.4);
}

/* --- ÉGALITÉ / DRAW (Orange) --- */
#template-evenement .border-draw {
    border: 2px solid #e67e22 !important;
    box-shadow: 0 0 8px rgba(230, 126, 34, 0.4);
}

/* --- PAR DÉFAUT --- */
#template-evenement .border-default {
    border: 2px solid #fff ;
}
body.light-mode #template-evenement .border-default{
border: 2px solid var(--gold) !important;
}
/* ============================================================
   ZONE VS / CEINTURES
   ============================================================ */
#template-evenement .versus-link {
    text-decoration: none !important;
    display: flex;
    justify-content: center;
    align-items: center;
}


/* Images Ceintures */
#template-evenement .ceinture-img {
    height: 28px; /* Taille pour tes images PNG */
    width: auto;
    display: block;
}

/* Zone VS fixe */
#template-evenement .vs-zone {
    flex: 0 0 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}


/* Style de base (Doré pour VS, KO, TKO, DEC) */
#template-evenement .vs-fix {
    font-style: normal !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #edc13b; /* Doré */
    color: #000 !important;
    border-radius: 50%;
    font-family: 'Oswald', sans-serif;
    font-weight: 900;
    font-size: 1.3rem;
    text-decoration: none !important;
}

/* Variation Orange pour le DRAW */
#template-evenement .vs-draw {
    background: #e67e22 !important; 
    color: #fff !important;
	font-size: 1rem; !important;
}

/* Variation Grise pour le NC */
#template-evenement .vs-nc {
    background: #95a5a6 !important;
    color: #222 !important;
}
