/*
 * Fiche formation OFAP — feuille commune à toutes les fiches (« Devenir Agent
 * immobilier » et les suivantes).
 *
 * Source du design : la capture Figma de la fiche (structure, proportions,
 * couleurs) et l'habillage de l'accueil, dont elle reprend les couleurs. Cet
 * habillage est enfermé dans .home-page (maquette/home-reference.css) : ce qui
 * sert à la fiche est redit ici sous la classe de page .ofap-fiche, avec les
 * mêmes valeurs. La source de chaque brique est citée.
 *
 * Chargée après fonts.css, styles.css et kit-ofap.css, avant compat-wp.css ; le
 * tout après Elementor (priorité 30 du thème). Le balisage est produit par
 * outils/generer-fiche.py à partir de formations/<slug>.json ; la page est une
 * page Elementor dont les conteneurs portent les classes ofap-fiche-corps,
 * ofap-fiche-principal, ofap-fiche-rail et ofap-fiche-rappel.
 *
 * Conventions : bloc .ofap-fiche-<bloc>, élément __<élément>, variante
 * --<variante> ; état par attribut ([open], [aria-selected], [hidden]) ou
 * .est-<état> ; accroches de script en data-fiche-<rôle>. Aucune classe au nom
 * d'une formation. Une règle qui vise un lien, un bouton, un <summary>, une
 * image ou une iframe s'écrit « .ofap-fiche .ofap-fiche-… » (0,2,0) pour passer
 * devant « .elementor a », « .elementor img » et « a:focus-visible » (0,1,1).
 * Pas de !important, sauf pour [hidden].
 *
 * Couleurs de texte : rouge #D91921 sur blanc, #BD1720 (--red-dark) sur crème,
 * vert #087B6C (--teal) ; le rouge #ED1C24 et le vert #22AF9E de la charte ne
 * servent qu'aux décors et aux grands titres (contrastes : guide de style § 1.3).
 *
 * Sommaire
 *   1. Jetons
 *   2. Raccords au site : [hidden], bandeau bleu, boutons en pilule
 *   3. Briques communes : sur-titre, titres, mots marqués, pastilles, liens,
 *      panneaux et décors, liste à coches, accordéon, carte, vidéo au clic
 *   4. Sections, dans l'ordre de la page
 *      4.1 Bandeau   4.2 Corps à deux colonnes, présentation   4.3 Programme
 *      4.3 bis Formateur (ou formatrice)
 *      4.4 Certification   4.5 Modalités   4.6 Simulateur de financement
 *      4.7 Sessions   4.8 Rythme et tête des sections suivantes   4.9 Avis
 *      4.10 Le métier en chiffres   4.11 À distance   4.12 Plateforme
 *      4.13 Formules   4.14 Financements   4.15 Questions fréquentes
 *      4.16 Demande de rappel (formulaire Elementor)   4.17 Formations complémentaires
 *   5. Carte du prix (collante)
 *   6. Renforts face à Elementor
 *   7. Écrans étroits : une plage d'ajustement (repères du bandeau), puis 1190,
 *      1020, 760 (dont la barre fixe du bas d'écran), 480, 390
 *   8. Mouvement réduit, contrastes forcés, impression
 */

/* 1. Jetons ---------------------------------------------------------------- */
/* Les autres couleurs viennent de :root (kit-ofap.css) : --red, --red-dark,
 * --ink, --text, --muted, --teal, --cream, --border, --heading, --body. */
.ofap-fiche {
	--fiche-noir: #16181D;          /* titres : --home-black de l'accueil */
	--fiche-creme: #FDF6F0;         /* bandeau, blocs doux, réponses : --home-cream */
	--fiche-rose: #FBD9D9;          /* quarts de disque : --home-pink */
	--fiche-rose-pale: #FFF7F5;     /* carte mise en avant : .expert-card de l'accueil */
	--fiche-filet-rose: #EBC2BF;    /* bord rosé des éléments mis en avant */
	--fiche-rouge: #ED1C24;         /* rouge de la charte : décors et grands titres */
	--fiche-rouge-action: #D91921;  /* boutons, texte rouge sur blanc, fond sous un petit texte blanc */
	--fiche-menthe: #E9F7F4;        /* pastilles */
	--fiche-sarcelle: #2B5968;      /* angle des blocs bleu nuit */
	--fiche-texte-nuit: #E2E0EC;    /* paragraphes sur bleu nuit */
	--fiche-conteneur: min(1240px, calc(100% - 96px)); /* = .container du site (styles.css) */
	--fiche-rail: 400px;            /* colonne de la carte du prix */
	--fiche-gouttiere: clamp(40px, 5vw, 72px);
	/* Rythme vertical : l'écart entre deux sections, et l'écart court entre deux
	 * blocs qui vont ensemble (panneaux pleins à la suite). 68 / 40 px sous
	 * 1021 px, 56 / 32 px sous 761 px. */
	--fiche-rythme: 80px;
	--fiche-rythme-court: 48px;
	/* Repère des éléments collants : l'en-tête (86 px, en pilule de 10 à 80 px
	 * après défilement) + 22 px. Même valeur que le blog. */
	--fiche-sous-entete: 108px;
}
body.admin-bar.ofap-fiche { --fiche-sous-entete: 140px; } /* + barre d'administration (32 px) */

/* 2. Raccords au site ------------------------------------------------------- */
/* L'attribut hidden ne résiste à aucun « display » d'auteur : sans cette règle,
 * un bloc en flex ou en grid marqué hidden resterait affiché. */
.ofap-fiche [hidden] { display: none !important; }
/* Comme l'accueil et le blog : pas de bandeau d'information au-dessus de l'en-tête. */
.ofap-fiche .topbar { display: none; }
.ofap-fiche main { color: var(--fiche-noir); }

/* Boutons : la pilule de l'accueil (home-reference.css l. 21-27). Même poids
 * (0,2,2) que « main section:not(.hero) .button » du kit, chargé avant : la
 * dernière règle l'emporte. Le rouge #D91921 et son survol viennent du kit.
 * Condition héritée du kit : le bouton est dans un <section>. */
