/* Credexa : identité visuelle (Forêt, Bordeaux).
   Chargé seulement quand une identité autre que « Classique » est active. Les variables --id-*
   sont posées sur body.cdxa-id par Identity::css_vars(). Chaque règle est préfixée par
   « html body.cdxa-id » pour l'emporter sur front.css et site.css sans les modifier. */

/* =====================================================================
   1. Variables des feuilles existantes
   ===================================================================== */
html body.cdxa-id .cdxa-topbar, html body.cdxa-id .cdxa-site-header, html body.cdxa-id .cdxa-site-footer, html body.cdxa-id .cdxa-skip {
	--h-ink: var(--id-ink); --h-ink-2: var(--id-ink-2); --h-blue: var(--id-primary); --h-blue-d: var(--id-primary-d);
	--h-gold: var(--id-accent); --h-gold-l: var(--id-accent-l); --h-line: var(--id-line); --h-text: var(--id-text); --h-muted: var(--id-muted);
	--h-ground: var(--id-ground); --h-foot: var(--id-foot); --h-foot-line: var(--id-foot-line); --h-foot-text: var(--id-foot-text);
	--h-serif: var(--id-display);
	font-family: var(--id-sans);
}
html body.cdxa-id .cdxa {
	--cdxa-ink: var(--id-ink); --cdxa-text: var(--id-text); --cdxa-muted: var(--id-muted);
	--cdxa-blue: var(--id-primary); --cdxa-blue-d: var(--id-primary-d); --cdxa-brass: var(--id-accent);
	--cdxa-ground: var(--id-ground); --cdxa-line: var(--id-line);
	--cdxa-radius: var(--id-radius); --cdxa-serif: var(--id-display); --cdxa-sans: var(--id-sans);
	font-family: var(--id-sans);
}
html body.cdxa-id .cdxa.cdxa-app-shell {
	--app-navy: var(--id-ink-2); --app-navy-2: var(--id-ink); --app-blue: var(--id-primary); --app-blue-d: var(--id-primary-d);
	--app-bg: var(--id-ground); --app-line: var(--id-line); --app-soft: var(--id-tint); --app-ink: var(--id-ink);
	--app-text: var(--id-text); --app-muted: var(--id-muted);
	--cdxa-blue: var(--id-primary); --cdxa-blue-d: var(--id-primary-d); --cdxa-ink: var(--id-ink);
}
html body.cdxa-id { --id-shadow: color-mix(in srgb, var(--id-primary) 28%, transparent); }

/* =====================================================================
   2. Typographie
   ===================================================================== */
html body.cdxa-id .cdxa h1, html body.cdxa-id .cdxa h2, html body.cdxa-id .cdxa .cdxa-h2,
html body.cdxa-id .cdxa .cdxa-step__title, html body.cdxa-id .cdxa .cdxa-product__title, html body.cdxa-id .cdxa .cdxa-faq__group,
html body.cdxa-id .cdxa .cdxa-sim__monthly, html body.cdxa-id .cdxa .cdxa-sim__big, html body.cdxa-id .cdxa .cdxa-recap__monthly,
html body.cdxa-id .cdxa .cdxa-confirm__number strong,
html body.cdxa-id .cdxa-app-shell .cdxa-hero__title, html body.cdxa-id .cdxa-app-shell .cdxa-dossier__num,
html body.cdxa-id .cdxa-app-shell .cdxa-appside__name {
	font-family: var(--id-display); font-weight: var(--id-display-w); letter-spacing: var(--id-display-ls);
}
html body.cdxa-id .cdxa-site-footer__name, html body.cdxa-id .cdxa-brand__name { font-family: var(--id-display); font-weight: var(--id-display-w); }
html body.cdxa-id-bordeaux .cdxa-app-shell .cdxa-hero__title em, html body.cdxa-id-bordeaux .cdxa h1 em, html body.cdxa-id-bordeaux .cdxa h2 em { color: var(--id-primary); }
html body.cdxa-id-foret .cdxa .cdxa-sim__monthly, html body.cdxa-id-foret .cdxa-app-shell .cdxa-hero__title { font-weight: 800; }

