/* ============================================================
   IFCIA - Tunnel d'inscription "Parcours individuel" (Phase 2, Lot 2)
   D'apres Figma node 1-40837 (etapes Session/Infos/Financement/Validation/Succes).
   Style STANDARD du site (tokens globaux, charte magenta). Scope .ifcia-tunnel.
   ============================================================ */

.ifcia-tunnel { min-height: 100vh; background: var(--background, #f9fafb);
	font-family: var(--font-inter, 'Inter', system-ui, sans-serif); color: var(--base, #111827); }

/* En-tete minimal : logo + "Paiement securise" */
.ifcia-tunnel__topbar { background: #fff; border-bottom: 1px solid var(--card-border, #eef0f2); }
.ifcia-tunnel__topbar-inner { max-width: 1232px; margin: 0 auto; padding: 18px 24px;
	display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ifcia-tunnel__logo img { height: 34px; width: auto; display: block; }
.ifcia-tunnel__secure { display: inline-flex; align-items: center; gap: 8px; color: var(--contrast, #6b7280); font-size: 14px; }
.ifcia-tunnel__secure svg { width: 16px; height: 16px; color: var(--green, #10b981); }

/* Grille : contenu principal (carte) + sidebar recap */
.ifcia-tunnel__grid { max-width: 1232px; margin: 0 auto; padding: 40px 24px 64px;
	display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 32px; align-items: start; }
@media (max-width: 980px) { .ifcia-tunnel__grid { grid-template-columns: 1fr; } }

/* Carte principale */
.ifcia-tunnel__card { background: #fff; border: 1px solid var(--card-border, #eef0f2); border-radius: 24px;
	box-shadow: 0 1px 3px rgba(17,24,39,.05), 0 20px 40px -24px rgba(17,24,39,.12); padding: 28px 32px 32px; }
@media (max-width: 560px) { .ifcia-tunnel__card { padding: 20px 18px 24px; border-radius: 18px; } }

/* Stepper (onglets d'etapes) */
.ifcia-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 4px; margin-bottom: 26px; }
.ifcia-step { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px;
	font-size: 13.5px; font-weight: 600; color: var(--contrast, #6b7280); white-space: nowrap; }
.ifcia-step__ico { width: 15px; height: 15px; }
.ifcia-step.is-done { color: var(--base, #111827); }
.ifcia-step.is-done .ifcia-step__ico { color: var(--green, #10b981); }
.ifcia-step.is-active { background: var(--main, #e91e8c); color: #fff; }
.ifcia-step.is-active .ifcia-step__ico { color: #fff; }

/* Titre d'etape (marqueur ==rose== gere par ifcia_highlight) */
.ifcia-tunnel__title { font-family: var(--font-sora, 'Sora', system-ui, sans-serif); font-weight: 800;
	font-size: 30px; line-height: 1.1; letter-spacing: -.02em; margin: 2px 0 6px; }
.ifcia-tunnel__lead { color: var(--contrast, #6b7280); font-size: 15px; margin: 0 0 22px; }

/* Cartes de session (etape 1) */
.ifcia-session-list { display: flex; flex-direction: column; gap: 12px; }
.ifcia-session { position: relative; display: flex; align-items: center; gap: 14px; cursor: pointer;
	border: 1.5px solid var(--card-border, #e5e7eb); border-radius: 14px; padding: 18px 20px; transition: border-color .15s, box-shadow .15s; }
.ifcia-session:hover { border-color: var(--contrast-3, #d1d5db); }
.ifcia-session input { position: absolute; opacity: 0; pointer-events: none; }
.ifcia-session__radio { flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%;
	border: 2px solid var(--contrast-3, #d1d5db); position: relative; transition: border-color .15s; }
.ifcia-session__body { flex: 1; min-width: 0; }
.ifcia-session__date { display: block; font-family: var(--font-sora, 'Sora', system-ui, sans-serif); font-weight: 700; font-size: 16px; color: var(--base, #111827); }
.ifcia-session__meta { display: block; color: var(--contrast, #6b7280); font-size: 13.5px; margin-top: 3px; }
.ifcia-session__places { flex-shrink: 0; font-size: 12.5px; font-weight: 700; padding: 4px 11px; border-radius: 999px; white-space: nowrap; }
.ifcia-session__places.is-low { background: #fef3c7; color: #92400e; }
.ifcia-session__places.is-ok { background: #d1fae5; color: #065f46; }
/* Etat selectionne : cadre noir + radio magenta plein (comme Figma) */
.ifcia-session:has(input:checked) { border-color: var(--base, #111827); box-shadow: 0 0 0 1px var(--base, #111827); }
.ifcia-session:has(input:checked) .ifcia-session__radio { border-color: var(--main, #e91e8c); }
.ifcia-session:has(input:checked) .ifcia-session__radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--main, #e91e8c); }
.ifcia-session.is-full { opacity: .55; cursor: not-allowed; }

/* Pied de carte : Retour + Continuer */
.ifcia-tunnel__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px;
	margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--card-border, #eef0f2); }
.ifcia-tunnel__back { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; cursor: pointer;
	color: var(--base, #111827); font-weight: 600; font-size: 15px; text-decoration: none; }
.ifcia-tunnel__back svg { width: 18px; height: 18px; }
.ifcia-tunnel__next { display: inline-flex; align-items: center; gap: 9px; border: 0; cursor: pointer;
	background: var(--main, #e91e8c); color: #fff; font-weight: 700; font-size: 15.5px; padding: 15px 28px; border-radius: 999px;
	font-family: var(--font-inter, 'Inter', system-ui, sans-serif); transition: background .15s, transform .12s; }
.ifcia-tunnel__next:hover { background: var(--main-accent, #be185d); transform: translateY(-1px); }
.ifcia-tunnel__next svg { width: 18px; height: 18px; }

/* ---- Sidebar recap ---- */
.ifcia-tunnel__aside { display: flex; flex-direction: column; gap: 16px; }
.ifcia-recap { background: #fff; border: 1px solid var(--card-border, #eef0f2); border-radius: 20px; overflow: hidden;
	box-shadow: 0 1px 3px rgba(17,24,39,.05), 0 20px 40px -28px rgba(17,24,39,.12); }
.ifcia-recap__img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; display: block; background: var(--background-alt, #f3f4f6); }
.ifcia-recap__body { padding: 20px 22px 22px; }
.ifcia-recap__label { display: inline-block; background: rgba(233,30,140,.1); color: var(--main, #e91e8c);
	font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; margin-bottom: 12px; }
.ifcia-recap__title { font-family: var(--font-sora, 'Sora', system-ui, sans-serif); font-weight: 800; font-size: 20px; letter-spacing: -.01em; margin: 0 0 14px; }
.ifcia-recap__facts { list-style: none; margin: 0 0 4px; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.ifcia-recap__facts[hidden] { display: none; }
.ifcia-recap__facts li { display: flex; align-items: center; gap: 10px; color: var(--base, #111827); font-size: 14px; }
.ifcia-recap__facts svg { width: 17px; height: 17px; color: var(--contrast-2, #9ca3af); flex-shrink: 0; }
.ifcia-recap__sep { height: 1px; background: var(--card-border, #eef0f2); margin: 18px 0; }
.ifcia-recap__lines { display: flex; flex-direction: column; gap: 10px; }
.ifcia-recap__line { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--base, #111827); }
.ifcia-recap__line .muted { color: var(--contrast, #6b7280); }
.ifcia-recap__line svg { width: 16px; height: 16px; color: var(--green, #10b981); }
.ifcia-recap__total { display: flex; align-items: baseline; justify-content: space-between; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--card-border, #eef0f2); }
.ifcia-recap__total-label { font-weight: 700; font-size: 15px; }
.ifcia-recap__total-amount { font-family: var(--font-sora, 'Sora', system-ui, sans-serif); font-weight: 800; font-size: 24px; }
.ifcia-recap__line--promo .muted { color: var(--main, #e91e8c); }
.ifcia-recap__discount { color: var(--main, #e91e8c); font-weight: 700; }

/* Code promo (saisie dans le recap) */
.ifcia-promo { margin-top: 14px; }
.ifcia-promo__toggle { display: inline-flex; align-items: center; gap: 7px; padding: 0; background: none; border: 0; cursor: pointer; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--main, #e91e8c); }
.ifcia-promo__toggle:hover { text-decoration: underline; }
.ifcia-promo__tag { width: 16px; height: 16px; flex: 0 0 auto; }
.ifcia-promo__row { display: flex; gap: 8px; margin-top: 10px; }
.ifcia-promo__input { flex: 1 1 auto; min-width: 0; padding: 10px 12px; border: 1px solid var(--card-border, #e5e7eb); border-radius: 10px; font: inherit; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; background: #fff; color: var(--base, #111827); }
.ifcia-promo__input:focus { outline: none; border-color: var(--main, #e91e8c); box-shadow: 0 0 0 3px rgba(233, 30, 140, .14); }
.ifcia-promo__input::placeholder { text-transform: none; letter-spacing: normal; color: var(--contrast-2, #9ca3af); }
.ifcia-promo__apply { flex: 0 0 auto; padding: 10px 16px; border: 0; border-radius: 10px; background: var(--base, #111827); color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .15s; }
.ifcia-promo__apply:hover { background: #000; }
.ifcia-promo__apply:disabled, .ifcia-promo__apply.is-loading { opacity: .6; cursor: default; }
.ifcia-promo__msg { margin: 9px 0 0; font-size: 13px; line-height: 1.4; color: var(--contrast, #6b7280); }
.ifcia-promo__msg.is-ok { color: var(--green, #10b981); font-weight: 600; }
.ifcia-promo__msg.is-error { color: var(--main-accent, #be185d); }
/* L'attribut [hidden] doit l'emporter sur les display:flex ci-dessus (sinon ligne remise /
   champ promo restent visibles apres reset ou au chargement). */
.ifcia-recap__line[hidden], .ifcia-promo__row[hidden] { display: none !important; }

/* Bloc reassurance */
.ifcia-reassure { background: #fff; border: 1px solid var(--card-border, #eef0f2); border-radius: 20px; padding: 20px 22px; }
.ifcia-reassure ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ifcia-reassure li { display: flex; align-items: center; gap: 11px; font-size: 14px; color: var(--base, #111827); }
.ifcia-reassure svg { width: 18px; height: 18px; color: var(--green, #10b981); flex-shrink: 0; }

/* ---- Etape 1 (mode PANIER) : revue + choix de session par formation ---- */
.ifcia-cartreview { display: flex; flex-direction: column; gap: 14px; }
.ifcia-cartreview__item { border: 1.5px solid var(--card-border, #e5e7eb); border-radius: 14px; padding: 16px 18px; }
.ifcia-cartreview__top { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.ifcia-cartreview__title { font-family: var(--font-sora, 'Sora', system-ui, sans-serif); font-weight: 700; font-size: 16px; color: var(--base, #111827); }
.ifcia-cartreview__price { font-family: var(--font-sora, 'Sora', system-ui, sans-serif); font-weight: 700; font-size: 15px; color: var(--main, #e91e8c); white-space: nowrap; }

/* ---- Etape 2 : INFOS (formulaire) ---- */
.ifcia-fieldset { margin-bottom: 26px; }
.ifcia-fieldset:last-of-type { margin-bottom: 0; }
.ifcia-fieldset__legend { display: flex; align-items: center; gap: 9px; font-family: var(--font-sora, 'Sora', system-ui, sans-serif);
	font-weight: 700; font-size: 15px; color: var(--base, #111827); margin: 0 0 14px; }
.ifcia-fieldset__legend svg { width: 17px; height: 17px; color: var(--main, #e91e8c); }
.ifcia-fgrid { display: grid; gap: 14px 16px; grid-template-columns: 1fr 1fr; }
.ifcia-fgrid--3 { grid-template-columns: 1fr 1fr 1fr; }
.ifcia-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ifcia-field.is-full { grid-column: 1 / -1; }
.ifcia-field.is-span2 { grid-column: span 2; }
.ifcia-field label { font-size: 13.5px; font-weight: 600; color: var(--base, #111827); }
.ifcia-field label .req { color: var(--main, #e91e8c); }
.ifcia-field input, .ifcia-field select {
	width: 100%; box-sizing: border-box; padding: 12px 14px; font-size: 15px; font-family: inherit;
	color: var(--base, #111827); background: #fff; border: 1.5px solid var(--card-border, #e5e7eb); border-radius: 12px; transition: border-color .15s, box-shadow .15s; }
.ifcia-field input::placeholder { color: var(--contrast-2, #9ca3af); }
.ifcia-field input:focus, .ifcia-field select:focus { outline: none; border-color: var(--main, #e91e8c); box-shadow: 0 0 0 3px rgba(233,30,140,.12); }
.ifcia-field select { appearance: none; cursor: pointer;
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
	background-position: right 12px center; background-repeat: no-repeat; background-size: 18px; padding-right: 38px; }
@media (max-width: 560px) { .ifcia-fgrid, .ifcia-fgrid--3 { grid-template-columns: 1fr; } .ifcia-field.is-span2 { grid-column: 1 / -1; } }

/* ---- Etape 2 : STATUT PROFESSIONNEL (type praticien + RPPS + etudiant) ---- */
.ifcia-cond[hidden], .ifcia-cond2[hidden], .ifcia-field[hidden] { display: none; }
.ifcia-ptype { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
@media (max-width: 560px) { .ifcia-ptype { grid-template-columns: 1fr; } }
/* Message d'information selon la situation declaree. Sans message visible, la boite ne doit
   occuper AUCUNE place : sinon un blanc apparaitrait sous les deux cartes de statut. */
.ifcia-ptype__info { display: none; margin: 0 0 16px; }
.ifcia-ptype__info.is-visible { display: block; }
.ifcia-ptype__msg { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px;
	border-radius: 12px; background: color-mix(in srgb, var(--main, #e91e8c) 7%, #fff);
	border: 1px solid color-mix(in srgb, var(--main, #e91e8c) 22%, #fff);
	color: var(--base, #111827); font-size: 14px; line-height: 1.5; }
.ifcia-ptype__msg[hidden] { display: none; }
.ifcia-ptype__msg svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 1px; color: var(--main, #e91e8c); }
.ifcia-ptype__opt { position: relative; cursor: pointer; }
.ifcia-ptype__opt input { position: absolute; opacity: 0; pointer-events: none; }
.ifcia-ptype__card { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--card-border, #e5e7eb); border-radius: 14px; padding: 14px 16px; transition: border-color .15s, box-shadow .15s; height: 100%; box-sizing: border-box; }
.ifcia-ptype__opt:hover .ifcia-ptype__card { border-color: var(--contrast-3, #d1d5db); }
.ifcia-ptype__opt input:checked + .ifcia-ptype__card { border-color: var(--base, #111827); box-shadow: 0 0 0 1px var(--base, #111827); }
.ifcia-ptype__flag { font-size: 24px; line-height: 1; flex-shrink: 0; }
.ifcia-ptype__txt { display: flex; flex-direction: column; }
.ifcia-ptype__txt strong { font-family: var(--font-sora, 'Sora', system-ui, sans-serif); font-weight: 700; font-size: 14.5px; color: var(--base, #111827); }
.ifcia-ptype__txt small { color: var(--contrast, #6b7280); font-size: 12.5px; margin-top: 1px; }
.ifcia-cond2 { margin-top: 14px; }
/* RPPS input + bouton Verifier */
.ifcia-rpps { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.ifcia-rpps input { flex: 1 1 180px; min-width: 0; box-sizing: border-box; padding: 12px 14px; font-size: 15px; border: 1.5px solid var(--card-border, #e5e7eb); border-radius: 12px; }
.ifcia-rpps input:focus { outline: none; border-color: var(--main, #e91e8c); box-shadow: 0 0 0 3px rgba(233,30,140,.12); }
.ifcia-rpps__btn { flex-shrink: 0; border: 0; cursor: pointer; background: var(--base, #111827); color: #fff; font-weight: 700; font-size: 14px; padding: 0 20px; border-radius: 12px; font-family: var(--font-inter, 'Inter', sans-serif); }
.ifcia-rpps__btn:hover { background: #000; }
.ifcia-rpps__btn.is-verified { background: var(--green, #10b981); }
.ifcia-rpps__btn[disabled] { opacity: .6; cursor: default; }
.ifcia-rpps__status { font-size: 13px; margin-top: 7px; }
.ifcia-rpps__status.is-error { color: #dc2626; }
.ifcia-rpps__status.is-ok { color: #047857; }
/* Upload carte etudiant */
.ifcia-file { display: block; cursor: pointer; }
.ifcia-file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ifcia-file__label { display: flex; align-items: center; gap: 10px; border: 1.5px dashed var(--contrast-3, #d1d5db); border-radius: 12px; padding: 14px 16px; color: var(--contrast, #6b7280); font-size: 14px; transition: border-color .15s, color .15s; }
.ifcia-file__label svg { width: 20px; height: 20px; flex-shrink: 0; }
.ifcia-file:hover .ifcia-file__label { border-color: var(--main, #e91e8c); color: var(--base, #111827); }
.ifcia-file.has-file .ifcia-file__label { border-style: solid; border-color: var(--green, #10b981); color: var(--base, #111827); }
.ifcia-field__hint { font-size: 12.5px; color: var(--contrast-2, #9ca3af); margin: 6px 0 0; }
/* Encadres d'information */
.ifcia-note { display: flex; align-items: flex-start; gap: 10px; background: var(--background-alt, #f3f4f6); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; color: var(--base, #111827); line-height: 1.5; margin-top: 12px; }
.ifcia-note--warn { background: #fef3c7; color: #92400e; }
.ifcia-field textarea { width: 100%; box-sizing: border-box; padding: 12px 14px; font-size: 15px; font-family: inherit; border: 1.5px solid var(--card-border, #e5e7eb); border-radius: 12px; resize: vertical; }
.ifcia-field textarea:focus { outline: none; border-color: var(--main, #e91e8c); box-shadow: 0 0 0 3px rgba(233,30,140,.12); }

/* ---- Etape 3 : FINANCEMENT (cartes radio avec icone) ---- */
.ifcia-fin-list { display: flex; flex-direction: column; gap: 12px; }
.ifcia-fin { position: relative; display: flex; align-items: center; gap: 14px; cursor: pointer;
	border: 1.5px solid var(--card-border, #e5e7eb); border-radius: 14px; padding: 16px 18px; transition: border-color .15s, box-shadow .15s; }
.ifcia-fin:hover { border-color: var(--contrast-3, #d1d5db); }
.ifcia-fin input { position: absolute; opacity: 0; pointer-events: none; }
.ifcia-fin__icon { flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
	background: var(--background-alt, #f3f4f6); color: var(--base, #111827); }
.ifcia-fin__icon svg { width: 22px; height: 22px; }
.ifcia-fin__radio { flex-shrink: 0; order: -1; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--contrast-3, #d1d5db); position: relative; }
.ifcia-fin__body { flex: 1; min-width: 0; }
.ifcia-fin__title { font-weight: 700; font-size: 15px; color: var(--base, #111827); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ifcia-fin__desc { color: var(--contrast, #6b7280); font-size: 13.5px; margin-top: 2px; }
.ifcia-fin__badge { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #d1fae5; color: #065f46; }
.ifcia-fin:has(input:checked) { border-color: var(--base, #111827); box-shadow: 0 0 0 1px var(--base, #111827); }
.ifcia-fin:has(input:checked) .ifcia-fin__radio { border-color: var(--main, #e91e8c); }
.ifcia-fin:has(input:checked) .ifcia-fin__radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--main, #e91e8c); }

/* ---- Etape 3 : ECHEANCIER (nombre de paiements 1x/2x/3x) ---- */
.ifcia-pay[hidden] { display: none; }
.ifcia-pay { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--card-border, #e5e7eb); }
.ifcia-pay__head { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 15px; color: var(--base, #111827); }
.ifcia-pay__head svg { width: 20px; height: 20px; color: var(--main, #e91e8c); }
.ifcia-pay__lead { color: var(--contrast, #6b7280); font-size: 13.5px; margin: 4px 0 14px; }
.ifcia-pay__opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ifcia-pay__opt { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; cursor: pointer;
	border: 1.5px solid var(--card-border, #e5e7eb); border-radius: 14px; padding: 14px 16px; transition: border-color .15s, box-shadow .15s; }
.ifcia-pay__opt:hover { border-color: var(--contrast-3, #d1d5db); }
.ifcia-pay__opt input { position: absolute; opacity: 0; pointer-events: none; }
.ifcia-pay__radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--contrast-3, #d1d5db); position: relative; }
.ifcia-pay__body { display: flex; flex-direction: column; gap: 2px; }
.ifcia-pay__title { font-weight: 700; font-size: 14px; color: var(--base, #111827); }
.ifcia-pay__amt { font-size: 13px; color: var(--contrast, #6b7280); }
.ifcia-pay__opt:has(input:checked) { border-color: var(--base, #111827); box-shadow: 0 0 0 1px var(--base, #111827); }
.ifcia-pay__opt:has(input:checked) .ifcia-pay__radio { border-color: var(--main, #e91e8c); }
.ifcia-pay__opt:has(input:checked) .ifcia-pay__radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--main, #e91e8c); }
@media (max-width: 560px) { .ifcia-pay__opts { grid-template-columns: 1fr; } }

/* ---- Etape 3 : MODE DE PAIEMENT (cartes, design Figma 274-7869) ---- */
.ifcia-paylist { display: flex; flex-direction: column; gap: 12px; }
.ifcia-paycard { border: 2px solid var(--card-border, #e5e7eb); border-radius: 24px; padding: 18px 22px; transition: border-color .15s, box-shadow .15s; }
.ifcia-paycard.is-selected { border-color: #374151; }
.ifcia-paycard__row { display: flex; align-items: center; gap: 16px; cursor: pointer; position: relative; }
.ifcia-paycard__row input { position: absolute; opacity: 0; pointer-events: none; }
.ifcia-paycard__icon { flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; }
.ifcia-paycard__icon svg { width: 20px; height: 20px; }
.ifcia-paycard__icon--blue { background: #eff6ff; color: #3b82f6; }
.ifcia-paycard__icon--green { background: #ecfdf5; color: #10b981; }
.ifcia-paycard__icon--violet { background: #f5f3ff; color: #8b5cf6; }
.ifcia-paycard__icon--amber { background: #fffbeb; color: #f59e0b; }
.ifcia-paycard__radio { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--contrast-3, #d1d5db); position: relative; }
.ifcia-paycard__row:has(input:checked) .ifcia-paycard__radio { border-color: var(--main, #e91e8c); background: var(--main, #e91e8c); }
.ifcia-paycard__row:has(input:checked) .ifcia-paycard__radio::after { content: ""; position: absolute; inset: 5px; border-radius: 2px; background: #fff; }
.ifcia-paycard__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ifcia-paycard__title { font-weight: 700; font-size: 15px; color: var(--base, #111827); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ifcia-paycard__badge { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #ecfdf5; color: #10b981; }
.ifcia-paycard__desc { color: var(--contrast, #6b7280); font-size: 13px; }
/* Sous-options (echeancier / organisme) : visibles quand la carte est selectionnee */
.ifcia-paysubs { display: none; margin-top: 16px; gap: 12px; }
.ifcia-paycard.is-selected .ifcia-paysubs { display: flex; }
.ifcia-paysub { flex: 1 0 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer;
	background: #fff; border: 2px solid var(--card-border, #e5e7eb); border-radius: 16px; padding: 14px; text-align: center; position: relative; }
.ifcia-paysub input { position: absolute; opacity: 0; pointer-events: none; }
.ifcia-paysub__n { font-weight: 700; font-size: 14px; color: var(--base, #111827); }
.ifcia-paysub__amt { font-size: 12px; color: var(--contrast, #6b7280); }
.ifcia-paysub:has(input:checked) { border-color: var(--base, #111827); }
.ifcia-paysubs--pills { flex-wrap: wrap; }
.ifcia-orgpill { position: relative; cursor: pointer; }
.ifcia-orgpill input { position: absolute; opacity: 0; pointer-events: none; }
.ifcia-orgpill span { display: inline-flex; align-items: center; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--card-border, #e5e7eb);
	font-size: 13px; font-weight: 600; color: var(--contrast, #6b7280); transition: .15s; }
.ifcia-orgpill:has(input:checked) span { border-color: var(--main, #e91e8c); background: rgba(233, 30, 140, .08); color: var(--main-accent, #be185d); }
@media (max-width: 560px) { .ifcia-paysubs:not(.ifcia-paysubs--pills) { flex-wrap: wrap; } .ifcia-paysub { flex-basis: calc(50% - 6px); } }

/* ---- Modales legales (CGV / Reglement interieur) dans le tunnel ---- */
.ifcia-modal--legal .ifcia-modal__box { max-width: 820px; max-height: 88vh; display: flex; flex-direction: column; }
.ifcia-modal--legal .ifcia-modal__body { overflow-y: auto; }
.ifcia-legal-modal__title { font-family: var(--font-sora, 'Sora', sans-serif); font-size: 22px; font-weight: 800; color: var(--base, #111827); margin: 0 0 16px; }
.ifcia-legal-modal__content { color: var(--base, #111827); font-size: 15px; line-height: 1.65; }
.ifcia-legal-modal__content h2 { font-size: 19px; margin: 22px 0 8px; }
.ifcia-legal-modal__content h3 { font-size: 16px; margin: 18px 0 6px; }
.ifcia-legal-modal__content p, .ifcia-legal-modal__content ul, .ifcia-legal-modal__content ol { margin: 0 0 12px; }
.ifcia-legal-modal__content a { color: var(--main, #e91e8c); font-weight: 600; }

/* ---- Etape 4 : VALIDATION (recap + consentement) ---- */
.ifcia-vrecap { background: var(--background-alt, #f3f4f6); border-radius: 16px; padding: 22px 24px; margin-bottom: 18px; }
.ifcia-vrecap__label { font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--contrast, #6b7280); margin: 0 0 16px; }
.ifcia-vrecap__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; }
.ifcia-vrecap__grid > [hidden] { display: none; }
.ifcia-vrecap__k { font-size: 12.5px; color: var(--contrast, #6b7280); margin-bottom: 3px; }
.ifcia-vrecap__v { font-weight: 700; font-size: 15px; color: var(--base, #111827); }
@media (max-width: 480px) { .ifcia-vrecap__grid { grid-template-columns: 1fr; } }
.ifcia-consent { display: flex; align-items: flex-start; gap: 11px; background: var(--background-alt, #f3f4f6); border-radius: 14px; padding: 16px 18px; font-size: 14px; color: var(--base, #111827); line-height: 1.5; }
.ifcia-consent input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--main, #e91e8c); flex-shrink: 0; }
.ifcia-consent a { color: var(--main, #e91e8c); font-weight: 600; }

/* ---- Etape 5 : SUCCES ---- */
.ifcia-success { text-align: center; padding: 24px 8px 8px; }
.ifcia-success__icon { width: 76px; height: 76px; margin: 0 auto 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
	background: var(--green, #10b981); color: #fff; box-shadow: 0 12px 34px rgba(16,185,129,.32); }
.ifcia-success__icon svg { width: 38px; height: 38px; }
.ifcia-success__title { font-family: var(--font-sora, 'Sora', system-ui, sans-serif); font-weight: 800; font-size: 26px; letter-spacing: -.02em; margin: 0 0 10px; }
.ifcia-success__lead { color: var(--contrast, #6b7280); font-size: 15px; max-width: 440px; margin: 0 auto 26px; line-height: 1.6; }
.ifcia-success__lead a, .ifcia-email-gate .ifcia-tunnel__lead a { color: var(--main, #e91e8c); font-weight: 600; }
.ifcia-next-steps { text-align: left; display: flex; flex-direction: column; gap: 12px; max-width: 460px; margin: 0 auto; }
.ifcia-next-step { display: flex; align-items: flex-start; gap: 13px; background: var(--background-alt, #f3f4f6); border-radius: 14px; padding: 15px 18px; }
.ifcia-next-step__num { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--main, #e91e8c); color: #fff; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.ifcia-next-step__txt { font-size: 14px; color: var(--base, #111827); }
.ifcia-next-step__txt strong { display: block; font-family: var(--font-sora, 'Sora', system-ui, sans-serif); }

/* Message d'erreur d'etape + etat de chargement du bouton */
.ifcia-tunnel__msg { margin-top: 16px; background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; border-radius: 12px; padding: 12px 16px; font-size: 14px; }
.ifcia-tunnel__msg[hidden] { display: none; }
/* Champ obligatoire non rempli : bordure rouge + libelle rouge (validation JS) */
.ifcia-field.has-error > label { color: #b91c1c; }
.ifcia-field.has-error input,
.ifcia-field.has-error select,
.ifcia-field.has-error textarea,
.ifcia-field.has-error .ifcia-rpps input { border-color: #ef4444 !important; background: #fff5f5; box-shadow: 0 0 0 3px rgba(239,68,68,.12); }
.ifcia-fieldset.has-error { outline: 2px solid rgba(239,68,68,.35); outline-offset: 6px; border-radius: 12px; }
/* Liste des formations en conflit (déjà inscrit) dans le panier */
.ifcia-already-list { list-style: none; margin: 4px auto 14px; padding: 0; max-width: 460px; text-align: left; display: grid; gap: 8px; }
.ifcia-already-list[hidden] { display: none; }
.ifcia-already-list li { background: #fff5f7; border: 1px solid #fbcfe8; border-radius: 10px; padding: 10px 14px; font-size: 14px; font-weight: 600; color: var(--base, #111827); }
.ifcia-already-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; margin-top: 8px; }
.ifcia-tunnel__next.is-loading { opacity: .7; pointer-events: none; }
.ifcia-field__opt { color: var(--contrast-2, #9ca3af); font-weight: 500; }
.ifcia-tunnel__foot[hidden] { display: none; }

/* Gate email (capture + code OTP) vs flux principal */
.ifcia-tunnel__flow[hidden], .ifcia-email-gate[hidden], [data-gate][hidden] { display: none; }
.ifcia-btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 9px; background: var(--main, #e91e8c); color: #fff;
	font-family: var(--font-inter, 'Inter', sans-serif); font-weight: 700; font-size: 15.5px; padding: 15px 26px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none; }
.ifcia-btn-primary:hover { background: var(--main-accent, #be185d); color: #fff; }

/* Etapes non actives : masquees (navigation JS) */
.ifcia-tunnel__step[hidden] { display: none; }
