/* =========================================================
   TVB – Landing page calendrier  ·  [tvb_calendrier]
   Charte reprise du thème BigSlam de toursvolleyball.com
   (couleurs et polices relevées dans bigslam-style-custom.css).
   Les polices Teko / Roboto / Merriweather sont déjà chargées
   par le thème : rien à ajouter.
   ========================================================= */
.tvb-cal {
	--tvb-navy: #002043;      /* en-tête du site, titres          */
	--tvb-navy-2: #1a2240;    /* barre du haut, pied de page      */
	--tvb-gold: #ceb38f;      /* liens, sous-menus, copyright     */
	--tvb-blue: #0080b5;      /* boutons du site                  */
	--tvb-text: #383838;      /* texte courant                    */
	--tvb-muted: #707070;
	--tvb-line: #e6e6e6;      /* bordures du thème                */
	--tvb-soft: #f4f4f4;      /* fond de la barre de navigation   */
	--tvb-card: #ffffff;
	--tvb-title: "Teko", "Roboto Condensed", "Arial Narrow", sans-serif;
	--tvb-body: "Roboto", Arial, sans-serif;
	--tvb-info: "Merriweather", Georgia, serif;

	font-family: var(--tvb-body);
	font-size: 15px;
	line-height: 1.7;
	color: var(--tvb-text);
	max-width: 1180px;
	margin: 0 auto;
	box-sizing: border-box;
}
.tvb-cal *, .tvb-cal *::before, .tvb-cal *::after { box-sizing: border-box; }
.tvb-cal h2, .tvb-cal h3 { font-family: var(--tvb-title); font-weight: 700; line-height: 1; margin: 0; text-transform: uppercase; }

/* ---------- En-tête (style « page title » BigSlam) ---------- */
.tvb-cal__hero {
	position: relative;
	text-align: center;
	color: #fff;
	background:
		linear-gradient(rgba(0, 32, 67, .92), rgba(0, 32, 67, .92)),
		repeating-linear-gradient(135deg, transparent 0 22px, rgba(206, 179, 143, .06) 22px 23px),
		var(--tvb-navy);
	padding: 46px 20px 78px;
	border-bottom: 5px solid var(--tvb-gold);
}
.tvb-cal__logo { width: 96px; height: 96px; object-fit: contain; margin: 0 auto 14px; display: block; }
.tvb-cal__kicker {
	margin: 0 0 6px;
	font-family: var(--tvb-info);
	font-style: italic;
	font-size: 15px;
	color: var(--tvb-gold);
}
.tvb-cal__title {
	color: #fff !important;
	font-size: clamp(40px, 7vw, 68px) !important;
	letter-spacing: .01em;
	margin-bottom: 14px !important;
}
.tvb-cal__title span { color: var(--tvb-gold); }
.tvb-cal__divider { display: block; width: 60px; height: 3px; margin: 0 auto 16px; background: var(--tvb-gold); }
.tvb-cal__lead { max-width: 640px; margin: 0 auto; font-size: 15px; color: rgba(255, 255, 255, .82); }

/* ---------- Cartes plateformes ---------- */
.tvb-cal__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(172px, 1fr));
	gap: 16px;
	margin: -46px 16px 0;
	position: relative;
	z-index: 1;
}
.tvb-cal__card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 26px 14px 20px;
	background: var(--tvb-card);
	border: 1px solid var(--tvb-line);
	border-bottom: 3px solid var(--tvb-navy);
	border-radius: 0;
	box-shadow: 0 10px 28px rgba(0, 32, 67, .12);
	color: var(--tvb-text) !important;
	text-decoration: none !important;
	font: inherit;
	cursor: pointer;
	transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.tvb-cal__card:hover, .tvb-cal__card:focus-visible {
	transform: translateY(-4px);
	border-bottom-color: var(--tvb-gold);
	box-shadow: 0 16px 34px rgba(0, 32, 67, .2);
	outline: none;
}
.tvb-cal__card:focus-visible { outline: 2px solid var(--tvb-blue); outline-offset: 2px; }

