/* OC Calendrier des formations — styles alignés sur le thème Foundry / WPBakery d'objectif-chrome.com
   (titres Raleway fins en majuscules encadrés de filets bleus, texte Open Sans gris, encadrés bleu pâle).
   Pour ajuster une couleur : Apparence > Personnaliser > CSS additionnel, par ex. .occf { --occf-accent: #2a85a6; } */

.occf {
	--occf-accent: #2a85a6;
	--occf-link: #209abc;
	--occf-title: #292929;
	--occf-text: #666666;
	--occf-soft: rgba(42, 133, 166, .15);
	--occf-line: rgba(42, 133, 166, .25);
	--occf-head: Raleway, "Helvetica Neue", Helvetica, Arial, sans-serif;
	--occf-body: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
	margin: 0 0 30px;
	font-family: var(--occf-body);
	font-size: 14px;
	line-height: 24px;
	color: var(--occf-text);
}

/* Sessions : encadrés bleu pâle, côte à côte comme « Deux parcours, un même contenu » */
.occf-dates .occf-cycles {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 24px;
	align-items: start;
}

.occf .occf-cycle {
	background: var(--occf-soft);
	padding: 18px 20px 14px;
	margin: 0;
}

/* Titre encadré de deux filets (style des séparateurs WPBakery du site) */
.occf .occf-cycle-title,
.occf .occf-month {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 12px;
	padding: 0;
	font-family: var(--occf-head);
	font-weight: 300;
	font-size: 13px;
	line-height: 1.4;
	letter-spacing: 0;
	text-transform: uppercase;
	text-align: center;
	color: var(--occf-title);
	border: 0;
}

.occf .occf-cycle-title::before,
.occf .occf-cycle-title::after,
.occf .occf-month::before,
.occf .occf-month::after {
	content: "";
	flex: 1 1 24px;
	border-top: 1px solid var(--occf-accent);
}

.occf ul.occf-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.occf ul.occf-list li.occf-item {
	display: flex;
	flex-direction: column;
	gap: 0;
	margin: 0;
	padding: 8px 0;
	list-style: none;
	border-bottom: 1px solid var(--occf-line);
}

.occf ul.occf-list li.occf-item::before {
	display: none;
}

.occf ul.occf-list li.occf-item:last-child {
	border-bottom: 0;
}

.occf .occf-module {
	font-family: var(--occf-head);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--occf-accent);
}

.occf .occf-date {
	color: var(--occf-title);
}

.occf .occf-past {
	opacity: .45;
}

.occf .occf-past .occf-date {
	text-decoration: line-through;
}

.occf-empty p {
	margin: 0;
	font-style: italic;
}

/* Prochaine session : bandeau au style des boutons du site */
.occf.occf-prochaine {
	display: inline-block;
	margin: 0 0 20px;
	padding: 12px 20px;
	background: var(--occf-accent);
	color: #ffffff;
	font-family: var(--occf-body);
	font-weight: 600;
	font-size: 14px;
	line-height: 1.5;
}

.occf.occf-prochaine.occf-empty {
	background: var(--occf-soft);
	color: var(--occf-title);
	font-style: normal;
}

/* Calendrier général */
.occf .occf-month {
	font-size: 24px;
	margin: 30px 0 10px;
}

.occf table.occf-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
	border: 0;
}

.occf table.occf-table td {
	padding: 9px 14px 9px 0;
	border: 0;
	border-bottom: 1px solid var(--occf-line);
	vertical-align: top;
	background: none;
	text-align: left;
}

.occf table.occf-table td.occf-date {
	width: 38%;
}

.occf table.occf-table td.occf-formation {
	font-weight: 600;
	color: var(--occf-title);
}

.occf table.occf-table td.occf-formation a {
	color: var(--occf-link);
	text-decoration: none;
}

.occf table.occf-table td.occf-formation a:hover,
.occf table.occf-table td.occf-formation a:focus {
	text-decoration: underline;
}

.occf table.occf-table td.occf-detail {
	color: var(--occf-text);
}

@media (max-width: 640px) {
	.occf-dates .occf-cycles {
		grid-template-columns: 1fr;
	}

	.occf table.occf-table,
	.occf table.occf-table tbody,
	.occf table.occf-table tr,
	.occf table.occf-table td {
		display: block;
		width: auto;
	}

	.occf table.occf-table tr {
		padding: 8px 0;
		border-bottom: 1px solid var(--occf-line);
	}

	.occf table.occf-table td,
	.occf table.occf-table td.occf-date {
		width: auto;
		padding: 0;
		border: 0;
	}

	.occf .occf-month {
		font-size: 20px;
	}
}

.occf-error {
	color: #b32d2e;
	font-weight: 600;
}
