/**
 * Catalogue Ebrioo — direction « L'index du catalogue ».
 *
 * Le catalogue est traité comme un vrai ouvrage de référence professionnel :
 * un rail d'onglets façon classeur/fichier de bibliothèque pour naviguer les
 * familles, des listes en fiches d'index (règles fines, pas de dégradés),
 * une fiche formation façon feuille de syllabus avec onglets de classeur.
 *
 * Toutes les règles sont scopées sous .eb2-scope : aucun effet sur le reste
 * du site (header/footer/autres pages inchangés).
 */

.eb2-scope {
	--eb2-paper: #f4f2f8;
	--eb2-surface: #ffffff;
	--eb2-ink: #221a30;
	--eb2-ink-muted: #6e6579;
	--eb2-rule: #dcd6e6;
	--eb2-accent: #e5239c;
	--eb2-accent-deep: #501e96;
	--eb2-accent-deep-dark: #34125f;
	--eb2-accent-prune: #a31770;
	--eb2-accent-quiet: #46b5aa;

	/* TEST — polices uniformisées en Montserrat (2026-07-06), nuances de
	   poids/taille/graisse inchangées par ailleurs. Pour revenir en arrière,
	   décommenter les 3 lignes ci-dessous et supprimer les 3 suivantes. */
	/*
	--eb2-font-display: "Fraunces", Georgia, "Times New Roman", serif;
	--eb2-font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--eb2-font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
	*/
	--eb2-font-display: "Montserrat", Arial, Helvetica, sans-serif;
	--eb2-font-body: "Montserrat", Arial, Helvetica, sans-serif;
	--eb2-font-mono: "Montserrat", Arial, Helvetica, sans-serif;

	display: block;
	background: var(--eb2-surface);
	color: var(--eb2-ink);
	font-family: var(--eb2-font-body);
	line-height: 1.6;
	overflow-x: hidden;
}

/* =====================================================================
   BANDEAUX PLEINE LARGEUR — chaque section occupe toute la largeur de la
   page (fond distinct optionnel), avec un contenu centré à largeur
   lisible à l'intérieur. Remplace le panneau étriqué des premières
   itérations : ici .eb2-scope lui-même n'a pas de padding horizontal,
   chaque .eb2-band gère sa propre couleur de fond edge-to-edge.
   ===================================================================== */
.eb2-band {
	padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 2.5rem);
}

.eb2-band--tinted {
	background: var(--eb2-paper);
}

.eb2-band--slim {
	padding-top: 1.1rem;
	padding-bottom: 1.1rem;
	border-bottom: 1px solid var(--eb2-rule);
}

.eb2-band--ink {
	background: var(--eb2-ink);
	color: #ffffff;
}

.eb2-band__inner {
	max-width: 1180px;
	margin: 0 auto;
}

.eb2-scope *,
.eb2-scope *::before,
.eb2-scope *::after {
	box-sizing: border-box;
}

.eb2-scope :focus-visible {
	outline: 2px solid var(--eb2-accent);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.eb2-scope * {
		transition-duration: 0.001ms !important;
		animation-duration: 0.001ms !important;
	}
}

/* =====================================================================
   MESSAGES (erreur / vide) — sobre, pas de style dramatique nécessaire.
   ===================================================================== */
.eb2-message {
	max-width: 640px;
	margin: 0 auto;
	padding: 1.5rem 1.75rem;
	border-radius: 4px;
	font-family: var(--eb2-font-body);
}

.eb2-message--empty {
	background: var(--eb2-surface);
	border: 1px solid var(--eb2-rule);
	color: var(--eb2-ink-muted);
}

.eb2-message--error {
	background: #fdecea;
	border: 1px solid #e6b3ac;
	color: #8a1f11;
}

/* Formation retirée du catalogue (fiche demandée pour une formation qui n'est
   plus dans le tampon, ex. DeployerExtranet à faux) : bloc habillé + CTA
   « Nous contacter », plutôt qu'un message d'erreur sec. Piloté par variables
   → recoloré automatiquement sur chaque site (Ebrioo / Digit / Talentio). */
.eb2-fiche__unavailable {
	max-width: 640px;
	margin: 1rem auto;
	padding: 2.75rem 2rem;
	text-align: center;
	background: var(--eb2-surface);
	border: 1px solid var(--eb2-rule);
	border-radius: 14px;
}

.eb2-fiche__unavailable-title {
	margin: 0 0 0.85rem;
	font-family: var(--eb2-font-display);
	font-weight: 600;
	font-size: 1.5rem;
	line-height: 1.2;
	color: var(--eb2-ink);
}

