/* ================================================================
   FFJJB — Explorateur de compétitions (thème sombre)
   DA : fond navy #0B1F3A, cartes bleu foncé, orange #FF6600
   Poppins + Inter — composition fidèle à la maquette de référence
   ================================================================ */

/* ----------------------------------------------------------------
   Override Elementor — fond de section en navy
   ---------------------------------------------------------------- */

.elementor-element-v2cp_root {
	background-color: #0B1F3A !important;
}

/* Textes du header section en blanc */
.elementor-element-v2cp_header .elementor-heading-title {
	color: #ffffff !important;
}
.elementor-element-v2cp_header .elementor-text-editor p,
.elementor-element-v2cp_header .elementor-widget-text-editor p {
	color: rgba( 255, 255, 255, 0.75 ) !important;
}

/* ----------------------------------------------------------------
   Layout racine — 2 colonnes (400px / 1fr)
   ---------------------------------------------------------------- */

.ffjjb-comp-explorer {
	display: grid;
	grid-template-columns: 400px 1fr;
	gap: 32px;
	align-items: start;
}

/* ================================================================
   Sidebar — panneau unifié, thème sombre
   ================================================================ */

.ffjjb-comp-explorer__sidebar {
	position: sticky;
	top: 24px;
}

.ffjjb-comp-explorer__panel {
	background-color: #0D2444;
	border: 1px solid rgba( 255, 255, 255, 0.10 );
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 4px 28px rgba( 0, 0, 0, 0.30 );
}

/* ---- Tabs ---- */

.ffjjb-comp-explorer__tabs {
	display: flex;
	border-bottom: 1px solid rgba( 255, 255, 255, 0.10 );
}

.ffjjb-comp-explorer__tab {
	flex: 1;
	padding: 15px 20px;
	border: none;
	background: none;
	color: rgba( 255, 255, 255, 0.45 );
	font-family: 'Inter', sans-serif;
	font-weight: 700;
	font-size: 13px;
	cursor: pointer;
	transition: background-color 0.18s ease, color 0.18s ease;
	text-align: center;
	line-height: 1;
}

.ffjjb-comp-explorer__tab + .ffjjb-comp-explorer__tab {
	border-left: 1px solid rgba( 255, 255, 255, 0.10 );
}

.ffjjb-comp-explorer__tab--active {
	background-color: #FF6600;
	color: #ffffff;
}

.ffjjb-comp-explorer__tab:not( .ffjjb-comp-explorer__tab--active ):hover {
	background-color: rgba( 255, 102, 0, 0.12 );
	color: #FF6600;
}

/* ---- Selects ---- */

.ffjjb-comp-explorer__selects {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 14px 16px;
	border-bottom: 1px solid rgba( 255, 255, 255, 0.08 );
}

.ffjjb-comp-explorer__select {
	width: 100%;
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	font-weight: 500;
	color: rgba( 255, 255, 255, 0.80 );
	background-color: rgba( 0, 0, 0, 0.22 );
	border: 1px solid rgba( 255, 255, 255, 0.12 );
	border-radius: 8px;
	padding: 10px 14px;
	cursor: pointer;
	transition: border-color 0.15s ease;
}

.ffjjb-comp-explorer__select option {
	background-color: #0D2444;
	color: #ffffff;
}

.ffjjb-comp-explorer__select:focus {
	outline: none;
	border-color: #FF6600;
	box-shadow: 0 0 0 3px rgba( 255, 102, 0, 0.15 );
}

/* ---- Calendrier ---- */

.ffjjb-comp-explorer__calendar {
	padding: 20px 16px;
	border-bottom: 1px solid rgba( 255, 255, 255, 0.08 );
}

.ffjjb-comp-explorer__calendar-month {
	display: block;
	font-family: 'Poppins', sans-serif;
	font-weight: 700;
	font-size: 13px;
	color: #ffffff;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 0.10em;
	margin-bottom: 16px;
}