.tvb-cal__icon {
	display: grid;
	place-items: center;
	width: 66px;
	height: 66px;
	margin-bottom: 12px;
	border-radius: 50%;
	color: var(--tvb-navy);
	background: var(--tvb-soft);
	border: 2px solid var(--tvb-gold);
	transition: background .2s ease, color .2s ease;
}
.tvb-cal__icon svg { width: 36px; height: 36px; }
.tvb-cal__card:hover .tvb-cal__icon { background: var(--tvb-navy); color: #fff; }
.tvb-cal__icon--sm { width: 50px; height: 50px; flex: 0 0 50px; margin: 0; }
.tvb-cal__icon--sm svg { width: 26px; height: 26px; }

.tvb-cal__name { font-family: var(--tvb-title); font-weight: 700; font-size: 26px; line-height: 1; text-transform: uppercase; color: var(--tvb-navy); }
.tvb-cal__sub { margin-top: 2px; font-family: var(--tvb-info); font-style: italic; font-size: 12.5px; color: var(--tvb-gold); }
.tvb-cal__help { font-size: 13px; line-height: 1.55; color: var(--tvb-muted); margin: 10px 0 16px; flex: 1; }

/* Bouton = .gdlr-core-button du site */
.tvb-cal__btn, .tvb-cal__pill {
	display: inline-block;
	padding: 10px 20px;
	border-radius: 0;
	background: var(--tvb-blue);
	color: #fff !important;
	font-family: var(--tvb-body);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	text-decoration: none !important;
	transition: background .2s ease;
}
.tvb-cal__card:hover .tvb-cal__btn, .tvb-cal__pill:hover { background: var(--tvb-navy); }

.tvb-cal__badge {
	display: none;
	position: absolute;
	top: -13px;
	left: 50%;
	transform: translateX(-50%);
	white-space: nowrap;
	padding: 3px 12px;
	background: var(--tvb-gold);
	color: var(--tvb-navy);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.2px;
	text-transform: uppercase;
}
.tvb-cal__card.is-recommended { border-color: var(--tvb-gold); border-bottom-color: var(--tvb-gold); box-shadow: 0 0 0 2px var(--tvb-gold), 0 16px 34px rgba(0, 32, 67, .2); }
.tvb-cal__card.is-recommended .tvb-cal__badge { display: block; }

/* ---------- Titres de section (style .gdlr-core-title-item) ---------- */
.tvb-cal__h3 {
	font-size: 36px !important;
	color: var(--tvb-navy) !important;
	margin-bottom: 18px !important;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--tvb-line);
	position: relative;
}
.tvb-cal__h3::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 60px; height: 3px; background: var(--tvb-gold); }

