/* Credexa : composants publics. Les couleurs et polices sont des variables surchargeables
   depuis le thème ou Elementor (sélecteur .cdxa). */
.cdxa {
	--cdxa-ink: #16233A; --cdxa-text: #3D4757; --cdxa-muted: #56606E; --cdxa-blue: #1D4F91; --cdxa-blue-d: #163E73;
	--cdxa-brass: #9C6B2E; --cdxa-ground: #F3F4F1; --cdxa-line: #D8DCE2; --cdxa-line-2: #E6E9ED; --cdxa-field: #AEB6C2;
	--cdxa-ok: #135235; --cdxa-ok-bg: #E1F0E8; --cdxa-warn: #6E4200; --cdxa-warn-bg: #FBF3E6; --cdxa-err: #8A2414; --cdxa-err-bg: #F9E3DE;
	--cdxa-radius: 12px; --cdxa-serif: "Source Serif 4", Georgia, serif; --cdxa-sans: inherit;
	color: var(--cdxa-ink); font-family: var(--cdxa-sans); line-height: 1.55; box-sizing: border-box;
}
.cdxa *, .cdxa *::before, .cdxa *::after { box-sizing: inherit; }
.cdxa :focus-visible { outline: 3px solid var(--cdxa-brass); outline-offset: 2px; }
.cdxa a { color: var(--cdxa-blue); }
.cdxa-num { font-variant-numeric: tabular-nums lining-nums; }
.cdxa-h2 { font-family: var(--cdxa-serif); font-weight: 600; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
.cdxa-h3 { font-size: 1.1rem; font-weight: 700; margin: 0 0 10px; }
.cdxa-lead { color: var(--cdxa-text); margin: 0; }
.cdxa-muted { color: var(--cdxa-muted); display: block; }
.cdxa-help { font-size: 0.85rem; color: var(--cdxa-muted); margin: 6px 0 0; }
.cdxa-error { font-size: 0.875rem; color: var(--cdxa-err); font-weight: 600; margin: 6px 0 0; display: block; }
.cdxa-legal { font-size: 0.8rem; color: var(--cdxa-muted); margin: 0; line-height: 1.5; }
.cdxa-legal--strong { color: var(--cdxa-ink); font-weight: 600; }
.cdxa-req { color: #A1321F; }
.cdxa-note { padding: 12px 16px; border: 1px dashed var(--cdxa-brass); border-radius: 8px; background: var(--cdxa-warn-bg); color: #3F2D10; font-size: 0.9rem; }
.cdxa-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.screen-reader-text { position: absolute; left: -9999px; }

/* Boutons */
.cdxa-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 6px; border: 1px solid transparent; font: inherit; font-weight: 600; line-height: 1; text-decoration: none !important; cursor: pointer; }
.cdxa-btn--primary { background: var(--cdxa-blue); color: #fff !important; }
.cdxa-btn--primary:hover { background: var(--cdxa-blue-d); }
.cdxa-btn--line { background: #fff; color: var(--cdxa-ink) !important; border-color: var(--cdxa-field); }
.cdxa-btn--line:hover { border-color: var(--cdxa-ink); }
.cdxa-btn--block { width: 100%; }
.cdxa-btn[disabled] { opacity: .6; cursor: wait; }
.cdxa-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }

/* Champs */
.cdxa-field { display: flex; flex-direction: column; border: 0; margin: 0; padding: 0; min-width: 0; }
.cdxa-field > label, .cdxa-field > legend { font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; padding: 0; }
.cdxa-field input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]), .cdxa-field select, .cdxa-field textarea {
	width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--cdxa-field); border-radius: 6px; background: #fff; color: var(--cdxa-ink); font: inherit; font-size: 16px;
}
.cdxa-field textarea { min-height: 110px; resize: vertical; }
.cdxa-field input[type=file] { padding: 10px 0; font: inherit; }
.cdxa-field.has-error input, .cdxa-field.has-error select, .cdxa-field.has-error textarea { border: 2px solid #A1321F; }
.cdxa-check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.cdxa-check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--cdxa-blue); flex-shrink: 0; }
.cdxa-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.cdxa-field--wide { grid-column: 1 / -1; }
.cdxa-form { display: flex; flex-direction: column; gap: 18px; }
.cdxa-rules { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; color: var(--cdxa-muted); }
.cdxa-rules li::before { content: ""; display: inline-block; width: 12px; height: 12px; border: 1.5px solid currentColor; border-radius: 50%; margin-right: 10px; vertical-align: -1px; }
.cdxa-rules li.is-ok { color: var(--cdxa-ok); }
.cdxa-rules li.is-ok::before { background: currentColor; }