.eb2-fiche__unavailable-text {
	max-width: 52ch;
	margin: 0 auto 1.85rem;
	color: var(--eb2-ink-muted);
	line-height: 1.6;
}

.eb2-fiche__unavailable-actions {
	display: flex;
	gap: 0.75rem;
	justify-content: center;
	flex-wrap: wrap;
}

/* =====================================================================
   FIL D'ARIANE — « running head » éditorial : petites capitales, mono,
   lettrage espacé, séparé par un trait fin.
   ===================================================================== */
.eb2-breadcrumb {
	display: block;
	margin: 0;
	font-family: var(--eb2-font-mono);
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.09em;
}

.eb2-breadcrumb a {
	text-decoration: none;
	color: var(--eb2-ink-muted);
}

.eb2-breadcrumb a:hover {
	color: var(--eb2-accent);
}

.eb2-breadcrumb span[aria-current="page"] {
	color: var(--eb2-ink);
	font-weight: 600;
}

.eb2-breadcrumb__sep {
	margin: 0 0.6em;
	color: var(--eb2-rule);
}

/* =====================================================================
   SÉLECTEUR DE FAMILLE — cartes compactes persistantes, une seule active
   (sites réseau scopés à plusieurs familles, ex. Talentio). Piloté par les
   variables --eb2-* : se thème automatiquement selon la filiale. Aucun effet
   sur les sites mono-famille (le sélecteur n'y est jamais rendu).
   ===================================================================== */
.eb2-family-selector {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.eb2-family-selector__item {
	display: inline-flex;
	align-items: center;
	padding: 0.5rem 1.1rem;
	border: 1px solid var(--eb2-rule);
	border-radius: 3px;
	background: var(--eb2-surface);
	color: var(--eb2-ink);
	font-family: var(--eb2-font-display);
	font-weight: 600;
	font-size: 0.9rem;
	line-height: 1.2;
	text-decoration: none;
	transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.eb2-family-selector__item:hover {
	border-color: var(--eb2-accent-deep);
	color: var(--eb2-accent-deep);
}

.eb2-family-selector__item--active {
	background: var(--eb2-accent-deep);
	border-color: var(--eb2-accent-deep);
	color: #ffffff;
}

.eb2-family-selector__item--active:hover {
	color: #ffffff;
}

/* =====================================================================
   HERO (niveau 0) — thèse éditoriale + index des familles, qui sert
   aussi de navigation principale (pas décoratif : vraies données).
   ===================================================================== */
.eb2-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: start;
}

@media (max-width: 900px) {
	.eb2-hero {
		grid-template-columns: 1fr;
	}
}

.eb2-eyebrow {
	margin: 0 0 0.9rem;
	font-family: var(--eb2-font-mono);
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--eb2-accent);
	font-weight: 500;
}

.eb2-hero__title {
	margin: 0 0 1.25rem;
	font-family: var(--eb2-font-display);
	font-weight: 600;
	font-size: clamp(2rem, 4vw, 3.1rem);
	line-height: 1.12;
	letter-spacing: -0.01em;
	color: var(--eb2-ink);
}

.eb2-hero__lede {
	max-width: 46ch;
	margin: 0 0 1.5rem;
	font-size: 1.05rem;
	color: var(--eb2-ink-muted);
}

.eb2-hero__stat {
	margin: 0;
	font-family: var(--eb2-font-mono);
	font-size: 0.85rem;
	color: var(--eb2-ink);
	padding-top: 1rem;
	border-top: 1px solid var(--eb2-rule);
	display: inline-block;
}

/* =====================================================================
   INDEX — rangées type fiche de bibliothèque (règle fine, pas de carte
   à ombre/dégradé). Utilisé pour l'index des familles (hero) ET pour
   l'index des domaines au niveau 1.
   ===================================================================== */
.eb2-index {
	display: flex;
	flex-direction: column;
}

.eb2-index__row {
	display: grid;
	grid-template-columns: 1fr auto auto;
	align-items: baseline;
	gap: 1rem;
	padding: 1.05rem 0.25rem;
	border-top: 1px solid var(--eb2-rule);
	text-decoration: none;
	color: var(--eb2-ink);
	transition: padding-left 0.15s ease, color 0.15s ease;
}

.eb2-index__row:last-child {
	border-bottom: 1px solid var(--eb2-rule);
}

.eb2-index__row:hover {
	padding-left: 0.6rem;
	color: var(--eb2-accent);
}