/* Pages Elementor : polices et couleurs via le kit Elementor (Kit::apply), sans surcharge ici. */

/* =====================================================================
   3. Boutons et éléments du site public
   ===================================================================== */
html body.cdxa-id .cdxa a.cdxa-btn, html body.cdxa-id .cdxa button.cdxa-btn, html body.cdxa-id .cdxa summary.cdxa-btn, html body.cdxa-id .cdxa .cdxa-btn,
html body.cdxa-id .cdxa-site-header a.cdxa-nav__cta, html body.cdxa-id .cdxa-site-header a.cdxa-nav__client, html body.cdxa-id .cdxa-site-header a.cdxa-mega__cta { border-radius: var(--id-btn-radius); }
html body.cdxa-id .cdxa-site-header a.cdxa-nav__cta { box-shadow: none; }
html body.cdxa-id .cdxa-site-header a.cdxa-nav__cta:hover { background: var(--id-primary-d); }
html body.cdxa-id .cdxa-site-header a.cdxa-nav__client { border-color: var(--id-line-2); }
html body.cdxa-id .cdxa-mega__icon { background: var(--id-tint); color: var(--id-primary); }
html body.cdxa-id .cdxa-mega__item:hover .cdxa-mega__icon, html body.cdxa-id .cdxa-mega__item[aria-current="page"] .cdxa-mega__icon { background: var(--id-ink); color: var(--id-accent-l); }
html body.cdxa-id .cdxa-brand__mark { background: var(--id-ink); color: var(--id-accent-l); box-shadow: none; border-radius: var(--id-btn-radius); }
html body.cdxa-id-bordeaux .cdxa-brand__mark { border-radius: 50%; box-shadow: inset 0 0 0 3px var(--id-ink), inset 0 0 0 4px var(--id-accent-l); font-style: italic; }
html body.cdxa-id .cdxa-lang a.is-active { background: var(--id-ink); }
html body.cdxa-id .cdxa-lang--dark a.is-active { background: var(--id-accent-l); color: var(--id-on-accent-l) !important; }
html body.cdxa-id .cdxa-site-footer { border-top-color: var(--id-accent-l); }
html body.cdxa-id .cdxa-site-footer__title { color: var(--id-accent-l); }
html body.cdxa-id .cdxa-site-footer__reg dt { color: var(--id-side-muted); }
html body.cdxa-id .cdxa-site-footer__reg dd, html body.cdxa-id .cdxa-site-footer__bottom { color: var(--id-foot-text); }

html body.cdxa-id .cdxa :focus-visible { outline-color: var(--id-accent); }
html body.cdxa-id .cdxa-tag { background: var(--id-tint); color: var(--id-primary-d); }
html body.cdxa-id .cdxa-badge { background: var(--id-accent-l); color: var(--id-on-accent-l); }
html body.cdxa-id .cdxa-product { border-radius: var(--id-radius); }
html body.cdxa-id .cdxa-product:hover { border-color: var(--id-accent-l); box-shadow: 0 22px 48px -24px var(--id-shadow); }
html body.cdxa-id .cdxa-product__media { background: var(--id-tint); }
html body.cdxa-id .cdxa-product__facts li { background: var(--id-tint); color: var(--id-primary-d); }
html body.cdxa-id .cdxa-keycard { border-radius: var(--id-radius); }
html body.cdxa-id .cdxa-keycard--accent { border-top-color: var(--id-accent-l); }
html body.cdxa-id .cdxa-quote, html body.cdxa-id .cdxa-signsteps > li.is-current { background: var(--id-tint-2); }
html body.cdxa-id .cdxa .cdxa-modal__icon { background: var(--id-tint); color: var(--id-primary); }
html body.cdxa-id .cdxa-process__num { background: var(--id-ink); color: var(--id-accent-l); }
html body.cdxa-id-foret .cdxa-process__num { background: var(--id-accent-l); color: var(--id-on-accent-l); }
html body.cdxa-id .cdxa .cdxa-newclient { background: var(--id-ink); border-color: var(--id-ink); color: var(--id-foot-text); }
html body.cdxa-id .cdxa .cdxa-newclient .cdxa-btn.cdxa-btn--primary,
html body.cdxa-id .cdxa .cdxa-newclient .cdxa-btn.cdxa-btn--primary:visited { background: var(--id-accent-l); border-color: var(--id-accent-l); color: var(--id-on-accent-l) !important; }
html body.cdxa-id .cdxa .cdxa-newclient .cdxa-btn.cdxa-btn--primary:hover { filter: brightness(1.08); }
html body.cdxa-id .cdxa input[type="range"] { accent-color: var(--id-primary); }
html body.cdxa-id .cdxa input[type="checkbox"], html body.cdxa-id .cdxa input[type="radio"] { accent-color: var(--id-primary); }

