﻿main {
	margin-top: 20px;
	letter-spacing: 0px;
}

/* Styles pour le carousel des informations de défis */
.defis_infos_carousel {
	min-height: 300px;
	min-width: 600px;
	background: var(--color-bg-dark);
	border-radius: 15px;
	padding: 10px;
	border: 3px solid var(--color-yellow-vif);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.carousel_container {
	position: relative;
	max-width: 100%;
	max-height: 100%;
	margin: 0 auto;
}

.carousel_content {
	position: relative;
	height: 300px;
	overflow: hidden;
	border-radius: 10px;
}

.carousel_slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	transform: translateX(100%);
	transition: all 0.5s ease-in-out;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}

.carousel_slide.active {
	opacity: 1;
	transform: translateX(0);
}

.carousel_slide.prev {
	transform: translateX(-100%);
}

.carousel_slide.next {
	transform: translateX(100%);
}

.carousel_slide h4 {
	color: var(--color-yellow-vif);
	margin-bottom: 0px;
	font-size: 1.2em;
	text-align: center;
}

.carousel_slide p {
	color: #ddd;
	margin: 8px 0;
	line-height: 1.4;
}

.carousel_slide strong {
	color: #ffcc00;
}

/* Indicateurs du carousel */
.carousel_indicators {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 15px;
}

.indicator {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: linear-gradient(145deg, rgba(255, 255, 255, 0.3), rgba(255, 204, 0, 0.1));
	border: 1px solid rgba(255, 204, 0, 0.3);
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow:
		0 2px 8px rgba(255, 204, 0, 0.1),
		inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.indicator.active {
	background: linear-gradient(145deg, #ffcc00, #ffdd44);
	transform: scale(1.2);
	box-shadow:
		0 4px 15px rgba(255, 204, 0, 0.4),
		0 0 20px rgba(255, 204, 0, 0.3),
		inset 0 1px 0 rgba(255, 255, 255, 0.4);
	border-color: #ffcc00;
	animation: indicator-glow 2s ease-in-out infinite alternate;
}

.indicator:hover {
	background: linear-gradient(145deg, rgba(255, 204, 0, 0.7), rgba(255, 216, 2, 0.5));
	transform: scale(1.1);
	box-shadow:
		0 3px 12px rgba(255, 204, 0, 0.3),
		0 0 15px rgba(255, 204, 0, 0.2);
}

@keyframes indicator-glow {
	0% {
		box-shadow:
			0 4px 15px rgba(255, 204, 0, 0.4),
			0 0 20px rgba(255, 204, 0, 0.3),
			inset 0 1px 0 rgba(255, 255, 255, 0.4);
	}
	100% {
		box-shadow:
			0 4px 15px rgba(255, 204, 0, 0.6),
			0 0 25px rgba(255, 204, 0, 0.5),
			inset 0 1px 0 rgba(255, 255, 255, 0.6);
	}
}

/* Boutons de navigation */
.carousel_nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 100%;
	display: flex;
	justify-content: space-between;
	pointer-events: none;
}

.carousel_btn {
	background: linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 204, 0, 0.1));
	border: 2px solid rgba(255, 204, 0, 0.3);
	color: #fff;
	font-size: 24px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	cursor: pointer;
	transition: all 0.3s ease;
	pointer-events: all;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow:
		0 4px 15px rgba(255, 204, 0, 0.2),
		inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.carousel_btn:hover {
	background: linear-gradient(145deg, rgba(255, 204, 0, 0.8), rgba(255, 216, 2, 0.9));
	transform: scale(1.1);
	box-shadow:
		0 6px 25px rgba(255, 204, 0, 0.4),
		0 0 30px rgba(255, 216, 2, 0.3),
		inset 0 1px 0 rgba(255, 255, 255, 0.5);
	border-color: rgba(255, 204, 0, 0.8);
}