.eb2-index__label {
	font-family: var(--eb2-font-display);
	font-weight: 600;
	font-size: 1.15rem;
	letter-spacing: -0.005em;
}

.eb2-index__count {
	font-family: var(--eb2-font-mono);
	font-size: 0.78rem;
	color: var(--eb2-ink-muted);
	white-space: nowrap;
}

.eb2-index__arrow {
	font-size: 1rem;
	transform: translateX(0);
	transition: transform 0.15s ease;
}

.eb2-index__row:hover .eb2-index__arrow {
	transform: translateX(3px);
}

/* =====================================================================
   CARTES DE DOMAINE — dégradé signature (couleurs de marque). Navigation
   entre familles exclusivement via l'index (niveau 0) et le fil
   d'Ariane — pas de rail persistant.
   ===================================================================== */
.eb2-domain-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.5rem;
}

.eb2-domain-card {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: 210px;
	padding: 1.75rem 1.5rem 1.5rem;
	border-radius: 4px;
	background: linear-gradient(150deg, var(--eb2-accent-deep-dark) 0%, var(--eb2-accent-deep) 45%, var(--eb2-accent-prune) 100%);
	color: #ffffff;
	text-decoration: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.eb2-domain-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 55%;
	height: 100%;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 300'%3E%3Cg fill='none' stroke='white' stroke-opacity='0.16' stroke-width='1.5'%3E%3Ccircle cx='0' cy='150' r='40'/%3E%3Ccircle cx='0' cy='150' r='80'/%3E%3Ccircle cx='0' cy='150' r='120'/%3E%3Ccircle cx='0' cy='150' r='160'/%3E%3Ccircle cx='0' cy='150' r='200'/%3E%3Ccircle cx='0' cy='150' r='240'/%3E%3C/g%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: left center;
	background-size: cover;
	pointer-events: none;
}

.eb2-domain-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(31, 17, 71, 0.35);
}

.eb2-domain-card__label {
	position: relative;
	z-index: 1;
	font-family: var(--eb2-font-display);
	font-weight: 600;
	font-size: 1.3rem;
	line-height: 1.25;
}

.eb2-domain-card__count {
	position: relative;
	z-index: 1;
	font-family: var(--eb2-font-mono);
	font-size: 0.78rem;
	color: rgba(255, 255, 255, 0.75);
	margin-top: -1.1rem;
}

.eb2-domain-card__cta {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	align-self: flex-start;
	min-width: 0;
	max-width: 100%;
	padding: 0.3rem 0.3rem 0.3rem 1.1rem;
	border-radius: 999px;
	background: #ffffff;
	color: #1a1a1a;
	font-family: var(--eb2-font-body);
	font-weight: 600;
	font-size: 0.9rem;
}

.eb2-domain-card__cta-text {
	overflow: hidden;
	min-width: 0;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.eb2-domain-card__cta-icon {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #111111;
	color: #ffffff;
	font-size: 1rem;
	line-height: 1;
	transition: background 0.2s ease;
}

.eb2-domain-card:hover .eb2-domain-card__cta-icon {
	background: var(--eb2-accent);
}

.eb2-section-title {
	margin: 0 0 0.9rem;
	font-family: var(--eb2-font-display);
	font-weight: 600;
	font-size: 1.3rem;
	color: var(--eb2-ink);
}

.eb2-section-title--center {
	text-align: center;
	font-size: 1.6rem;
	margin-bottom: 2rem;
}

/* =====================================================================
   NOS MÉTHODES PÉDAGOGIQUES — 4 principes numérotés (niveau 0 uniquement).
   ===================================================================== */
.eb2-methodes__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2rem 3rem;
	max-width: 900px;
	margin: 0 auto;
}

@media (max-width: 780px) {
	.eb2-methodes__grid {
		grid-template-columns: 1fr;
	}
}

.eb2-methode__num {
	margin: 0 0 0.35rem;
	font-family: var(--eb2-font-mono);
	font-size: 0.78rem;
	color: var(--eb2-ink-muted);
}

.eb2-methode__title {
	margin: 0 0 0.75rem;
	padding-bottom: 0.75rem;
	border-bottom: 2px solid var(--eb2-accent-quiet);
	font-family: var(--eb2-font-display);
	font-weight: 600;
	font-size: 1.15rem;
	color: var(--eb2-ink);
}

.eb2-methode__text {
	margin: 0;
	color: var(--eb2-ink-muted);
}

/* =====================================================================
   BANDEAU DE FILTRES — puces d'index sobres (pas de pastille pleine
   dégradée) : contour fin, remplissage à l'état actif.
   ===================================================================== */
