/* TP Calendrier – Public styles */

.tp-calendrier-wrapper {
	max-width: 1100px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, sans-serif;
	color: #1a1a1a;
	line-height: 1.5;
}

/* Hide helpers */
.tp-hide-desktop {
	display: none !important;
}
@media (max-width: 767px) {
	.tp-hide-mobile {
		display: none !important;
	}
	.tp-hide-desktop {
		display: block !important;
	}
}

/* ===== Aujourd'hui ===== */
.tp-aujourdhui {
	background: linear-gradient(135deg, #e8f4fc 0%, #f0f9ff 100%);
	border-radius: 16px;
	padding: 28px 32px;
	margin-bottom: 32px;
	box-shadow: 0 4px 20px rgba(0, 80, 140, 0.08);
}

.tp-aujourdhui-header {
	margin-bottom: 24px;
	text-align: center;
}

.tp-label {
	display: inline-block;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #0077b6;
	font-weight: 600;
	margin-bottom: 6px;
}

.tp-date {
	font-size: 2rem;
	font-weight: 700;
	color: #023e8a;
	margin: 0;
}

.tp-aujourdhui-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 20px;
}

.tp-module {
	background: #fff;
	border-radius: 12px;
	padding: 16px 18px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.tp-module-label {
	display: block;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #0077b6;
	font-weight: 600;
	margin-bottom: 8px;
}

.tp-saint {
	font-size: 1.15rem;
	font-weight: 600;
	margin: 0;
}

.tp-citation {
	margin: 0;
	font-style: italic;
	font-size: 1.05rem;
}

.tp-citation cite {
	display: block;
	margin-top: 8px;
	font-style: normal;
	font-size: 0.9rem;
	color: #555;
}

/* Faits slider */
.tp-faits-slider {
	position: relative;
}

.tp-fait-slide {
	display: none;
}

.tp-fait-slide.is-active {
	display: block;
}

.tp-fait-img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	margin-bottom: 10px;
}

.tp-slider-prev,
.tp-slider-next {
	position: absolute;
	top: 40%;
	transform: translateY(-50%);
	background: rgba(0, 119, 182, 0.85);
	color: #fff;
	border: none;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	font-size: 18px;
	cursor: pointer;
	line-height: 1;
}

.tp-slider-prev { left: -8px; }
.tp-slider-next { right: -8px; }

.tp-lune-img,
.tp-ferie-img {
	max-width: 80px;
	height: auto;
	border-radius: 6px;
	margin-top: 8px;
}

/* Résumé mois */
.tp-resume-mois {
	background: #fff8e7;
	border-radius: 12px;
	padding: 20px 24px;
	margin-bottom: 28px;
}

.tp-resume-mois h2 {
	margin-top: 0;
	font-size: 1.2rem;
	color: #9a7200;
}

/* Modules secondaires */
.tp-modules-secondaires {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px;
	margin-bottom: 32px;
}

.tp-box {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 16px 18px;
}

.tp-box h3 {
	margin-top: 0;
	font-size: 1rem;
	color: #334155;
}

.tp-placeholder {
	color: #94a3b8;
	font-size: 0.9rem;
	margin: 0;
}

/* Calendrier annuel */
.tp-calendrier-annuel {
	margin-bottom: 32px;
}

.tp-calendrier-annuel h2 {
	font-size: 1.4rem;
	color: #023e8a;
}

.tp-year-grid {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 24px;
	min-height: 180px;
}

/* PDF button */
.tp-pdf-download {
	text-align: center;
	margin: 24px 0 40px;
}

.tp-btn-pdf {
	display: inline-block;
	background: #0077b6;
	color: #fff !important;
	padding: 12px 28px;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
	transition: background 0.2s;
}

.tp-btn-pdf:hover {
	background: #023e8a;
}

/* Mobile adjustments */
@media (max-width: 767px) {
	.tp-aujourdhui {
		padding: 20px 16px;
	}

	.tp-date {
		font-size: 1.5rem;
	}

	.tp-aujourdhui-grid {
		grid-template-columns: 1fr;
	}

	.tp-slider-prev { left: 0; }
	.tp-slider-next { right: 0; }
}

/* ===== Annual calendar ===== */
.tp-year-header {
	margin-bottom: 20px;
}

.tp-year-header h2 {
	margin: 0 0 6px;
	font-size: 1.4rem;
	color: #023e8a;
}

.tp-year-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 20px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 20px;
}

.tp-month {
	background: #f8fafc;
	border-radius: 10px;
	padding: 12px;
}

.tp-month-title {
	margin: 0 0 10px;
	font-size: 0.95rem;
	text-align: center;
	color: #023e8a;
	font-weight: 600;
}

.tp-month-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 2px;
	text-align: center;
}

.tp-weekday {
	font-size: 11px;
	font-weight: 600;
	color: #64748b;
	padding: 4px 0;
}

.tp-day {
	background: transparent;
	border: none;
	border-radius: 6px;
	padding: 6px 0;
	font-size: 13px;
	cursor: pointer;
	color: #1e293b;
	transition: background 0.15s, color 0.15s;
}

.tp-day:hover:not(.empty) {
	background: #e0f2fe;
	color: #0369a1;
}

.tp-day.is-today {
	background: #bae6fd;
	font-weight: 700;
}

.tp-day.is-selected {
	background: #0077b6;
	color: #fff;
	font-weight: 700;
}

.tp-day.empty {
	cursor: default;
	visibility: hidden;
}

.tp-lune-illum {
	font-weight: 500;
	color: #0369a1;
}

@media (max-width: 767px) {
	.tp-year-grid {
		grid-template-columns: 1fr 1fr;
		padding: 12px;
		gap: 12px;
	}
	.tp-month {
		padding: 8px;
	}
	.tp-day {
		font-size: 12px;
		padding: 5px 0;
	}
}