/* Styles spécifiques pour chaque section */
.Stat_joueur, .hall-of-fame, .avis_communaute, .global-stats {
	text-align: center;
	width: 100%;
}

.hof-content p, .avis_content p, .global-stats-content p {
	margin: 5px 0;
	padding: 4px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 8px;
}

.avis_content p {
	font-style: italic;
	text-align: left;
}

.global-stats-content p {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 6px 12px;
	margin: 8px 0;
	background: rgba(255, 255, 255, 0.15);
	border-left: 3px solid var(--color-yellow-vif);
}

.global-stats-content strong {
	color: #fff;
	font-weight: 600;
}

.global-stats-content span {
	color: var(--color-yellow-vif);
	font-weight: bold;
}

.etoiles {
	font-size: 22px;
	letter-spacing: 2px;
	display: inline-block;
	line-height: 1;
}

.defis_diapo {
	display: flex;
	width: 100%;
	height: 100%;
	overflow: hidden;
	position: relative;
}

.defis_diapo section {
	flex: 0 0 100%;
	display: none;
	justify-content: center;
	align-items: flex-start;
	padding: 20px;
	box-sizing: border-box;
	height: 100%;
	opacity: 0;
	transition: opacity 0.3s ease-in-out;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	color: white;
}

.defis_diapo section.active {
	display: flex;
	opacity: 1;
	position: relative;
}

.stats-columns {
	display: flex;
	justify-content: space-between;
	width: 100%;
	gap: 40px;
}