.eb2-bandeau {
	margin: 0 0 1.5rem;
}

/* --- CTA compact « Envie d'échanger... » : coupure de page en une ligne,
   remplace les doubles filets horizontaux entre les filtres et la liste. --- */
.eb2-cta-inline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin: 0 0 2rem;
	padding: 1rem 1.5rem;
	background: var(--eb2-ink);
}

.eb2-cta-inline__title {
	margin: 0;
	font-family: var(--eb2-font-display);
	font-weight: 600;
	font-size: 1.05rem;
	color: #ffffff;
}

.eb2-cta-inline__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.eb2-btn--sm {
	padding: 0.5rem 1rem;
	font-size: 0.82rem;
}

.eb2-bandeau__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.eb2-chip {
	display: inline-block;
	padding: 0.4rem 0.95rem;
	border-radius: 2px;
	border: 1px solid var(--eb2-ink);
	background: transparent;
	color: var(--eb2-ink);
	font-family: var(--eb2-font-mono);
	font-size: 0.78rem;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.eb2-chip:hover {
	border-color: var(--eb2-accent);
	color: var(--eb2-accent);
}

.eb2-chip--active {
	background: var(--eb2-ink);
	border-color: var(--eb2-ink);
	color: #ffffff;
}

.eb2-chip--active:hover {
	background: var(--eb2-accent);
	border-color: var(--eb2-accent);
	color: #ffffff;
}

/* =====================================================================
   INDEX DES FORMATIONS — cartes à fond alterné (deux teintes pastel
   dérivées de la charte), plutôt qu'une liste à séparateurs fins.
   ===================================================================== */
.eb2-formation-cards {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
}

.eb2-formation-card {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	padding: 1.25rem 1.75rem;
	border: 1px solid var(--eb2-rule);
}

.eb2-formation-card--a {
	background: var(--eb2-card-a, #f3effa);
}

.eb2-formation-card--b {
	background: var(--eb2-card-b, #fdf0f8);
}

.eb2-formation-card__body {
	flex: 1 1 auto;
	min-width: 0;
}

.eb2-formation-card__pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.eb2-formation-card__pill {
	display: inline-flex;
	align-items: center;
	padding: 0.22rem 0.75rem;
	border-radius: 999px;
	font-family: var(--eb2-font-mono);
	font-size: 0.68rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	white-space: nowrap;
}

/* Nouveauté : seule pastille pleine (fond saturé + texte blanc) pour
   trancher visuellement sur les deux autres, tramées/pastel. */
.eb2-formation-card__pill--nouveaute {
	background: var(--eb2-accent);
	color: #fff;
	box-shadow: 0 1px 4px rgba(229, 35, 156, 0.35);
}

.eb2-formation-card__pill--modalite {
	background: var(--eb2-pill-modalite-bg, rgba(70, 181, 170, 0.16));
	color: var(--eb2-pill-modalite-ink, #2a7770);
}

.eb2-formation-card__pill--type {
	background: var(--eb2-pill-type-bg, rgba(80, 30, 150, 0.12));
	color: var(--eb2-accent-deep);
}

.eb2-formation-card__taxo {
	margin: 0 0 0.4rem;
	font-family: var(--eb2-font-mono);
	font-size: 0.68rem;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--eb2-ink-muted);
}

.eb2-formation-card__title {
	margin: 0 0 0.35rem;
	font-family: var(--eb2-font-display);
	font-weight: 600;
	font-size: 1.15rem;
	line-height: 1.25;
	letter-spacing: -0.005em;
}

.eb2-formation-card__title a {
	text-decoration: none;
	color: var(--eb2-ink);
}

.eb2-formation-card__title a:hover {
	color: var(--eb2-accent);
}

.eb2-formation-card__desc {
	margin: 0 0 0.6rem;
	color: var(--eb2-ink-muted);
	font-size: 0.9rem;
}

.eb2-formation-card__link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-family: var(--eb2-font-mono);
	font-size: 0.76rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--eb2-accent);
	text-decoration: none;
}

.eb2-formation-card__link:hover {
	text-decoration: underline;
}

.eb2-formation-card__stats {
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.5rem;
	text-align: right;
}

.eb2-formation-card__stat {
	font-family: var(--eb2-font-display);
	font-weight: 600;
	font-size: 1.1rem;
	color: var(--eb2-ink);
	white-space: nowrap;
}

@media (max-width: 640px) {
	.eb2-formation-card {
		flex-wrap: wrap;
	}

	.eb2-formation-card__stats {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		width: 100%;
		text-align: left;
	}
}

/* =====================================================================
   FICHE FORMATION — feuille de syllabus.
   ===================================================================== */
.eb2-fiche {
	display: block;
}

.eb2-fiche__hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
	gap: clamp(2rem, 4vw, 3.5rem);
	align-items: start;
	margin-bottom: 2.5rem;
}

