/* =========================================================================
   Trimidiformation — styles publics
   Pages programmes + catalogue (prospects) et extranet (apprenant/formateur/
   client). Variables communes : tokens.css (dépendance).
   ========================================================================= */

/* ================= Pages programmes ================= */

.tf-program h2 {
	margin-top: 1.6em;
	font-size: 1.3em;
	color: var(--tf-primary-700);
	padding-bottom: 4px;
	border-bottom: 2px solid var(--tf-primary-050);
}

.tf-program-summary {
	font-size: 1.1em;
	color: var(--tf-muted);
}

.tf-program-keyinfo {
	list-style: none;
	padding: 16px 20px;
	margin: 1.2em 0;
	background: var(--tf-primary-050);
	border-left: 4px solid var(--tf-primary);
	border-radius: var(--tf-radius);
}

.tf-program-keyinfo li {
	margin: 6px 0;
}

.tf-program-quality {
	padding: 16px 20px;
	margin: 1.5em 0;
	background: var(--tf-success-bg);
	border-left: 4px solid var(--tf-success);
	border-radius: var(--tf-radius);
}

.tf-program-quality h2 {
	border: none;
	margin-top: 0;
}

.tf-program-psh {
	padding: 16px 20px;
	margin: 1.5em 0;
	background: var(--tf-warning-bg);
	border-left: 4px solid var(--tf-accent);
	border-radius: var(--tf-radius);
}

.tf-program-psh h2 {
	border: none;
	margin-top: 0;
}

.tf-program-note {
	color: var(--tf-muted);
	font-size: 0.9em;
}

.tf-program-footer {
	margin-top: 2em;
	padding-top: 1em;
	border-top: 1px solid var(--tf-line);
}

/* ================= Catalogue ================= */

.tf-catalogue {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 18px;
}

.tf-catalogue-item {
	padding: 18px 20px;
	background: var(--tf-card);
	border: 1px solid var(--tf-line);
	border-radius: var(--tf-radius);
	box-shadow: var(--tf-shadow);
	transition: box-shadow .15s, transform .15s;
}

.tf-catalogue-item:hover {
	box-shadow: var(--tf-shadow-hover);
	transform: translateY(-2px);
}

.tf-catalogue-item h3 {
	margin: 0 0 8px;
	font-size: 1.15em;
}

.tf-catalogue-item h3 a {
	color: var(--tf-primary-700);
	text-decoration: none;
}

.tf-catalogue-item h3 a:hover {
	color: var(--tf-primary);
	text-decoration: underline;
}

.tf-catalogue-meta {
	color: var(--tf-accent);
	font-weight: 600;
	font-size: 0.92em;
}

/* ================= Extranet ================= */

.tf-extranet {
	max-width: 860px;
	margin: 0 auto;
	color: var(--tf-ink);
}

.tf-extranet .tf-ex-head {
	padding: 20px 24px;
	margin-bottom: 22px;
	background: var(--tf-primary);
	border-radius: var(--tf-radius);
	color: #fff;
}

.tf-extranet .tf-ex-head h2 {
	margin: 0;
	color: #fff;
	font-size: 1.5em;
}

.tf-extranet .tf-ex-sub {
	margin: 4px 0 0;
	opacity: .85;
	font-size: 0.95em;
}

/* Carte de session / de bloc */
.tf-extranet .tf-ex-card {
	background: var(--tf-card);
	border: 1px solid var(--tf-line);
	border-radius: var(--tf-radius);
	box-shadow: var(--tf-shadow);
	padding: 18px 22px;
	margin-bottom: 18px;
}

.tf-extranet .tf-ex-card h3 {
	margin: 0 0 10px;
	padding-bottom: 8px;
	font-size: 1.15em;
	color: var(--tf-primary-700);
	border-bottom: 1px solid var(--tf-line);
}

.tf-extranet .tf-ex-card p {
	margin: 8px 0;
}

/* Listes de documents / créneaux → puces discrètes */
.tf-extranet .tf-ex-card ul {
	list-style: none;
	margin: 10px 0;
	padding: 0;
}

.tf-extranet .tf-ex-card li {
	padding: 8px 0;
	border-top: 1px solid #f0f1f3;
}

.tf-extranet .tf-ex-card li:first-child {
	border-top: none;
}

.tf-extranet a {
	color: var(--tf-primary);
	font-weight: 500;
	text-decoration: none;
}

.tf-extranet a:hover {
	text-decoration: underline;
}

/* Liens de documents façon « chip » */
.tf-extranet .tf-ex-card li > a[target="_blank"] {
	display: inline-block;
	padding: 4px 12px;
	background: var(--tf-primary-050);
	border-radius: 999px;
	color: var(--tf-primary-700);
	font-size: 0.92em;
}

.tf-extranet .tf-ex-card li > a[target="_blank"]:hover {
	background: var(--tf-primary);
	color: #fff;
	text-decoration: none;
}

/* Formulaires (assistance, aléa, filtres) */
.tf-extranet form {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin: 10px 0 0;
}

.tf-extranet form input[type="text"] {
	flex: 1 1 240px;
	min-width: 0 !important;
	padding: 9px 12px;
	border: 1px solid #c3c6cb;
	border-radius: var(--tf-radius-sm);
}

.tf-extranet form input[type="text"]:focus {
	border-color: var(--tf-primary);
	outline: 2px solid transparent;
	box-shadow: 0 0 0 1px var(--tf-primary);
}

.tf-extranet form button {
	padding: 9px 18px;
	background: var(--tf-primary);
	color: #fff;
	border: none;
	border-radius: var(--tf-radius-sm);
	font-weight: 600;
	cursor: pointer;
}

.tf-extranet form button:hover {
	background: var(--tf-primary-700);
}

.tf-ex-help {
	background: var(--tf-primary-050) !important;
}

/* Formulaire de connexion (non connecté) */
.tf-extranet .login-username,
.tf-extranet .login-password,
.tf-extranet .login-remember,
.tf-extranet .login-submit {
	margin: 12px 0;
}

.tf-extranet #wp-submit {
	padding: 9px 22px;
	background: var(--tf-primary);
	color: #fff;
	border: none;
	border-radius: var(--tf-radius-sm);
	font-weight: 600;
	cursor: pointer;
}