.stats-columns .col {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.Stat_joueur {
	max-width: 250px;
}

.hall-of-fame {
	max-width: 350px;
}

.hall-of-fame ul {
	display: flex;
	flex-direction: column;
	gap: 10px 20px;
	padding-left: 0;
}

.hof-player {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 300px;
	white-space: nowrap;
	flex-wrap: nowrap;
}

.avatar-container-hof {
	position: relative;
	width: 40px;
	height: 40px;
}

.cadre-image-hof {
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
}

.avatar-image-hof {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
	position: relative;
	z-index: 1;
}

.hall-of-fame ul li {
	flex: 1 1 45%;
	list-style: none;
	font-size: 18px;
}

.hof-player {
	animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.carte_defis {
	background: linear-gradient(145deg, #ffffff, #f8f9ff);
	color: var(--color-bg-dark);
	border: 3px solid var(--color-purple-vif);
	border-radius: 25px;
	padding: 20px;
	margin: 30px auto;
	max-width: 90%;
	display: flex;
	flex-direction: column;
	gap: 20px;
	box-shadow:
		0 8px 20px rgba(139, 92, 246, 0.2),
		0 0 60px rgba(139, 92, 246, 0.1),
		inset 0 3px 0 rgba(255, 255, 255, 0.8),
		inset 0 -3px 0 rgba(139, 92, 246, 0.1);
	position: relative;
	transition: all 0.3s ease;
}

.carte_defis:hover {
	transform: translateY(-5px);
	box-shadow:
		0 15px 35px rgba(139, 92, 246, 0.3),
		0 0 80px rgba(139, 92, 246, 0.2),
		inset 0 3px 0 rgba(255, 255, 255, 0.9);
}

.defis_description h3 {
	margin: 0;
	font-size: 22px;
	color: var(--color-purple-vif);
	font-family: 'PoliceEcriture';
	letter-spacing: 2px;
}

.defis_description p {
	margin-top: 5px;
	font-size: 18px;
}

.defis_contenu {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
}

.defis_zone_image {
	flex: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	border: 3px solid var(--color-yellow-vif);
	border-radius: 20px;
	padding: 10px;
	background: linear-gradient(145deg, var(--color-bg-dark), #1a1f2e);
	min-width: 250px;
	height: 350px;
	position: relative;
	box-shadow:
		0 4px 15px rgba(255, 201, 71, 0.2),
		inset 0 2px 0 rgba(255, 255, 255, 0.1),
		inset 0 -2px 0 rgba(0, 0, 0, 0.2);
}


.defis_diapo img {
	width: 250px;
	height: auto;
	border-radius: 15px;
	border: 2px solid white;
	cursor: pointer;
	transition: transform 0.3s ease;
}

.defis_diapo img:hover {
	transform: scale(1.05);
}

.b img {
	font-size: 32px;
	width: 50px;
	height: 50px;
	color: #FFD802;
	cursor: pointer;
	user-select: none;
	padding: 10px;
	transition: all 0.3s ease;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 216, 2, 0.1), transparent);
	box-shadow: 0 0 20px rgba(255, 216, 2, 0.3);
}

.b img:hover {
	transform: scale(1.3);
	box-shadow:
		0 0 30px rgba(255, 216, 2, 0.6),
		0 0 50px rgba(255, 216, 2, 0.3);
	filter: brightness(1.2) drop-shadow(0 0 10px #FFD802);
}

.defis_stats {
	flex: 1;
	min-width: 250px;
	background: var(--color-bg-dark);
	padding: 15px;
	border-radius: 20px;
	border: 3px solid var(--color-yellow-vif);
}

.defis_stats h4 {
	margin-top: 0;
	font-family: 'PoliceEcriture';
	letter-spacing: 2px;
	margin-bottom: 10px;
	font-size: 18px;
	color: var(--color-yellow-vif);
}

.defis_stats p {
	margin: 6px 0;
	font-size: 22px;
}

.avis_defilant {
	overflow: hidden;
	width: 100%;
	border-top: 1px solid #ffd700;
	padding: 5px 0;
	background-color: rgba(0, 0, 0, 0.1);
}

.avis_contenu {
	display: inline-block;
	white-space: nowrap;
	animation: defilement 30s linear infinite;
}

.avis_contenu span {
	margin-right: 60px;
	font-style: italic;
	color: #fff;
}

@keyframes defilement {
	0% {
		transform: translateX(100%);
	}

	100% {
		transform: translateX(-100%);
	}
}

/* ========================================
   BADGES ET CARTES POSSÉDÉES
   ======================================== */

/* Badge "Possédé" */
.badge-possede {
	background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
	color: white;
	padding: 6px 12px;
	border-radius: 20px;
	font-size: 0.85em;
	font-weight: bold;
	box-shadow: 0 2px 10px rgba(40, 167, 69, 0.4);
	display: inline-block;
}

/* Badge de progression */
.badge-progression {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	padding: 6px 12px;
	border-radius: 20px;
	font-size: 0.85em;
	font-weight: bold;
	box-shadow: 0 2px 10px rgba(102, 126, 234, 0.4);
	display: inline-block;
}

/* Carte possédée - bordure verte */
.carte_defis.carte-possedee {
	border: 3px solid #28a745;
	box-shadow:
		0 8px 20px rgba(40, 167, 69, 0.3),
		0 0 60px rgba(40, 167, 69, 0.15),
		inset 0 3px 0 rgba(255, 255, 255, 0.8),
		inset 0 -3px 0 rgba(40, 167, 69, 0.1);
}

.carte_defis.carte-possedee:hover {
	transform: translateY(-5px);
	box-shadow:
		0 15px 35px rgba(40, 167, 69, 0.4),
		0 0 80px rgba(40, 167, 69, 0.25),
		inset 0 3px 0 rgba(255, 255, 255, 0.9);
}

/* Bouton Jouer */
.btn-jouer-defi {
	display: inline-block;
	background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
	color: white;
	padding: 15px 40px;
	text-decoration: none;
	border-radius: 50px;
	font-size: 1.1em;
	font-weight: bold;
	box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
	transition: all 0.3s ease;
	margin-top: 10px;
}

.btn-jouer-defi:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(40, 167, 69, 0.6);
	background: linear-gradient(135deg, #20c997 0%, #28a745 100%);
}

/* Badge "Terminé" pour défis individuels */
.defi-termine-badge {
	position: absolute;
	top: 10px;
	right: 10px;
	background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
	color: white;
	padding: 8px 15px;
	border-radius: 25px;
	font-weight: bold;
	font-size: 0.9em;
	box-shadow: 0 4px 15px rgba(40, 167, 69, 0.5);
	z-index: 10;
	animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
	0%, 100% {
		box-shadow: 0 4px 15px rgba(40, 167, 69, 0.5);
	}
	50% {
		box-shadow: 0 4px 20px rgba(40, 167, 69, 0.8);
	}
}

/* Compteur de rejouabilité */
.defi-termine-badge .rejoue-count {
	margin-left: 5px;
	font-size: 0.85em;
	opacity: 0.9;
}

/* Overlay vert sur carte terminée */
.defi-card.defi-termine {
	position: relative;
	border: 3px solid #28a745;
}

.defi-card.defi-termine::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(32, 201, 151, 0.05) 100%);
	pointer-events: none;
	border-radius: inherit;
	z-index: 1;
}

.defi-card.defi-termine:hover {
	border-color: #20c997;
	box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}
/* ============================================
   CARTE BIENTÃ”T DISPONIBLE
   ============================================ */

/* Carte bientÃ´t disponible - contenu visible avec filigrane */
.carte-bientot-dispo {
	position: relative;
}

.carte-bientot-dispo .defis_description,
.carte-bientot-dispo .defis_contenu,
.carte-bientot-dispo .defis_achat {
	opacity: 0.85;
}

/* Masque pour l'image avec filigrane */
.masque-bientot-dispo {
	position: relative;
	display: inline-block;
}

/* Filigrane bientÃ´t disponible */
.filigrane-bientot-dispo {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(45deg,
			rgba(255, 216, 2, 0.05) 0%,
			rgba(255, 216, 2, 0.15) 25%,
			rgba(255, 216, 2, 0.05) 50%,
			rgba(255, 216, 2, 0.15) 75%,
			rgba(255, 216, 2, 0.05) 100%);
	background-size: 40px 40px;
	animation: filigrane-move-bientot 10s linear infinite;
	border-radius: 20px;
	z-index: 2;
	pointer-events: none;
}

.filigrane-content-bientot {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: #FFD802;
	font-weight: bold;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
	background: rgba(3, 34, 76, 0.85);
	padding: 15px 25px;
	border-radius: 15px;
	border: 2px solid #FFD802;
	backdrop-filter: blur(5px);
	animation: filigrane-pulse-bientot 2s ease-in-out infinite;
}

.filigrane-icon-bientot {
	font-size: 28px;
	margin-bottom: 8px;
	animation: icon-rotate-bientot 3s linear infinite;
}

.filigrane-text-bientot {
	font-size: 14px;
	font-weight: bold;
	letter-spacing: 2px;
	margin-bottom: 5px;
}

.filigrane-date-bientot {
	font-size: 11px;
	opacity: 0.9;
	font-style: italic;
}

/* Animations */
@keyframes filigrane-move-bientot {
	0% {
		background-position: 0 0;
	}
	100% {
		background-position: 40px 40px;
	}
}

@keyframes filigrane-pulse-bientot {
	0%, 100% {
		transform: scale(1);
		opacity: 1;
	}
	50% {
		transform: scale(1.05);
		opacity: 0.95;
	}
}

@keyframes icon-rotate-bientot {
	0%, 100% {
		transform: rotate(-5deg);
	}
	50% {
		transform: rotate(5deg);
	}
}

/* DÃ©sactiver les liens d'achat pour le dÃ©fi bientÃ´t dispo */
.carte-bientot-dispo .btn-acheter-defi {
	background: linear-gradient(135deg, #999 0%, #666 100%) !important;
	cursor: not-allowed;
	pointer-events: none;
	opacity: 0.6;
}

.carte-bientot-dispo .btn-acheter-defi::after {
	content: " (BientÃ´t)";
	font-size: 0.8em;
}