@media (max-width: 760px) {
	.eb2-fiche__hero {
		grid-template-columns: 1fr;
	}
}

.eb2-fiche__title {
	margin: 0 0 0.6rem;
	font-family: var(--eb2-font-display);
	font-weight: 600;
	font-size: clamp(1.8rem, 3.2vw, 2.5rem);
	line-height: 1.15;
	letter-spacing: -0.01em;
}

.eb2-fiche__kicker {
	margin: 0 0 0.35rem;
	font-family: var(--eb2-font-mono);
	font-size: 0.85rem;
	color: var(--eb2-ink-muted);
}


.eb2-fiche__badges {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0 0 1.25rem;
	padding: 0;
}

.eb2-fiche__badge {
	padding: 0.35rem 0.85rem;
	border-radius: 2px;
	background: rgba(70, 181, 170, 0.14);
	color: #2a7770;
	font-size: 0.78rem;
	font-weight: 600;
}

.eb2-fiche__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.5rem;
}

/* Colonne de droite : carte FICHE (prix/durée/groupe) puis boutons d'action
   juste en dessous, empilés. */
.eb2-fiche__hero-side {
	display: flex;
	flex-direction: column;
}

.eb2-fiche__hero-side .eb2-fiche__cta {
	flex-direction: column;
	margin-top: 1.25rem;
}

.eb2-fiche__hero-side .eb2-btn {
	text-align: center;
}

.eb2-btn {
	display: inline-block;
	padding: 0.75rem 1.5rem;
	border-radius: 2px;
	font-family: var(--eb2-font-body);
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid var(--eb2-ink);
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.eb2-btn--primary {
	background: var(--eb2-ink);
	color: #ffffff;
}

.eb2-btn--primary:hover {
	background: var(--eb2-accent);
	border-color: var(--eb2-accent);
	color: #ffffff;
}

.eb2-btn--ghost {
	background: transparent;
	color: var(--eb2-ink);
}

.eb2-btn--ghost:hover {
	border-color: var(--eb2-accent);
	color: var(--eb2-accent);
}

.eb2-btn--on-dark {
	background: #ffffff;
	border-color: #ffffff;
	color: var(--eb2-ink);
}

.eb2-btn--on-dark:hover {
	background: var(--eb2-accent);
	border-color: var(--eb2-accent);
	color: #ffffff;
}

.eb2-btn--ghost-on-dark {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.5);
	color: #ffffff;
}

.eb2-btn--ghost-on-dark:hover {
	border-color: #ffffff;
	background: rgba(255, 255, 255, 0.1);
}

/* =====================================================================
   CARTES DE CONTENU (Deux façons de vous former / Nos engagements) —
   sobres, à contraster avec les cartes de domaine (dégradé).
   ===================================================================== */
.eb2-feature-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem;
}

.eb2-feature-grid--three {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 780px) {
	.eb2-feature-grid,
	.eb2-feature-grid--three {
		grid-template-columns: 1fr;
	}
}

.eb2-feature-card {
	padding: 1.75rem;
	background: var(--eb2-surface);
	border: 1px solid var(--eb2-rule);
	border-top: 3px solid var(--eb2-accent-quiet);
}

.eb2-feature-card__title {
	margin: 0 0 0.6rem;
	font-family: var(--eb2-font-display);
	font-weight: 600;
	font-size: 1.2rem;
	color: var(--eb2-ink);
}

.eb2-feature-card__text {
	margin: 0;
	color: var(--eb2-ink-muted);
}

.eb2-feature-card__link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin-top: 1rem;
	font-family: var(--eb2-font-mono);
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--eb2-accent);
	text-decoration: none;
}

.eb2-feature-card__link:hover {
	text-decoration: underline;
}

/* --- CTA de fin de page --- */
.eb2-cta {
	text-align: center;
	max-width: 640px;
	margin: 0 auto;
}

.eb2-cta__title {
	margin: 0 0 0.75rem;
	font-family: var(--eb2-font-display);
	font-weight: 600;
	font-size: clamp(1.6rem, 3vw, 2.1rem);
	color: #ffffff;
}

.eb2-cta__text {
	margin: 0 0 1.75rem;
	color: rgba(255, 255, 255, 0.8);
}

.eb2-cta__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
}

