/* Capiforma Formations : interface publique.
 * Charte : bleu #4667AE, abricot #F4A76E, encre #22323D, brume #ECF0F2.
 * Titres en Tenor Sans, texte en Work Sans (polices embarquées dans le plugin).
 * Tout est préfixé .cfm pour ne pas interférer avec le thème et Elementor.
 */

@font-face { font-family: "CFM Tenor"; src: url("webfonts/TenorSans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "CFM Work"; src: url("webfonts/WorkSans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "CFM Work"; src: url("webfonts/WorkSans-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

.cfm {
	--ink: #22323d;
	--ink-soft: #4b5a66;
	--muted: #66747f;
	--blue: #4667ae;
	--blue-deep: #34508c;
	--blue-wash: #e9eef8;
	--apricot: #f4a76e;
	--apricot-deep: #ec9050;
	--apricot-wash: #fdf0e6;
	--mist: #ecf0f2;
	--line: #d9e0e5;
	--paper: #fff;
	--display: "CFM Tenor", "Tenor Sans", Georgia, serif;
	--text: "CFM Work", "Work Sans", system-ui, sans-serif;
	--shell: 1320px;
	--gutter: clamp(20px, 4vw, 48px);
	--r-lg: 28px;
	--r-md: 18px;
	--r-sm: 12px;
	color: var(--ink);
	font: 400 17px/1.65 var(--text);
	-webkit-font-smoothing: antialiased;
}
.cfm *, .cfm *::before, .cfm *::after { box-sizing: border-box; }
.cfm :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; padding: 0; }
.cfm :where(ul, ol) { list-style: none; }
.cfm blockquote { border: 0; padding: 0; margin: 0; background: none; font-style: normal; quotes: none; }
.cfm blockquote::before, .cfm blockquote::after { content: none; }
.cfm a { color: var(--blue); text-decoration: none; }
.cfm a:hover { color: var(--blue-deep); }
.cfm :focus-visible { outline: 3px solid var(--apricot); outline-offset: 3px; border-radius: 6px; }
.cfm [hidden] { display: none !important; }
.cfm-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Structure */
.cfm-shell { width: 100%; max-width: calc(var(--shell) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.cfm-band { padding: clamp(56px, 8vw, 104px) 0; }
.cfm-band--mist { background: var(--mist); }
.cfm-band--ink { background: var(--ink); color: #fff; }

/* Typographie */
.cfm .cfm-h1 { font: 400 clamp(2.4rem, 4.4vw, 4.25rem)/1.04 var(--display); letter-spacing: -.015em; color: inherit; text-wrap: balance; }
.cfm .cfm-h2 { font: 400 clamp(1.75rem, 2.6vw, 2.35rem)/1.12 var(--display); letter-spacing: -.01em; color: var(--ink); margin-bottom: 28px; text-wrap: balance; }
.cfm-band--ink .cfm-h2 { color: #fff; }
.cfm .cfm-h3 { font: 600 1.125rem/1.35 var(--text); color: var(--ink); }
.cfm-lead { font-size: 1.2rem; line-height: 1.55; color: var(--ink-soft); max-width: 62ch; }
.cfm-muted { color: var(--muted); }

/* Boutons */
.cfm .cfm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 14px 28px; border: 0; border-radius: 999px; background: var(--blue); color: #fff; font: 600 16px/1.2 var(--text); text-align: center; text-decoration: none; cursor: pointer; transition: background-color .18s, color .18s, box-shadow .18s; }
.cfm .cfm-btn:hover { background: var(--blue-deep); color: #fff; }
.cfm .cfm-btn--primary { background: var(--apricot); color: var(--ink); }
.cfm .cfm-btn--primary:hover { background: var(--apricot-deep); color: var(--ink); }
.cfm .cfm-btn--ghost { background: transparent; color: var(--blue); box-shadow: inset 0 0 0 2px var(--blue); }
.cfm .cfm-btn--ghost:hover { background: var(--blue); color: #fff; }
.cfm .cfm-btn--white { background: #fff; color: var(--ink); }
.cfm .cfm-btn--white:hover { background: var(--apricot); color: var(--ink); }
.cfm .cfm-btn--block { width: 100%; }
.cfm .cfm-btn[aria-disabled="true"] { background: var(--mist); color: var(--muted); cursor: not-allowed; box-shadow: none; }
.cfm .cfm-link { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: var(--blue); font: 600 15px/1.4 var(--text); cursor: pointer; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.cfm .cfm-link:hover { color: var(--blue-deep); }
.cfm-ico { width: 18px; height: 18px; flex: none; }

/* Billet de session : le motif récurrent (date en grand, comme un talon de billet) */
.cfm-ticket { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: center; padding: 12px 16px 12px 12px; border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--paper); color: var(--ink); cursor: pointer; transition: border-color .15s, background-color .15s; }
.cfm-ticket:hover { border-color: var(--blue); }
.cfm-ticket input { position: absolute; opacity: 0; pointer-events: none; }
.cfm-ticket:has(input:checked) { border-color: var(--blue); background: var(--blue-wash); box-shadow: inset 0 0 0 1px var(--blue); }
.cfm-ticket:has(input:focus-visible) { outline: 3px solid var(--apricot); outline-offset: 2px; }
.cfm-ticket:has(input:disabled) { cursor: not-allowed; opacity: .55; }
.cfm-ticket__date { display: grid; place-items: center; align-content: center; height: 64px; border-radius: var(--r-sm); background: var(--blue); color: #fff; line-height: 1; }
.cfm-ticket__day { font: 400 30px/1 var(--display); }
.cfm-ticket__month { margin-top: 4px; font: 600 12px/1 var(--text); }
.cfm-ticket__body { display: grid; gap: 2px; min-width: 0; }
.cfm-ticket__body strong { font-weight: 600; font-size: 15px; line-height: 1.35; }
.cfm-ticket__body span { font-size: 14px; color: var(--muted); }
.cfm-flag { display: inline-block; justify-self: start; margin-top: 4px; padding: 2px 10px; border-radius: 999px; background: var(--apricot-wash); color: #9a4d17 !important; font-size: 12.5px !important; font-weight: 600; }
.cfm-flag--ok { background: #e3f3ea; color: #1f6b43 !important; }
.cfm-flag--off { background: var(--mist); color: var(--muted) !important; }

/* ------------------------------------------------------------------ */
/* Fiche formation                                                     */
/* ------------------------------------------------------------------ */
.cfm-formation { background: var(--paper); }
.cfm-layout { display: grid; grid-template-columns: minmax(0, 1fr) 384px; column-gap: clamp(40px, 5vw, 80px); }
.cfm-hero { grid-column: 1; position: relative; padding: clamp(36px, 5vw, 64px) 0 clamp(48px, 6vw, 80px); color: #fff; background: var(--blue); box-shadow: 0 0 0 100vmax var(--blue); clip-path: inset(0 -100vmax); }
.cfm-crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-bottom: clamp(28px, 4vw, 48px); font-size: 14px; }
.cfm-crumbs a { color: rgba(255, 255, 255, .78) !important; }
.cfm-crumbs a:hover { color: #fff !important; text-decoration: underline; text-underline-offset: 3px; }
.cfm-crumbs span { color: rgba(255, 255, 255, .45); }
.cfm-hero__theme { display: inline-block; margin-bottom: 18px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff !important; font-size: 14px; font-weight: 600; }
.cfm-hero__theme:hover { background: rgba(255, 255, 255, .24); }
.cfm-hero .cfm-h1 { max-width: 20ch; }
.cfm-hero__chapo { max-width: 60ch; margin-top: 24px; font-size: 1.2rem; line-height: 1.55; color: rgba(255, 255, 255, .88); }
.cfm-facts { display: flex; flex-wrap: wrap; gap: 20px 44px; margin-top: clamp(32px, 4vw, 48px); padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .22); }
.cfm-facts div { display: grid; gap: 2px; }
.cfm-facts dt { font-size: 14px; color: rgba(255, 255, 255, .7); }
.cfm-facts dd { font-weight: 600; font-size: 17px; }

/* Panneau de réservation */
.cfm-aside { grid-column: 2; grid-row: 1 / span 30; padding-top: clamp(36px, 5vw, 64px); position: relative; z-index: 2; }
.cfm-panel { position: sticky; top: 112px; display: grid; gap: 20px; padding: 28px; border-radius: var(--r-lg); background: var(--paper); box-shadow: 0 1px 2px rgba(34, 50, 61, .06), 0 24px 60px -20px rgba(34, 50, 61, .35); }
.admin-bar .cfm-panel { top: 144px; }
.cfm-panel__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.cfm-panel__price strong { font: 400 2.4rem/1 var(--display); }
.cfm-panel__price span { color: var(--muted); font-size: 15px; }
.cfm-panel__title { font-weight: 600; font-size: 15px; }
.cfm-panel__dates { display: grid; gap: 10px; border: 0; margin: 0; padding: 0; min-width: 0; }
.cfm-panel__dates legend { padding: 0; margin-bottom: 10px; font-weight: 600; font-size: 15px; }
.cfm-panel__empty { padding: 16px; border-radius: var(--r-md); background: var(--mist); font-size: 15px; line-height: 1.5; }
.cfm-panel__actions { display: grid; gap: 10px; }
.cfm-panel__more { font-size: 14px; }
.cfm-panel__foot { display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14.5px; }
.cfm-panel__foot a { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.cfm-panel__foot p { color: var(--muted); }

/* Contenu */
.cfm-content { grid-column: 1; min-width: 0; padding: clamp(48px, 6vw, 80px) 0 clamp(56px, 7vw, 96px); }
.cfm-sec { max-width: 780px; }
.cfm-sec + .cfm-sec { margin-top: clamp(56px, 7vw, 88px); }
.cfm-checks { display: grid; gap: 14px; }
.cfm-checks li { position: relative; padding-left: 40px; font-size: 1.075rem; }
.cfm-checks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 26px; height: 26px; border-radius: 50%; background: var(--apricot-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c96a2b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 15px no-repeat; }
.cfm-bullets { display: grid; gap: 10px; }
.cfm-bullets li { position: relative; padding-left: 22px; }
.cfm-bullets li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.cfm-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.cfm-pair .cfm-h3 { margin-bottom: 14px; }
.cfm-prose p + p { margin-top: 1em; }

/* Programme : séquence numérotée */
.cfm-program { counter-reset: step; }
.cfm-program__intro { margin-bottom: 32px; font-size: 1.075rem; color: var(--ink-soft); }
.cfm-day + .cfm-day { margin-top: 36px; }
.cfm-day__label { display: inline-block; margin-bottom: 18px; padding: 6px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: 14px; }
.cfm-steps { display: grid; }
.cfm-step { counter-increment: step; position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 20px; padding-bottom: 32px; }
.cfm-step::before { content: counter(step); display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--blue-wash); color: var(--blue); font: 400 22px/1 var(--display); }
.cfm-step::after { content: ""; position: absolute; left: 25px; top: 60px; bottom: 8px; width: 2px; background: var(--line); }
.cfm-step:last-child { padding-bottom: 0; }
.cfm-step:last-child::after { display: none; }
.cfm-step > div { padding-top: 12px; }
.cfm-step .cfm-h3 { margin-bottom: 10px; font-size: 1.15rem; }
.cfm-step .cfm-bullets { gap: 6px; color: var(--ink-soft); }

/* Infos pratiques */
.cfm-infos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.cfm-infos div { padding: 18px 0; border-top: 1px solid var(--line); }
.cfm-infos dt { margin-bottom: 4px; font-weight: 600; }
.cfm-infos dd { color: var(--ink-soft); font-size: 16px; }

/* Bloc sur mesure (fiche sans programme détaillé) */
.cfm-tailor { padding: 32px; border-radius: var(--r-lg); background: var(--apricot-wash); }
.cfm-tailor p { max-width: 58ch; margin: 12px 0 22px; color: var(--ink-soft); }

/* Toutes les dates */
.cfm-dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cfm-dates .cfm-ticket { cursor: default; }
.cfm-dates .cfm-ticket a { position: absolute; inset: 0; border-radius: inherit; }

/* Avis */
.cfm-voices { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.cfm-voice-lead blockquote p { font: 400 clamp(1.6rem, 2.6vw, 2.2rem)/1.3 var(--display); color: var(--ink); text-wrap: pretty; }
.cfm-voice-lead blockquote p::before { content: "«\00a0"; color: var(--apricot-deep); }
.cfm-voice-lead blockquote p::after { content: "\00a0»"; color: var(--apricot-deep); }
.cfm-voice-lead figcaption { margin-top: 20px; color: var(--muted); }
.cfm-voice-lead figcaption strong { color: var(--ink); font-weight: 600; }
.cfm-voice-list { display: grid; gap: 14px; }
.cfm-voice { padding: 20px 22px; border-radius: var(--r-md); background: var(--paper); }
.cfm-band--mist .cfm-voice { background: var(--paper); }
.cfm-voice blockquote p { font-size: 16px; line-height: 1.55; }
.cfm-voice figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.cfm-voice figcaption strong { color: var(--ink); font-weight: 600; }
.cfm-voices__more { margin-top: 6px; }
.cfm-voices__note { margin-top: 28px; font-size: 14px; color: var(--muted); }
.cfm-verbatims .cfm-h2 { margin-bottom: 36px; }

/* Preuves */
.cfm-proof { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 28px 40px; }
.cfm-proof div { display: grid; gap: 6px; align-content: start; }
.cfm-proof strong { font: 400 clamp(2.4rem, 3.6vw, 3.25rem)/1 var(--display); color: var(--blue); }
.cfm-band--ink .cfm-proof strong { color: var(--apricot); }
.cfm-proof span { font-size: 15px; line-height: 1.45; color: var(--ink-soft); max-width: 24ch; }
.cfm-band--ink .cfm-proof span { color: rgba(255, 255, 255, .78); }
.cfm-proof-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 36px; font-size: 14.5px; color: var(--muted); }
.cfm-proof-foot a { font-weight: 600; }

/* Bandeau intra */
.cfm-intra { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 64px; align-items: center; }
.cfm-intra p { max-width: 58ch; margin-top: -12px; color: rgba(255, 255, 255, .8); font-size: 1.1rem; }
.cfm-intra__actions { display: grid; gap: 14px; justify-items: start; }
.cfm-intra__actions a.cfm-link { color: #fff; }

/* Barre d'action mobile */
.cfm-mbar { display: none; }

/* ------------------------------------------------------------------ */
/* Cartes formation                                                    */
/* ------------------------------------------------------------------ */
.cfm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.cfm-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 24px; border: 1.5px solid var(--line); border-radius: var(--r-lg); background: var(--paper); transition: border-color .15s, box-shadow .15s; }
.cfm-card:hover { border-color: var(--blue); box-shadow: 0 18px 40px -24px rgba(70, 103, 174, .55); }
.cfm-card:focus-within { border-color: var(--blue); }
.cfm-card__theme { font-size: 14px; font-weight: 600; color: var(--blue); }
.cfm .cfm-card__title { font: 400 1.45rem/1.2 var(--display); color: var(--ink); text-wrap: balance; }
.cfm-card__title a { color: inherit !important; }
.cfm-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.cfm-card__title a:focus-visible { outline: none; }
.cfm-card__title a:focus-visible::after { outline: 3px solid var(--apricot); outline-offset: 3px; }
.cfm-card__facts { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.cfm-card__facts li { padding: 4px 12px; border-radius: 999px; background: var(--mist); font-size: 14px; color: var(--ink-soft); }
.cfm-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.cfm-card__when { display: flex; align-items: center; gap: 12px; min-width: 0; font-size: 14.5px; line-height: 1.35; }
.cfm-card__when small { display: block; color: var(--muted); font-size: 13px; }
.cfm-card__stub { display: grid; place-items: center; align-content: center; width: 48px; height: 48px; flex: none; border-radius: 10px; background: var(--blue); color: #fff; line-height: 1; }
.cfm-card__stub b { font: 400 21px/1 var(--display); }
.cfm-card__stub i { margin-top: 2px; font: 600 11px/1 var(--text); font-style: normal; }
.cfm-card__price { flex: none; font-weight: 600; font-size: 15px; text-align: right; }
.cfm-card__price small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }

/* ------------------------------------------------------------------ */
/* Catalogue                                                           */
/* ------------------------------------------------------------------ */
.cfm-cat-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); background: var(--blue); color: #fff; }
.cfm-cat-hero .cfm-h1 { max-width: 16ch; }
.cfm-cat-hero .cfm-lead { margin-top: 20px; color: rgba(255, 255, 255, .88); }
.cfm-search { position: relative; max-width: 760px; margin-top: clamp(28px, 4vw, 44px); }
.cfm-search input[type="search"] { width: 100%; height: 64px; padding: 0 24px 0 60px; border: 0; border-radius: 999px; background: #fff; color: var(--ink); font: 400 18px var(--text); box-shadow: 0 20px 50px -20px rgba(17, 30, 60, .5); -webkit-appearance: none; appearance: none; }
.cfm-search input::placeholder { color: var(--muted); }
.cfm-search .cfm-ico { position: absolute; left: 24px; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); color: var(--blue); }
.cfm-catalogue { padding-bottom: clamp(56px, 7vw, 96px); }
.cfm-cat-tools { padding-top: 28px; padding-bottom: 8px; }
.cfm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.cfm-chip { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); font-size: 15px; color: var(--ink); cursor: pointer; transition: border-color .15s, background-color .15s, color .15s; }
.cfm-chip:hover { border-color: var(--blue); }
.cfm-chip input { position: absolute; opacity: 0; pointer-events: none; }
.cfm-chip small { color: var(--muted); font-size: 13px; }
.cfm-chip:has(input:checked) { border-color: var(--ink); background: var(--ink); color: #fff; }
.cfm-chip:has(input:checked) small { color: rgba(255, 255, 255, .7); }
.cfm-chip:has(input:focus-visible) { outline: 3px solid var(--apricot); outline-offset: 2px; }
.cfm-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 24px 0 20px; }
.cfm-count { font-size: 16px; }
.cfm-count strong { font: 400 1.6rem/1 var(--display); margin-right: 4px; }
.cfm-selects { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cfm-select select { height: 44px; padding: 0 40px 0 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322323d' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center / 16px no-repeat; color: var(--ink); font: 400 15px var(--text); cursor: pointer; -webkit-appearance: none; appearance: none; }
.cfm-select select:hover { border-color: var(--blue); }
.cfm-toggle { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
.cfm-toggle input { width: 20px; height: 20px; margin: 0; accent-color: var(--blue); }
.cfm-empty { padding: 48px; border-radius: var(--r-lg); background: var(--mist); text-align: center; }
.cfm-empty p { max-width: 52ch; margin: 0 auto 8px; }
.cfm-empty .cfm-row { justify-content: center; margin-top: 20px; }
.cfm-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Catalogue compact (pages thématiques Elementor) */
.cfm-catalogue--embed { padding-bottom: 0; }
.cfm-catalogue--embed .cfm-cat-tools { padding-top: 0; }
.cfm-catalogue--embed .cfm-searchbar { position: relative; flex: 1 1 280px; max-width: 420px; }
.cfm-catalogue--embed .cfm-searchbar input { width: 100%; height: 44px; padding: 0 16px 0 44px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); font: 400 15px var(--text); color: var(--ink); }
.cfm-catalogue--embed .cfm-searchbar .cfm-ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--blue); }

/* Sur mesure */
.cfm-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 64px; align-items: center; }
.cfm-cta p { max-width: 58ch; margin-top: -12px; color: rgba(255, 255, 255, .8); font-size: 1.1rem; }

/* ------------------------------------------------------------------ */
/* Agenda                                                              */
/* ------------------------------------------------------------------ */
.cfm-agenda { padding: 32px 0 clamp(56px, 7vw, 96px); }
.cfm-agenda__month + .cfm-agenda__month { margin-top: 48px; }
.cfm-agenda__month .cfm-h2 { margin-bottom: 18px; }
.cfm-agenda__list { display: grid; gap: 12px; }
.cfm-agenda__row { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 14px 16px 14px 14px; border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--paper); }
.cfm-agenda__row:hover { border-color: var(--blue); }
.cfm-agenda__row .cfm-ticket__date { height: 72px; }
.cfm-agenda__main { display: grid; gap: 4px; min-width: 0; }
.cfm-agenda__title { font: 400 1.25rem/1.25 var(--display); color: var(--ink) !important; }
.cfm-agenda__title:hover { color: var(--blue) !important; }
.cfm-agenda__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14.5px; color: var(--muted); }
.cfm-agenda .cfm-chips { margin-bottom: 32px; }

/* ------------------------------------------------------------------ */
/* Adaptations                                                         */
/* ------------------------------------------------------------------ */
@media (max-width: 1080px) {
	.cfm-layout { grid-template-columns: minmax(0, 1fr); }
	.cfm-hero, .cfm-aside, .cfm-content { grid-column: 1; }
	.cfm-aside { grid-row: auto; padding-top: 0; margin-top: -40px; }
	.cfm-panel { position: static; }
	.cfm-content { padding-top: 56px; }
	.cfm-mbar { position: fixed; z-index: 50; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 20px; border-radius: 999px; background: var(--ink); color: #fff; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .45); transform: translateY(0); transition: transform .25s, opacity .25s; }
	.cfm-mbar strong { font-weight: 600; font-size: 15px; line-height: 1.2; }
	.cfm-mbar small { display: block; font-size: 12.5px; color: rgba(255, 255, 255, .7); }
	.cfm-mbar .cfm-btn { min-height: 46px; padding: 10px 20px; font-size: 15px; }
	.cfm-mbar.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }
	.cfm-voices { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
	.cfm { font-size: 16px; }
	.cfm-pair, .cfm-infos, .cfm-dates, .cfm-intra, .cfm-cta { grid-template-columns: minmax(0, 1fr); }
	.cfm-facts { gap: 16px 28px; }
	.cfm-panel { padding: 22px; }
	.cfm-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px; scrollbar-width: none; }
	.cfm-chips::-webkit-scrollbar { display: none; }
	.cfm-chip { flex: none; }
	.cfm-toolbar { align-items: flex-start; flex-direction: column; }
	.cfm-grid { grid-template-columns: minmax(0, 1fr); }
	.cfm-agenda__row { grid-template-columns: 60px minmax(0, 1fr); }
	.cfm-agenda__row .cfm-ticket__date { height: 60px; }
	.cfm-agenda__row .cfm-btn { grid-column: 1 / -1; }
	.cfm-step { grid-template-columns: 40px minmax(0, 1fr); gap: 14px; }
	.cfm-step::before { width: 40px; height: 40px; font-size: 18px; }
	.cfm-step::after { left: 19px; top: 48px; }
	.cfm-step > div { padding-top: 6px; }
	.cfm-search input[type="search"] { height: 56px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
	.cfm *, .cfm *::before, .cfm *::after { transition: none !important; scroll-behavior: auto !important; }
}
@media print {
	.cfm-aside, .cfm-mbar, .cfm-band--ink { display: none !important; }
	.cfm-layout { display: block; }
}

/* Compléments */
.cfm-page { background: var(--paper); }
.cfm-cat-agenda { margin-top: 32px; }
.cfm-cat-agenda .cfm-ico { width: 20px; height: 20px; }
.cfm-panel__foot .cfm-ico, .cfm-proof-foot .cfm-ico { width: 20px; height: 20px; color: var(--blue); }

.cfm .cfm-btn, .cfm .cfm-link, .cfm .cfm-chip, .cfm button { text-transform: none; letter-spacing: normal; }
.cfm-band--tight { padding: clamp(48px, 6vw, 72px) 0; }
.cfm-cat-hero .cfm-lead + .cfm-lead { margin-top: 12px; }
.cfm-cat-hero .cfm-crumbs { margin-bottom: 24px; }
.cfm-count--embed { margin: 0 0 16px; color: var(--muted); }
.cfm-count--embed strong { font: inherit; font-weight: 600; color: var(--ink); margin: 0; }
.cfm-themes { display: flex; flex-wrap: wrap; gap: 10px; }
.cfm-themes a { display: inline-block; padding: 12px 20px; border: 1.5px solid var(--line); border-radius: 999px; color: var(--ink) !important; font-weight: 600; font-size: 15px; }
.cfm-themes a:hover { border-color: var(--blue); color: var(--blue) !important; }
.cfm-catalogue--embed .cfm-toolbar { margin-top: 0; }

.cfm-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px clamp(40px, 6vw, 96px); align-items: end; }
.cfm-split .cfm-h1 { max-width: none; }
.cfm-split .cfm-lead { margin-top: 0; }
@media (max-width: 900px) { .cfm-split { grid-template-columns: minmax(0, 1fr); } }

@media (max-width: 1080px) {
	body.cfm-single #ast-scroll-top, body.cfm-single .cky-btn-revisit-wrapper { bottom: 88px !important; }
}
@media (max-width: 760px) {
	.cfm-selects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
	.cfm-select select { width: 100%; }
	.cfm-toggle { grid-column: 1 / -1; }
	.cfm-catalogue--embed .cfm-searchbar { max-width: none; width: 100%; }
}

/* Blocs insérés dans les pages Elementor */
.cfm-agenda--short { padding: 0; text-align: left; }
.cfm-quicksearch { position: relative; display: flex; align-items: center; gap: 8px; max-width: 720px; margin: 0 auto; padding: 6px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; box-shadow: 0 18px 40px -24px rgba(34, 50, 61, .4); }
.cfm-quicksearch .cfm-ico { position: absolute; left: 22px; width: 20px; height: 20px; color: var(--blue); }
.cfm-quicksearch input[type="search"] { flex: 1; min-width: 0; height: 50px; padding: 0 12px 0 48px; border: 0 !important; background: transparent !important; box-shadow: none !important; color: var(--ink); font: 400 17px var(--text); -webkit-appearance: none; appearance: none; }
.cfm-quicksearch input:focus { outline: none; }
.cfm-quicksearch:focus-within { border-color: var(--blue); }
.cfm-quicksearch .cfm-btn { min-height: 50px; }
@media (max-width: 560px) { .cfm-quicksearch .cfm-btn { padding: 12px 18px; } }

/* ------------------------------------------------------------------ */
/* Pages de formulaire (Gravity Forms)                                 */
/* ------------------------------------------------------------------ */
.cfm-form-hero { padding-bottom: clamp(96px, 10vw, 140px); }
.cfm-form-hero .cfm-crumbs { margin-bottom: 20px; }
.cfm-form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(28px, 4vw, 56px); align-items: start; margin-top: calc(-1 * clamp(64px, 7vw, 96px)); padding-bottom: clamp(56px, 7vw, 96px); position: relative; z-index: 2; }
.cfm-form-card { padding: clamp(24px, 4vw, 48px); border-radius: var(--r-lg); background: var(--paper); box-shadow: 0 1px 2px rgba(34, 50, 61, .06), 0 30px 70px -30px rgba(34, 50, 61, .35); min-width: 0; }
.cfm-form-aside { display: grid; gap: 16px; position: sticky; top: 112px; }
.admin-bar .cfm-form-aside { top: 144px; }
.cfm-recap, .cfm-next, .cfm-contact-card { padding: 24px; border-radius: var(--r-lg); background: var(--paper); border: 1.5px solid var(--line); }
.cfm-recap { border: 0; background: var(--blue-wash); }
.cfm-recap__label { margin-bottom: 10px; font-size: 14px; font-weight: 600; color: var(--muted); }
.cfm-recap__title { margin-bottom: 14px; font: 400 1.4rem/1.2 var(--display); }
.cfm-recap__title a { color: var(--ink) !important; }
.cfm-recap .cfm-ticket { margin-bottom: 14px; cursor: default; }
.cfm-recap__facts { display: grid; gap: 8px; font-size: 15px; }
.cfm-recap__facts div { display: flex; justify-content: space-between; gap: 16px; }
.cfm-recap__facts dt { color: var(--muted); }
.cfm-recap__facts dd { font-weight: 600; text-align: right; }
.cfm-next__list { counter-reset: n; display: grid; gap: 12px; font-size: 15px; line-height: 1.5; }
.cfm-next__list li { counter-increment: n; position: relative; padding-left: 38px; }
.cfm-next__list li::before { content: counter(n); position: absolute; left: 0; top: -1px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--apricot-wash); color: #9a4d17; font: 600 13px/1 var(--text); }
.cfm-contact-card { display: grid; gap: 12px; font-size: 15px; }
.cfm-contact-card a, .cfm-contact-card p { display: flex; align-items: flex-start; gap: 10px; color: var(--ink) !important; font-weight: 600; }
.cfm-contact-card p { font-weight: 400; color: var(--ink-soft) !important; }
.cfm-contact-card .cfm-ico { width: 20px; height: 20px; margin-top: 1px; color: var(--blue); }
.cfm-contact-card__q { padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; }

/* Champs */
.cfm-form-card .gform_wrapper.gravity-theme { margin: 0; }
.cfm-form-card .gform_wrapper .gform_fields { grid-column-gap: 20px !important; grid-row-gap: 22px !important; }
.cfm-form-card .gform_wrapper .gfield_label, .cfm-form-card .gform_wrapper legend.gfield_label { margin-bottom: 8px !important; padding: 0 !important; font: 600 15px/1.35 var(--text) !important; color: var(--ink) !important; }
.cfm-form-card .gform_wrapper .gfield_required { margin-left: 4px; color: #b5541b !important; font-size: 14px !important; font-weight: 400 !important; }
.cfm-form-card .gform_wrapper .gfield_required_text { font-size: 13px; }
.cfm-form-card .gform_wrapper .gform-field-label--type-sub, .cfm-form-card .gform_wrapper .ginput_complex label { margin-top: 6px !important; font: 400 13px/1.3 var(--text) !important; color: var(--muted) !important; }
.cfm-form-card .gform_wrapper input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
.cfm-form-card .gform_wrapper select,
.cfm-form-card .gform_wrapper textarea { width: 100%; min-height: 52px; padding: 12px 16px !important; border: 1.5px solid var(--line) !important; border-radius: 14px !important; background: #fff !important; color: var(--ink) !important; font: 400 16px/1.4 var(--text) !important; box-shadow: none !important; transition: border-color .15s, box-shadow .15s; }
.cfm-form-card .gform_wrapper textarea { min-height: 140px; resize: vertical; }
.cfm-form-card .gform_wrapper input::placeholder, .cfm-form-card .gform_wrapper textarea::placeholder { color: #9aa6af; }
.cfm-form-card .gform_wrapper input:focus, .cfm-form-card .gform_wrapper select:focus, .cfm-form-card .gform_wrapper textarea:focus { outline: none !important; border-color: var(--blue) !important; box-shadow: 0 0 0 4px rgba(70, 103, 174, .15) !important; }
.cfm-form-card .gform_wrapper .gfield.cfm-readonly input[readonly]:not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="button"]):not([type="hidden"]) { border-color: transparent !important; background: var(--blue-wash) !important; color: var(--ink) !important; font-weight: 600 !important; cursor: default; }
.cfm-form-card .gform_wrapper .gfield_radio { display: flex; flex-wrap: wrap; gap: 8px; }
.cfm-form-card .gform_wrapper .gchoice { position: relative; margin: 0 !important; }
.cfm-form-card .gform_wrapper .gchoice input { position: absolute; opacity: 0; }
.cfm-form-card .gform_wrapper .gchoice label { display: inline-flex !important; align-items: center; max-width: none !important; margin: 0 !important; padding: 10px 18px !important; border: 1.5px solid var(--line); border-radius: 999px; font: 400 15px/1.3 var(--text) !important; color: var(--ink) !important; cursor: pointer; }
.cfm-form-card .gform_wrapper .gchoice input:checked + label { border-color: var(--ink); background: var(--ink); color: #fff !important; }
.cfm-form-card .gform_wrapper .gchoice input:focus-visible + label { outline: 3px solid var(--apricot); outline-offset: 2px; }
.cfm-form-card .gform_wrapper .gsection { margin-top: 12px !important; padding: 0 0 8px !important; border-bottom: 1px solid var(--line) !important; }
.cfm-form-card .gform_wrapper .gsection_title { font: 400 1.4rem/1.2 var(--display) !important; color: var(--ink) !important; }
.cfm-form-card .gform_wrapper .gfield_description { margin-top: 6px !important; padding: 0 !important; font-size: 14px !important; color: var(--muted) !important; }
.cfm-form-card .gform_wrapper .gfield--type-html { font-size: 14px; color: var(--muted); }
/* Erreurs */
.cfm-form-card .gform_wrapper .gform_validation_errors { margin: 0 0 24px !important; padding: 16px 20px !important; border: 0 !important; border-radius: 14px !important; background: #fdeee6 !important; box-shadow: none !important; }
.cfm-form-card .gform_wrapper .gform_validation_errors h2 { margin: 0 !important; font: 600 15px/1.4 var(--text) !important; color: #8f3d10 !important; }
.cfm-form-card .gform_wrapper .gform_validation_errors h2 .gform-icon { display: none; }
.cfm-form-card .gform_wrapper .gfield_error input, .cfm-form-card .gform_wrapper .gfield_error textarea, .cfm-form-card .gform_wrapper .gfield_error select { border-color: #d0662a !important; }
.cfm-form-card .gform_wrapper .gfield_error .gfield_label { color: var(--ink) !important; }
.cfm-form-card .gform_wrapper .validation_message { margin-top: 8px !important; padding: 0 !important; border: 0 !important; background: none !important; font-size: 14px !important; color: #a2440f !important; }
/* Envoi */
.cfm-form-card .gform_wrapper .gform_footer { margin: 28px 0 0 !important; padding: 0 !important; }
.cfm-form-card .gform_wrapper .gform_footer input[type="submit"], .cfm-form-card .gform_wrapper .gform_footer button, .cfm-form-card .gform_wrapper .gform_page_footer input[type="submit"], .cfm-form-card .gform_wrapper .gform_page_footer input[type="button"] { width: 100%; min-height: 58px; margin: 0 !important; padding: 16px 32px !important; border: 0 !important; border-radius: 999px !important; background: var(--apricot) !important; color: var(--ink) !important; font: 600 17px/1.2 var(--text) !important; text-transform: none !important; letter-spacing: normal !important; cursor: pointer; transition: background-color .18s; }
.cfm-form-card .gform_wrapper .gform_footer input[type="submit"]:hover, .cfm-form-card .gform_wrapper .gform_footer button:hover { background: var(--apricot-deep) !important; }
.cfm-form-card .gform_ajax_spinner { margin-left: 12px; }
.cfm-form-card .gform_confirmation_message { padding: 32px; border-radius: var(--r-md); background: #e3f3ea; color: #1f4f36; font-size: 1.1rem; line-height: 1.55; }
.cfm-form-legal { margin-top: 16px; font-size: 13px; line-height: 1.5; color: var(--muted); }

@media (max-width: 1080px) {
	.cfm-form-layout { grid-template-columns: minmax(0, 1fr); }
	.cfm-form-aside { display: contents; }
	.cfm-recap { order: -1; }
	.cfm-next, .cfm-contact-card { order: 2; }
}
@media (max-width: 640px) {
	.cfm-form-card .gform_wrapper .gfield--width-half { grid-column: span 12 !important; }
}

.cfm-form-card .gform_wrapper .gform_required_legend { margin: 0 0 20px !important; font-size: 14px; color: var(--muted); }
.cfm-form-card .gform_wrapper .gform_required_legend .gfield_required { margin: 0; }

/* Programme repliable */
.cfm-step__d { padding-top: 12px; }
.cfm-step__d > summary { list-style: none; cursor: pointer; }
.cfm-step__d > summary::-webkit-details-marker { display: none; }
.cfm-step__d > summary .cfm-h3 { display: inline; }
@media (max-width: 760px) {
	.cfm-step__d > summary { position: relative; padding-right: 36px; }
	.cfm-step__d > summary::after { content: ""; position: absolute; right: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--mist) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322323d' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .2s; }
	.cfm-step__d[open] > summary::after { transform: rotate(180deg); }
	.cfm-step__d[open] > summary { margin-bottom: 10px; }
	.cfm-step { padding-bottom: 20px; }

	/* Fiche */
	.cfm-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
	.cfm-hero .cfm-h1 { font-size: clamp(2.05rem, 9vw, 2.6rem); }
	.cfm-hero__chapo { font-size: 1.05rem; }
	.cfm .cfm-h2 { font-size: clamp(1.55rem, 7vw, 1.95rem); margin-bottom: 20px; }
	.cfm-sec + .cfm-sec { margin-top: 48px; }
	.cfm-band { padding: 52px 0; }
	.cfm-voice-lead blockquote p { font-size: 1.45rem; }

	/* Cartes */
	.cfm-card { padding: 20px; gap: 12px; }
	.cfm .cfm-card__title { font-size: 1.3rem; }

	/* Agenda compact : le bouton reste dans la colonne du texte */
	.cfm-agenda__row { gap: 14px; padding: 12px; align-items: start; }
	.cfm-agenda__row .cfm-btn { grid-column: 2 !important; justify-self: start; min-height: 40px; padding: 8px 18px; font-size: 14px; }
	.cfm-agenda__title { font-size: 1.1rem; }

	/* Filtres du catalogue : une rangée qui défile */
	.cfm-selects { display: flex; flex-wrap: nowrap; overflow-x: auto; width: calc(100% + 2 * var(--gutter)); margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 8px; scrollbar-width: none; }
	.cfm-selects::-webkit-scrollbar { display: none; }
	.cfm-select { flex: none; }
	.cfm-select select { width: auto; }
	.cfm-toggle { flex: none; white-space: nowrap; }
	.cfm-catalogue--embed .cfm-searchbar { flex-basis: 100%; }
	.cfm-cat-hero { padding: 40px 0 32px; }
	.cfm-form-hero { padding-bottom: 96px; }
	.cfm-form-layout { margin-top: -64px; }
}
/* La barre basse du thème remplace la barre de réservation de la fiche */
.cf-has-bottomnav .cfm-mbar { display: none !important; }

/* Formulaires : retour bien visible vers la formation choisie (clic trop rapide sur « S'inscrire »). */
.cfm-back { display: inline-flex; align-items: center; gap: 12px; max-width: 100%; margin-bottom: 22px; padding: 10px 18px 10px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); color: #fff !important; font-size: 15px; line-height: 1.25; text-decoration: none !important; transition: background .2s, box-shadow .2s; }
.cfm-back:hover, .cfm-back:focus-visible { background: rgba(255, 255, 255, .2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55); }
.cfm-back svg { flex: 0 0 auto; width: 30px; height: 30px; padding: 7px; border-radius: 50%; background: var(--apricot, #F4A76E); color: #22323D; transform: scaleX(-1); }
.cfm-back > span { display: flex; flex-direction: column; min-width: 0; }
.cfm-back__title { overflow: hidden; color: rgba(255, 255, 255, .88); font-size: 13.5px; text-overflow: ellipsis; white-space: nowrap; }
.cfm-recap__links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: -4px 0 16px; font-size: 14.5px; }
.cfm-recap__links a { color: var(--blue, #4667AE) !important; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