/* =====================================================================
   4. Espace client
   ===================================================================== */
html body.cdxa-id.cdxa-app { background: var(--id-ground); }
html body.cdxa-id .cdxa-app-shell :focus-visible { outline-color: var(--id-accent-l); }

/* Barre latérale */
html body.cdxa-id .cdxa-app-shell .cdxa-appside { background: linear-gradient(180deg, var(--id-ink-2) 0%, var(--id-ink) 100%); color: var(--id-side-text); }
html body.cdxa-id .cdxa-app-shell .cdxa-appside__mark { background: var(--id-accent-l); color: var(--id-on-accent-l); box-shadow: none; border-radius: var(--id-btn-radius); font-family: var(--id-display); }
html body.cdxa-id-bordeaux .cdxa-app-shell .cdxa-appside__mark { border-radius: 50%; font-style: italic; }
html body.cdxa-id .cdxa-app-shell .cdxa-appside__slogan, html body.cdxa-id .cdxa-app-shell .cdxa-clientcard .cdxa-num { color: var(--id-side-muted); }
html body.cdxa-id .cdxa-app-shell .cdxa-clientcard__avatar { color: var(--id-ink); }
html body.cdxa-id .cdxa-app-shell .cdxa-clientcard__status { background: var(--id-status); color: var(--id-status-fg); }
html body.cdxa-id .cdxa-app-shell .cdxa-clientcard__status::before { background: var(--id-status-fg); }
html body.cdxa-id .cdxa-app-shell .cdxa-space__nav a { color: var(--id-side-text) !important; }
html body.cdxa-id .cdxa-app-shell .cdxa-space__nav a .cdxa-ico { color: var(--id-side-ico); }
html body.cdxa-id .cdxa-app-shell .cdxa-space__nav a.is-active { background: var(--id-accent-l); color: var(--id-on-accent-l) !important; box-shadow: none; }
html body.cdxa-id .cdxa-app-shell .cdxa-space__nav a.is-active .cdxa-ico { color: var(--id-on-accent-l); }
html body.cdxa-id-bordeaux .cdxa-app-shell .cdxa-space__nav a { border-radius: 4px; }
html body.cdxa-id .cdxa-app-shell .cdxa-helpcard__icon { background: color-mix(in srgb, var(--id-accent-l) 18%, transparent); color: var(--id-accent-l); }
html body.cdxa-id .cdxa-app-shell .cdxa-helpcard a .cdxa-ico { color: var(--id-accent-l); }
html body.cdxa-id .cdxa-app-shell .cdxa-helpcard__hours { color: var(--id-side-muted); }

/* Contenu */
html body.cdxa-id .cdxa-app-shell .cdxa-card { border-radius: var(--id-radius); }
html body.cdxa-id .cdxa-app-shell .cdxa .cdxa-btn, html body.cdxa-id .cdxa-app-shell a.cdxa-btn, html body.cdxa-id .cdxa-app-shell button.cdxa-btn, html body.cdxa-id .cdxa-app-shell label.cdxa-btn { border-radius: var(--id-btn-radius); }
html body.cdxa-id .cdxa-app-shell .cdxa-btn.cdxa-btn--primary { box-shadow: 0 8px 20px -8px var(--id-shadow); }
html body.cdxa-id .cdxa-app-shell .cdxa-btn.cdxa-btn--line, html body.cdxa-id .cdxa-app-shell label.cdxa-btn--line,
html body.cdxa-id .cdxa-app-shell .cdxa-chip, html body.cdxa-id .cdxa-app-shell .cdxa-queue__item select { border-color: var(--id-line-2); }
html body.cdxa-id .cdxa-app-shell .cdxa-cardtitle > .cdxa-ico { border-radius: var(--id-btn-radius); }
html body.cdxa-id-bordeaux .cdxa-app-shell .cdxa-cardtitle > .cdxa-ico { border-radius: 4px; }