/* --- Carte de synthèse façon fiche imprimée ---
   TEST : fond dégradé façon .eb2-domain-card + liseret à gauche, au lieu
   du fond blanc + liseret en haut d'origine (commentée ci-dessous pour
   revenir en arrière facilement). */
/*
.eb2-specsheet {
	background: var(--eb2-surface);
	border: 1px solid var(--eb2-rule);
	border-top: 3px solid var(--eb2-accent);
	padding: 1.5rem 1.65rem;
}
*/
.eb2-specsheet {
	position: relative;
	overflow: hidden;
	background: linear-gradient(150deg, var(--eb2-accent-deep-dark) 0%, var(--eb2-accent-deep) 45%, var(--eb2-accent-prune) 100%);
	border-left: 4px solid var(--eb2-accent);
	padding: 1.5rem 1.65rem;
	color: #ffffff;
}

.eb2-specsheet::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 65%;
	height: 100%;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 300'%3E%3Cg fill='none' stroke='white' stroke-opacity='0.14' stroke-width='1.5'%3E%3Ccircle cx='0' cy='150' r='40'/%3E%3Ccircle cx='0' cy='150' r='80'/%3E%3Ccircle cx='0' cy='150' r='120'/%3E%3Ccircle cx='0' cy='150' r='160'/%3E%3Ccircle cx='0' cy='150' r='200'/%3E%3Ccircle cx='0' cy='150' r='240'/%3E%3C/g%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: left center;
	background-size: cover;
	pointer-events: none;
}

.eb2-specsheet__price,
.eb2-specsheet__list,
.eb2-specsheet__row {
	position: relative;
	z-index: 1;
}

.eb2-specsheet__price {
	margin: 0 0 1.1rem;
	font-family: var(--eb2-font-display);
	font-weight: 600;
	font-size: 1.15rem;
	white-space: nowrap;
	color: #ffffff;
}

.eb2-specsheet__list {
	margin: 0;
	display: flex;
	flex-direction: column;
}

.eb2-specsheet__row {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.6rem 0;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.eb2-specsheet__row dt {
	font-family: var(--eb2-font-mono);
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: rgba(255, 255, 255, 0.7);
}

.eb2-specsheet__row dd {
	margin: 0;
	font-weight: 600;
	text-align: right;
	color: #ffffff;
}

/* --- Badges de taxonomie (liens croisés) --- */
.eb2-fiche__taxo {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0 0 2rem;
}

.eb2-tag {
	display: inline-block;
	padding: 0.3rem 0.8rem;
	border-radius: 2px;
	border: 1px solid var(--eb2-rule);
	color: var(--eb2-ink-muted);
	font-family: var(--eb2-font-mono);
	font-size: 0.72rem;
	text-decoration: none;
}

.eb2-tag:hover {
	border-color: var(--eb2-accent);
	color: var(--eb2-accent);
}

/* --- Pré-requis / Pour qui ? — sortis des onglets, titre remplacé par une
   icône (pastille noire, même style que les CTA des cartes de domaine). --- */
.eb2-quickfacts {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	margin: 0 0 2rem;
}

.eb2-quickfact {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
}

.eb2-quickfact__icon {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--eb2-ink);
	color: #ffffff;
}

.eb2-quickfact__icon svg {
	width: 18px;
	height: 18px;
}

.eb2-quickfact__body {
	flex: 1 1 auto;
	min-width: 0;
	padding-top: 0.4rem;
}

.eb2-quickfact__body > *:last-child {
	margin-bottom: 0;
}

.eb2-quickfact__label {
	margin: 0 0 0.35rem;
	font-family: var(--eb2-font-mono);
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--eb2-ink-muted);
}

/* --- Lien discret « Télécharger au format PDF » — sous Pré-requis/Pour qui ?,
   pilule fine, couleur accent, volontairement discret (pas un bouton CTA). --- */
.eb2-pdf-link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin: -0.75rem 0 2rem;
	padding: 0.4rem 0.9rem;
	border: 1px solid var(--eb2-accent);
	border-radius: 999px;
	color: var(--eb2-accent);
	font-family: var(--eb2-font-mono);
	font-size: 0.78rem;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.eb2-pdf-link svg {
	width: 14px;
	height: 14px;
	flex: 0 0 auto;
}

.eb2-pdf-link:hover {
	background: var(--eb2-accent);
	color: #ffffff;
}

/* --- Descriptif (texte de présentation, ex. Form.dev "Descriptif"/"txtWeb") ---
   Volontairement voyant : c'est un vrai texte marketing, pas une note
   administrative discrète — pleine largeur, accent visuel fort. */