/* ---------- Rappels ---------- */
.tvb-cal__reminders {
	display: flex;
	gap: 18px;
	align-items: flex-start;
	margin: 40px 16px 0;
	padding: 24px;
	background: var(--tvb-soft);
	border-left: 4px solid var(--tvb-gold);
}
.tvb-cal__reminders > div { flex: 1; min-width: 0; }
.tvb-cal__reminders .tvb-cal__icon { background: var(--tvb-navy); color: #fff; }
.tvb-cal__reminders h3 { font-size: 28px; color: var(--tvb-navy); margin-bottom: 8px; }
.tvb-cal__reminders details { border-top: 1px solid #dcdcdc; padding: 10px 0; }
.tvb-cal__reminders summary { cursor: pointer; font-weight: 700; font-size: 13px; letter-spacing: .5px; text-transform: uppercase; color: var(--tvb-navy); }
.tvb-cal__reminders summary::marker { color: var(--tvb-gold); }
.tvb-cal__reminders details p { margin: 8px 0 2px; font-size: 14px; line-height: 1.6; }

/* ---------- Prochains matchs ---------- */
.tvb-cal__next { margin: 44px 16px 0; }
.tvb-cal__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--tvb-line); }
.tvb-cal__match {
	display: flex;
	align-items: center;
	gap: 18px;
	min-width: 0;
	padding: 14px 6px;
	border-bottom: 1px solid var(--tvb-line);
	background: var(--tvb-card);
	margin: 0;
}
.tvb-cal__match:nth-child(even) { background: #fafafa; }
.tvb-cal__date {
	flex: 0 0 64px;
	text-align: center;
	padding: 8px 0 6px;
	background: var(--tvb-soft);
	color: var(--tvb-muted);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	line-height: 1;
}
.tvb-cal__date strong { display: block; font-family: var(--tvb-title); font-size: 34px; line-height: .9; color: var(--tvb-navy); }
.tvb-cal__match.is-home .tvb-cal__date { background: var(--tvb-navy); color: var(--tvb-gold); }
.tvb-cal__match.is-home .tvb-cal__date strong { color: #fff; }
.tvb-cal__info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tvb-cal__teams { font-family: var(--tvb-title); font-weight: 700; font-size: 26px; line-height: 1; text-transform: uppercase; color: var(--tvb-navy); }
.tvb-cal__meta { font-size: 13px; color: var(--tvb-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tvb-cal__pill { flex: 0 0 auto; padding: 8px 16px; }
.tvb-cal__pill--away {
	background: transparent !important;
	color: var(--tvb-gold) !important;
	border: 1px solid var(--tvb-gold);
	cursor: default;
}

/* ---------- Calendrier en image (A4 paysage) ---------- */
.tvb-cal__poster { margin: 44px 16px 0; }
.tvb-cal__poster-note { margin: 0 0 18px; font-size: 14px; color: var(--tvb-muted); }
.tvb-cal__poster-note span { display: block; font-family: var(--tvb-info); font-style: italic; font-size: 13px; }
.tvb-cal__poster-note a { color: var(--tvb-blue) !important; }
.tvb-cal__poster-frame {
	position: relative;
	display: block;
	aspect-ratio: 297 / 210;
	background: var(--tvb-soft);
	border: 1px solid var(--tvb-line);
	border-bottom: 4px solid var(--tvb-gold);
	box-shadow: 0 10px 28px rgba(0, 32, 67, .12);
	overflow: hidden;
}
.tvb-cal__poster-frame img, .tvb-cal__poster-img { display: block; width: 100% !important; height: 100% !important; max-width: none; object-fit: contain; transition: transform .3s ease; }
.tvb-cal__poster-frame:hover img { transform: scale(1.015); }
.tvb-cal__zoom {
	position: absolute; right: 14px; top: 14px;
	padding: 8px 14px; background: var(--tvb-navy); color: #fff;
	font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
	opacity: .9;
}
.tvb-cal__poster-actions { margin: 16px 0 0; text-align: center; }
.tvb-cal__poster-actions .tvb-cal__pill { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; }
.tvb-cal__poster-actions svg { width: 20px; height: 20px; }

/* ---------- Bandeau billetterie (style pied de page) ---------- */
.tvb-cal__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin: 44px 0 0;
	padding: 26px 20px;
	background: var(--tvb-navy-2);
	border-bottom: 5px solid var(--tvb-gold);
	color: #fff !important;
	font-family: var(--tvb-title);
	font-weight: 700;
	font-size: 30px;
	line-height: 1;
	text-transform: uppercase;
	text-decoration: none !important;
	transition: background .2s ease;
}
.tvb-cal__cta:hover { background: var(--tvb-navy); }
.tvb-cal__cta em { font-style: normal; color: var(--tvb-gold); }
.tvb-cal__cta .tvb-cal__icon { background: transparent; color: var(--tvb-gold); }
.tvb-cal__cta .tvb-cal__go { margin-left: 6px; padding: 10px 18px; background: var(--tvb-blue); font-family: var(--tvb-body); font-size: 12px; letter-spacing: 1.5px; transition: background .2s ease; }
.tvb-cal__cta:hover .tvb-cal__go { background: var(--tvb-gold); color: var(--tvb-navy); }

@media (max-width: 600px) {
	.tvb-cal__hero { padding: 36px 16px 64px; }
	.tvb-cal__grid { grid-template-columns: 1fr 1fr; gap: 10px; margin: -38px 0 0; }
	.tvb-cal__card { padding: 22px 8px 16px; }
	.tvb-cal__help { display: none; }
	.tvb-cal__name { font-size: 22px; }
	.tvb-cal__sub { margin-bottom: 12px; }
	.tvb-cal__btn { padding: 9px 14px; font-size: 11px; letter-spacing: 1px; }
	.tvb-cal__reminders, .tvb-cal__next, .tvb-cal__poster { margin-left: 0; margin-right: 0; }
	.tvb-cal__reminders { flex-direction: column; padding: 20px 16px; }
	.tvb-cal__match { gap: 12px; }
	.tvb-cal__date { flex-basis: 54px; }
	.tvb-cal__teams { font-size: 21px; }
	.tvb-cal__pill { padding: 7px 10px; font-size: 11px; letter-spacing: 1px; }
	.tvb-cal__cta { flex-wrap: wrap; font-size: 24px; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .tvb-cal *, .tvb-cal { transition: none !important; } }

/* ---------- Aide Apple (si le Calendrier ne s'ouvre pas) ---------- */
.tvb-cal__apple { margin: 24px 16px 0; padding: 24px; background: #fff; border: 2px solid var(--tvb-gold); box-shadow: 0 10px 28px rgba(0, 32, 67, .12); }
.tvb-cal__apple[hidden] { display: none; }
.tvb-cal__apple h3 { font-size: 28px; color: var(--tvb-navy); margin-bottom: 8px; }
.tvb-cal__apple p { margin: 0 0 8px; font-size: 14px; }
.tvb-cal__apple ul { margin: 0 0 14px 20px; padding: 0; font-size: 14px; line-height: 1.6; }
.tvb-cal__apple li { margin-bottom: 4px; }
.tvb-cal__url { display: flex; gap: 8px; }
.tvb-cal__url input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--tvb-line); background: var(--tvb-soft); font: 14px/1.4 var(--tvb-body); color: var(--tvb-navy); }
.tvb-cal__url .tvb-cal__pill { border: 0; cursor: pointer; }
.tvb-cal__apple-tip { margin-top: 12px !important; font-family: var(--tvb-info); font-style: italic; font-size: 13px !important; color: var(--tvb-muted); }
@media (max-width: 600px) { .tvb-cal__apple { margin-left: 0; margin-right: 0; padding: 18px 16px; } }