.ofap-fiche main section .button {
	min-height: 48px;
	padding: 12px 22px;
	gap: 12px;
	border-radius: 50px;
	font: 700 .9375rem/1.5 var(--heading);
	text-align: center;
}
.ofap-fiche main section .button-outline { border: 1px solid var(--fiche-noir); background: transparent; color: var(--fiche-noir); }
.ofap-fiche main section .button-outline:hover { background: #fff4ef; }
.ofap-fiche main section .button-ink:hover { background: #201e3c; }
/* Sur fond rouge : bouton blanc à texte rouge (accueil, .final-cta-actions). */
.ofap-fiche main section .button-white { background: #fff; color: var(--fiche-rouge-action); }
.ofap-fiche main section .button-white:hover { background: #fff2ed; }
.ofap-fiche main section .button--petit { min-height: 44px; padding: 9px 18px; font-size: .8125rem; }
.ofap-fiche main section .button--large { width: 100%; }

/* 3. Briques communes -------------------------------------------------------- */
/* Sur-titre : celui de l'accueil (home-reference.css l. 17-18), en rouge sombre
 * (le rouge de la charte, à 12 px, reste sous 4,5:1). */
.ofap-fiche-surtitre {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font: 500 .75rem/1.6 var(--heading);
	letter-spacing: .13em;
	text-transform: uppercase;
	color: var(--red-dark);
}
.ofap-fiche-surtitre::before { content: ""; flex: none; width: 22px; height: 2px; background: currentColor; opacity: .45; }
.ofap-fiche-surtitre--nuit { color: #61C2B2; }  /* sur bleu nuit (accueil, .method-title .eyebrow) */
.ofap-fiche-surtitre--rouge { color: #fff; }    /* sur rouge : blanc pur, il passe sur le quart de disque clair (4,6:1) */

/* Titres : aucune taille n'existe hors des sections nommées de l'accueil. */
.ofap-fiche-titre {
	font: 700 clamp(2.25rem, 3.6vw, 3.25rem)/1.1 var(--heading); /* 52 px à 1440 : H1 du kit graphique */
	letter-spacing: -.04em;
	color: var(--fiche-noir);
	text-wrap: balance;
}
/* Mot accentué du titre : rouge et penché, comme le titre des articles du blog
 * (la police n'a pas d'italique : l'inclinaison est celle du navigateur). */
.ofap-fiche-titre__accent { padding-right: .08em; font-style: italic; color: var(--fiche-rouge); }
/* Un accent long (« dans son activité professionnelle ») passe à la ligne sur
 * mobile ; un accent court reste d'un seul tenant tant qu'il tient. */
.ofap-fiche-titre .ofap-fiche-titre__accent { white-space: normal; }
/* « .ofap-fiche » devant : (0,2,0) passe devant « .faq-section h2 » du kit (0,1,1). */
.ofap-fiche .ofap-fiche-h2 {
	margin-top: 0;
	font: 700 clamp(1.8rem, 2.7vw, 2.35rem)/1.25 var(--heading); /* H2 de l'accueil (home-reference.css l. 66) */
	letter-spacing: -.04em;
	color: var(--fiche-noir);
	text-wrap: balance;
}
/* Titre des grands panneaux (modalités, simulateur) : plus fort dans le design. */
.ofap-fiche .ofap-fiche-h2--grand { font-size: clamp(2rem, 3.3vw, 3rem); line-height: 1.2; }
.ofap-fiche .ofap-fiche-h2--grand:has(.ofap-fiche-aplat) { line-height: 1.32; }
.ofap-fiche .ofap-fiche-h2--petit { font-size: clamp(1.5rem, 2.05vw, 1.8125rem); line-height: 1.3; letter-spacing: -.03em; }
.ofap-fiche .ofap-fiche-surtitre + .ofap-fiche-h2 { margin-top: 16px; }
/* Un mot en aplat demande de l'air entre les lignes (accueil : 1,4). */
.ofap-fiche .ofap-fiche-h2:has(.ofap-fiche-aplat) { line-height: 1.4; }
.ofap-fiche .ofap-fiche-h3 {
	font: 500 1.125rem/1.45 var(--heading);
	letter-spacing: -.02em;
	color: var(--fiche-noir);
}
.ofap-fiche-chapeau { font-size: 1.0625rem; line-height: 1.75; color: var(--text); }
.ofap-fiche-texte { font-size: 1rem; line-height: 1.7; color: var(--text); }
.ofap-fiche-texte strong,
.ofap-fiche-prose strong { font-weight: 700; color: var(--ink); }
/* Suite de paragraphes. */
.ofap-fiche-prose { font-size: 1rem; line-height: 1.7; color: var(--text); }
.ofap-fiche-prose > * + * { margin-top: 1.05em; }

/* Mot souligné « à la main » : .home-underline de l'accueil. Le tracé est
 * maquette/assets/icons/catalogue-underline.svg, en ligne comme dans blog-vitrine.css. */
.ofap-fiche-souligne { position: relative; display: inline-block; white-space: nowrap; }
.ofap-fiche-souligne::after {
	content: "";
	position: absolute;
	left: -1%;
	bottom: -.11em;
	width: 102%;
	height: .16em;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 20' preserveAspectRatio='none'%3E%3Cpath fill='%23ed1c24' d='M2 16C101 1 303-5 492 8c6 .4 9 3 8 7-.3 1.8-1.7 2.7-5 2.4C312 10 144 10 3 19c-3 .2-4-1.7-1-3Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
	pointer-events: none;
}
/* Design de la fiche : le trait ne court que sous la fin du mot, un peu plus bas. */
.ofap-fiche-souligne--court::after { left: 36%; bottom: -.2em; width: 58%; height: .13em; transform: rotate(-1.2deg); }

/* Mot en aplat : .home-mark-red / .home-mark-navy (home-reference.css l. 30-32). */
.ofap-fiche-aplat {
	display: inline-block;
	padding: .035em .2em .09em;
	border-radius: 10px 10px 10px 2px;
	line-height: 1.25;
	color: #fff;
}
.ofap-fiche-aplat--rouge { background: var(--fiche-rouge); } /* grand titre seulement : blanc sur #ED1C24 = 4,38:1 */
.ofap-fiche-aplat--nuit { background: var(--ink); }
.ofap-fiche-aplat--blanc { background: #fff; color: #DD151E; } /* sur fond rouge (catalogue, bandeau de contact) */
/* Texte vert dans un titre : jamais #22AF9E (2,73:1 sur blanc). */
.ofap-fiche-vert { color: var(--teal); }
/* Verbe et pronom d'une question (« peut-elle ») : pas de coupure au trait d'union. */
.ofap-fiche-insecable { white-space: nowrap; }

/* Pastille au-dessus d'un titre : étiquette à coins de 6 px du kit
 * (.coaching-header .eyebrow), en menthe comme dans le design. */
.ofap-fiche-pastille {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	padding: 5px 13px;
	border-radius: 6px;
	background: var(--fiche-menthe);
	font: 500 .75rem/1.5 var(--heading);
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--teal);
}
/* Étiquettes en pilule : valeurs de .ofap-etiquette (blog.css). */
.ofap-fiche-etiquette {
	display: inline-flex;
	align-items: center;
	min-height: 26px;
	padding: 4px 12px;
	border-radius: 999px;
	font: 700 .6875rem/1.2 var(--heading);
	letter-spacing: .06em;
	text-transform: uppercase;
}
.ofap-fiche-etiquette--rouge { background: var(--fiche-rouge-action); color: #fff; }
.ofap-fiche-etiquette--nuit { background: var(--ink); color: #fff; }
.ofap-fiche-etiquette--menthe { background: var(--fiche-menthe); color: var(--teal); }
.ofap-fiche-etiquette--creme { background: var(--cream); color: var(--ink); }
.ofap-fiche-etiquette--rose { background: #FDE3E1; color: #B5141B; }
.ofap-fiche-etiquette--blanc { background: #fff; color: var(--fiche-rouge-action); }

/* Liens. Lien fléché rouge : .text-link du site, en rouge lisible. */
.ofap-fiche .text-link--rouge { gap: 10px; color: var(--fiche-rouge-action); }
.ofap-fiche .text-link--rouge:hover { color: var(--red-dark); }
/* Lien dans un texte courant (<a> saisi dans les données). */
.ofap-fiche .ofap-fiche-lien { color: var(--red-dark); text-decoration: underline; text-underline-offset: .16em; }
.ofap-fiche .ofap-fiche-lien:hover { text-decoration-thickness: 2px; }
/* Bouton discret (« Tout déplier », « Modifier mes réponses »). */
.ofap-fiche .ofap-fiche-bascule {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 6px 0;
	font: 500 .875rem/1.5 var(--heading);
	color: var(--ink);
	text-decoration: underline;
	text-decoration-color: #B9B7C8;
	text-underline-offset: 5px;
}
.ofap-fiche .ofap-fiche-bascule:hover { color: var(--red-dark); text-decoration-color: currentColor; }
.ofap-fiche-icone { flex: none; }

/* Panneaux arrondis et leurs décors (accueil : .reconversion-grid, .method-grid,
 * .final-cta-panel). Le décor passe DERRIÈRE le contenu, jamais dessus. */
.ofap-fiche-panneau { position: relative; isolation: isolate; overflow: hidden; border-radius: 22px; padding: 46px 44px; }
.ofap-fiche-panneau--creme { background: var(--fiche-creme); }
.ofap-fiche-panneau--peche { background: var(--cream); }
.ofap-fiche-panneau--nuit { background: var(--ink); color: #fff; }
.ofap-fiche .ofap-fiche-panneau--nuit .ofap-fiche-h2 { color: #fff; }
.ofap-fiche-panneau--nuit .ofap-fiche-texte { color: var(--fiche-texte-nuit); }
/* Rouge d'action : le texte courant blanc y est lisible (5,11:1 ; 4,38:1 sur #ED1C24). */
.ofap-fiche-panneau--rouge { background: var(--fiche-rouge-action); color: #fff; }
.ofap-fiche .ofap-fiche-panneau--rouge .ofap-fiche-h2,
.ofap-fiche-panneau--rouge .ofap-fiche-texte { color: #fff; }
.ofap-fiche-panneau::before,
.ofap-fiche-panneau::after { position: absolute; z-index: -1; pointer-events: none; }
/* Bleu nuit : quart de disque sarcelle dans l'angle haut droit (design ; même teinte que l'accueil). */
.ofap-fiche-panneau--nuit::before { content: ""; right: 0; top: 0; width: 330px; height: 330px; border-radius: 0 0 0 100%; background: var(--fiche-sarcelle); opacity: .7; }
/* Rouge : quart de disque et disque clairs (home-reference.css l. 186-187). */
.ofap-fiche-panneau--rouge::before { content: ""; right: 0; top: 0; width: 295px; height: 270px; border-radius: 0 0 0 100%; background: #ffffff40; }
.ofap-fiche-panneau--rouge::after { content: ""; right: 25%; bottom: -114px; width: 160px; height: 160px; border-radius: 50%; background: #ffffff40; }
/* Quart de disque rose dans l'angle bas gauche (design du bloc « modalités »). */
.ofap-fiche-panneau--quart::after { content: ""; left: 0; bottom: 0; width: 216px; height: 216px; border-radius: 0 100% 0 0; background: var(--fiche-rose); }
/* Anneau de focus : le vert du thème se perd sur les fonds sombres. */
.ofap-fiche-panneau--nuit :is(a, button, summary, input):focus-visible { outline-color: #6BDDCB; }
.ofap-fiche-panneau--rouge :is(a, button, summary):focus-visible { outline-color: #fff; }

/* Liste à coches : coche verte lisible sur disque menthe. */
.ofap-fiche-coches { display: grid; gap: 12px; }
.ofap-fiche-coches > li { position: relative; padding-left: 36px; font-size: 1rem; line-height: 1.65; color: var(--text); }
.ofap-fiche-coches > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .1em;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--fiche-menthe) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23087B6C' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6.5 12.5 3.6 3.6 7.4-7.6'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* Accordéon : <details> natifs, utilisables sans script. Deux habillages :
 * --numerote (programme : cartes bordées, numéro rouge) et --lignes (modalités :
 * lignes blanches sur panneau crème). */
.ofap-fiche-accordeon { display: grid; gap: 12px; }
.ofap-fiche-accordeon__volet { border: 1px solid var(--border); border-radius: 12px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.ofap-fiche .ofap-fiche-accordeon__volet > summary {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 66px;
	padding: 14px 20px 14px 22px;
	border-radius: 12px;
	outline-offset: 2px;
}
.ofap-fiche .ofap-fiche-accordeon__titre {
	flex: 1;
	min-width: 0;
	margin: 0;
	font: 500 1rem/1.5 var(--heading);
	letter-spacing: -.015em;
	color: var(--fiche-noir);
}
/* Repère d'ouverture : petit carré bleu nuit à chevron (design), retourné à l'ouverture. */
.ofap-fiche .ofap-fiche-accordeon__volet > summary::after {
	content: "";
	flex: none;
	width: 26px;
	height: 26px;
	border-radius: 8px;
	background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6.5 9.5 5.5 5.5 5.5-5.5'/%3E%3C/svg%3E") center / 14px no-repeat;
	transition: transform .2s;
}
.ofap-fiche .ofap-fiche-accordeon__volet[open] > summary::after { transform: rotate(180deg); }
.ofap-fiche-accordeon__volet:hover { border-color: #C9C7D6; }
.ofap-fiche-accordeon__corps { padding: 0 22px 22px; font-size: .9375rem; line-height: 1.7; color: var(--text); }
.ofap-fiche-accordeon__corps > * + * { margin-top: .8em; }
.ofap-fiche-accordeon__corps p { font-size: inherit; line-height: inherit; }
.ofap-fiche-accordeon__corps strong { font-weight: 700; color: var(--ink); }
.ofap-fiche-accordeon__corps ul { display: grid; gap: 8px; }
.ofap-fiche-accordeon__corps li { position: relative; padding-left: 20px; }
.ofap-fiche-accordeon__corps li::before { content: ""; position: absolute; left: 3px; top: .64em; width: 6px; height: 6px; border-radius: 50%; background: var(--fiche-rouge); }
/* Sous-titre d'un bloc (« parties » d'un volet) : un <h4>, plus détaché de ce qui précède. */
.ofap-fiche .ofap-fiche-accordeon__sous-titre { margin: 1.5em 0 0; font: 700 .875rem/1.5 var(--heading); letter-spacing: -.005em; color: var(--fiche-noir); }
.ofap-fiche .ofap-fiche-accordeon__corps > .ofap-fiche-accordeon__sous-titre:first-child { margin-top: 0; }
.ofap-fiche-accordeon__corps > .ofap-fiche-accordeon__sous-titre + * { margin-top: .45em; }

.ofap-fiche-accordeon__numero { flex: none; width: 28px; font: 700 .9375rem/1 var(--heading); letter-spacing: 0; color: var(--fiche-rouge-action); }
.ofap-fiche-accordeon--numerote .ofap-fiche-accordeon__volet[open] { border-color: var(--fiche-filet-rose); box-shadow: 0 8px 24px #302e500a; }
.ofap-fiche-accordeon--numerote .ofap-fiche-accordeon__corps { padding-left: 66px; padding-right: 62px; } /* à l'aplomb du titre */

.ofap-fiche-accordeon--lignes .ofap-fiche-accordeon__volet { border: 1.5px solid transparent; border-radius: 9px; }
.ofap-fiche .ofap-fiche-accordeon--lignes .ofap-fiche-accordeon__volet > summary { min-height: 62px; padding: 15px 20px 15px 23px; border-radius: 9px; }
.ofap-fiche-accordeon--lignes .ofap-fiche-accordeon__volet:hover { box-shadow: 0 5px 18px #302e5010; } /* accueil, .orientation-row:hover */
/* Ligne ouverte : bord rouge, titre rouge sombre (design ; FAQ du site). */
.ofap-fiche-accordeon--lignes .ofap-fiche-accordeon__volet[open] { border-color: var(--fiche-rouge-action); }
.ofap-fiche .ofap-fiche-accordeon--lignes .ofap-fiche-accordeon__volet[open] .ofap-fiche-accordeon__titre { color: var(--red-dark); }
/* Chevron nu, comme dans le design. */
.ofap-fiche .ofap-fiche-accordeon--lignes .ofap-fiche-accordeon__volet > summary::after {
	width: 9px;
	height: 9px;
	margin: 0 6px 5px 0;
	border-radius: 0;
	border-right: 2px solid var(--fiche-noir);
	border-bottom: 2px solid var(--fiche-noir);
	background: none;
	transform: rotate(45deg);
}
.ofap-fiche .ofap-fiche-accordeon--lignes .ofap-fiche-accordeon__volet[open] > summary::after { margin-bottom: -5px; border-color: var(--fiche-rouge-action); transform: rotate(225deg); }
.ofap-fiche-accordeon--lignes .ofap-fiche-accordeon__corps { padding: 0 23px 22px; }

/* Carte blanche bordée (cartes de l'accueil : rayon 15). */
.ofap-fiche-carte { border: 1px solid #E9E9EE; border-radius: 15px; background: #fff; }

/* Vidéo au clic : une image (ou un fond) et un lien ; formation.js pose le lecteur. */
.ofap-fiche-video { position: relative; }
.ofap-fiche .ofap-fiche-video__lecture { position: absolute; inset: 0; display: grid; place-items: center; }
.ofap-fiche-video__bouton {
	display: grid;
	place-items: center;
	width: 70px;
	height: 70px;
	border-radius: 50%;
	background: var(--fiche-rouge);
	color: #fff;
	box-shadow: 0 0 0 9px #ffffff40;
	transition: transform .2s;
}
.ofap-fiche-video__lecture:hover .ofap-fiche-video__bouton { transform: scale(1.06); }
.ofap-fiche .ofap-fiche-video > iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* 4. Sections ---------------------------------------------------------------- */
/* 4.1 Bandeau : fond crème, texte à gauche, photo à droite. */
.ofap-fiche-bandeau { overflow: hidden; padding: 88px 0 84px; background: var(--fiche-creme); }
.ofap-fiche-bandeau__int {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 590px);
	column-gap: clamp(48px, 6.5vw, 96px);
	align-items: stretch;
}
/* Le texte commence plus bas que la photo et finit plus bas qu'elle : les trois
 * repères s'alignent sur le bas de la colonne (design). */
.ofap-fiche-bandeau__texte { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding-top: 44px; }
.ofap-fiche-bandeau .ofap-fiche-titre { margin-top: 24px; }
.ofap-fiche-bandeau .ofap-fiche-chapeau { max-width: 530px; margin-top: 34px; }
.ofap-fiche-bandeau__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
	margin-top: 26px;
	font-size: .875rem;
	line-height: 1.6;
	color: var(--muted);
}
.ofap-fiche-bandeau__meta strong { margin-right: 6px; font: 500 .875rem/1.6 var(--heading); color: var(--red-dark); }
.ofap-fiche-bandeau__meta svg { color: var(--ink); }
/* Les repères restent sur UNE rangée (client, 16/11/2026 : « pourquoi il y a un retour à
 * la ligne pour le format ? ») : une grille d'une ligne, chaque colonne à la largeur de sa
 * valeur ; quand la place manque, une valeur longue (« 2 journées ou 4 demi-journées »)
 * passe à la ligne DANS sa boîte, au lieu de repousser la boîte sous les autres. */
.ofap-fiche-bandeau__reperes {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(min-content, max-content);
	justify-content: start;
	gap: 14px;
	max-width: 100%;
	margin: auto 0 0;
	padding-top: 44px;
}
.ofap-fiche-bandeau__reperes > div { min-width: 136px; padding: 13px 20px 14px; border-radius: 13px; background: #fff; }
.ofap-fiche-bandeau__reperes dt { font-size: .8125rem; line-height: 1.5; color: var(--muted); white-space: nowrap; }
.ofap-fiche-bandeau__reperes dd { margin: 3px 0 0; font: 700 1rem/1.5 var(--heading); letter-spacing: -.015em; color: var(--fiche-noir); text-wrap: balance; overflow-wrap: break-word; }
.ofap-fiche-bandeau__repere--accent dd { color: var(--fiche-rouge-action); }
/* Au-dessus de 1190 px, la photo (590 px) fixe la hauteur du bandeau et le texte
 * a de la place : il descend pour retrouver les positions du design (pastille
 * 12 px, chapeau 30 px et ligne méta 40 px plus bas), sans vide au-dessus des
 * repères. En dessous, le texte remplit déjà la colonne. */
@media (min-width: 1191px) {
	.ofap-fiche-bandeau__texte { padding-top: 56px; }
	.ofap-fiche-bandeau .ofap-fiche-chapeau { margin-top: 52px; }
	.ofap-fiche-bandeau__meta { margin-top: 36px; }
}

.ofap-fiche-bandeau__visuel { position: relative; isolation: isolate; align-self: start; margin-bottom: 52px; }
/* Demi-disque rouge qui dépasse à gauche du cadre. */
.ofap-fiche-bandeau__visuel::before {
	content: "";
	position: absolute;
	z-index: -1;
	left: -96px;
	bottom: 34px;
	width: 96px;
	height: 192px;
	border-radius: 192px 0 0 192px;
	background: var(--fiche-rouge);
}
.ofap-fiche-bandeau__cadre { position: relative; aspect-ratio: 590 / 526; border-radius: 16px; overflow: hidden; background: #E7E1DD; }
.ofap-fiche .ofap-fiche-bandeau__cadre > img { width: 100%; height: 100%; object-fit: cover; }
/* Étiquette blanche en bulle et bouton, posés sur le bas de la photo. */
.ofap-fiche-bandeau__etiquette {
	position: absolute;
	left: 18px;
	bottom: 18px;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 8px 18px;
	border-radius: 11px 11px 11px 2px;
	background: #fff;
	font: 700 .875rem/1.4 var(--heading);
	color: var(--fiche-noir);
	box-shadow: 0 6px 18px #302e5014;
}
.ofap-fiche .ofap-fiche-bandeau__bouton { position: absolute; right: 18px; bottom: 18px; box-shadow: 0 6px 18px #302e5026; }

/* 4.2 Corps : la colonne principale et la carte du prix. C'est un conteneur
 * Elementor ; compat-wp.css remet marges et largeurs de tous les conteneurs à
 * zéro avec un poids de (1,3,0) : ces sélecteurs sont volontairement plus forts.
 *
 * Pour que la carte reste collante : aucun « overflow » autre que visible ou
 * clip sur ce conteneur ni sur ses parents, pas de hauteur fixe, et la carte
 * reste un enfant direct du corps (pas de la colonne principale). */
body.ofap-fiche #contenu > .elementor .e-con.ofap-fiche-corps {
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--fiche-rail);
	column-gap: var(--fiche-gouttiere);
	align-items: start;
	width: var(--fiche-conteneur);
	margin-inline: auto;
	padding-bottom: var(--fiche-rythme);
}
/* Fiche sans carte du prix : une seule colonne. */
body.ofap-fiche #contenu > .elementor .e-con.ofap-fiche-corps:not(:has(> .ofap-fiche-rail)) { grid-template-columns: minmax(0, 1fr); }
/* Fiche sans colonne principale (ni présentation ni programme) : la carte seule, à
 * sa largeur. Seulement au-dessus de 1020 px : plus forte que la règle « une
 * colonne » des écrans étroits, elle l'emporterait sur elle. */
@media (min-width: 1021px) {
	body.ofap-fiche #contenu > .elementor .e-con.ofap-fiche-corps:not(:has(> .ofap-fiche-principal)) { grid-template-columns: minmax(0, var(--fiche-rail)); }
}
body.ofap-fiche #contenu > .elementor .e-con.ofap-fiche-principal { display: block; min-width: 0; }

.ofap-fiche-presentation { padding-top: 72px; }
.ofap-fiche-presentation .ofap-fiche-prose { margin-top: 26px; }
.ofap-fiche-presentation .ofap-fiche-h3 { margin-top: 38px; }
.ofap-fiche-presentation .ofap-fiche-coches { margin-top: 18px; }
/* Longueur de ligne du design (≈ 590 px) : à côté de la carte, le texte ne remplit
 * pas toute la colonne. */
@media (min-width: 1021px) {
	.ofap-fiche-presentation .ofap-fiche-prose,
	.ofap-fiche-presentation .ofap-fiche-coches { max-width: 640px; }
}

/* 4.3 Programme : titre et lien de téléchargement, puis les modules. */
.ofap-fiche-programme { padding-top: 76px; }
.ofap-fiche-programme__tete { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 32px; margin-top: 18px; }
.ofap-fiche-programme__tete .ofap-fiche-texte { flex: 1 1 340px; max-width: 33em; }
.ofap-fiche-programme__actions { display: flex; flex-direction: column; align-items: flex-end; margin-bottom: -10px; }
.ofap-fiche .ofap-fiche-programme__actions .text-link { min-height: 44px; }
.ofap-fiche-programme .ofap-fiche-accordeon { margin-top: 26px; }
/* Points d'un module (liste, avec ou sans phrase de description) : les tirets
 * rouges des formules, à l'aplomb du titre du module. */
.ofap-fiche-accordeon--numerote .ofap-fiche-accordeon__corps ul { gap: 7px; }
.ofap-fiche-accordeon--numerote .ofap-fiche-accordeon__corps li { padding-left: 24px; }
.ofap-fiche-accordeon--numerote .ofap-fiche-accordeon__corps li::before { left: 0; top: .82em; width: 12px; height: 2px; border-radius: 2px; }

/* 4.3 bis Formateur (ou formatrice) : le bloc auteur des articles du blog
 * (blog.css, .ofap-auteur), à la mesure de la colonne principale : fond menthe,
 * coins 60 / 26 / 26 / 0, pastille ronde en dégradé à l'initiale (ou photo),
 * intitulé en capitales, nom, mention en pilule, présentation. */
.ofap-fiche-formateur { padding-top: 64px; }
.ofap-fiche-formateur__carte {
	display: flex;
	align-items: flex-start;
	gap: clamp(20px, 2.6vw, 34px);
	padding: clamp(28px, 3.4vw, 44px);
	border-radius: 60px 26px 26px 0;
	background: var(--fiche-menthe);
}
.ofap-fiche-formateur__photo {
	display: grid;
	flex: none;
	place-items: center;
	width: clamp(76px, 7.6vw, 108px);
	aspect-ratio: 1;
	border-radius: 50%;
	background: linear-gradient(140deg, #FF615C, #FFD759); /* blog.css, .ofap-auteur__photo */
	font: 700 clamp(1.75rem, 2.6vw, 2.375rem)/1 var(--heading);
	color: #fff;
	overflow: hidden;
}
.ofap-fiche .ofap-fiche-formateur__photo > img { width: 100%; height: 100%; border-radius: 0; object-fit: cover; }
.ofap-fiche-formateur__texte { flex: 1; min-width: 0; }
/* L'intitulé est le titre de la section (<h2>) : composé comme le libellé du bloc auteur. */
.ofap-fiche .ofap-fiche-formateur__libelle { margin: 0; font: 500 .75rem/1.4 var(--heading); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.ofap-fiche-formateur__libelle + .ofap-fiche-formateur__mention { margin-top: 10px; } /* sans nom */
.ofap-fiche-formateur__nom { margin-top: 8px; font: 500 clamp(1.5rem, 2.3vw, 2rem)/1.15 var(--heading); letter-spacing: -.02em; color: var(--ink); }
.ofap-fiche-formateur__mention { margin-top: 12px; }
.ofap-fiche-formateur__prose { margin-top: 16px; font-size: 1rem; line-height: 1.7; color: var(--text); }
.ofap-fiche-formateur__prose > * + * { margin-top: 1em; }

/* 4.4 Certification : bandeau rouge et photo à bord perdu, plus étroit que le
 * conteneur (design). Disposition de .enterprise-section de l'accueil. */
.ofap-fiche-certification { padding-bottom: var(--fiche-rythme-court); }
.ofap-fiche-certification__panneau {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	max-width: 984px;
	margin-inline: auto;
	border-radius: 22px;
	background: var(--fiche-rouge-action); /* texte courant blanc : 5,11:1 */
	color: #fff;
}
/* Quart de disque clair dans l'angle haut gauche. Le sur-titre (12 px) est posé
 * dessus : le voile reste léger, pour que le blanc y garde 4,5:1. */
.ofap-fiche-certification__panneau::before {
	content: "";
	position: absolute;
	z-index: -1;
	left: 0;
	top: 0;
	width: 136px;
	height: 136px;
	border-radius: 0 0 100% 0;
	background: #ffffff1a;
	pointer-events: none;
}
.ofap-fiche-certification__texte { padding: 40px 40px 42px 44px; }
.ofap-fiche .ofap-fiche-certification .ofap-fiche-h2 { margin-top: 14px; color: #fff; }
.ofap-fiche-certification .ofap-fiche-texte { margin-top: 14px; font-size: .9375rem; color: #fff; }
.ofap-fiche .ofap-fiche-certification .button { margin-top: 24px; }
.ofap-fiche-certification :is(a, button):focus-visible { outline-color: #fff; }
.ofap-fiche-certification__image { position: relative; min-height: 300px; background: #E7E1DD; }
/* Sans photo : le texte seul, sur une colonne plus étroite. */
.ofap-fiche-certification__panneau:not(:has(.ofap-fiche-certification__image)) { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.ofap-fiche .ofap-fiche-certification__image > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* 4.5 Modalités : panneau crème ; en tête le titre et l'introduction, puis les
 * volets sur deux colonnes, un groupe par colonne (« Avant la formation »…).
 * Une seule colonne de volets laissait le panneau long et vide à gauche. */
.ofap-fiche-modalites { padding-bottom: var(--fiche-rythme-court); }
.ofap-fiche-modalites__panneau { padding: 54px 46px 40px; border-radius: 24px; }
.ofap-fiche-modalites__tete { max-width: 60rem; padding-top: 4px; }
.ofap-fiche-modalites__intro { margin-top: 16px; text-wrap: pretty; }
.ofap-fiche-modalites__colonnes {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(0, 1fr);
	gap: 30px 32px;
	align-items: start;
	margin-top: 38px;
}
.ofap-fiche .ofap-fiche-modalites__groupe-titre { margin: 0 0 14px 2px; font: 500 .75rem/1.4 var(--heading); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.ofap-fiche-modalites .ofap-fiche-accordeon { gap: 12px; }
.ofap-fiche-modalites__maj { margin-top: 18px; font-size: .8125rem; line-height: 1.6; text-align: right; color: var(--muted); }
/* Le quart de disque rose passe dans l'angle haut droit, à côté du titre : en
 * bas à gauche, la première colonne de volets le couvrirait. */
.ofap-fiche-modalites__panneau.ofap-fiche-panneau--quart::after { left: auto; right: 0; top: 0; bottom: auto; border-radius: 0 0 0 100%; }

/* 4.6 Simulateur de financement : panneau bleu nuit, carte blanche de questions. */
.ofap-fiche-simulateur { padding-bottom: var(--fiche-rythme-court); }
.ofap-fiche-simulateur__panneau {
	display: grid;
	grid-template-columns: minmax(0, .72fr) minmax(0, 1fr);
	gap: 32px 56px;
	align-items: start;
	padding: 54px 84px 52px 46px; /* la carte s'arrête avant le bord droit (design) */
}
.ofap-fiche-simulateur__tete { padding-top: 4px; }
.ofap-fiche-simulateur__tete .ofap-fiche-texte { max-width: 26em; margin-top: 22px; }
.ofap-fiche-simulateur__reperes { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 30px; padding-top: 22px; border-top: 1px solid #ffffff26; }
.ofap-fiche-simulateur__reperes li { display: inline-flex; align-items: center; gap: 7px; font: 500 .8125rem/1.5 var(--heading); color: var(--fiche-texte-nuit); white-space: nowrap; }
.ofap-fiche-simulateur__reperes svg { color: #61C2B2; }

.ofap-fiche-simulateur__carte { display: flex; flex-direction: column; min-height: 432px; padding: 34px 38px 28px; border-radius: 13px; background: #fff; color: var(--fiche-noir); }
.ofap-fiche-simulateur__carte :is(a, button):focus-visible { outline-color: var(--teal); }
.ofap-fiche-simulateur__questions { display: flex; flex: 1; flex-direction: column; }
.ofap-fiche-simulateur__rang { font-size: .8125rem; line-height: 1.6; color: var(--muted); }
.ofap-fiche .ofap-fiche-simulateur__question { margin-top: 4px; font: 700 1.25rem/1.35 var(--heading); letter-spacing: -.02em; color: var(--fiche-noir); outline: 0; }
.ofap-fiche-simulateur__aide { margin-top: 6px; font-size: .875rem; line-height: 1.6; color: var(--muted); }
.ofap-fiche-simulateur__reponses { display: grid; gap: 12px; margin-top: 22px; }
/* Réponses : lignes crème du design ; réponse choisie : pilule du catalogue (fond #fff0df, bord #ec666b). */
.ofap-fiche .ofap-fiche-simulateur__reponse {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 4px 16px;
	width: 100%;
	min-height: 52px;
	padding: 11px 18px;
	border: 1px solid transparent;
	border-radius: 9px;
	background: var(--fiche-creme);
	font: 500 .9375rem/1.45 var(--heading);
	text-align: left;
	color: var(--fiche-noir);
	transition: background-color .15s, border-color .15s;
}
.ofap-fiche .ofap-fiche-simulateur__reponse:hover { border-color: var(--fiche-filet-rose); background: #FBEFE5; }
.ofap-fiche .ofap-fiche-simulateur__reponse[aria-pressed="true"] { border-color: #EC666B; background: #FFF0DF; }
.ofap-fiche-simulateur__reponse small { font: 400 .8125rem/1.45 var(--body); color: var(--muted); }
.ofap-fiche .ofap-fiche-simulateur__retour { display: inline-flex; align-items: center; align-self: flex-start; gap: 8px; min-height: 44px; margin-top: 12px; font: 500 .875rem/1.5 var(--heading); color: var(--ink); }
.ofap-fiche .ofap-fiche-simulateur__retour:hover { color: var(--red-dark); }
.ofap-fiche-simulateur__note { margin-top: auto; padding-top: 16px; font-size: .75rem; line-height: 1.6; color: var(--muted); }

/* Résultat (et liste complète, sans JavaScript). */
.ofap-fiche-simulateur__recap { margin-top: 6px; font-size: .875rem; line-height: 1.6; color: var(--muted); }
.ofap-fiche-simulateur__recap span { color: var(--ink); }
.ofap-fiche-simulateur__dispositifs { display: grid; gap: 10px; margin-top: 16px; }
.ofap-fiche-simulateur__dispositifs li { padding: 12px 18px 13px; border-radius: 9px; background: var(--fiche-creme); }
.ofap-fiche-simulateur__dispositifs strong { font: 700 .9375rem/1.5 var(--heading); color: var(--fiche-noir); }
.ofap-fiche-simulateur__dispositifs span { margin-left: 6px; font-size: .8125rem; color: var(--muted); }
.ofap-fiche-simulateur__dispositifs p { margin-top: 2px; font-size: .875rem; line-height: 1.6; color: var(--text); }
.ofap-fiche-simulateur__selon { margin-top: 14px; font: 500 .875rem/1.5 var(--heading); color: var(--ink); }
.ofap-fiche-simulateur__selon + .ofap-fiche-simulateur__dispositifs { margin-top: 8px; }
.ofap-fiche-simulateur__rappels { display: grid; gap: 4px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); font-size: .875rem; line-height: 1.6; color: var(--text); }
/* Les montants ne se coupent pas (espaces insécables posées par le générateur) ; la ligne, si. */
.ofap-fiche-simulateur__rappels strong { font: 700 1rem/1.5 var(--heading); color: var(--fiche-noir); }
.ofap-fiche-simulateur__mention { margin-top: 10px; font-size: .8125rem; line-height: 1.6; color: var(--muted); }
.ofap-fiche-simulateur__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; margin-top: 18px; }

/* 4.7 Sessions : tableau à en-tête crème ; l'état des inscriptions vient des
 * dates (formation.js). Sous 760 px, chaque ligne devient une carte. */
/* Après un panneau plein : sa marge courte + ce complément = un écart de section. */
.ofap-fiche-sessions { padding: calc(var(--fiche-rythme) - var(--fiche-rythme-court)) 0 var(--fiche-rythme); }
.ofap-fiche .ofap-fiche-sessions .ofap-fiche-h2 { margin-top: 18px; }
.ofap-fiche-sessions .ofap-fiche-texte { max-width: 34em; margin-top: 12px; }
.ofap-fiche-sessions__cadre { margin-top: 34px; }
.ofap-fiche-sessions__table { width: 100%; border-collapse: separate; border-spacing: 0; text-align: left; }
.ofap-fiche-sessions__table thead th {
	padding: 17px 22px;
	background: var(--cream);
	font: 500 .8125rem/1.5 var(--heading);
	letter-spacing: .02em;
	color: var(--ink);
}
.ofap-fiche-sessions__table thead th:first-child { border-radius: 10px 0 0 10px; }
.ofap-fiche-sessions__table thead th:last-child { border-radius: 0 10px 10px 0; }
.ofap-fiche-sessions__table tbody :is(th, td) {
	padding: 27px 22px;
	border-bottom: 1px solid var(--border);
	vertical-align: middle;
	font: 400 .9375rem/1.6 var(--body);
	color: var(--text);
	transition: background-color .15s;
}
.ofap-fiche-sessions__table tbody tr:hover :is(th, td) { background: #FFFBF8; }
.ofap-fiche-sessions__nom { display: block; font: 500 1rem/1.5 var(--heading); letter-spacing: -.01em; color: var(--fiche-noir); white-space: nowrap; }
.ofap-fiche-sessions__detail { display: block; margin-top: 2px; font-size: .8125rem; line-height: 1.5; color: var(--muted); }
.ofap-fiche-sessions__etat { display: inline-flex; align-items: center; gap: 9px; font: 500 .875rem/1.5 var(--heading); color: var(--muted); }
.ofap-fiche-sessions__etat::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #B9B7C8; }
[data-fiche-etat="ouvertes"] .ofap-fiche-sessions__etat { color: var(--teal); }
[data-fiche-etat="ouvertes"] .ofap-fiche-sessions__etat::before { background: #22AF9E; }
.ofap-fiche-sessions__table .ofap-fiche-sessions__action { width: 1%; padding-left: 8px; text-align: right; white-space: nowrap; }
/* Jauge des places (affichée seulement si la fiche fournit un décompte réel). */
.ofap-fiche-sessions__remplissage { display: block; }
.ofap-fiche-sessions__jauge { display: block; width: 120px; height: 4px; border-radius: 4px; background: #E9E8ED; overflow: hidden; }
.ofap-fiche-sessions__jauge > span { display: block; height: 100%; border-radius: 4px; background: var(--fiche-rouge-action); }
.ofap-fiche-sessions__places { display: block; margin-top: 7px; font: 500 .8125rem/1.5 var(--heading); color: var(--ink); }

/* 4.8 Sections suivantes : rythme et tête communs. Chaque section porte sa marge
 * basse (--fiche-rythme) et commence sans marge haute ; deux sections qui vont
 * ensemble se rapprochent (--serree). */
.ofap-fiche-section { padding-bottom: var(--fiche-rythme); }
.ofap-fiche-section--serree { padding-bottom: var(--fiche-rythme-court); }
.ofap-fiche-entete { margin-bottom: 36px; }
.ofap-fiche-entete .ofap-fiche-texte { max-width: 46em; margin-top: 14px; }

/* 4.9 Avis : titre et bandeau des chiffres, puis deux témoignages et la vidéo.
 * Cartes : celles du catalogue (catalogue-reference.css l. 140-149), sans étoiles
 * — la brochure n'en donne pas. */
.ofap-fiche-avis__tete { display: grid; grid-template-columns: minmax(0, .44fr) minmax(0, 1fr); gap: 24px 56px; align-items: center; }
.ofap-fiche-avis__chiffres { display: flex; align-items: center; gap: 28px; padding: 22px 32px 21px 30px; border-radius: 14px; background: var(--ink); color: #fff; }
.ofap-fiche-avis__note { flex: none; font: 700 2.375rem/1.1 var(--heading); letter-spacing: -.045em; white-space: nowrap; }
.ofap-fiche-avis__detail { min-width: 0; padding-left: 28px; border-left: 1px solid #ffffff33; }
.ofap-fiche-avis__libelle { font: 500 1rem/1.5 var(--heading); letter-spacing: -.01em; }
/* Chiffres secondaires à la suite, séparés par un point. Chaque élément porte le
 * sien à sa gauche ; la liste déborde d'autant et rogne ce débord : en début de
 * ligne (y compris après un retour à la ligne) le point disparaît. */
.ofap-fiche-avis__autres { display: flex; flex-wrap: wrap; margin: 2px 0 0 -22px; clip-path: inset(0 0 0 22px); font-size: .9375rem; line-height: 1.6; color: var(--fiche-texte-nuit); }
.ofap-fiche-avis__autres li { position: relative; padding-left: 22px; }
.ofap-fiche-avis__autres li::before { content: ""; position: absolute; left: 9px; top: .72em; width: 4px; height: 4px; border-radius: 50%; background: #61C2B2; }
.ofap-fiche-avis__source { margin-top: 6px; font-size: .75rem; line-height: 1.5; color: #C3C0D6; }

.ofap-fiche-avis__cartes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 36px; }
/* « .ofap-fiche » devant : hors d'Elementor, <figure> garde les marges du navigateur. */
.ofap-fiche .ofap-fiche-avis__temoignage {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 264px;
	margin: 0;
	padding: 26px 28px 25px;
	border-radius: 16px 16px 16px 3px;
	background: var(--fiche-creme);
	color: var(--ink);
}
/* Guillemets verts du catalogue (maquette/assets/icons/catalogue-quote.svg) : décor. */
.ofap-fiche-avis__temoignage::before {
	content: "";
	flex: none;
	width: 44px;
	height: 35px;
	margin-bottom: 20px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 38'%3E%3Cg fill='%2311b39f'%3E%3Cpath d='M12 2C5.9 2 1 6.9 1 13c0 12 6.3 20.3 18.2 22.5-6.6-4.4-9.5-9.5-9-13.6C17.5 23.4 23 19.2 23 13c0-6.1-4.9-11-11-11Z'/%3E%3Cpath d='M37 2C30.9 2 26 6.9 26 13c0 12 6.3 20.3 18.2 22.5-6.6-4.4-9.5-9.5-9-13.6C42.5 23.4 48 19.2 48 13c0-6.1-4.9-11-11-11Z'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}
.ofap-fiche-avis__temoignage blockquote { margin: 0; }
.ofap-fiche-avis__temoignage blockquote p { font-size: 1.0625rem; line-height: 1.65; color: var(--ink); }
.ofap-fiche-avis__temoignage figcaption { margin-top: auto; padding-top: 22px; }
.ofap-fiche-avis__nom { display: block; font: 700 .875rem/1.5 var(--heading); color: var(--fiche-noir); }
.ofap-fiche-avis__fonction { display: block; font-size: .8125rem; line-height: 1.5; color: var(--muted); }
/* Carte vidéo : bleu nuit, bouton rouge au centre, légende blanche en bulle. */
.ofap-fiche-avis__video { height: 100%; min-height: 264px; border-radius: 19px; overflow: hidden; background: var(--ink); color: #fff; }
/* Disque nu, comme dans le design et sur la carte vidéo du catalogue : l'anneau clair ne sert que sur une photo. */
.ofap-fiche-avis__video .ofap-fiche-video__bouton { box-shadow: none; }
.ofap-fiche-video__legende {
	position: absolute;
	left: 16px;
	bottom: 16px;
	max-width: calc(100% - 32px);
	padding: 8px 13px;
	border-radius: 11px 11px 11px 2px;
	background: #fff;
	font: 700 .875rem/1.5 var(--heading);
	color: var(--fiche-noir);
}
/* Le lien couvre la carte, qui rogne ce qui dépasse : l'anneau de focus passe à l'intérieur. */
.ofap-fiche .ofap-fiche-avis__video .ofap-fiche-video__lecture:focus-visible { outline-color: #6BDDCB; outline-offset: -7px; border-radius: 19px; }

/* 4.10 Le métier en chiffres : trois cartes pleines (rouge, bleu nuit, pêche),
 * la ligne des sources, puis les débouchés. Chiffres : ceux de .catalogue-facts,
 * en plus grand. */
.ofap-fiche-metier__cartes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
/* Deux chiffres seulement (une fiche qui n'en a pas trouvé trois de fiables) : deux colonnes. */
@media (min-width: 1021px) {
	.ofap-fiche-metier__cartes:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.ofap-fiche-metier__carte {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	min-height: 204px;
	padding: 30px 30px 28px;
	border-radius: 14px;
}
.ofap-fiche-metier__chiffre { font: 700 2.375rem/1.15 var(--heading); letter-spacing: -.045em; text-wrap: balance; }
.ofap-fiche-metier__chiffre--long { font-size: 1.625rem; line-height: 1.25; letter-spacing: -.035em; }
.ofap-fiche-metier__libelle { margin-top: 14px; font-size: .9375rem; line-height: 1.6; }
/* Rouge d'action sous un texte courant blanc (5,11:1). Le quart de disque clair
 * reste au-dessus du libellé : aucun petit texte ne passe dessus. */
.ofap-fiche-metier__carte--rouge { background: var(--fiche-rouge-action); color: #fff; }
.ofap-fiche-metier__carte--rouge::before { content: ""; position: absolute; z-index: -1; right: 0; top: 0; width: 84px; height: 84px; border-radius: 0 0 0 100%; background: #ffffff40; pointer-events: none; }
.ofap-fiche-metier__carte--nuit { background: var(--ink); color: #fff; }
.ofap-fiche-metier__carte--nuit .ofap-fiche-metier__libelle { color: var(--fiche-texte-nuit); }
.ofap-fiche-metier__carte--peche { background: var(--cream); color: var(--ink); }
.ofap-fiche-metier__carte--peche .ofap-fiche-metier__chiffre { color: var(--fiche-noir); }
.ofap-fiche-metier__icone { display: grid; place-items: center; flex: none; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 50%; background: #fff; color: var(--ink); }
.ofap-fiche-metier__sources { margin-top: 14px; font-size: .8125rem; line-height: 1.6; color: var(--muted); }
/* Débouchés : carte blanche bordée, pastilles crème à texte rouge sombre (5,93:1). */
.ofap-fiche-metier__debouches { margin-top: 28px; padding: 26px 30px 30px; }
.ofap-fiche .ofap-fiche-metier__debouches .ofap-fiche-h3 { font-size: 1rem; line-height: 1.5; }
.ofap-fiche-metier__debouches ul { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.ofap-fiche-metier__debouches li { padding: 11px 18px; border-radius: 9px; background: var(--fiche-creme); font: 500 .9375rem/1.5 var(--heading); color: var(--red-dark); }

/* 4.11 À distance : quatre cartes, pictogramme sur pastille ronde (teintes de
 * .course-modality-icon : pêche, menthe, lavande). */
.ofap-fiche-distance__cartes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.ofap-fiche-distance__carte { padding: 28px 26px 30px; }
.ofap-fiche-distance__icone { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #FDF0E2; color: var(--fiche-rouge-action); }
.ofap-fiche-distance__carte:nth-child(4n + 2) .ofap-fiche-distance__icone { background: var(--fiche-menthe); color: var(--teal); }
.ofap-fiche-distance__carte:nth-child(4n + 3) .ofap-fiche-distance__icone { background: #F4F3F8; color: var(--ink); }
.ofap-fiche .ofap-fiche-distance__carte .ofap-fiche-h3 { margin-top: 22px; font-size: 1.0625rem; line-height: 1.5; }
.ofap-fiche-distance__carte p { margin-top: 10px; font-size: .9375rem; line-height: 1.7; color: var(--text); }

/* 4.12 Plateforme : bandeau pêche, texte à gauche, photo « en feuille » à droite
 * (deux coins opposés ronds, comme la vitrine du blog). Disque rose débordant :
 * celui du panneau « reconversion » de l'accueil. */
.ofap-fiche-plateforme__panneau { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); gap: 32px 64px; align-items: center; padding: 52px 56px; }
.ofap-fiche-plateforme__panneau::after { content: ""; right: -75px; bottom: -110px; width: 320px; height: 275px; border-radius: 50%; background: var(--fiche-rose); }
.ofap-fiche .ofap-fiche-plateforme .ofap-fiche-h2 { font-size: clamp(1.75rem, 2.5vw, 2.2rem); line-height: 1.3; }
.ofap-fiche-plateforme .ofap-fiche-texte { max-width: 31em; margin-top: 18px; }
.ofap-fiche .ofap-fiche-plateforme .button { margin-top: 28px; }
.ofap-fiche-plateforme__image { aspect-ratio: 16 / 10; border-radius: 88px 18px 88px 18px; overflow: hidden; background: #E7E1DD; box-shadow: 0 15px 44px #302e5024; }
.ofap-fiche .ofap-fiche-plateforme__image > img { width: 100%; height: 100%; object-fit: cover; }

/* 4.13 Formules : une carte par formule, côte à côte (cartes de l'accueil :
 * .coaching-card, .expert-card) ; la formule « phare » est mise en avant, sa
 * pastille posée sur le bord haut. Deux formules n'occupent pas toute la largeur
 * (design) ; trois ou plus, si ; une seule garde la largeur d'une des deux
 * colonnes. Les cartes ont la même hauteur et leurs rangées s'alignent d'une
 * carte à l'autre (nom, prix, durée, bouton, liste : sous-grille), quelle que
 * soit la longueur des textes. De 761 à 1020 px, trois formules ou plus passent
 * sur deux colonnes (partie 7). */
.ofap-fiche-formules__cartes { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 34px; max-width: 1090px; }
.ofap-fiche-formules__cartes:has(> :nth-child(3)) { max-width: none; }
/* Une seule formule : la largeur d'une des deux colonnes (et non 1 090 px). */
@media (min-width: 761px) {
	.ofap-fiche-formules__cartes:has(> :only-child) { max-width: 528px; }
}
.ofap-fiche-formule { position: relative; display: flex; flex-direction: column; padding: 32px 30px 30px; border: 1px solid #E9E9EE; border-radius: 15px; background: #fff; }
@supports (grid-template-rows: subgrid) {
	.ofap-fiche-formules__cartes { grid-template-rows: repeat(4, auto) 1fr; }
	/* Cinq rangées : tête, prix, ligne, bouton, liste (la pastille du bord est hors du flux). */
	.ofap-fiche-formule { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
	/* Chaque élément garde sa rangée, même si une formule n'a pas de ligne ou de
	 * bouton (champs facultatifs) : sinon sa liste remonterait dans la rangée de
	 * la ligne et l'agrandirait pour toutes les cartes. */
	.ofap-fiche-formule__tete { grid-row: 1; }
	.ofap-fiche-formule__prix { grid-row: 2; }
	.ofap-fiche-formule__ligne { grid-row: 3; }
	.ofap-fiche-formule > .button { grid-row: 4; }
	.ofap-fiche-formule > ul { grid-row: 5; }
}
.ofap-fiche-formule__tete { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; min-height: 38px; }
.ofap-fiche .ofap-fiche-formule__nom { font: 500 1.25rem/1.4 var(--heading); letter-spacing: -.02em; color: var(--fiche-noir); }
.ofap-fiche-formule__tete .ofap-fiche-etiquette { flex: none; }
.ofap-fiche-formule__prix { margin-top: 18px; font: 700 2.5rem/1.25 var(--heading); letter-spacing: -.055em; color: var(--fiche-noir); white-space: nowrap; }
.ofap-fiche-formule__prix small { font: 400 .9375rem/1.2 var(--body); letter-spacing: 0; color: var(--muted); }
.ofap-fiche-formule__ligne { margin-top: 6px; font-size: .9375rem; line-height: 1.6; color: var(--muted); }
.ofap-fiche .ofap-fiche-formule .button { margin-top: 24px; }
/* Liste à tirets rouges (design). */
/* Dans la sous-grille, la liste occupe la dernière rangée, étirée : ses points restent en haut. */
.ofap-fiche-formule__liste { display: grid; align-content: start; gap: 10px; margin-top: 28px; padding-top: 24px; border-top: 1px solid #F2E6E3; }
.ofap-fiche-formule__liste li { position: relative; padding-left: 26px; font-size: .9375rem; line-height: 1.65; color: var(--text); }
.ofap-fiche-formule__liste li::before { content: ""; position: absolute; left: 0; top: .78em; width: 13px; height: 2px; border-radius: 2px; background: var(--fiche-rouge); }
.ofap-fiche-formule--phare { border-color: var(--fiche-filet-rose); background: var(--fiche-rose-pale); box-shadow: 0 14px 34px #ed1c2412; }
/* Rouge d'action : 4,83:1 sur le fond rosé (le rouge de la charte : 4,15:1). */
.ofap-fiche .ofap-fiche-formule--phare .ofap-fiche-formule__nom { color: var(--fiche-rouge-action); }
.ofap-fiche-formule__badge { position: absolute; top: -14px; left: 29px; padding: 5px 13px; border-radius: 50px; background: var(--fiche-rouge-action); font: 700 .75rem/1.5 var(--heading); letter-spacing: .055em; color: #fff; }
/* Logo « Mon Compte Formation » : posé dans l'angle, hors de la ligne du nom, pour
 * que nom, prix et bouton restent à la même hauteur dans les deux cartes. */
.ofap-fiche-formule--phare .ofap-fiche-formule__tete:has(.ofap-fiche-formule__logo) { padding-right: 126px; }
.ofap-fiche .ofap-fiche-formule__logo { position: absolute; top: 26px; right: 28px; width: 112px; height: auto; }
.ofap-fiche-formule .ofap-fiche-coches { align-content: start; margin-top: 28px; padding-top: 24px; border-top: 1px solid #F6DCD9; }
.ofap-fiche-formule .ofap-fiche-coches > li { font-size: .9375rem; }
.ofap-fiche-formule--phare .ofap-fiche-formule__liste { border-top-color: #F6DCD9; }
/* Mention commune sous les cartes (« Les deux formules sont éligibles au CPF »), logo devant. */
.ofap-fiche-formules__mention { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; max-width: 1090px; margin-top: 30px; font: 500 .9375rem/1.6 var(--heading); color: var(--ink); }
.ofap-fiche-formules__mention span { flex: 1 1 240px; }
.ofap-fiche .ofap-fiche-formules__logo { flex: none; width: 92px; height: auto; }

/* 4.14 Financements : une carte par dispositif, la première mise en avant. */
.ofap-fiche-financements__colonnes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.ofap-fiche-financement { display: flex; flex-direction: column; align-items: flex-start; padding: 28px 24px 20px; border: 1px solid #E9E9EE; border-radius: 15px; background: #fff; }
.ofap-fiche-financement--phare { border-color: var(--fiche-filet-rose); background: var(--fiche-rose-pale); }
.ofap-fiche .ofap-fiche-financement .ofap-fiche-h3 { font-size: 1.1875rem; line-height: 1.4; }
/* Précision sous le nom : pastille menthe à coins de 6 px, qui peut tenir sur deux lignes. */
.ofap-fiche-financement__pastille { margin-top: 10px; padding: 4px 10px; border-radius: 6px; background: var(--fiche-menthe); font: 500 .75rem/1.5 var(--heading); color: var(--teal); }
.ofap-fiche-financement__texte { margin: 14px 0 16px; font-size: .9375rem; line-height: 1.65; color: var(--text); }
.ofap-fiche .ofap-fiche-financement .text-link { min-height: 44px; margin-top: auto; font-size: .875rem; }

/* 4.15 Questions fréquentes : le balisage .faq-section / .faq-grid / .faq-list de
 * l'accueil, avec son habillage (home-reference.css l. 174-183), hors .home-page. */
.ofap-fiche .faq-section { padding: 0 0 var(--fiche-rythme); background: #fff; }
.ofap-fiche .faq-grid { grid-template-columns: .85fr 1.15fr; gap: 72px; border: 0; padding-top: 0; }
.ofap-fiche .faq-grid > div:first-child > p { font-size: 1rem; margin: 20px 0 24px; }
.ofap-fiche .faq-list details,
.ofap-fiche .faq-list details:first-child { border: 0; border-radius: 0; padding: 0; background: #fff; }
.ofap-fiche .faq-list summary { font-size: .9375rem; line-height: 1.65; padding: 19px 0; gap: 25px; outline-offset: 2px; }
/* Le signe est un décor : son texte de remplacement vide le tient hors du nom
 * lu de la question (la première déclaration vaut pour les navigateurs qui
 * ignorent cette écriture). */
.ofap-fiche .faq-list summary::after { content: "+"; content: "+" / ""; color: var(--fiche-rouge-action); font-size: 1.25rem; font-weight: 400; flex: 0 0 18px; text-align: center; }
.ofap-fiche .faq-list details[open] summary::after { content: "−"; content: "−" / ""; }
.ofap-fiche .faq-list details[open] { background: var(--fiche-creme); border-radius: 10px; padding: 0 16px; margin-inline: -16px; }
.ofap-fiche .faq-list details > p { font-size: 1rem; line-height: 1.7; color: var(--text); }
/* Une réponse en plusieurs paragraphes : seul le dernier porte la marge de fin. */
.ofap-fiche .faq-list details > p:not(:last-child) { padding-bottom: 12px; }

/* 4.16 Demande de rappel : bandeau rouge à deux colonnes. C'est un conteneur
 * Elementor (#rappel) qui porte deux widgets : le texte (HTML) et le formulaire
 * d'Elementor Pro. Même renfort que le corps face à compat-wp.css.
 *
 * Décor : un quart de disque dans l'angle et un demi-disque à cheval sur le bord
 * gauche du formulaire (design), peints en fond du conteneur — son pseudo-élément
 * ::before sert à Elementor, et un fond ne demande ni « position » ni
 * « overflow ». Ils restent à l'écart du texte : sur un fond éclairci, le blanc
 * ne serait plus lisible. Rouge d'action : le texte courant blanc y est lisible
 * (5,11:1). */
body.ofap-fiche #contenu > .elementor .e-con.ofap-fiche-rappel {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr)); /* deux colonnes égales : design, et bandeau de contact du catalogue */
	gap: 36px 64px;
	align-items: center;
	width: var(--fiche-conteneur);
	margin: 0 auto var(--fiche-rythme);
	padding: 52px 56px;
	border-radius: 22px;
	background:
		radial-gradient(circle 300px at 100% 0, #ffffff3d 299px, transparent 300px),
		radial-gradient(circle 124px at calc(50% + 6px) 100%, #ffffff3d 123px, transparent 124px),
		var(--fiche-rouge-action);
	color: #fff;
}
/* (0,3,0) : après « .ofap-fiche .ofap-fiche-h2:has(.ofap-fiche-aplat) », de même poids. Deux aplats empilés : interligne large. */
.ofap-fiche .ofap-fiche-h2.ofap-fiche-rappel__titre { font-size: clamp(1.625rem, 2.5vw, 2.125rem); line-height: 1.75; color: #fff; }
.ofap-fiche-rappel__titre .ofap-fiche-aplat { padding: .06em .3em .1em; border-radius: 8px 8px 8px 2px; }
.ofap-fiche-rappel__titre .ofap-fiche-aplat--nuit { margin-left: 18px; } /* seconde ligne décalée (catalogue) */
.ofap-fiche-rappel__texte .ofap-fiche-texte { max-width: 27em; margin-top: 20px; color: #fff; }
.ofap-fiche-rappel__tel { margin-top: 10px; font-size: 1rem; line-height: 1.6; color: #fff; }
.ofap-fiche .ofap-fiche-rappel__tel a { display: inline-flex; align-items: center; min-height: 44px; font: 700 1.0625rem/1.5 var(--heading); white-space: nowrap; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.ofap-fiche .ofap-fiche-rappel__tel a:hover { text-decoration-thickness: 2px; }
.ofap-fiche .ofap-fiche-rappel__texte a:focus-visible { outline-color: #fff; }

/* Le formulaire : carte blanche (catalogue, .catalogue-contact-form). Elementor
 * écrit dans la feuille de la page les espacements, couleurs et polices par
 * défaut du widget (vert et gris du kit, Roboto) avec jusqu'à cinq classes :
 * « #contenu » dans ces sélecteurs les fait passer devant, sans !important. */
.ofap-fiche #contenu .ofap-fiche-rappel .elementor-widget-form { min-width: 0; padding: 28px 28px 26px; border-radius: 14px; background: #fff; box-shadow: 0 8px 30px #8e08181f; color: var(--ink); }
.ofap-fiche #contenu .ofap-fiche-rappel .elementor-form-fields-wrapper { display: flex; flex-direction: column; margin: 0; }
.ofap-fiche #contenu .ofap-fiche-rappel .elementor-field-group { display: block; width: 100%; margin: 0 0 16px; padding: 0; }
.ofap-fiche #contenu .ofap-fiche-rappel .elementor-field-type-hidden { display: none; }
.ofap-fiche #contenu .ofap-fiche-rappel .elementor-field-type-submit { margin: 6px 0 0; }
.ofap-fiche #contenu .ofap-fiche-rappel .elementor-field-group > label { display: block; padding: 0 0 6px; font: 500 .8125rem/1.5 var(--heading); letter-spacing: 0; color: var(--ink); }
/* Champs en pilule ; 16 px de corps (en dessous, iOS agrandit la page à la saisie) ;
 * bord à 3:1 sur le blanc, pour que le champ se distingue sans son libellé. */
.ofap-fiche #contenu .ofap-fiche-rappel .elementor-field-textual {
	width: 100%;
	min-height: 48px;
	padding: 11px 18px;
	border: 1px solid #908EA5;
	border-radius: 100px;
	background-color: #fff;
	font: 400 1rem/1.5 var(--body);
	color: var(--ink);
	transition: border-color .15s, box-shadow .15s;
}
.ofap-fiche #contenu .ofap-fiche-rappel .elementor-field-textual::placeholder { color: #6F6E80; opacity: 1; }
.ofap-fiche #contenu .ofap-fiche-rappel .elementor-field-textual:hover { border-color: var(--ink); }
.ofap-fiche #contenu .ofap-fiche-rappel .elementor-field-textual:focus { border-color: var(--ink); box-shadow: none; outline: 3px solid var(--teal); outline-offset: 2px; }
/* Case d'acceptation : la case et son texte côte à côte, zone de clic de 44 px. */
.ofap-fiche #contenu .ofap-fiche-rappel .elementor-field-type-acceptance { margin-bottom: 14px; }
.ofap-fiche #contenu .ofap-fiche-rappel .elementor-field-option { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0 12px; min-height: 44px; padding-top: 4px; }
.ofap-fiche #contenu .ofap-fiche-rappel .elementor-field-option input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--fiche-rouge-action); cursor: pointer; }
.ofap-fiche #contenu .ofap-fiche-rappel .elementor-field-option input:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.ofap-fiche #contenu .ofap-fiche-rappel .elementor-field-option label { flex: 1; min-width: 0; font: 400 .8125rem/1.55 var(--body); color: var(--text); cursor: pointer; }
.ofap-fiche #contenu .ofap-fiche-rappel .elementor-field-option label a { color: var(--red-dark); text-decoration: underline; text-underline-offset: .16em; }
/* Bouton : la pilule rouge du site. */
.ofap-fiche #contenu .ofap-fiche-rappel .elementor-button {
	width: 100%;
	min-height: 50px;
	padding: 12px 22px;
	border: 0;
	border-radius: 50px;
	background-color: var(--fiche-rouge-action);
	font: 700 .9375rem/1.5 var(--heading);
	color: #fff;
	cursor: pointer;
	transition: background-color .18s;
}
.ofap-fiche #contenu .ofap-fiche-rappel .elementor-button:hover { background-color: var(--red-dark); color: #fff; }
.ofap-fiche #contenu .ofap-fiche-rappel .elementor-button:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.ofap-fiche #contenu .ofap-fiche-rappel .elementor-button[disabled] { cursor: progress; }
/* Messages posés par le script d'Elementor : sous un champ fautif, puis sous le
 * formulaire. Leur pictogramme vient d'une police d'icônes que le site ne charge pas. */
.ofap-fiche #contenu .ofap-fiche-rappel .elementor-message { margin: 16px 0 0; padding: 12px 16px; border-radius: 10px; font: 400 .875rem/1.55 var(--body); }
.ofap-fiche #contenu .ofap-fiche-rappel .elementor-message::before { content: none; }
.ofap-fiche #contenu .ofap-fiche-rappel .elementor-message-success { background: var(--fiche-menthe); color: #075F54; }
.ofap-fiche #contenu .ofap-fiche-rappel .elementor-message-danger { background: #FDE3E1; color: #B5141B; }
.ofap-fiche #contenu .ofap-fiche-rappel .elementor-help-inline { display: block; width: 100%; margin: 6px 0 0; padding: 0; background: none; font-size: .8125rem; }
.ofap-fiche #contenu .ofap-fiche-rappel .elementor-error .elementor-field-textual { border-color: #B5141B; }

/* 4.17 Formations complémentaires : titre et lien, puis trois cartes à photo
 * (carte du catalogue : bord #E8E7ED, rayon 13, visuel 16/9). Le lien du titre
 * s'étend à toute la carte. */
.ofap-fiche-complementaires__tete { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; margin-bottom: 32px; }
.ofap-fiche .ofap-fiche-complementaires__tete .text-link { min-height: 44px; }
.ofap-fiche-complementaires__cartes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ofap-fiche-complementaires__carte { position: relative; display: flex; flex-direction: column; overflow: hidden; border-color: #E8E7ED; border-radius: 13px; transition: box-shadow .2s, border-color .2s; }
.ofap-fiche-complementaires__carte:hover { border-color: #DAD8E2; box-shadow: var(--shadow); }
.ofap-fiche-complementaires__photo { aspect-ratio: 16 / 9; overflow: hidden; background: #E7E1DD; }
.ofap-fiche .ofap-fiche-complementaires__photo > img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.ofap-fiche-complementaires__carte:hover .ofap-fiche-complementaires__photo > img { transform: scale(1.03); }
.ofap-fiche-complementaires__corps { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 20px 22px 18px; }
.ofap-fiche .ofap-fiche-complementaires__corps .ofap-fiche-h3 { font-size: 1.0625rem; line-height: 1.45; }
.ofap-fiche .ofap-fiche-complementaires__corps .ofap-fiche-h3 a::after { content: ""; position: absolute; inset: 0; }
/* L'anneau de focus entoure la carte entière, pas le seul titre. */
.ofap-fiche .ofap-fiche-complementaires__corps .ofap-fiche-h3 a:focus-visible { outline: 0; }
.ofap-fiche-complementaires__carte:has(a:focus-visible) { outline: 3px solid var(--teal); outline-offset: 4px; }
.ofap-fiche-complementaires__corps p { margin: 8px 0 14px; font-size: .9375rem; line-height: 1.6; color: var(--text); }
.ofap-fiche .ofap-fiche-complementaires__corps .text-link { margin-top: auto; font-size: .875rem; }
.ofap-fiche-complementaires__carte:hover .action-arrow { transform: translateX(3px); }


/* 5. Carte du prix ------------------------------------------------------------- */
/* Le CONTENEUR de droite colle sous l'en-tête et longe la présentation et le
 * programme. Poids (1,6,1) : compat-wp.css impose « position: static » aux
 * conteneurs des pages avec (1,4,1). Hors éditeur, comme elle.
 *
 * Hauteur : la carte ne passe jamais sous le bouton « Besoin d'un conseil ? »
 * (fixe, 52 px de haut à 22 px du bas, à l'aplomb de la colonne tant que
 * l'écran fait moins de 1740 px de large) : le conteneur s'arrête 82 px avant
 * le bas de l'écran, marge de l'ombre non comprise. Sur un écran peu haut la
 * carte se resserre (paliers plus bas) ; en dernier recours elle défile sur
 * elle-même. Les marges négatives laissent la place de l'ombre, que ce
 * défilement rognerait (même montage que la colonne du blog). */
@media (min-width: 1021px) {
	body.ofap-fiche:not(.elementor-editor-active) #contenu > .elementor[data-elementor-type="wp-page"] .e-con.ofap-fiche-rail {
		position: sticky;
		top: var(--fiche-sous-entete);
		z-index: 4; /* sous l'en-tête (40) et le bouton de conseil (45) */
		align-self: start;
		/* Au départ, la carte s'aligne sur le titre de la présentation (design) :
		 * 72 px de marge de section + sur-titre (20) + écart (16) − 8 px de marge d'ombre. */
		margin: 100px -20px 0;
		padding: 8px 20px 36px;
		width: calc(100% + 40px);
		max-height: calc(100dvh - var(--fiche-sous-entete) - 46px);
		overflow-y: auto;
		scrollbar-width: thin;
	}
	/* Sans JavaScript, la liste d'onglets reste masquée et les panneaux se suivent :
	 * plus haute que l'écran, la carte reste dans le flux au lieu de coller et de
	 * défiler sur elle-même. (Une carte à un seul panneau n'a pas d'onglets : elle colle.) */
	body.ofap-fiche:not(.elementor-editor-active) #contenu > .elementor[data-elementor-type="wp-page"] .e-con.ofap-fiche-rail:has(.ofap-fiche-prix:not(.est-pret) > [role="tablist"]) {
		position: static;
		max-height: none;
		overflow: visible;
	}
}
@media (min-width: 1740px) {
	body.ofap-fiche:not(.elementor-editor-active) #contenu > .elementor[data-elementor-type="wp-page"] .e-con.ofap-fiche-rail {
		max-height: calc(100dvh - var(--fiche-sous-entete) + 20px);
	}
}

/* La carte : valeurs de la carte de prix de la maquette (bord #DED6D2, rayon 18,
 * ombre diffuse) ; onglets, lignes à pictogramme et bouton du design. */
.ofap-fiche-prix {
	--prix-marge: 22px;
	--prix-ligne: 10px;
	padding: var(--prix-marge) var(--prix-marge) 18px;
	border: 1px solid #DED6D2;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 16px 40px #302e5010;
	color: var(--fiche-noir);
}
/* Onglets : une réglette à bord rosé, l'onglet choisi en pilule rouge. */
.ofap-fiche-prix__onglets { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; padding: 3px; border: 1px solid #F3B9BB; border-radius: 999px; }
.ofap-fiche .ofap-fiche-prix__onglet {
	min-height: 44px;
	padding: 6px 8px;
	border-radius: 999px;
	font: 700 .8125rem/1.3 var(--heading);
	color: var(--fiche-rouge-action);
	transition: background-color .15s, color .15s, box-shadow .15s;
}
.ofap-fiche .ofap-fiche-prix__onglet:hover { background: var(--fiche-rose-pale); }
.ofap-fiche .ofap-fiche-prix__onglet[aria-selected="true"] { background: var(--fiche-rouge-action); color: #fff; box-shadow: 0 6px 14px #d919212e; }
.ofap-fiche .ofap-fiche-prix__onglet:focus-visible { outline-offset: 3px; }

.ofap-fiche-prix__panneaux { margin-top: 18px; }
.ofap-fiche-prix__onglets[hidden] + .ofap-fiche-prix__panneaux,
.ofap-fiche-prix > h2 + .ofap-fiche-prix__panneaux { margin-top: 0; } /* pas d'onglets au-dessus */
/* Un panneau reçoit le focus après son onglet : même anneau que le reste du site. */
.ofap-fiche .ofap-fiche-prix__panneau:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; border-radius: 6px; }
/* Sans JavaScript (ou sans onglets) : les panneaux se suivent, chacun sous son intitulé. */
.ofap-fiche-prix__panneau + .ofap-fiche-prix__panneau { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--border); }
.ofap-fiche-prix__rappel { margin-bottom: 12px; }
/* Avec JavaScript (.est-pret) : les panneaux sont superposés dans la même case.
 * La carte garde ainsi la hauteur du plus haut et ne bouge pas d'un onglet à l'autre. */
.ofap-fiche-prix.est-pret .ofap-fiche-prix__panneaux { display: grid; }
.ofap-fiche-prix.est-pret .ofap-fiche-prix__panneau { grid-area: 1 / 1; margin-top: 0; padding-top: 0; border-top: 0; }
.ofap-fiche-prix.est-pret .ofap-fiche-prix__rappel { display: none; }
/* Panneau des autres onglets : invisible, donc hors de portée du clavier et des lecteurs d'écran. */
.ofap-fiche-prix__panneau.est-masque { visibility: hidden; }

/* Titre sur deux lignes (« Les deux formules sont éligibles au CPF ») : deux
 * moitiés égales, sans mot seul en seconde ligne. */
.ofap-fiche .ofap-fiche-prix__titre { font: 700 1.25rem/1.3 var(--heading); letter-spacing: -.025em; text-wrap: balance; color: var(--fiche-noir); }
.ofap-fiche-prix__texte { margin-top: 8px; font-size: .875rem; line-height: 1.6; color: var(--text); }
.ofap-fiche-prix__tarif { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 10px; }
.ofap-fiche-prix__libelle { font-size: .875rem; line-height: 1.5; color: var(--muted); }
.ofap-fiche-prix__montant { margin-top: 1px; font: 700 2.25rem/1.2 var(--heading); letter-spacing: -.045em; color: var(--ink); white-space: nowrap; }
.ofap-fiche-prix__montant small { font: 400 .875rem/1.2 var(--body); letter-spacing: 0; color: var(--muted); }
/* Logo « Mon Compte Formation » : 120 px dans l'onglet CPF, 96 px à côté du prix. */
.ofap-fiche .ofap-fiche-prix__logo { width: 120px; height: auto; margin-bottom: 12px; }
.ofap-fiche .ofap-fiche-prix__logo--petit { flex: none; width: 96px; margin-bottom: 5px; }
.ofap-fiche-prix__lignes { margin: 12px 0 0; border-top: 1px solid var(--border); }
.ofap-fiche-prix__lignes > div { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: var(--prix-ligne) 0; border-bottom: 1px solid var(--border); font-size: .875rem; line-height: 1.6; }
.ofap-fiche-prix__lignes dt { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); white-space: nowrap; }
.ofap-fiche-prix__lignes dt svg { color: var(--fiche-rouge); } /* pictogramme : décor */
/* Une valeur longue (« 36 h en direct + 97 h en ligne ») passe à la ligne en deux moitiés égales. */
.ofap-fiche-prix__lignes dd { margin: 0; font: 500 .875rem/1.6 var(--heading); text-align: right; text-wrap: balance; color: var(--fiche-noir); }
.ofap-fiche-prix__note { margin-top: 12px; font-size: .8125rem; line-height: 1.55; color: var(--muted); }

.ofap-fiche-prix__pied { margin-top: 16px; }
.ofap-fiche .ofap-fiche-prix__pied .button { box-shadow: 0 8px 18px #d9192133; }
.ofap-fiche .ofap-fiche-prix__pdf {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: center;
	gap: 0 8px;
	min-height: 44px;
	margin-top: 4px;
	padding: 11px 0 6px;
	font: 500 .875rem/1.6 var(--heading);
	color: var(--ink);
}
.ofap-fiche .ofap-fiche-prix__pdf span { text-decoration: underline; text-underline-offset: 4px; }
.ofap-fiche .ofap-fiche-prix__pdf:hover { color: var(--red-dark); }
.ofap-fiche-prix__pdf small { font: 400 .75rem/1.6 var(--body); color: var(--muted); white-space: nowrap; }
.ofap-fiche-prix__tel { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--border); font-size: .875rem; line-height: 1.6; text-align: center; color: var(--muted); }
.ofap-fiche .ofap-fiche-prix__tel a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 2px; font: 500 1rem/1.5 var(--heading); color: var(--fiche-noir); white-space: nowrap; }
.ofap-fiche .ofap-fiche-prix__tel a:hover { color: var(--red-dark); }

/* Écrans peu hauts : la carte collée doit tenir entre l'en-tête et le bouton
 * de conseil. Palier 1 : moins de 861 px de haut (cas d'un portable 1366 × 768). */
@media (min-width: 1021px) and (max-height: 860px) {
	/* Avant de coller, la carte part de la ligne du sur-titre (et non du titre) :
	 * quand on arrive sur la présentation par son ancre, son pied reste dégagé
	 * du bouton de conseil dans une fenêtre de 768 px de haut. */
	body.ofap-fiche:not(.elementor-editor-active) #contenu > .elementor[data-elementor-type="wp-page"] .e-con.ofap-fiche-rail { margin-top: 64px; }
	.ofap-fiche-prix { --prix-marge: 18px; --prix-ligne: 7px; padding-bottom: 12px; }
	.ofap-fiche-prix__panneaux { margin-top: 14px; }
	.ofap-fiche .ofap-fiche-prix__titre { font-size: 1.125rem; }
	.ofap-fiche-prix__tarif { margin-top: 6px; }
	.ofap-fiche-prix__montant { font-size: 2rem; }
	.ofap-fiche-prix__lignes { margin-top: 8px; }
	.ofap-fiche-prix__note { margin-top: 9px; font-size: .75rem; }
	.ofap-fiche-prix__pied { margin-top: 12px; }
	.ofap-fiche .ofap-fiche-prix__pdf { margin-top: 2px; padding: 9px 0 4px; }
	.ofap-fiche-prix__tel { margin-top: 2px; padding-top: 0; }
	.ofap-fiche .ofap-fiche-prix__logo { width: 104px; margin-bottom: 8px; }
	.ofap-fiche .ofap-fiche-prix__logo--petit { width: 88px; margin-bottom: 4px; }
}
/* Palier 2 : moins de 720 px de haut ; la note sous les lignes s'efface
 * (elle figure aussi dans le simulateur et dans la section des financements)
 * et les lignes se resserrent encore. Les panneaux sont superposés : le plus
 * haut fixe la hauteur de la carte. Sans la note, ce serait celui du CPF (logo
 * au-dessus d'un titre sur deux lignes, puis un texte) : son logo passe à droite
 * du titre et son texte se resserre, pour qu'il ne dépasse pas le panneau d'une
 * formule (titre, prix, lignes) et que les onglets des formules ne gardent pas
 * de vide. Ne pas mettre les panneaux en flex ou en grille : un élément
 * flottant n'y flotte plus. */
@media (min-width: 1021px) and (max-height: 719px) {
	.ofap-fiche-prix { --prix-ligne: 5px; }
	.ofap-fiche-prix__note { display: none; }
	.ofap-fiche .ofap-fiche-prix__titre { line-height: 1.25; }
	.ofap-fiche .ofap-fiche-prix__logo:not(.ofap-fiche-prix__logo--petit) { float: right; width: 84px; margin: 2px 0 6px 14px; }
	.ofap-fiche-prix__texte { margin-top: 4px; font-size: .8125rem; line-height: 1.5; }
	.ofap-fiche-prix__lignes { clear: both; }
}
/* Colonne de 360 px (1021 à 1190 px de large) : le titre du panneau CPF y tient
 * sur deux lignes et, logo au-dessus, ce panneau devient le plus haut. De 720 à
 * 759 px de haut, son logo passe donc à droite du titre, comme au palier 2,
 * pour que la carte reste entière au-dessus du bouton de conseil (1100 × 720). */
@media (min-width: 1021px) and (max-width: 1190px) and (max-height: 759px) {
	.ofap-fiche .ofap-fiche-prix__logo:not(.ofap-fiche-prix__logo--petit) { float: right; width: 84px; margin: 2px 0 6px 14px; }
	.ofap-fiche .ofap-fiche-prix__titre { line-height: 1.25; }
	.ofap-fiche-prix__lignes { clear: both; }
}
/* Moins de 761 px de haut : le lien du programme PDF et la ligne du téléphone se
 * resserrent (cibles de 32 px au moins). Avec ce lien, une ligne de la carte sur
 * deux lignes (« 1 h en individuel + 6 h en direct + 14 h en ligne ») faisait
 * défiler la carte de 3 à 12 px (1100 × 720, 1366 × 657, 1280 × 593). */
@media (min-width: 1021px) and (max-height: 760px) {
	.ofap-fiche .ofap-fiche-prix__pdf { min-height: 32px; padding: 5px 0 1px; }
	.ofap-fiche .ofap-fiche-prix__tel a { min-height: 34px; }
}
/* Palier 3 : moins de 648 px de haut — la fenêtre d'un portable 1366 × 768 dont
 * le navigateur affiche une barre de plus, ou d'un écran 1280 × 720. La ligne
 * du téléphone s'efface à son tour (le numéro reste dans le bandeau de rappel
 * et dans le pied de page) : la carte reste dégagée du bouton de conseil
 * jusqu'à 590 px de haut environ. En dessous, elle finit par défiler sur
 * elle-même. */
@media (min-width: 1021px) and (max-height: 647px) {
	.ofap-fiche-prix { --prix-ligne: 4px; padding-bottom: 8px; }
	.ofap-fiche-prix__tel { display: none; }
	/* Avec le lien du programme PDF et une ligne sur deux lignes, 17 px de plus à gagner
	 * (1280 × 593) : onglets de 38 px (cibles d'un écran à pointeur), marges réduites. */
	.ofap-fiche .ofap-fiche-prix__onglet { min-height: 38px; }
	.ofap-fiche-prix__panneaux { margin-top: 10px; }
	.ofap-fiche-prix__tarif { margin-top: 3px; }
	.ofap-fiche-prix__pied { margin-top: 8px; }
}
/* Sans JavaScript la carte ne colle pas (panneaux à la suite, dans le flux) :
 * rien n'a besoin de s'y effacer. */
.ofap-fiche-prix:not(.est-pret):has(> [role="tablist"]) :is(.ofap-fiche-prix__note, .ofap-fiche-prix__tel) { display: block; }

/* Barre fixe du bas d'écran : elle n'existe que sous 761 px (partie 7), où la
 * carte du prix n'accompagne plus la lecture. */
.ofap-fiche-barre { display: none; }

/* 6. Renforts face à Elementor ------------------------------------------------ */
/* « .elementor img { height: auto; border-radius: 0 } » et « .elementor a
 * { text-decoration: none } » valent (0,1,1) : les règles de cette feuille qui
 * fixent une hauteur d'image, un arrondi ou un soulignement sont écrites en
 * « .ofap-fiche .… » (0,2,0) à l'endroit où elles servent. Rien de plus ici. */

/* 7. Écrans étroits ----------------------------------------------------------- */
/* Repères du bandeau : trois sur une ligne tant que la colonne le permet. Sous
 * 1367 px (portables), ils se resserrent ; de 1191 à 1263 px, la photo garde
 * 590 px et la gouttière raccourcit. Quand ils passent quand même à la ligne
 * (colonne étroite, sous 1021 px), ils se partagent la largeur. */
@media (max-width: 1366px) {
	.ofap-fiche-bandeau__reperes { gap: 12px; }
	.ofap-fiche-bandeau__reperes > div { min-width: 0; padding: 12px 15px 13px; }
	.ofap-fiche-bandeau__reperes dd { font-size: .9375rem; }
}
@media (min-width: 1191px) and (max-width: 1263px) {
	.ofap-fiche-bandeau__int { column-gap: 48px; }
}
@media (max-width: 1020px) {
	.ofap-fiche-bandeau__reperes > div { padding: 12px 14px 13px; }
}
@media (max-width: 1190px) {
	.ofap-fiche { --fiche-conteneur: calc(100% - 64px); --fiche-rail: 360px; --fiche-gouttiere: 40px; }
	.ofap-fiche-bandeau__int { grid-template-columns: minmax(0, 1fr) minmax(0, 46%); column-gap: 56px; }
	.ofap-fiche-bandeau__visuel::before { left: -48px; bottom: 28px; width: 48px; height: 96px; border-radius: 96px 0 0 96px; }
	.ofap-fiche-bandeau__reperes > div { min-width: 0; }
	.ofap-fiche-modalites__colonnes { column-gap: 24px; }
	.ofap-fiche-simulateur__panneau { gap: 32px 40px; padding-right: 46px; }
	.ofap-fiche-prix { --prix-marge: 20px; } /* colonne de 360 px : un peu moins de marge */

	.ofap-fiche-avis__tete { column-gap: 40px; }
	.ofap-fiche-avis__chiffres { gap: 24px; padding-inline: 26px; }
	.ofap-fiche-avis__detail { padding-left: 24px; }
	.ofap-fiche-avis__cartes,
	.ofap-fiche-metier__cartes,
	.ofap-fiche-complementaires__cartes { gap: 20px; }
	.ofap-fiche .ofap-fiche-avis__temoignage { padding: 24px 24px 23px; }
	.ofap-fiche-distance__cartes { gap: 16px; }
	.ofap-fiche-distance__carte { padding: 24px 20px 26px; }
	.ofap-fiche-plateforme__panneau { column-gap: 48px; padding: 46px 44px; }
	.ofap-fiche-financements__colonnes { gap: 16px; }
	.ofap-fiche-financement { padding: 24px 20px 16px; }
	body.ofap-fiche #contenu > .elementor .e-con.ofap-fiche-rappel {
		column-gap: 44px;
		padding: 46px 44px;
		background:
			radial-gradient(circle 280px at 100% 0, #ffffff3d 279px, transparent 280px),
			radial-gradient(circle 92px at calc(50% + 22px) 100%, #ffffff3d 91px, transparent 92px),
			var(--fiche-rouge-action);
	}
}
@media (max-width: 1020px) {
	.ofap-fiche { --fiche-sous-entete: 84px; --fiche-rythme: 68px; --fiche-rythme-court: 40px; } /* en-tête de 78 px */
	body.admin-bar.ofap-fiche { --fiche-sous-entete: 116px; }
	.ofap-fiche-bandeau { padding: 48px 0 64px; }
	.ofap-fiche-bandeau__int { column-gap: 40px; }
	.ofap-fiche-bandeau__texte { padding-top: 20px; }
	.ofap-fiche-bandeau__visuel { margin-bottom: 32px; }
	.ofap-fiche-bandeau__visuel::before { left: -32px; width: 32px; height: 64px; border-radius: 64px 0 0 64px; }
	/* Photo plus étroite : l'étiquette monte dans l'angle haut gauche, le bouton garde le bas. */
	.ofap-fiche-bandeau__etiquette { left: 12px; top: 12px; bottom: auto; }
	.ofap-fiche .ofap-fiche-bandeau__bouton { right: 12px; bottom: 12px; }

	/* Une seule colonne. La colonne principale s'efface (display: contents) pour
	 * que la carte du prix prenne place entre sa première section (la
	 * présentation) et les suivantes (le programme, puis le formateur). */
	body.ofap-fiche #contenu > .elementor .e-con.ofap-fiche-corps { grid-template-columns: minmax(0, 1fr); }
	body.ofap-fiche #contenu > .elementor .e-con.ofap-fiche-principal { display: contents; }
	body.ofap-fiche #contenu > .elementor .e-con.ofap-fiche-principal > .e-con { order: 3; }
	body.ofap-fiche #contenu > .elementor .e-con.ofap-fiche-principal > .e-con:first-child { order: 1; }
	body.ofap-fiche #contenu > .elementor .e-con.ofap-fiche-rail { order: 2; margin-top: 44px; }
	.ofap-fiche-presentation { padding-top: 60px; }
	.ofap-fiche-programme { padding-top: 64px; }
	/* Carte dans le flux : à gauche les onglets et leur panneau, à droite l'appel. */
	.ofap-fiche-prix { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); grid-template-rows: auto 1fr; column-gap: 36px; padding: 26px 28px; }
	.ofap-fiche-prix__onglets,
	.ofap-fiche-prix__panneaux { grid-column: 1; }
	.ofap-fiche-prix__pied { grid-column: 2; grid-row: 1 / 3; align-self: center; margin-top: 0; }

	.ofap-fiche-certification__texte { padding: 36px 32px 38px 36px; }
	.ofap-fiche-modalites__panneau { padding: 44px 40px 36px; }
	.ofap-fiche-modalites__colonnes { margin-top: 32px; }
	.ofap-fiche-modalites__panneau.ofap-fiche-panneau--quart::after { width: 170px; height: 170px; }
	.ofap-fiche-simulateur__panneau { grid-template-columns: minmax(0, 1fr); padding: 44px 40px; }
	.ofap-fiche-simulateur__carte { min-height: 0; }
	.ofap-fiche-panneau--nuit::before { width: 240px; height: 240px; }
	/* Cellules resserrées : le tableau tient sans retour à la ligne dès 820 px. Même poids que les règles de base. */
	.ofap-fiche-sessions__table thead th,
	.ofap-fiche-sessions__table tbody :is(th, td) { padding-inline: 12px; }

	/* Avis : le bandeau des chiffres passe sous le titre ; deux témoignages côte à
	 * côte, la vidéo dessous sur toute la largeur. */
	.ofap-fiche-avis__tete { grid-template-columns: minmax(0, 1fr); }
	.ofap-fiche-avis__cartes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ofap-fiche-avis__film { grid-column: 1 / -1; }
	.ofap-fiche-avis__video { min-height: 0; aspect-ratio: 16 / 7; }
	/* Métier : deux cartes côte à côte ; la dernière, seule sur sa ligne, la remplit. */
	.ofap-fiche-metier__cartes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ofap-fiche-metier__carte { min-height: 0; padding: 28px 26px 26px; }
	.ofap-fiche-metier__carte:last-child:nth-child(odd) { grid-column: 1 / -1; }
	.ofap-fiche-distance__cartes,
	.ofap-fiche-financements__colonnes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
	.ofap-fiche-plateforme__panneau { column-gap: 40px; padding: 40px; }
	.ofap-fiche-plateforme__image { border-radius: 64px 14px 64px 14px; }
	.ofap-fiche-formules__cartes { gap: 24px; }
	.ofap-fiche .faq-grid { gap: 42px; }
	/* Rappel : le texte, puis le formulaire. */
	body.ofap-fiche #contenu > .elementor .e-con.ofap-fiche-rappel {
		grid-template-columns: minmax(0, 1fr);
		padding: 44px 40px;
		background:
			radial-gradient(circle 230px at 100% 0, #ffffff3d 229px, transparent 230px),
			var(--fiche-rouge-action);
	}
}
/* Trois formules ou plus, de 761 à 1020 px : deux colonnes (les cartes gardent
 * la largeur de la fiche à deux formules), au lieu d'une rangée de cartes de
 * 235 px. La sous-grille aligne encore les rangées des cartes voisines. */
@media (min-width: 761px) and (max-width: 1020px) {
	.ofap-fiche-formules__cartes:has(> :nth-child(3)) { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
	.ofap-fiche { --fiche-conteneur: calc(100% - 40px); --fiche-rythme: 56px; --fiche-rythme-court: 32px; }
	.ofap-fiche .ofap-fiche-h2 { font-size: 1.85rem; }
	.ofap-fiche .ofap-fiche-h2--grand { font-size: 2rem; }
	.ofap-fiche .ofap-fiche-h2--petit { font-size: 1.5rem; }
	.ofap-fiche-panneau { padding: 32px 26px; border-radius: 18px; }

	/* Bandeau : le texte, puis la photo. */
	.ofap-fiche-bandeau { padding: 36px 0 48px; }
	.ofap-fiche-bandeau__int { grid-template-columns: minmax(0, 1fr); row-gap: 36px; }
	.ofap-fiche-bandeau__texte { padding-top: 0; }
	.ofap-fiche-bandeau .ofap-fiche-titre { margin-top: 20px; }
	.ofap-fiche-bandeau .ofap-fiche-chapeau { margin-top: 26px; }
	/* Pleine largeur : chaque colonne prend la place de sa valeur (« 14 h » en laisse aux autres),
	 * puis le reste se partage ; une valeur trop longue passe à la ligne dans sa boîte. */
	.ofap-fiche-bandeau__reperes { grid-auto-columns: auto; gap: 8px; width: 100%; margin-top: 0; padding-top: 30px; }
	.ofap-fiche-bandeau__reperes > div { min-width: 0; padding: 11px 12px 12px; }
	.ofap-fiche-bandeau__reperes dt { font-size: .75rem; }
	.ofap-fiche-bandeau__reperes dd { font-size: .875rem; line-height: 1.4; }
	.ofap-fiche-bandeau__visuel { margin-bottom: 0; }
	.ofap-fiche-bandeau__visuel::before { content: none; } /* plus de place à gauche de la photo */
	.ofap-fiche-bandeau__cadre { aspect-ratio: 4 / 3; }

	body.ofap-fiche #contenu > .elementor .e-con.ofap-fiche-rail { margin-top: 36px; }
	.ofap-fiche-presentation { padding-top: 48px; }
	.ofap-fiche-programme { padding-top: 52px; }
	.ofap-fiche-formateur { padding-top: 48px; }
	.ofap-fiche-formateur__carte { padding: 26px 22px 28px; border-radius: 44px 22px 22px 0; }
	.ofap-fiche-prix { display: block; padding: 22px 20px 16px; }
	.ofap-fiche-prix__pied { margin-top: 16px; }
	.ofap-fiche-programme__actions { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0 24px; width: 100%; }
	.ofap-fiche .ofap-fiche-accordeon__volet > summary { gap: 12px; padding: 12px 14px 12px 16px; }
	.ofap-fiche-accordeon--numerote .ofap-fiche-accordeon__corps { padding: 0 16px 18px 56px; }

	/* Certification : la photo passe au-dessus du texte. */
	.ofap-fiche-certification__panneau { grid-template-columns: minmax(0, 1fr); border-radius: 18px; }
	.ofap-fiche-certification__image { order: -1; min-height: 0; aspect-ratio: 16 / 9; }
	.ofap-fiche-certification__panneau::before { content: none; }
	.ofap-fiche-certification__texte { padding: 28px 26px 32px; }

	.ofap-fiche-modalites__panneau { padding: 34px 20px 28px; }
	.ofap-fiche-modalites__tete { padding-inline: 6px; }
	/* Les deux groupes de volets l'un sous l'autre. */
	.ofap-fiche-modalites__colonnes { grid-auto-flow: row; grid-template-columns: minmax(0, 1fr); row-gap: 26px; margin-top: 26px; }
	.ofap-fiche .ofap-fiche-modalites__groupe-titre { margin-left: 6px; }
	.ofap-fiche .ofap-fiche-accordeon--lignes .ofap-fiche-accordeon__volet > summary { padding: 13px 14px 13px 16px; }
	.ofap-fiche-accordeon--lignes .ofap-fiche-accordeon__corps { padding: 0 16px 18px; }
	.ofap-fiche-modalites__panneau.ofap-fiche-panneau--quart::after { width: 120px; height: 120px; }

	.ofap-fiche-simulateur__panneau { padding: 34px 20px 22px; }
	.ofap-fiche-simulateur__tete { padding-inline: 6px; }
	.ofap-fiche-simulateur__carte { padding: 26px 20px 22px; }
	.ofap-fiche-panneau--nuit::before { width: 160px; height: 160px; }

	/* Sessions : une carte par ligne, le libellé de la colonne devant chaque valeur. */
	.ofap-fiche-sessions__table,
	.ofap-fiche-sessions__table :is(tbody, tr, th, td) { display: block; }
	.ofap-fiche-sessions__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
	.ofap-fiche-sessions__table tbody tr { margin-top: 14px; padding: 18px 18px 20px; border: 1px solid var(--border); border-radius: 13px; background: #fff; }
	.ofap-fiche-sessions__table tbody :is(th, td) { padding: 0; border: 0; }
	.ofap-fiche-sessions__nom { white-space: normal; }
	.ofap-fiche-sessions__table tbody tr:hover :is(th, td) { background: none; }
	.ofap-fiche-sessions__table td[data-libelle] { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); text-align: right; }
	.ofap-fiche-sessions__table td[data-libelle]::before { content: attr(data-libelle); flex: none; font-size: .8125rem; color: var(--muted); }
	.ofap-fiche-sessions__table td.ofap-fiche-sessions__action { display: block; width: auto; margin-top: 16px; padding: 0; border: 0; white-space: normal; }
	.ofap-fiche-sessions__table td.ofap-fiche-sessions__action::before { content: none; }
	/* « Prochaine session » : le texte parle déjà de dates, pas de libellé devant. */
	.ofap-fiche-sessions__table .ofap-fiche-sessions__prochaine td[colspan]::before { content: none; }
	.ofap-fiche-sessions__table .ofap-fiche-sessions__prochaine td[colspan] { justify-content: flex-start; text-align: left; }
	.ofap-fiche-sessions__table td.ofap-fiche-sessions__action:empty,
	.ofap-fiche-sessions__table td.ofap-fiche-sessions__action:not(:has(> :not([hidden]))) { display: none; }
	.ofap-fiche .ofap-fiche-sessions__action .button { width: 100%; }
	.ofap-fiche-sessions__jauge { margin-left: auto; }
	.ofap-fiche-sessions__places { text-align: right; }

	/* Sections suivantes : une colonne. */
	.ofap-fiche-entete { margin-bottom: 26px; }
	.ofap-fiche-avis__chiffres { gap: 20px; padding: 20px 22px 19px; border-radius: 13px; }
	.ofap-fiche-avis__detail { padding-left: 20px; }
	.ofap-fiche-avis__cartes { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 24px; }
	.ofap-fiche .ofap-fiche-avis__temoignage { min-height: 0; padding: 22px; }
	.ofap-fiche-avis__temoignage::before { width: 38px; height: 30px; margin-bottom: 16px; }
	.ofap-fiche-metier__cartes { grid-template-columns: minmax(0, 1fr); gap: 14px; }
	.ofap-fiche-metier__carte { padding: 24px; }
	.ofap-fiche-metier__carte--rouge::before { width: 72px; height: 72px; }
	.ofap-fiche-metier__chiffre { font-size: 2.25rem; }
	.ofap-fiche-metier__chiffre--long { font-size: 1.5rem; }
	.ofap-fiche-metier__debouches { margin-top: 22px; padding: 22px 20px 24px; }
	.ofap-fiche-metier__debouches ul { gap: 10px; }
	.ofap-fiche-distance__cartes,
	.ofap-fiche-financements__colonnes { gap: 14px; }
	.ofap-fiche-distance__carte { padding: 22px 20px 24px; }
	.ofap-fiche .ofap-fiche-distance__carte .ofap-fiche-h3 { margin-top: 18px; }
	.ofap-fiche-plateforme__panneau { grid-template-columns: minmax(0, 1fr); row-gap: 30px; padding: 34px 24px 26px; }
	.ofap-fiche-plateforme__panneau::after { right: -90px; bottom: -120px; width: 260px; height: 230px; }
	.ofap-fiche-plateforme__image { border-radius: 48px 12px 48px 12px; }
	/* Formules : l'une sous l'autre, chacune à sa hauteur. */
	.ofap-fiche-formules__cartes { grid-auto-flow: row; grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: 32px; }
	.ofap-fiche-formule { display: flex; grid-row: auto; padding: 28px 22px 26px; }
	.ofap-fiche-formule__badge { left: 21px; }
	.ofap-fiche-formules__mention { margin-top: 26px; }
	.ofap-fiche .faq-grid { grid-template-columns: 1fr; gap: 25px; }
	body.ofap-fiche #contenu > .elementor .e-con.ofap-fiche-rappel {
		row-gap: 28px;
		padding: 34px 20px 20px;
		border-radius: 18px;
		background:
			radial-gradient(circle 120px at 100% 0, #ffffff3d 119px, transparent 120px),
			var(--fiche-rouge-action);
	}
	.ofap-fiche-rappel__texte { padding-inline: 6px; }
	.ofap-fiche #contenu .ofap-fiche-rappel .elementor-widget-form { padding: 22px 18px 20px; }
	/* Formations complémentaires : la photo à gauche, le texte à droite. */
	.ofap-fiche-complementaires__tete { margin-bottom: 22px; }
	.ofap-fiche-complementaires__cartes { grid-template-columns: minmax(0, 1fr); gap: 14px; }
	.ofap-fiche-complementaires__carte { flex-direction: row; }
	.ofap-fiche-complementaires__photo { flex: 0 0 38%; aspect-ratio: auto; min-height: 148px; }
	.ofap-fiche-complementaires__corps { padding: 16px 18px 12px; }

	/* Barre fixe du bas d'écran : le prix et la demande de rappel, sous la main.
	 * formation.js la retire (.est-masquee) tant que le bandeau de rappel, ou le
	 * bouton de la carte du prix, est à l'écran : elle ferait doublon. Sous
	 * l'en-tête (40) et le bouton de conseil (45). */
	.ofap-fiche-barre {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 35;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		padding: 10px 20px calc(10px + env(safe-area-inset-bottom));
		border-top: 1px solid var(--border);
		background: #fff;
		box-shadow: 0 -4px 22px #25243b14;
		transition: transform .25s, visibility .25s;
	}
	.ofap-fiche-barre.est-masquee { transform: translateY(100%); visibility: hidden; }
	.ofap-fiche-barre__prix { font: 700 1.25rem/1.2 var(--heading); letter-spacing: -.035em; color: var(--ink); white-space: nowrap; }
	.ofap-fiche-barre__prix small { font: 400 .8125rem/1.2 var(--body); letter-spacing: 0; color: var(--muted); }
	.ofap-fiche main section.ofap-fiche-barre .button { flex: none; padding-inline: 24px; }
	/* La barre mesure 69 px. Le bouton « Besoin d'un conseil ? » du site et son
	 * panneau passent au-dessus d'elle, et redescendent quand elle s'efface ; le
	 * pied de page réserve la place des deux (70 px pour le bouton seul sur le
	 * reste du site) ; un élément amené à l'écran au clavier s'arrête au-dessus. */
	.ofap-fiche .chat-launcher { transition: bottom .25s; }
	.ofap-fiche:has(.ofap-fiche-barre:not(.est-masquee)) .chat-launcher { bottom: calc(82px + env(safe-area-inset-bottom)); }
	.ofap-fiche:has(.ofap-fiche-barre:not(.est-masquee)) .chat-panel { bottom: calc(146px + env(safe-area-inset-bottom)); max-height: calc(100dvh - 170px); }
	.ofap-fiche:has(.ofap-fiche-barre) .footer-bottom { padding-bottom: calc(140px + env(safe-area-inset-bottom)); }
	html:has(.ofap-fiche-barre) { scroll-padding-bottom: 84px; }
}
@media (max-width: 480px) {
	.ofap-fiche-titre { font-size: clamp(1.95rem, 9vw, 2.25rem); }
	.ofap-fiche .ofap-fiche-h2 { font-size: 1.65rem; }
	.ofap-fiche .ofap-fiche-h2--grand { font-size: 1.75rem; }
	.ofap-fiche-bandeau__etiquette { min-height: 40px; padding: 7px 14px; font-size: .8125rem; }
	.ofap-fiche-accordeon__numero { width: 24px; }
	.ofap-fiche-accordeon--numerote .ofap-fiche-accordeon__corps { padding-left: 16px; }
	/* Formateur : la pastille au-dessus du texte (blog.css, même seuil). */
	.ofap-fiche-formateur__carte { flex-direction: column; gap: 18px; }
	.ofap-fiche-prix__montant { font-size: 2rem; }
	.ofap-fiche .ofap-fiche-simulateur__reponse { flex-wrap: wrap; }
	.ofap-fiche-simulateur__actions .button { width: 100%; }

	/* Bandeau des chiffres : la note, puis le détail dessous. */
	.ofap-fiche-avis__chiffres { flex-direction: column; align-items: flex-start; gap: 12px; }
	.ofap-fiche-avis__detail { width: 100%; padding: 12px 0 0; border-left: 0; border-top: 1px solid #ffffff33; }
	.ofap-fiche-avis__video { aspect-ratio: 16 / 9; }
	/* À distance : le pictogramme à gauche, le texte à droite. */
	.ofap-fiche-distance__carte { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 16px; align-items: start; padding: 20px 18px 22px; }
	.ofap-fiche-distance__icone { grid-row: 1 / span 2; }
	.ofap-fiche .ofap-fiche-distance__carte .ofap-fiche-h3 { margin-top: 2px; }
	.ofap-fiche-distance__carte p { margin-top: 6px; }
	.ofap-fiche-distance__cartes,
	.ofap-fiche-financements__colonnes { grid-template-columns: minmax(0, 1fr); }
	.ofap-fiche-formule__tete { flex-wrap: wrap; }
	.ofap-fiche-formule__prix { font-size: 2.125rem; }
	.ofap-fiche .ofap-fiche-h2.ofap-fiche-rappel__titre { font-size: 1.5rem; }
	.ofap-fiche-rappel__titre .ofap-fiche-aplat--nuit { margin-left: 12px; }
	/* Formations complémentaires : la photo repasse au-dessus du texte. */
	.ofap-fiche-complementaires__carte { flex-direction: column; }
	.ofap-fiche-complementaires__photo { flex: none; aspect-ratio: 16 / 9; min-height: 0; }
	.ofap-fiche-complementaires__corps { padding: 18px 18px 14px; }
}
@media (max-width: 390px) {
	.ofap-fiche { --fiche-conteneur: calc(100% - 32px); }
	.ofap-fiche .ofap-fiche-prix__onglet { font-size: .75rem; }
	.ofap-fiche .ofap-fiche-prix__logo--petit { width: 84px; }
	.ofap-fiche-barre { padding-inline: 16px; }
	.ofap-fiche main section.ofap-fiche-barre .button { padding-inline: 20px; }
}

/* 8. Mouvement réduit, contrastes forcés, impression ---------------------------- */
/* Mouvement réduit : styles.css coupe déjà toutes les transitions du site et le
 * défilement doux des ancres ; rien à ajouter. */
@media (forced-colors: active) {
	/* Les fonds disparaissent : l'état se lit par un bord. */
	.ofap-fiche .ofap-fiche-prix__onglet[aria-selected="true"],
	.ofap-fiche .ofap-fiche-simulateur__reponse[aria-pressed="true"] { border: 2px solid Highlight; }
	.ofap-fiche .ofap-fiche-simulateur__reponse { border-color: ButtonText; }
	.ofap-fiche .ofap-fiche-accordeon__volet > summary::after { forced-color-adjust: none; }
	/* Cartes et panneaux pleins : un bord tient lieu de fond. */
	.ofap-fiche-avis__chiffres,
	.ofap-fiche-avis__video,
	.ofap-fiche-metier__carte,
	.ofap-fiche .ofap-fiche-avis__temoignage,
	.ofap-fiche-metier__debouches li,
	.ofap-fiche-formateur__carte,
	.ofap-fiche-formateur__photo,
	.ofap-fiche-barre,
	body.ofap-fiche #contenu > .elementor .e-con.ofap-fiche-rappel { border: 1px solid CanvasText; }
	.ofap-fiche-etiquette,
	.ofap-fiche-formule__badge,
	.ofap-fiche #contenu .ofap-fiche-rappel .elementor-widget-form,
	.ofap-fiche #contenu .ofap-fiche-rappel .elementor-button { border: 1px solid ButtonText; }
}
@media print {
	.ofap-fiche .skip-link,
	.ofap-fiche .site-header,
	.ofap-fiche .site-footer,
	.ofap-fiche .chat-launcher,
	.ofap-fiche .chat-panel,
	.ofap-fiche .ofap-fiche-bascule,
	.ofap-fiche .ofap-fiche-prix__onglets,
	.ofap-fiche .ofap-fiche-avis__film,
	.ofap-fiche .ofap-fiche-rappel .elementor-widget-form,
	.ofap-fiche .ofap-fiche-barre { display: none; }
	/* Les fonds portent du texte blanc (bandeaux rouges et bleu nuit) : ils
	 * s'impriment tels qu'à l'écran, même si l'option du navigateur est décochée. */
	.ofap-fiche main { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	body.ofap-fiche #contenu > .elementor .e-con.ofap-fiche-corps { display: block; }
	body.ofap-fiche #contenu > .elementor .e-con.ofap-fiche-rail { position: static; max-height: none; overflow: visible; margin: 24px 0 0; padding: 0; width: 100%; }
	/* Volets fermés : leur contenu s'imprime quand même. formation.js les ouvre
	 * avant l'impression ; cette règle vaut sans lui, dans les navigateurs qui
	 * connaissent ::details-content (les autres l'ignorent). */
	.ofap-fiche main details::details-content { content-visibility: visible; }
	/* Les panneaux de la carte, à la suite. */
	.ofap-fiche-prix.est-pret .ofap-fiche-prix__panneaux { display: block; }
	.ofap-fiche-prix.est-pret .ofap-fiche-prix__panneau { visibility: visible; margin-top: 16px; }
	.ofap-fiche-prix { box-shadow: none; }
	/* Pas de coupure de page au milieu d'une carte ou d'un volet, ni entre un
	 * titre et ce qu'il annonce. */
	.ofap-fiche main :is(h2, h3),
	.ofap-fiche-entete { break-after: avoid; }
	.ofap-fiche-entete { break-inside: avoid; }
	/* Les rangées de cartes deviennent des blocs à la suite : une grille ne suit
	 * pas son titre d'une page à l'autre, un bloc si. */
	.ofap-fiche-formules__cartes,
	.ofap-fiche-avis__cartes,
	.ofap-fiche-metier__cartes,
	.ofap-fiche-distance__cartes,
	.ofap-fiche-financements__colonnes,
	.ofap-fiche-complementaires__cartes { display: block; }
	:is(.ofap-fiche-avis__cartes, .ofap-fiche-metier__cartes, .ofap-fiche-distance__cartes, .ofap-fiche-financements__colonnes, .ofap-fiche-complementaires__cartes) > li + li { margin-top: 14px; }
	.ofap-fiche-formule { display: block; }
	.ofap-fiche-formule + .ofap-fiche-formule { margin-top: 24px; }
	.ofap-fiche .ofap-fiche-avis__temoignage { min-height: 0; }
	/* La pastille posée sur le bord de la carte rentre dedans : à cheval, une coupure de page la trancherait. */
	.ofap-fiche-formule__badge { position: static; display: inline-block; margin-bottom: 12px; }
	.ofap-fiche-prix,
	.ofap-fiche-formateur__carte,
	.ofap-fiche-certification__panneau,
	.ofap-fiche-plateforme__panneau,
	.ofap-fiche-avis__chiffres,
	.ofap-fiche-accordeon__volet,
	.ofap-fiche-carte,
	.ofap-fiche-formule,
	.ofap-fiche-financement,
	.ofap-fiche-metier__carte,
	.ofap-fiche .ofap-fiche-avis__temoignage,
	.ofap-fiche .faq-list details,
	.ofap-fiche-sessions__table tr { break-inside: avoid; }
}