.eb2-fiche__note {
	margin: 0 0 2.5rem;
	padding: 1.5rem 1.75rem;
	background: var(--eb2-paper);
	border-left: 4px solid var(--eb2-accent);
	color: var(--eb2-ink);
	font-family: var(--eb2-font-display);
	font-size: 1.2rem;
	line-height: 1.5;
}

.eb2-fiche__note p:first-child {
	margin-top: 0;
}

.eb2-fiche__note p:last-child {
	margin-bottom: 0;
}

/* --- Bloc permanent « présentiel ou à distance » --- */
.eb2-format-choice {
	max-width: 640px;
	margin: 0 0 2.5rem;
	padding: 1.75rem 2rem;
	background: var(--eb2-surface);
	border: 1px solid var(--eb2-rule);
	border-left: 4px solid var(--eb2-accent-quiet);
	box-shadow: 0 10px 30px -12px rgba(34, 26, 48, 0.35);
}

.eb2-format-choice__eyebrow {
	margin: 0 0 1.75rem;
	text-align: center;
	font-family: var(--eb2-font-mono);
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--eb2-ink-muted);
}

.eb2-format-choice__grid {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 1.5rem;
}

/* Une seule modalité (mixte, ou présentiel/distanciel exclusif) : pas de
   diviseur « ou ». Cadre à la même largeur que le cas à 2 cartes (pas
   resserré, pas de retour à la ligne), carte centrée dans ce cadre. */
.eb2-format-choice__grid--single {
	grid-template-columns: minmax(0, 220px);
	justify-content: center;
}

@media (max-width: 640px) {
	.eb2-format-choice__grid {
		grid-template-columns: 1fr;
	}
}

.eb2-format-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0.35rem;
}

.eb2-format-card__icon {
	width: 68px;
	height: auto;
	margin-bottom: 0.35rem;
	transition: transform 0.2s ease;
}

.eb2-format-card:hover .eb2-format-card__icon {
	transform: translateY(-3px);
}

.eb2-format-card__title {
	margin: 0;
	font-family: var(--eb2-font-display);
	font-weight: 600;
	font-size: 1.1rem;
	color: var(--eb2-ink);
}