html body.cdxa-id .cdxa-app-shell .cdxa-hero {
	border-radius: var(--id-radius); border-color: var(--id-line);
	background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--id-accent-l) 28%, transparent) 0%, transparent 55%), linear-gradient(120deg, #FFFFFF 0%, var(--id-tint-2) 60%, var(--id-tint) 100%);
}
html body.cdxa-id .cdxa-app-shell .cdxa-hero__art {
	background: linear-gradient(145deg, var(--id-primary-l), var(--id-primary) 55%, var(--id-ink));
	box-shadow: 0 24px 50px -16px var(--id-shadow), inset 0 1px 0 rgba(255,255,255,.25);
}
html body.cdxa-id-bordeaux .cdxa-app-shell .cdxa-hero__art { border-radius: 50%; transform: none; box-shadow: 0 0 0 6px #fff, 0 0 0 7px var(--id-accent-l), 0 24px 50px -16px var(--id-shadow); }
html body.cdxa-id-bordeaux .cdxa-app-shell .cdxa-hero { background: linear-gradient(120deg, #FFFFFF 0%, var(--id-tint-2) 100%); border-top: 3px solid var(--id-primary); }

html body.cdxa-id .cdxa-app-shell .cdxa-progressbar { background: var(--id-track); }
html body.cdxa-id .cdxa-app-shell .cdxa-progressbar span { background: linear-gradient(90deg, var(--id-primary-l), var(--id-primary)); }
html body.cdxa-id-foret .cdxa-app-shell .cdxa-progressbar span { background: linear-gradient(90deg, var(--id-primary), var(--id-accent-l)); }
html body.cdxa-id .cdxa-app-shell .cdxa-timeline li:not(:last-child)::before { background: var(--id-track); }
html body.cdxa-id .cdxa-app-shell .cdxa-timeline__dot { border-color: var(--id-line-2); color: var(--id-primary); }
html body.cdxa-id .cdxa-app-shell .cdxa-advisor__avatar { background: linear-gradient(135deg, var(--id-primary-l), var(--id-ink)); }
html body.cdxa-id .cdxa-app-shell .cdxa-steps__list li:not(:last-child)::after { border-color: var(--id-line-2); }
html body.cdxa-id .cdxa-app-shell .cdxa-steps__ico.is-on { box-shadow: 0 10px 24px -8px var(--id-shadow); }
html body.cdxa-id .cdxa-app-shell .cdxa-dropzone { border-color: var(--id-line-2); background: var(--id-tint-2); border-radius: var(--id-radius); }
html body.cdxa-id .cdxa-app-shell .cdxa-filebtn:focus-within { outline-color: var(--id-accent-l); }
html body.cdxa-id .cdxa-app-shell .cdxa-infobox { background: var(--id-tint-2); border-color: var(--id-line-2); border-radius: var(--id-radius); }
html body.cdxa-id .cdxa-app-shell .cdxa-doclist li.is-new, html body.cdxa-id .cdxa-app-shell .cdxa-notif.is-new { background: var(--id-tint-2); }
html body.cdxa-id .cdxa-app-shell .cdxa-msgs__body { background: var(--id-tint); }
html body.cdxa-id .cdxa-app-shell .cdxa-pill--wait { background: var(--id-tint); color: var(--id-primary-d); }
html body.cdxa-id .cdxa-app-shell .cdxa-tabbar .is-active { color: var(--id-primary) !important; }

@media (max-width: 1024px) {
	html body.cdxa-id .cdxa-app-shell .cdxa-apphead { border-bottom-color: var(--id-line); }
}