/* Cartes, alertes, étiquettes */
.cdxa-card { background: #fff; border: 1px solid var(--cdxa-line); border-radius: var(--cdxa-radius); padding: 24px; }
.cdxa-card--flush { padding: 0; overflow: hidden; }
.cdxa-card--warn { border-color: #E7CFA5; background: #FFFCF5; }
.cdxa-pad { padding: 20px 24px 0; }
.cdxa-alert { border: 1px solid; border-radius: 10px; padding: 12px 16px; margin: 0 0 16px; }
.cdxa-alert p { margin: 0 0 4px; } .cdxa-alert p:last-child { margin: 0; }
.cdxa-alert ul { margin: 6px 0 0; padding-left: 20px; }
.cdxa-alert--error { background: var(--cdxa-err-bg); border-color: #E3B3A9; color: #5E1A0E; }
.cdxa-alert--ok { background: var(--cdxa-ok-bg); border-color: #A9D2BC; color: #0E3D27; }
.cdxa-alert--warn { background: var(--cdxa-warn-bg); border-color: #E7CFA5; color: #3F2D10; }
.cdxa-tag { display: inline-block; font-size: 0.78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #E3EBF6; color: #163E73; white-space: nowrap; }
.cdxa-tag--ok { background: var(--cdxa-ok-bg); color: var(--cdxa-ok); }
.cdxa-tag--warn { background: var(--cdxa-warn-bg); color: var(--cdxa-warn); }
.cdxa-tag--err { background: var(--cdxa-err-bg); color: var(--cdxa-err); }
.cdxa-status { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: #EEF0F3; white-space: nowrap; }
.cdxa-status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--st, var(--cdxa-blue)); }
.cdxa-badge { min-width: 22px; height: 22px; border-radius: 11px; background: #D4A865; color: var(--cdxa-ink); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }

/* Simulateur */
.cdxa-sim { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; background: #fff; border: 1px solid var(--cdxa-line); border-radius: 14px; padding: 28px; }
.cdxa-sim--compact { grid-template-columns: 1fr; }
.cdxa-sim__form { display: flex; flex-direction: column; gap: 22px; }
.cdxa-sim__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cdxa-sim__row label { margin: 0; }
.cdxa-sim__big { font-family: var(--cdxa-serif); font-size: 1.6rem; font-weight: 600; }
.cdxa-sim input[type=range] { width: 100%; accent-color: var(--cdxa-blue); height: 30px; margin: 8px 0 0; }
.cdxa-sim__bounds { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--cdxa-muted); }
.cdxa-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.cdxa-pill { position: relative; }
.cdxa-pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.cdxa-pill span { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 76px; padding: 0 12px; border: 1px solid var(--cdxa-field); border-radius: 6px; font-weight: 600; font-size: 0.9rem; background: #fff; }
.cdxa-pill input:checked + span { background: var(--cdxa-ink); color: #fff; border-color: var(--cdxa-ink); }
.cdxa-pill input:focus-visible + span { outline: 3px solid var(--cdxa-brass); outline-offset: 2px; }
.cdxa-sim__result { display: flex; flex-direction: column; gap: 14px; border-left: 1px solid var(--cdxa-line); padding-left: 28px; }
.cdxa-sim--compact .cdxa-sim__result { border-left: 0; padding-left: 0; border-top: 1px solid var(--cdxa-line); padding-top: 20px; }
.cdxa-sim__label { color: var(--cdxa-text); }
.cdxa-sim__monthly { font-family: var(--cdxa-serif); font-weight: 600; font-size: clamp(2.6rem, 2rem + 2vw, 4rem); line-height: 1; }
.cdxa-sim__facts, .cdxa-facts, .cdxa-recap dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin: 0; }
.cdxa-sim__facts dt, .cdxa-facts dt, .cdxa-recap dt { font-size: 0.85rem; color: var(--cdxa-muted); }
.cdxa-sim__facts dd, .cdxa-facts dd, .cdxa-recap dd { margin: 0; font-weight: 700; }
.cdxa-sim__error { color: var(--cdxa-err); font-weight: 600; margin: 0; }
.cdxa-sim.is-loading .cdxa-sim__monthly { opacity: .45; }

/* Formulaire de demande */
.cdxa-apply { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.cdxa-apply__form { background: #fff; border: 1px solid var(--cdxa-line); border-radius: 14px; padding: 36px 40px; display: flex; flex-direction: column; gap: 28px; }
.cdxa-progress { display: flex; flex-direction: column; gap: 12px; }
.cdxa-progress__top { display: flex; justify-content: space-between; font-weight: 700; font-size: 0.9rem; }
.cdxa-draft { color: var(--cdxa-ok); font-weight: 500; }
.cdxa-progress__bar { height: 8px; background: var(--cdxa-line-2); border-radius: 4px; overflow: hidden; }
.cdxa-progress__bar span { display: block; height: 8px; background: var(--cdxa-blue); transition: width .25s; }
.cdxa-progress__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; font-size: 0.8rem; color: #8E98A6; }
.cdxa-progress__steps li.is-done, .cdxa-progress__steps li.is-current { color: var(--cdxa-ink); }
.cdxa-progress__steps li.is-current { font-weight: 700; }
.cdxa-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.cdxa-step__title { font-family: var(--cdxa-serif); font-weight: 600; font-size: 1.75rem; padding: 0; margin-bottom: 22px; }
.cdxa-js .cdxa-step:not(.is-active) { display: none; }
.cdxa-consents { display: flex; flex-direction: column; }
.cdxa-consent { padding: 14px 0; border-bottom: 1px solid var(--cdxa-line-2); }
.cdxa-consent.has-error .cdxa-check span { color: var(--cdxa-err); }
.cdxa-apply__nav { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--cdxa-line-2); padding-top: 22px; }
.cdxa-apply__nav [data-submit] { margin-left: auto; }
.cdxa-apply__aside { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 24px; }
.cdxa-recap { display: flex; flex-direction: column; gap: 12px; }
.cdxa-recap__title { font-weight: 700; }
.cdxa-recap__monthly { font-family: var(--cdxa-serif); font-size: 2.2rem; font-weight: 600; line-height: 1; }
.cdxa-recap__monthly small { font-family: var(--cdxa-sans); font-size: 0.9rem; font-weight: 500; color: var(--cdxa-muted); }
.cdxa-secure { font-size: 0.85rem; color: var(--cdxa-text); margin: 0; }

/* Confirmation */
.cdxa-confirm { display: flex; flex-direction: column; gap: 22px; max-width: 800px; }
.cdxa-confirm__head { display: flex; flex-direction: column; gap: 12px; }
.cdxa-confirm__icon { width: 56px; height: 56px; border-radius: 50%; background: #1B6E47; color: #fff; display: flex; align-items: center; justify-content: center; }
.cdxa-confirm__number { display: flex; flex-direction: column; gap: 4px; border-bottom: 1px solid var(--cdxa-line-2); padding-bottom: 18px; margin-bottom: 18px; }
.cdxa-confirm__number strong { font-family: var(--cdxa-serif); font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.6rem); }
.cdxa-next { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }

/* Authentification */
.cdxa-auth { max-width: 460px; }
.cdxa-auth .cdxa-card { padding: 32px; }

/* Espace client */
.cdxa-space { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start; }
.cdxa-space__nav { display: flex; flex-direction: column; gap: 4px; background: var(--cdxa-ink); border-radius: var(--cdxa-radius); padding: 14px; position: sticky; top: 24px; }
.cdxa-space__nav a { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 14px; border-radius: 8px; color: #C9D1DC !important; text-decoration: none; font-weight: 500; }
.cdxa-space__nav a:hover { background: #22324D; color: #fff !important; }
.cdxa-space__nav a.is-active { background: #fff; color: var(--cdxa-ink) !important; font-weight: 700; }
.cdxa-space__nav a:focus-visible { outline-color: #D4A865; }
.cdxa-space__logout { margin-top: 12px; border-top: 1px solid #34435C; border-radius: 0 !important; }
.cdxa-space__main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.cdxa-space__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.cdxa-space__switch { display: flex; align-items: center; gap: 10px; }
.cdxa-space__switch select { min-height: 44px; border: 1px solid var(--cdxa-field); border-radius: 6px; padding: 0 10px; font: inherit; }
.cdxa-dossier { display: flex; flex-direction: column; gap: 22px; }
.cdxa-dossier__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.cdxa-dossier__num { display: block; font-family: var(--cdxa-serif); font-size: 1.75rem; }
.cdxa-phases { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; font-size: 0.85rem; }
.cdxa-phases li { display: flex; flex-direction: column; gap: 8px; color: var(--cdxa-muted); }
.cdxa-phases li span { height: 6px; border-radius: 3px; background: var(--cdxa-line); }
.cdxa-phases li.is-done { color: var(--cdxa-ink); } .cdxa-phases li.is-done span { background: #1B6E47; }
.cdxa-phases li.is-current { color: var(--cdxa-ink); font-weight: 700; } .cdxa-phases li.is-current span { background: var(--cdxa-blue); }
.cdxa-todo { background: var(--cdxa-warn-bg); border-color: #E7CFA5; display: flex; flex-direction: column; gap: 10px; }
.cdxa-todo p { margin: 0; }
.cdxa-todo__list { margin: 0; padding-left: 20px; }
.cdxa-steps3 ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.cdxa-checklist { list-style: none; margin: 0; padding: 0; }
.cdxa-checklist li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--cdxa-line-2); }
.cdxa-checklist li:last-child { border-bottom: 0; }
.cdxa-upload { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: end; }
.cdxa-upload .cdxa-btn { grid-column: 1 / -1; justify-self: start; }
.cdxa-doclist { list-style: none; margin: 0; padding: 0; }
.cdxa-doclist li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 16px 24px; border-bottom: 1px solid var(--cdxa-line-2); }
.cdxa-doclist li:last-child { border-bottom: 0; }
.cdxa-doclist li > div { display: flex; flex-direction: column; gap: 2px; }
.cdxa-doclist li.is-new { background: #FFFCF5; }
.cdxa-history { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px 20px; }
.cdxa-history li { display: contents; }
.cdxa-thread { display: flex; flex-direction: column; gap: 18px; }
.cdxa-msgs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.cdxa-msgs li { display: flex; flex-direction: column; gap: 4px; max-width: 80%; }
.cdxa-msgs li.is-me { align-self: flex-end; align-items: flex-end; }
.cdxa-msgs__meta { font-size: 0.8rem; color: var(--cdxa-muted); }
.cdxa-msgs__body { padding: 12px 16px; border-radius: 12px; background: #EEF0F3; }
.cdxa-msgs li.is-me .cdxa-msgs__body { background: var(--cdxa-blue); color: #fff; }
.cdxa-msgform { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--cdxa-line-2); padding-top: 18px; }
.cdxa-msgform .cdxa-btn { align-self: flex-start; }

@media (max-width: 900px) {
	.cdxa-sim, .cdxa-apply, .cdxa-space { grid-template-columns: 1fr; }
	.cdxa-sim__result { border-left: 0; padding-left: 0; border-top: 1px solid var(--cdxa-line); padding-top: 20px; }
	.cdxa-apply__aside { position: static; order: -1; }
	.cdxa-apply__form { padding: 24px 18px; }
	.cdxa-space__nav { position: static; flex-direction: row; flex-wrap: wrap; }
	.cdxa-space__logout { margin-top: 0; border-top: 0; }
	.cdxa-phases { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.cdxa-grid, .cdxa-upload { grid-template-columns: 1fr; }
	.cdxa-progress__steps { display: none; }
	.cdxa-apply__nav { position: sticky; bottom: 0; background: #fff; padding-bottom: 12px; }
	.cdxa-doclist li { grid-template-columns: 1fr auto; }
	.cdxa-history { grid-template-columns: 1fr; }
	.cdxa-msgs li { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .cdxa * { transition: none !important; } }

/* Lot 3 : FAQ, contact, parcours, exemple représentatif */
.cdxa-faq { display: flex; flex-direction: column; gap: 10px; }
.cdxa-faq__group { font-family: var(--cdxa-serif); font-weight: 600; font-size: 1.5rem; margin: 24px 0 6px; }
.cdxa-faq__group:first-child { margin-top: 0; }
.cdxa-faq__item { background: #fff; border: 1px solid var(--cdxa-line); border-radius: 10px; }
.cdxa-faq__item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; font-weight: 600; font-size: 1.05rem; min-height: 44px; }
.cdxa-faq__item summary::-webkit-details-marker { display: none; }
.cdxa-faq__item summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--cdxa-blue); flex-shrink: 0; }
.cdxa-faq__item[open] summary::after { content: "–"; }
.cdxa-faq__answer { padding: 0 22px 18px; color: var(--cdxa-text); }
.cdxa-faq__answer p { margin: 0 0 10px; }
.cdxa-contact .cdxa-card { padding: 32px; }
.cdxa-process { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
.cdxa-process--row { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cdxa-process li { display: flex; flex-direction: column; gap: 10px; }
.cdxa-process--column li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 4px 16px; }
.cdxa-process--column .cdxa-process__num { grid-row: span 2; }
.cdxa-process__num { width: 44px; height: 44px; border-radius: 50%; background: var(--cdxa-ink); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--cdxa-serif); font-weight: 600; font-size: 1.2rem; }
.cdxa-process__title { font-weight: 700; font-size: 1.05rem; }
.cdxa-process__text { color: var(--cdxa-text); line-height: 1.5; }
.cdxa-example { border-left: 4px solid var(--cdxa-brass); background: #fff; padding: 16px 20px; border-radius: 0 10px 10px 0; font-size: .9rem; color: var(--cdxa-text); }
.cdxa-example__title { display: block; font-weight: 700; color: var(--cdxa-ink); margin-bottom: 6px; }
.cdxa-example p { margin: 0 0 6px; }
.cdxa-legal-page { max-width: 820px; }
.cdxa-legal-banner { border: 2px dashed var(--cdxa-brass); background: var(--cdxa-warn-bg); color: #3F2D10; border-radius: 10px; padding: 14px 18px; font-weight: 600; }
@media (max-width: 900px) { .cdxa-process--row { grid-template-columns: 1fr; } .cdxa-process--row li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 4px 16px; } .cdxa-process--row .cdxa-process__num { grid-row: span 2; } }

/* Lot 4 : proposition, contrat, signature */
.cdxa-proposal, .cdxa-sign, .cdxa-signed { display: flex; flex-direction: column; gap: 14px; }
.cdxa-proposal p, .cdxa-sign p, .cdxa-signed p { margin: 0; }
.cdxa-proposal__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.cdxa-proposal__head .cdxa-h3 { margin: 0; }
.cdxa-facts--big { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); background: var(--cdxa-ground); border-radius: 10px; padding: 16px 18px; }
.cdxa-facts--big dd { font-size: 1.15rem; }
.cdxa-quote { border-left: 4px solid var(--cdxa-blue); padding: 10px 16px; background: #F5F8FC; border-radius: 0 8px 8px 0; }
.cdxa-answer { border-top: 1px solid var(--cdxa-line-2); padding-top: 16px; }
.cdxa-signed { border-color: #A9D2BC; background: #F4FAF6; }
.cdxa-signsteps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.cdxa-signsteps > li { counter-increment: s; position: relative; padding: 16px 18px 16px 60px; border: 1px solid var(--cdxa-line); border-radius: 10px; display: flex; flex-direction: column; gap: 10px; color: var(--cdxa-muted); }
.cdxa-signsteps > li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid currentColor; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.cdxa-signsteps > li.is-current { border-color: var(--cdxa-blue); color: var(--cdxa-ink); background: #F5F8FC; }
.cdxa-signsteps > li.is-done { color: var(--cdxa-ok); }
.cdxa-signsteps > li.is-done::before { content: "✓"; background: var(--cdxa-ok); color: #fff; border-color: var(--cdxa-ok); }
.cdxa-otp input { max-width: 220px; font-size: 1.6rem !important; letter-spacing: .35em; text-align: center; font-variant-numeric: tabular-nums; }
.cdxa-linkbtn { background: none; border: 0; padding: 8px 0; color: var(--cdxa-blue); text-decoration: underline; cursor: pointer; font: inherit; min-height: 44px; }

/* 1.0.2 : protection contre les styles du thème et du kit Elementor (boutons, liens, tailles). */
html body .cdxa { font-size: 16px; }
html body .cdxa a:not(.cdxa-btn) { color: var(--cdxa-blue); }
html body .cdxa a.cdxa-btn,
html body .cdxa button.cdxa-btn,
html body .cdxa summary.cdxa-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; width: auto;
	padding: 12px 22px; margin: 0; border-radius: 6px; border-width: 1px; border-style: solid; box-shadow: none;
	font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1.25; text-align: center;
	text-transform: none; letter-spacing: normal; text-decoration: none; cursor: pointer; white-space: normal;
}
html body .cdxa .cdxa-btn.cdxa-btn--primary,
html body .cdxa .cdxa-btn.cdxa-btn--primary:visited { background: var(--cdxa-blue); color: #fff; border-color: var(--cdxa-blue); }
html body .cdxa .cdxa-btn.cdxa-btn--primary:hover,
html body .cdxa .cdxa-btn.cdxa-btn--primary:focus { background: var(--cdxa-blue-d); color: #fff; border-color: var(--cdxa-blue-d); }
html body .cdxa .cdxa-btn.cdxa-btn--line,
html body .cdxa .cdxa-btn.cdxa-btn--line:visited { background: #fff; color: var(--cdxa-ink); border-color: var(--cdxa-field); }
html body .cdxa .cdxa-btn.cdxa-btn--line:hover,
html body .cdxa .cdxa-btn.cdxa-btn--line:focus { background: #fff; color: var(--cdxa-ink); border-color: var(--cdxa-ink); }
html body .cdxa .cdxa-btn--block { width: 100%; }
html body .cdxa .cdxa-linkbtn { background: none; border: 0; padding: 8px 0; color: var(--cdxa-blue); box-shadow: none; }
html body .cdxa select, html body .cdxa input, html body .cdxa textarea { font-family: inherit; }
html body .cdxa-sim__row label { font-size: 16px; }

/* 1.0.3 : simulateur compact équilibré avec le texte du bandeau. */
html body .cdxa-sim--compact { padding: 24px 26px; gap: 18px; }
html body .cdxa-sim--compact .cdxa-sim__form { gap: 16px; }
html body .cdxa-sim--compact .cdxa-sim__row { align-items: center; }
html body .cdxa-sim--compact .cdxa-sim__row label { white-space: nowrap; margin: 0; }
html body .cdxa-sim--compact .cdxa-sim__big { font-size: 1.45rem; }
html body .cdxa-sim--compact .cdxa-sim__result { gap: 10px; padding-top: 16px; }
html body .cdxa-sim--compact .cdxa-sim__label { font-size: 14px; }
html body .cdxa-sim--compact .cdxa-sim__monthly { font-size: clamp(2.2rem, 1.8rem + 1.2vw, 2.9rem); }
html body .cdxa-sim--compact .cdxa-sim__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
html body .cdxa-sim--compact .cdxa-sim__facts dt { font-size: 12.5px; }
html body .cdxa-sim--compact .cdxa-sim__facts dd { font-size: 15px; }
html body .cdxa-sim--compact .cdxa-legal { font-size: 12px; line-height: 1.45; }
html body .cdxa-sim--compact .cdxa-btn { min-height: 46px; }
html body .cdxa-sim .cdxa-field select, html body .cdxa-sim .cdxa-field input:not([type=range]) { min-height: 46px; }
@media (max-width: 480px) { html body .cdxa-sim--compact .cdxa-sim__facts { grid-template-columns: 1fr 1fr; } }

/* 1.0.4 : cartes des solutions, blocs de contenu. */
.cdxa-products { display: grid; gap: 28px; }
.cdxa-products--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cdxa-products--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cdxa-products--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cdxa-product { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--cdxa-line); border-radius: 18px; overflow: hidden; box-shadow: 0 1px 2px rgba(22,35,58,.04), 0 12px 32px rgba(22,35,58,.06); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.cdxa-product:hover { transform: translateY(-4px); border-color: #D4A865; box-shadow: 0 2px 4px rgba(22,35,58,.06), 0 22px 48px rgba(22,35,58,.12); }
.cdxa-product__media { aspect-ratio: 4 / 3; overflow: hidden; background: #EEF2F8; }
.cdxa-product__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.cdxa-product:hover .cdxa-product__media img { transform: scale(1.04); }
.cdxa-product__body { display: flex; flex-direction: column; gap: 12px; padding: 24px 24px 26px; flex: 1; }
.cdxa-product__title { margin: 0; font-family: var(--cdxa-serif); font-weight: 600; font-size: 1.45rem; line-height: 1.2; }
html body .cdxa .cdxa-product__title a { color: var(--cdxa-ink); text-decoration: none; }
html body .cdxa .cdxa-product__title a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.cdxa-product__text { margin: 0; color: var(--cdxa-text); line-height: 1.55; }
.cdxa-product__facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.cdxa-product__facts li { font-size: 13px; font-weight: 600; color: #163E73; background: #E8EEF7; border-radius: 999px; padding: 5px 11px; font-variant-numeric: tabular-nums; }
.cdxa-product__actions { display: flex; gap: 10px; margin-top: auto; padding-top: 8px; position: relative; z-index: 1; }
html body .cdxa .cdxa-product__actions .cdxa-btn { flex: 1; min-height: 46px; }
.cdxa-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.cdxa-checks li { position: relative; padding-left: 34px; line-height: 1.5; }
.cdxa-checks li::before { content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: #E1F0E8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23135235' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.cdxa-keycard { background: #fff; border: 1px solid var(--cdxa-line); border-radius: 16px; padding: 28px; height: 100%; box-sizing: border-box; box-shadow: 0 12px 32px rgba(22,35,58,.05); }
.cdxa-keycard h3 { margin: 0 0 16px; font-size: 1.2rem; }
.cdxa-keycard--accent { border-top: 4px solid #C08A45; }
.cdxa-illustration img { display: block; width: 100%; height: auto; border-radius: 20px; box-shadow: 0 24px 60px rgba(22,35,58,.14); }
@media (max-width: 1024px) { .cdxa-products--3, .cdxa-products--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cdxa-products--2, .cdxa-products--3, .cdxa-products--4 { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .cdxa-product, .cdxa-product__media img { transition: none; } .cdxa-product:hover { transform: none; } .cdxa-product:hover .cdxa-product__media img { transform: none; } }

/* 1.0.6 : l'attribut hidden reste prioritaire sur les styles de boutons (étapes du formulaire). */
html body .cdxa [hidden], html body .cdxa button[hidden], html body .cdxa a[hidden] { display: none !important; }

/* ---- Paiement & Mensualités (1.2.0) ---- */
html body .cdxa .cdxa-paysum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0 0; }
html body .cdxa .cdxa-paysum > div { background: var(--cdxa-ground); border-radius: 10px; padding: 12px 14px; }
html body .cdxa .cdxa-paysum dt { font-size: 0.8rem; color: var(--cdxa-muted); margin: 0; }
html body .cdxa .cdxa-paysum dd { margin: 2px 0 0; font-size: 1.25rem; font-weight: 700; color: var(--cdxa-ink); }
html body .cdxa .cdxa-paysecu { border-left: 3px solid var(--cdxa-brass); padding-left: 10px; margin-top: 14px; }
html body .cdxa .cdxa-paycard__head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
html body .cdxa .cdxa-paycard__amount { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
html body .cdxa .cdxa-paycard__amount strong { font-size: 1.5rem; color: var(--cdxa-ink); }
html body .cdxa .cdxa-bankbox { border: 1px solid var(--cdxa-line); border-radius: 10px; padding: 16px; margin: 16px 0; background: #fff; }
html body .cdxa .cdxa-bankbox__title { font-size: 1rem; font-weight: 700; margin: 0 0 10px; color: var(--cdxa-ink); }
html body .cdxa .cdxa-kv { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 8px 16px; margin: 0; }
html body .cdxa .cdxa-kv dt { color: var(--cdxa-muted); font-size: 0.9rem; margin: 0; }
html body .cdxa .cdxa-kv dd { margin: 0; color: var(--cdxa-ink); overflow-wrap: anywhere; }
html body .cdxa .cdxa-copyable button { font-size: 0.8rem; margin-left: 6px; }
html body .cdxa .cdxa-proof { border-top: 1px solid var(--cdxa-line-2); padding-top: 16px; }
html body .cdxa .cdxa-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
html body .cdxa .cdxa-tablewrap { overflow-x: auto; }
html body .cdxa .cdxa-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
html body .cdxa .cdxa-table th, html body .cdxa .cdxa-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--cdxa-line-2); vertical-align: top; }
html body .cdxa .cdxa-table th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--cdxa-muted); }
html body .cdxa .cdxa-space--section .cdxa-space__main { padding: 0; }
@media (max-width: 700px) {
	html body .cdxa .cdxa-paysum, html body .cdxa .cdxa-grid-3 { grid-template-columns: 1fr; }
	html body .cdxa .cdxa-kv { grid-template-columns: 1fr; gap: 2px; }
	html body .cdxa .cdxa-kv dd { margin-bottom: 8px; }
	html body .cdxa .cdxa-paycard__amount { align-items: flex-start; }
}

/* 1.3.1 : boutons pleine largeur sur téléphone. */
@media (max-width: 900px) {
	html body .cdxa .cdxa-actions { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
	html body .cdxa .cdxa-actions .cdxa-btn { width: 100%; }
}

/* 1.3.2 : connexion + encadré « Pas encore d'espace client ? » */
html body .cdxa.cdxa-auth--split { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 28px; align-items: stretch; }
html body .cdxa .cdxa-newclient { display: flex; flex-direction: column; gap: 16px; background: var(--cdxa-ink); color: #DDE3EC; border-color: var(--cdxa-ink); }
html body .cdxa .cdxa-newclient .cdxa-h2 { color: #fff; font-size: 1.6rem; }
html body .cdxa .cdxa-newclient p { margin: 0; line-height: 1.6; }
html body .cdxa .cdxa-newclient .cdxa-checks li { color: #fff; }
html body .cdxa .cdxa-newclient__actions { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
html body .cdxa .cdxa-newclient .cdxa-btn.cdxa-btn--primary { background: #D4A865; border-color: #D4A865; color: var(--cdxa-ink) !important; }
html body .cdxa .cdxa-newclient .cdxa-btn.cdxa-btn--primary:hover { background: #E2BD80; border-color: #E2BD80; color: var(--cdxa-ink) !important; }
html body .cdxa .cdxa-newclient .cdxa-btn.cdxa-btn--line { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.5); }
html body .cdxa .cdxa-newclient .cdxa-btn.cdxa-btn--line:hover { border-color: #fff; background: rgba(255,255,255,.08); }
html body .cdxa.cdxa-notice { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
html body .cdxa.cdxa-notice p { margin: 0; }
@media (max-width: 820px) { html body .cdxa.cdxa-auth--split { grid-template-columns: 1fr; } }

/* =====================================================================
   1.4.0 : application client (en-tête dédié, barre latérale, onglets mobiles)
   ===================================================================== */
/* L'en-tête et le pied de page publics (thème ou Elementor) ne s'affichent pas dans l'espace client. */
body.cdxa-app .cdxa-site-header, body.cdxa-app .cdxa-topbar, body.cdxa-app .cdxa-site-footer,
body.cdxa-app header.site-header, body.cdxa-app footer.site-footer,
body.cdxa-app .elementor-location-header, body.cdxa-app .elementor-location-footer { display: none !important; }
body.cdxa-app { background: #F3F4F1; }
/* La section Elementor qui contient l'espace devient pleine page. */
body.cdxa-app .elementor-section:has(.cdxa-app-shell), body.cdxa-app .e-con:has(.cdxa-app-shell) { padding: 0 !important; background: transparent !important; }
body.cdxa-app .elementor-section:has(.cdxa-app-shell) > .elementor-container, body.cdxa-app .e-con:has(.cdxa-app-shell) > .e-con-inner { max-width: none !important; padding: 0 !important; }
body.cdxa-app .elementor-widget-wrap:has(.cdxa-app-shell), body.cdxa-app .elementor-column:has(.cdxa-app-shell) > .elementor-widget-wrap { padding: 0 !important; }
html.cdxa-sheet-open { overflow: hidden; }

html body .cdxa.cdxa-app-shell { --app-side: 272px; min-height: 100vh; display: flex; flex-direction: column; background: #F3F4F1; }
html body .cdxa-app-shell .cdxa-ico { width: 20px; height: 20px; flex: 0 0 20px; }

/* En-tête */
html body .cdxa-app-shell .cdxa-apphead { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; padding: 0 28px; background: #fff; border-bottom: 1px solid var(--cdxa-line-2); box-shadow: 0 1px 0 rgba(22,35,58,.02), 0 6px 20px rgba(22,35,58,.04); }
body.admin-bar .cdxa-app-shell .cdxa-apphead { top: 32px; }
@media (max-width: 782px) { body.admin-bar .cdxa-app-shell .cdxa-apphead { top: 0; } }
html body .cdxa-app-shell .cdxa-apphead__brand { display: flex; align-items: center; gap: 12px; text-decoration: none !important; color: var(--cdxa-ink) !important; min-width: 0; }
html body .cdxa-app-shell .cdxa-apphead__logo { height: 40px; width: auto; max-width: 160px; object-fit: contain; display: block; }
html body .cdxa-app-shell .cdxa-apphead__mark { width: 38px; height: 38px; border-radius: 10px; background: var(--cdxa-ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; font: 700 18px/1 var(--cdxa-serif); }
html body .cdxa-app-shell .cdxa-apphead__name { font: 600 18px/1.2 var(--cdxa-serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html body .cdxa-app-shell .cdxa-apphead__tag { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8A5E24; background: #FBF3E6; border: 1px solid #EBD6B2; border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
html body .cdxa-app-shell .cdxa-apphead__right { display: flex; align-items: center; gap: 10px; }
html body .cdxa-app-shell .cdxa-apphead__switch select { min-height: 40px; border: 1px solid var(--cdxa-line); border-radius: 8px; padding: 0 10px; font: inherit; font-size: 14px; background: #fff; }
html body .cdxa-app-shell .cdxa-apphead__icon { position: relative; width: 42px; height: 42px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: var(--cdxa-ink) !important; border: 1px solid var(--cdxa-line-2); }
html body .cdxa-app-shell .cdxa-apphead__icon:hover { background: var(--cdxa-ground); }
html body .cdxa-app-shell .cdxa-app-dot { position: absolute; top: 9px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: #C0392B; box-shadow: 0 0 0 2px #fff; }

/* Menu du compte */
html body .cdxa-app-shell .cdxa-usermenu { position: relative; }
html body .cdxa-app-shell .cdxa-usermenu summary { list-style: none; display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 4px 8px 4px 4px; border-radius: 999px; border: 1px solid var(--cdxa-line-2); min-height: 42px; }
html body .cdxa-app-shell .cdxa-usermenu summary::-webkit-details-marker { display: none; }
html body .cdxa-app-shell .cdxa-usermenu summary:hover { background: var(--cdxa-ground); }
html body .cdxa-app-shell .cdxa-usermenu__avatar, html body .cdxa-app-shell .cdxa-clientcard__avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #1D4F91, #16233A); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex: 0 0 auto; }
html body .cdxa-app-shell .cdxa-usermenu__name { font-size: 14px; font-weight: 600; color: var(--cdxa-ink); max-width: 180px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html body .cdxa-app-shell .cdxa-usermenu__chev { width: 16px; height: 16px; color: var(--cdxa-muted); transition: transform .2s; }
html body .cdxa-app-shell .cdxa-usermenu[open] .cdxa-usermenu__chev { transform: rotate(180deg); }
html body .cdxa-app-shell .cdxa-usermenu__panel { position: absolute; right: 0; top: calc(100% + 8px); width: 260px; background: #fff; border: 1px solid var(--cdxa-line-2); border-radius: 14px; box-shadow: 0 18px 48px rgba(22,35,58,.16); padding: 8px; display: flex; flex-direction: column; z-index: 50; }
html body .cdxa-app-shell .cdxa-usermenu__who { margin: 0; padding: 10px 12px 12px; border-bottom: 1px solid var(--cdxa-line-2); margin-bottom: 6px; display: flex; flex-direction: column; gap: 2px; }
html body .cdxa-app-shell .cdxa-usermenu__who span { font-size: 13px; color: var(--cdxa-muted); overflow-wrap: anywhere; }
html body .cdxa-app-shell .cdxa-usermenu__panel a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 8px; color: var(--cdxa-ink) !important; text-decoration: none; font-weight: 500; }
html body .cdxa-app-shell .cdxa-usermenu__panel a:hover { background: var(--cdxa-ground); }
html body .cdxa-app-shell a.is-danger { color: #9B2C1A !important; }

/* Mise en page */
html body .cdxa-app-shell .cdxa-space { flex: 1; display: grid; grid-template-columns: var(--app-side) minmax(0, 1fr); gap: 0; align-items: stretch; width: 100%; max-width: 1440px; margin: 0 auto; }
html body .cdxa-app-shell .cdxa-space__side { display: flex; flex-direction: column; gap: 16px; padding: 24px 18px; border-right: 1px solid var(--cdxa-line-2); background: #FAFAF8; position: sticky; top: 68px; align-self: start; height: calc(100vh - 68px); overflow-y: auto; }
html body .cdxa-app-shell .cdxa-clientcard { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: center; padding: 16px; background: #fff; border: 1px solid var(--cdxa-line-2); border-radius: 14px; }
html body .cdxa-app-shell .cdxa-clientcard__avatar { width: 44px; height: 44px; font-size: 15px; grid-row: span 1; }
html body .cdxa-app-shell .cdxa-clientcard strong { display: block; color: var(--cdxa-ink); font-size: 15px; line-height: 1.3; }
html body .cdxa-app-shell .cdxa-clientcard span.cdxa-num { font-size: 12.5px; color: var(--cdxa-muted); white-space: nowrap; }
html body .cdxa-app-shell .cdxa-clientcard__status { grid-column: 1 / -1; justify-self: start; margin-top: 8px; font-size: 12.5px; }

/* Rubriques (ordinateur) */
html body .cdxa-app-shell .cdxa-space__nav { display: flex !important; flex-direction: column; gap: 2px; background: transparent; border-radius: 0; padding: 0; position: static; }
html body .cdxa-app-shell .cdxa-space__nav a { display: flex !important; align-items: center; gap: 12px; min-height: 46px; padding: 0 14px; border-radius: 10px; color: var(--cdxa-text) !important; font-weight: 500; text-decoration: none; position: relative; justify-content: flex-start; }
html body .cdxa-app-shell .cdxa-space__nav a .cdxa-ico { color: #7B8594; }
html body .cdxa-app-shell .cdxa-space__nav a:hover { background: #fff; color: var(--cdxa-ink) !important; }
html body .cdxa-app-shell .cdxa-space__nav a.is-active { background: #fff; color: var(--cdxa-ink) !important; font-weight: 700; box-shadow: 0 1px 2px rgba(22,35,58,.06), 0 6px 16px rgba(22,35,58,.06); }
html body .cdxa-app-shell .cdxa-space__nav a.is-active::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--cdxa-blue); }
html body .cdxa-app-shell .cdxa-space__nav a.is-active .cdxa-ico { color: var(--cdxa-blue); }
html body .cdxa-app-shell .cdxa-space__label { flex: 1; line-height: 1.25; }
html body .cdxa-app-shell .cdxa-app-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #C0392B; color: #fff; font-size: 11.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; line-height: 1; }

html body .cdxa-app-shell .cdxa-helpcard { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 14px; background: var(--cdxa-ink); color: #C9D1DC; font-size: 13.5px; line-height: 1.45; }
html body .cdxa-app-shell .cdxa-helpcard strong { color: #fff; font-size: 15px; }
html body .cdxa-app-shell .cdxa-helpcard a { display: flex; align-items: center; gap: 8px; color: #fff !important; text-decoration: none; font-weight: 600; overflow-wrap: anywhere; }
html body .cdxa-app-shell .cdxa-helpcard a .cdxa-ico { width: 16px; height: 16px; flex-basis: 16px; color: #D4A865; }
html body .cdxa-app-shell .cdxa-helpcard__hours { font-size: 12.5px; color: #8E9BB0; }
html body .cdxa-app-shell .cdxa-space__logout { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 14px; border-radius: 10px; color: #9B2C1A !important; text-decoration: none; font-weight: 600; border: 0; margin: 0; }
html body .cdxa-app-shell .cdxa-space__logout:hover { background: #FBEDEA; }

/* Contenu */
html body .cdxa-app-shell .cdxa-space__main { padding: 32px 40px 40px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
html body .cdxa-app-shell .cdxa-space__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
html body .cdxa-app-shell .cdxa-space__hello { margin: 0 0 4px; font-size: 14px; font-weight: 600; color: var(--cdxa-muted); }
html body .cdxa-app-shell .cdxa-space__title { margin: 0; font: 600 clamp(1.6rem, 1.3rem + 1vw, 2.15rem)/1.15 var(--cdxa-serif); color: var(--cdxa-ink); letter-spacing: -0.01em; }
html body .cdxa-app-shell .cdxa-card { border-radius: 16px; box-shadow: 0 1px 2px rgba(22,35,58,.04), 0 8px 24px rgba(22,35,58,.04); }
html body .cdxa-app-shell .cdxa-appfoot { margin-top: auto; padding-top: 28px; border-top: 1px solid var(--cdxa-line-2); display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; color: var(--cdxa-muted); }
html body .cdxa-app-shell .cdxa-appfoot p { margin: 0; }
html body .cdxa-app-shell .cdxa-appfoot__warning { font-weight: 600; color: var(--cdxa-ink); }
html body .cdxa-app-shell .cdxa-appfoot__links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
html body .cdxa-app-shell .cdxa-appfoot__links a { color: var(--cdxa-muted) !important; }

/* Barre d'onglets : téléphone uniquement */
html body .cdxa-app-shell .cdxa-tabbar { display: none; }

@media (max-width: 900px) {
	html body .cdxa-app-shell .cdxa-apphead { min-height: 60px; padding: 0 14px; }
	html body .cdxa-app-shell .cdxa-apphead__logo { height: 34px; max-width: 110px; }
	html body .cdxa-app-shell .cdxa-apphead__name { display: none; }
	html body .cdxa-app-shell .cdxa-apphead__tag { font-size: 11px; padding: 3px 8px; }
	html body .cdxa-app-shell .cdxa-usermenu__name, html body .cdxa-app-shell .cdxa-usermenu__chev { display: none; }
	html body .cdxa-app-shell .cdxa-usermenu summary { padding: 3px; }
	html body .cdxa-app-shell .cdxa-apphead__switch select { max-width: 130px; }
	html body .cdxa-app-shell .cdxa-space { grid-template-columns: 1fr; }
	html body .cdxa-app-shell .cdxa-space__side { display: none; }
	html body .cdxa-app-shell .cdxa-space__main { padding: 20px 16px calc(96px + env(safe-area-inset-bottom)); gap: 16px; }
	html body .cdxa-app-shell .cdxa-card { padding: 20px; }

	html body .cdxa-app-shell .cdxa-tabbar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; border-top: 1px solid var(--cdxa-line-2); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 24px rgba(22,35,58,.08); }
	html body .cdxa-app-shell .cdxa-tabbar > a, html body .cdxa-app-shell .cdxa-tabbar__more > summary { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 54px; border-radius: 12px; color: #6B7482 !important; text-decoration: none; font-size: 11.5px; font-weight: 600; cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent; }
	html body .cdxa-app-shell .cdxa-tabbar__more > summary::-webkit-details-marker { display: none; }
	html body .cdxa-app-shell .cdxa-tabbar .is-active { color: var(--cdxa-blue) !important; }
	html body .cdxa-app-shell .cdxa-tabbar .is-active .cdxa-tabbar__icon { background: #E8EEF7; }
	html body .cdxa-app-shell .cdxa-tabbar__icon { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 30px; border-radius: 999px; transition: background .2s; }
	html body .cdxa-app-shell .cdxa-tabbar__icon .cdxa-ico { width: 22px; height: 22px; flex-basis: 22px; }
	html body .cdxa-app-shell .cdxa-tabbar__icon .cdxa-app-badge { position: absolute; top: -6px; right: -2px; min-width: 18px; height: 18px; font-size: 10.5px; box-shadow: 0 0 0 2px #fff; }
	html body .cdxa-app-shell .cdxa-tabbar__label { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 2px; }

	/* Volet « Plus » */
	html body .cdxa-app-shell .cdxa-tabbar__more { position: static; }
	html body .cdxa-app-shell .cdxa-tabbar__more[open]::before { content: ""; position: fixed; inset: 0; background: rgba(12,20,34,.45); z-index: -1; }
	html body .cdxa-app-shell .cdxa-sheet { position: fixed; left: 0; right: 0; bottom: 0; max-height: 82vh; overflow-y: auto; background: #fff; border-radius: 22px 22px 0 0; box-shadow: 0 -20px 50px rgba(12,20,34,.25); padding: 8px 14px calc(20px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 2px; z-index: 70; animation: cdxa-sheet-in .22s ease-out; }
	@keyframes cdxa-sheet-in { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
	html body .cdxa-app-shell .cdxa-sheet__grip { width: 44px; height: 5px; border-radius: 3px; background: var(--cdxa-line); margin: 4px auto 10px; }
	html body .cdxa-app-shell .cdxa-sheet__who { margin: 0 0 8px; padding: 0 8px 12px; border-bottom: 1px solid var(--cdxa-line-2); display: flex; flex-direction: column; }
	html body .cdxa-app-shell .cdxa-sheet__who span { font-size: 13px; color: var(--cdxa-muted); }
	html body .cdxa-app-shell .cdxa-sheet a { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 0 10px; border-radius: 12px; color: var(--cdxa-ink) !important; text-decoration: none; font-weight: 500; font-size: 16px; }
	html body .cdxa-app-shell .cdxa-sheet a span:not(.cdxa-app-badge) { flex: 1; }
	html body .cdxa-app-shell .cdxa-sheet a .cdxa-ico { color: #7B8594; }
	html body .cdxa-app-shell .cdxa-sheet a.is-active { background: #EEF3FA; font-weight: 700; }
	html body .cdxa-app-shell .cdxa-sheet a.is-active .cdxa-ico { color: var(--cdxa-blue); }
	html body .cdxa-app-shell .cdxa-sheet a.is-danger .cdxa-ico { color: #9B2C1A; }
}
@media (max-width: 380px) {
	html body .cdxa-app-shell .cdxa-apphead__tag { display: none; }
}
@media (prefers-reduced-motion: reduce) { html body .cdxa-app-shell .cdxa-sheet { animation: none; } }
/* Titre de page du thème masqué dans l'application ; rubrique seule (widget) en pleine largeur. */
body.cdxa-app .page-header, body.cdxa-app .entry-title, body.cdxa-app .elementor-page-title { display: none !important; }
html body .cdxa.cdxa-space--section { display: block; }

/* 1.4.1 : consentements nécessaires et communications facultatives présentés séparément. */
html body .cdxa fieldset.cdxa-consents { border: 1px solid var(--cdxa-line); border-radius: 12px; padding: 0 18px 4px; margin: 0 0 16px; min-width: 0; }
html body .cdxa fieldset.cdxa-consents--optional { background: var(--cdxa-ground); border-style: dashed; }
html body .cdxa .cdxa-consents__title { float: left; width: 100%; font-weight: 700; font-size: 1rem; line-height: 1.35; color: var(--cdxa-ink); padding: 14px 0 0; margin: 0; }
html body .cdxa .cdxa-consents__help { clear: both; margin: 0; padding-top: 4px; }
html body .cdxa .cdxa-consents .cdxa-consent:last-child { border-bottom: 0; }

/* 1.5.0 : fenêtre « demande en cours » */
html.cdxa-modal-open { overflow: hidden; }
html body .cdxa.cdxa-modal { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 20px; }
html body .cdxa.cdxa-modal[hidden] { display: none !important; }
html body .cdxa .cdxa-modal__backdrop { position: absolute; inset: 0; background: rgba(12, 20, 34, .6); }
html body .cdxa .cdxa-modal__box { position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 40px); overflow-y: auto; background: #fff; border-radius: 20px; padding: 32px; box-shadow: 0 30px 80px rgba(12, 20, 34, .35); display: flex; flex-direction: column; gap: 14px; animation: cdxa-modal-in .22s ease-out; outline: none; }
@keyframes cdxa-modal-in { from { transform: translateY(12px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
html body .cdxa .cdxa-modal__icon { width: 56px; height: 56px; border-radius: 16px; background: #EEF3FA; color: var(--cdxa-blue); display: inline-flex; align-items: center; justify-content: center; }
html body .cdxa .cdxa-modal__title { margin: 0; font: 600 1.6rem/1.2 var(--cdxa-serif); color: var(--cdxa-ink); }
html body .cdxa .cdxa-modal__box p { margin: 0 0 8px; line-height: 1.6; color: var(--cdxa-text); }
html body .cdxa .cdxa-modal__file { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; background: var(--cdxa-ground); border-radius: 12px; font-weight: 700; color: var(--cdxa-ink); }
html body .cdxa .cdxa-modal__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
html body .cdxa .cdxa-modal__actions .cdxa-btn { flex: 1 1 200px; }
@media (max-width: 520px) { html body .cdxa .cdxa-modal__box { padding: 24px 20px; border-radius: 18px; } html body .cdxa .cdxa-modal__actions { flex-direction: column; } html body .cdxa .cdxa-modal__actions .cdxa-btn { flex: 0 0 auto; width: 100%; } }
@media (prefers-reduced-motion: reduce) { html body .cdxa .cdxa-modal__box { animation: none; } }
html body .cdxa-app-shell .cdxa-lang { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--cdxa-line-2); border-radius: 999px; }
html body .cdxa-app-shell .cdxa-lang a { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 32px; padding: 0 8px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--cdxa-muted) !important; text-decoration: none !important; }
html body .cdxa-app-shell .cdxa-lang a.is-active { background: var(--cdxa-ink); color: #fff !important; }
html body .cdxa-app-shell .cdxa-lang .cdxa-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