.eb2-format-choice__divider {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0 auto;
	border-radius: 50%;
	background: var(--eb2-ink);
	color: #ffffff;
	font-family: var(--eb2-font-mono);
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

/* Liens dans du contenu riche whitelisté (Descriptif, onglets Objectifs/
   Programme/...) : peuvent contenir des liens arbitraires côté Form.dev —
   affordance explicite plutôt que la couleur du texte environnant. */
.eb2-fiche__note a,
.eb2-tabs__panel a,
.eb2-fiche__section-body a {
	color: var(--eb2-accent);
	text-decoration: underline;
}

/* Sous-titres dans le contenu riche (ex. « Module 1 : ... » dans l'onglet
   Programme) : Form.dev renvoie des <h3> avec une couleur imposée en style
   inline (span color:hsl(...)) — on la neutralise avec !important pour
   appliquer la charte du catalogue (accent magenta) à la place. */
.eb2-tabs__panel h3 {
	margin: 1.5rem 0 0.25rem;
	font-family: var(--eb2-font-display);
	font-weight: 600;
	font-size: 1.05rem;
	line-height: 1.3;
}

.eb2-tabs__panel h3:first-child {
	margin-top: 0;
}

/* Form.dev termine ces titres par « <br>&nbsp; » (une ligne vide dans le
   titre lui-même) — on neutralise le retour à la ligne pour resserrer
   l'espace avec le paragraphe qui suit. */
.eb2-tabs__panel h3 br {
	display: none;
}

/* Le paragraphe suivant un titre ne doit pas ajouter sa propre marge par
   défaut du navigateur en plus de la marge du titre. */
.eb2-tabs__panel h3 + p {
	margin-top: 0;
}

.eb2-tabs__panel h3,
.eb2-tabs__panel h3 span,
.eb2-tabs__panel h3 strong {
	color: var(--eb2-accent) !important;
}

/* --- Onglets façon classeur (CSS pur, cf. class-shortcodes.php) --- */
.eb2-tabs {
	margin-bottom: 2rem;
}

.eb2-tabs__radio {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

/* Essai : bandeau d'onglets en pleine largeur de page (au-delà de la
   colonne centrée), fond noir, texte blanc — l'état actif (sélection)
   garde son style habituel (accent magenta), volontairement inchangé.
   Le fond (.eb2-tabs__nav) déborde à 100vw ; le contenu
   (.eb2-tabs__nav-inner) reste centré à la même largeur/marge que le
   reste de la fiche (.eb2-band__inner), pour un alignement exact avec
   les blocs en dessous. */
.eb2-tabs__nav {
	width: 100vw;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	box-sizing: border-box;
	background: #000000;
}

.eb2-tabs__nav-inner {
	display: flex;
	flex-wrap: wrap;
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.eb2-tabs__label {
	cursor: pointer;
	padding: 0.75rem 1.25rem;
	font-family: var(--eb2-font-mono);
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: rgba(255, 255, 255, 0.7);
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.eb2-tabs__label:hover {
	color: #ffffff;
}

.eb2-tabs__panels {
	padding: 1.75rem 2rem;
	background: var(--eb2-surface);
	border: 1px solid var(--eb2-rule);
}

.eb2-tabs__panel {
	display: none;
}

.eb2-tabs__block {
	margin-bottom: 1rem;
}

.eb2-tabs__block:last-child {
	margin-bottom: 0;
}

/* Association radio → panel/label actif, une paire à la fois (même
   position dans l'arbre, cf. structure générée par render_fiche_tabs()). */
.eb2-tabs__radio:nth-of-type(1):checked ~ .eb2-tabs__nav .eb2-tabs__label:nth-of-type(1),
.eb2-tabs__radio:nth-of-type(2):checked ~ .eb2-tabs__nav .eb2-tabs__label:nth-of-type(2),
.eb2-tabs__radio:nth-of-type(3):checked ~ .eb2-tabs__nav .eb2-tabs__label:nth-of-type(3),
.eb2-tabs__radio:nth-of-type(4):checked ~ .eb2-tabs__nav .eb2-tabs__label:nth-of-type(4),
.eb2-tabs__radio:nth-of-type(5):checked ~ .eb2-tabs__nav .eb2-tabs__label:nth-of-type(5),
.eb2-tabs__radio:nth-of-type(6):checked ~ .eb2-tabs__nav .eb2-tabs__label:nth-of-type(6),
.eb2-tabs__radio:nth-of-type(7):checked ~ .eb2-tabs__nav .eb2-tabs__label:nth-of-type(7),
.eb2-tabs__radio:nth-of-type(8):checked ~ .eb2-tabs__nav .eb2-tabs__label:nth-of-type(8),
.eb2-tabs__radio:nth-of-type(9):checked ~ .eb2-tabs__nav .eb2-tabs__label:nth-of-type(9) {
	color: var(--eb2-accent);
	border-bottom-color: var(--eb2-accent);
}

.eb2-tabs__radio:nth-of-type(1):checked ~ .eb2-tabs__panels .eb2-tabs__panel:nth-of-type(1),
.eb2-tabs__radio:nth-of-type(2):checked ~ .eb2-tabs__panels .eb2-tabs__panel:nth-of-type(2),
.eb2-tabs__radio:nth-of-type(3):checked ~ .eb2-tabs__panels .eb2-tabs__panel:nth-of-type(3),
.eb2-tabs__radio:nth-of-type(4):checked ~ .eb2-tabs__panels .eb2-tabs__panel:nth-of-type(4),
.eb2-tabs__radio:nth-of-type(5):checked ~ .eb2-tabs__panels .eb2-tabs__panel:nth-of-type(5),
.eb2-tabs__radio:nth-of-type(6):checked ~ .eb2-tabs__panels .eb2-tabs__panel:nth-of-type(6),
.eb2-tabs__radio:nth-of-type(7):checked ~ .eb2-tabs__panels .eb2-tabs__panel:nth-of-type(7),
.eb2-tabs__radio:nth-of-type(8):checked ~ .eb2-tabs__panels .eb2-tabs__panel:nth-of-type(8),
.eb2-tabs__radio:nth-of-type(9):checked ~ .eb2-tabs__panels .eb2-tabs__panel:nth-of-type(9) {
	display: block;
}

/* --- Sections permanentes (Accessibilité, Délai d'accès, Intra) --- */
/* Séparateur horizontal aligné sur la largeur de la colonne de contenu
   (même largeur que le header, logo Ebrioo ↔ bouton "Nous contacter") —
   pas un débordement plein écran comme le bandeau d'onglets noir. */
.eb2-fiche__section {
	margin: 0 0 1.75rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--eb2-rule);
}

.eb2-fiche__section-title {
	margin: 0 0 0.6rem;
	font-family: var(--eb2-font-mono);
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--eb2-ink-muted);
}

.eb2-fiche__section-body {
	font-size: 0.95rem;
}