.ffjjb-comp-explorer__calendar-weekdays,
.ffjjb-comp-explorer__calendar-grid {
	display: grid;
	grid-template-columns: repeat( 7, 1fr );
	gap: 2px;
}

.ffjjb-comp-explorer__calendar-weekdays {
	margin-bottom: 6px;
}

.ffjjb-comp-explorer__calendar-weekdays span {
	text-align: center;
	font-family: 'Inter', sans-serif;
	font-size: 11px;
	font-weight: 700;
	color: rgba( 255, 255, 255, 0.30 );
	padding: 4px 0;
}

.ffjjb-comp-explorer__day {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	border: none;
	background: none;
	border-radius: 50%;
	font-family: 'Inter', sans-serif;
	font-size: 12px;
	font-weight: 500;
	color: rgba( 255, 255, 255, 0.70 );
	cursor: pointer;
	position: relative;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.ffjjb-comp-explorer__day:hover {
	background-color: rgba( 255, 102, 0, 0.15 );
	color: #FF6600;
}

.ffjjb-comp-explorer__day--empty {
	cursor: default;
	pointer-events: none;
}

.ffjjb-comp-explorer__day--event::after {
	content: '';
	position: absolute;
	bottom: 2px;
	left: 50%;
	transform: translateX( -50% );
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background-color: #FF6600;
}

.ffjjb-comp-explorer__day--today {
	border: 1.5px solid rgba( 255, 255, 255, 0.45 );
	font-weight: 700;
	color: #ffffff;
}

.ffjjb-comp-explorer__day--active {
	background-color: #FF6600;
	color: #ffffff;
	font-weight: 700;
}

.ffjjb-comp-explorer__day--active:hover {
	background-color: #E55A00;
	color: #ffffff;
}

.ffjjb-comp-explorer__day--active::after {
	background-color: rgba( 255, 255, 255, 0.60 );
}

/* ---- Divider ---- */

.ffjjb-comp-explorer__panel-divider {
	height: 1px;
	background-color: rgba( 255, 255, 255, 0.08 );
}

/* ---- Rester informé ---- */

.ffjjb-comp-explorer__notify {
	padding: 18px 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ffjjb-comp-explorer__notify-label {
	display: block;
	font-family: 'Poppins', sans-serif;
	font-weight: 700;
	font-size: 11px;
	color: #ffffff;
	text-transform: uppercase;
	letter-spacing: 0.12em;
}

.ffjjb-comp-explorer__notify-help {
	font-family: 'Inter', sans-serif;
	font-size: 12px;
	line-height: 1.6;
	color: rgba( 255, 255, 255, 0.55 );
	margin: 0;
}

.ffjjb-comp-explorer__notify-form {
	display: flex;
	gap: 6px;
	margin-top: 4px;
}

.ffjjb-comp-explorer__notify-form input[type="email"] {
	flex: 1 1 auto;
	min-width: 0;
	padding: 10px 12px;
	border: 1px solid rgba( 255, 255, 255, 0.12 );
	border-radius: 8px;
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	color: rgba( 255, 255, 255, 0.40 );
	background-color: rgba( 0, 0, 0, 0.25 );
}

.ffjjb-comp-explorer__notify-btn {
	flex-shrink: 0;
	padding: 10px 20px;
	background-color: #FF6600;
	color: #ffffff;
	border: none;
	border-radius: 8px;
	font-family: 'Inter', sans-serif;
	font-weight: 700;
	font-size: 13px;
	cursor: not-allowed;
	opacity: 0.92;
}

/* ================================================================
   Colonne résultats
   ================================================================ */

.ffjjb-comp-explorer__results {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.ffjjb-comp-explorer__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ffjjb-comp-explorer__empty {
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	color: rgba( 255, 255, 255, 0.45 );
	text-align: center;
	padding: 48px 24px;
	background-color: #0D2444;
	border: 1px solid rgba( 255, 255, 255, 0.10 );
	border-radius: 14px;
}

.ffjjb-comp-explorer__load-more {
	display: block;
	width: 100%;
	padding: 13px 24px;
	border: 1.5px solid rgba( 255, 255, 255, 0.20 );
	border-radius: 10px;
	background: transparent;
	color: rgba( 255, 255, 255, 0.75 );
	font-family: 'Inter', sans-serif;
	font-weight: 600;
	font-size: 13px;
	cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
	text-align: center;
}

.ffjjb-comp-explorer__load-more:hover {
	border-color: #FF6600;
	background-color: rgba( 255, 102, 0, 0.12 );
	color: #FF6600;
}

/* ---- Footer résultats ---- */

.ffjjb-comp-explorer__footer {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ffjjb-comp-explorer__calendar-link {
	display: inline-block;
	font-family: 'Inter', sans-serif;
	font-weight: 700;
	font-size: 14px;
	color: #FF6600;
	text-decoration: none;
	transition: color 0.2s ease;
}

.ffjjb-comp-explorer__calendar-link:hover {
	color: #FF8533;
}

.ffjjb-comp-explorer__footer-note {
	font-family: 'Inter', sans-serif;
	font-size: 12px;
	color: rgba( 255, 255, 255, 0.40 );
	margin: 0;
	line-height: 1.5;
}

/* ================================================================
   Carte compétition — structure horizontale 4 zones
   | DATE (82px) | CONTENU (flex 1) | PARTICIPANTS (160px) | PHOTO (150px) |
   ================================================================ */

.ffjjb-comp-card {
	display: flex;
	align-items: stretch;
	background-color: #0D2444;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid rgba( 255, 255, 255, 0.08 );
	box-shadow: 0 2px 16px rgba( 0, 0, 0, 0.28 );
	transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}

.ffjjb-comp-card:hover {
	box-shadow: 0 6px 32px rgba( 0, 0, 0, 0.42 );
	border-color: rgba( 255, 255, 255, 0.14 );
	transform: translateY( -2px );
}

/* ---- Badge date ---- */

.ffjjb-comp-card__date {
	flex: 0 0 82px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	background-color: #071626;
	color: #ffffff;
	padding: 16px 8px;
}

.ffjjb-comp-card__day {
	font-family: 'Poppins', sans-serif;
	font-weight: 700;
	font-size: 30px;
	line-height: 1;
}

.ffjjb-comp-card__month {
	font-family: 'Inter', sans-serif;
	font-weight: 700;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: rgba( 255, 255, 255, 0.55 );
}

/* ---- Contenu ---- */

.ffjjb-comp-card__content {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	padding: 14px 20px;
}

/* ---- Badge statut ---- */

.ffjjb-comp-card__status {
	align-self: flex-start;
	font-family: 'Inter', sans-serif;
	font-weight: 700;
	font-size: 10px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	border-radius: 20px;
	padding: 3px 10px;
	line-height: 1.5;
}

.ffjjb-comp-card__status--open {
	background-color: rgba( 255, 102, 0, 0.18 );
	color: #FF7722;
}

.ffjjb-comp-card__status--default {
	background-color: rgba( 255, 255, 255, 0.10 );
	color: rgba( 255, 255, 255, 0.55 );
}

/* ---- Titre ---- */

.ffjjb-comp-card__title {
	font-family: 'Poppins', sans-serif;
	font-weight: 700;
	font-size: 14px;
	line-height: 1.25;
	margin: 0;
	text-transform: uppercase;
}

.ffjjb-comp-card__title a {
	color: #ffffff;
	text-decoration: none;
	transition: color 0.18s ease;
}

.ffjjb-comp-card__title a:hover {
	color: #FF6600;
}

/* ---- Localisation ---- */

.ffjjb-comp-card__location {
	display: flex;
	align-items: center;
	gap: 5px;
	font-family: 'Inter', sans-serif;
	font-size: 12px;
	color: rgba( 255, 255, 255, 0.50 );
}

.ffjjb-comp-card__location i {
	color: #FF6600;
	font-size: 11px;
	flex-shrink: 0;
}

/* ---- Participants + CTA ---- */

.ffjjb-comp-card__participants {
	flex: 0 0 160px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	padding: 14px 16px;
	border-left: 1px solid rgba( 255, 255, 255, 0.08 );
	text-align: center;
}

.ffjjb-comp-card__participants-count {
	font-family: 'Poppins', sans-serif;
	font-weight: 700;
	font-size: 26px;
	color: #FF6600;
	line-height: 1;
}

.ffjjb-comp-card__participants-label {
	font-family: 'Inter', sans-serif;
	font-size: 11px;
	color: rgba( 255, 255, 255, 0.45 );
	line-height: 1.3;
	margin-bottom: 10px;
}

.ffjjb-comp-card__button {
	display: inline-flex;
	align-items: center;
	padding: 7px 14px;
	border: 1.5px solid #FF6600;
	border-radius: 8px;
	background-color: transparent;
	color: #FF6600;
	font-family: 'Inter', sans-serif;
	font-weight: 700;
	font-size: 11px;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.18s ease, color 0.18s ease;
}

.ffjjb-comp-card__button:hover {
	background-color: #FF6600;
	color: #ffffff;
}

/* ---- Photo avec dégradé navy → transparent ---- */

.ffjjb-comp-card__thumb {
	flex: 0 0 150px;
	position: relative;
	overflow: hidden;
}

.ffjjb-comp-card__thumb::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient( to right, rgba( 7, 22, 38, 0.60 ) 0%, rgba( 13, 36, 68, 0.25 ) 40%, transparent 70% );
	z-index: 1;
	pointer-events: none;
}

.ffjjb-comp-card__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ffjjb-comp-card__thumb-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 110px;
	background: linear-gradient( 140deg, #071626 0%, #0D2444 100% );
	color: rgba( 255, 102, 0, 0.40 );
	font-size: 28px;
}

/* ================================================================
   Responsive — tablette ≤ 1100px
   ================================================================ */

@media ( max-width: 1100px ) {
	.ffjjb-comp-explorer {
		grid-template-columns: 340px 1fr;
		gap: 24px;
	}
}

/* ================================================================
   Responsive — ≤ 900px (colonne unique)
   ================================================================ */

@media ( max-width: 900px ) {
	.ffjjb-comp-explorer {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.ffjjb-comp-explorer__sidebar {
		position: static;
	}

	.ffjjb-comp-explorer__panel {
		max-width: 480px;
	}

	.ffjjb-comp-card__thumb {
		flex: 0 0 120px;
	}

	.ffjjb-comp-card__participants {
		flex: 0 0 140px;
	}
}

/* ================================================================
   Mobile ≤ 640px
   ================================================================ */

@media ( max-width: 640px ) {
	.ffjjb-comp-card {
		flex-direction: column;
	}

	.ffjjb-comp-card__date {
		flex-direction: row;
		flex-basis: auto;
		gap: 8px;
		padding: 12px 16px;
		justify-content: flex-start;
	}

	.ffjjb-comp-card__day {
		font-size: 26px;
	}

	.ffjjb-comp-card__content {
		padding: 12px 16px;
	}

	.ffjjb-comp-card__participants {
		flex-basis: auto;
		border-left: none;
		border-top: 1px solid rgba( 255, 255, 255, 0.08 );
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: space-between;
		align-items: center;
		gap: 8px 12px;
		padding: 12px 16px;
		text-align: left;
	}

	.ffjjb-comp-card__participants-label {
		margin-bottom: 0;
	}

	.ffjjb-comp-card__participants-count {
		font-size: 20px;
	}

	.ffjjb-comp-card__thumb {
		flex-basis: auto;
		height: 160px;
	}

	.ffjjb-comp-card__thumb::before {
		background: linear-gradient( to bottom, rgba( 7, 22, 38, 0.50 ) 0%, transparent 55% );
	}
}
