/* ==========================================================================
   NEO — jetons, base, coque et composants globaux
   Les couleurs sont des variables : le kit Elementor (Couleurs globales) peut les remplacer.
   ========================================================================== */

:root {
	--neo-bleu: var(--e-global-color-neobleu, #3563F5);
	--neo-bleu-fonce: #2447C9;
	--neo-nuit: var(--e-global-color-neonuit, #14183A);
	--neo-jaune: var(--e-global-color-neojaune, #FFC83D);
	--neo-turquoise: #12B5B0;
	--neo-orange: #FFB020;
	--neo-violet: #7C5CFA;
	--neo-corail: #FF6B57;
	--neo-vert: #22B07D;

	--neo-bg: #F5F7FC;
	--neo-surf: #FFFFFF;
	--neo-surf2: #F0F3FA;
	--neo-ink: #14183A;
	--neo-muted: #545B7E;
	--neo-line: #E4E8F2;
	--neo-link: #2447C9;
	--neo-soft: #E8EEFE;
	--neo-field: #F7F9FD;
	--neo-idle: #3A4066;
	--neo-ok-bg: #DDF6EC;
	--neo-ok-fg: #0B5E45;
	--neo-warn-bg: #FFF4CC;
	--neo-warn-fg: #6B4A00;
	--neo-ko-bg: #FFE9E4;
	--neo-ko-fg: #B3311C;
	--neo-danger: #B3311C;
	--neo-danger-line: #FFC8BD;
	--neo-quiz-bg: #FFF8E0;
	--neo-pop: 0 0 0 1px #E4E8F2, 0 24px 50px -20px rgba(20, 24, 58, .45);

	--neo-hl-jaune: #FFE27A;
	--neo-hl-vert: #9DEBC6;
	--neo-hl-bleu: #B9D0FF;
	--neo-hl-rose: #FFC2DA;
	--neo-hl-violet: #DACDFF;

	--neo-f-titre: var(--e-global-typography-neotitre-font-family, 'Bricolage Grotesque'), 'Inter', system-ui, sans-serif;
	--neo-f-ui: var(--e-global-typography-neotexte-font-family, 'Inter'), system-ui, -apple-system, 'Segoe UI', sans-serif;
	--neo-f-bible: 'Literata', Georgia, serif;

	--neo-r-s: 14px;
	--neo-r-m: 20px;
	--neo-r-l: 28px;
	--neo-focus: inset 0 0 0 2px #3563F5, 0 0 0 4px rgba(53, 99, 245, .18);
	--neo-side-w: 248px;
	--neo-texte-bible: 18px;
	color-scheme: light;
}

[data-theme="dark"] {
	--neo-bg: #0B0E24;
	--neo-surf: #151A3A;
	--neo-surf2: #1E2450;
	--neo-ink: #EEF1FF;
	--neo-muted: #A9B0D6;
	--neo-line: #2A3166;
	--neo-link: #7C9CFF;
	--neo-soft: #1D2A66;
	--neo-field: #11163A;
	--neo-idle: #C4C9E4;
	--neo-ok-bg: #133F33;
	--neo-ok-fg: #7FE6C1;
	--neo-warn-bg: #2A2410;
	--neo-warn-fg: #FFE08A;
	--neo-ko-bg: #3A1E22;
	--neo-ko-fg: #FFB4A6;
	--neo-danger: #FFB4A6;
	--neo-danger-line: #5A2A2A;
	--neo-quiz-bg: #2A2410;
	--neo-pop: 0 0 0 1px #2A3166, 0 24px 50px -20px rgba(0, 0, 0, .8);
	--neo-hl-jaune: #6B5410;
	--neo-hl-vert: #145C45;
	--neo-hl-bleu: #2A3F94;
	--neo-hl-rose: #6E2348;
	--neo-hl-violet: #48328F;
	color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--neo-bleu) var(--neo-surf2); scrollbar-width: thin; }
[data-theme="dark"] { scrollbar-color: #7C9CFF var(--neo-surf2); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--neo-surf2); }
::-webkit-scrollbar-thumb { background: var(--neo-bleu); border-radius: 10px; border: 2px solid var(--neo-surf2); }
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: #7C9CFF; }
body.neo { margin: 0; min-height: 100vh; font-family: var(--neo-f-ui); font-size: 16px; line-height: 1.5; background: var(--neo-bg); color: var(--neo-ink); -webkit-font-smoothing: antialiased; }
:where(body.neo) a { color: var(--neo-link); }
:where(body.neo) img { max-width: 100%; height: auto; }
:where(body.neo) :where(button, input, textarea, select) { font: inherit; color: inherit; }
body.neo :focus { outline: none; }
body.neo :focus-visible { outline: none; box-shadow: var(--neo-focus) !important; }
.neo-skip { position: absolute; left: -9999px; top: 8px; z-index: 1000; padding: 10px 16px; border-radius: 12px; background: var(--neo-bleu); color: #fff !important; font-weight: 700; }
.neo-skip:focus { left: 8px; }
.neo-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

/* ---------- Logo NEO + badge « Bible » ---------- */
.neo-logo { display: inline-flex; align-items: center; gap: .32em; line-height: 1; vertical-align: middle; font-style: normal; color: inherit; }
.neo-logo__svg { display: block; flex: none; width: 2.2em; height: .8em; fill: currentColor; }
.neo-logo__badge { display: block; flex: none; line-height: 1.25; padding: .18em .6em; border-radius: 9999px; font-family: var(--neo-f-ui); font-weight: 700; font-size: .5em; letter-spacing: 0; background: var(--neo-bleu); color: #FFFFFF; }
.neo-logo__badge--inverse { background: #FFFFFF; color: #2447C9; }

/* ---------- Coque ---------- */
.neo-shell { min-height: 100vh; display: flex; background: linear-gradient(90deg, var(--neo-surf) 0 calc(var(--neo-side-w) - 1px), var(--neo-line) calc(var(--neo-side-w) - 1px) var(--neo-side-w), var(--neo-bg) var(--neo-side-w)); }
.neo-side { flex: none; width: var(--neo-side-w); position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 26px 16px; display: flex; flex-direction: column; gap: 26px; background: var(--neo-surf); border-right: 1px solid var(--neo-line); }
.neo-side__logo { padding: 0 12px; display: inline-flex; align-items: center; text-decoration: none; color: var(--neo-ink) !important; font-size: 24px; }
.neo-nav { display: flex; flex-direction: column; gap: 4px; }
.neo-nav + .neo-nav { padding-top: 18px; border-top: 1px solid var(--neo-line); }
.neo-nav a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px; border-radius: 14px; font-size: 15px; font-weight: 600; text-decoration: none; color: var(--neo-idle); transition: background .15s ease-out, color .15s ease-out; }
.neo-nav--2 a { min-height: 44px; font-size: 14px; }
.neo-nav a:hover { background: var(--neo-surf2); }
.neo-nav a[aria-current="page"] { background: var(--neo-bleu); color: #FFFFFF; }
.neo-side__bas { margin-top: auto; }
.neo-etape-carte { padding: 14px 16px; border-radius: 18px; background: var(--neo-surf2); display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--neo-ink) !important; }
.neo-etape-carte__haut { display: flex; align-items: center; gap: 10px; }
.neo-etape-carte__ic { flex: none; width: 32px; height: 32px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: var(--neo-bleu); color: #FFC83D; }
.neo-etape-carte small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--neo-muted); }
.neo-etape-carte b { font-size: 15px; }
.neo-etape-carte p { margin: 0; font-size: 12px; color: var(--neo-muted); }

.neo-main { flex: 1; min-width: 0; padding: 28px clamp(24px, 4vw, 56px) 56px; display: flex; flex-direction: column; gap: 24px; position: relative; }
.neo-main > .elementor, .neo-main > article, .neo-article { width: 100%; }
.neo-main .elementor-section.elementor-section-boxed > .elementor-container { max-width: none; }
.neo-page-seule { min-height: 100vh; }

/* Actions en haut à droite (thème, cloche, avatar) */
.neo-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.neo-rond { position: relative; width: 48px; height: 48px; border: 0; border-radius: 24px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; background: var(--neo-surf); color: var(--neo-ink) !important; box-shadow: inset 0 0 0 1px var(--neo-line); text-decoration: none; }
.neo-rond:hover { background: var(--neo-surf2); }
.neo-rond__compte { position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--neo-corail); color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px var(--neo-bg); }
.neo-avatar-btn { height: 48px; padding: 0 12px 0 4px; border: 0; border-radius: 24px; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; background: var(--neo-surf); color: var(--neo-ink); box-shadow: inset 0 0 0 1px var(--neo-line); font-weight: 700; font-size: 14px; }
.neo-avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; background: var(--neo-surf); color: var(--neo-ink); box-shadow: inset 0 0 0 2px var(--neo-bleu); font: 800 14px var(--neo-f-titre); }
.neo-avatar img { width: 100%; height: 100%; object-fit: cover; }
.neo-avatar--plein { background: var(--neo-bleu); color: #fff; box-shadow: none; }
.neo-menu-avatar { position: relative; }
.neo-menu-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: 272px; padding: 10px; border-radius: 22px; background: var(--neo-surf); box-shadow: var(--neo-pop); display: flex; flex-direction: column; gap: 2px; }
.neo-menu-pop__qui { display: flex; align-items: center; gap: 12px; padding: 8px 8px 14px; margin-bottom: 4px; border-bottom: 1px solid var(--neo-line); }
.neo-menu-pop__qui b { display: block; font-size: 15px; }
.neo-menu-pop__qui small { display: block; font-size: 12px; color: var(--neo-muted); word-break: break-all; }
.neo-menu-pop a, .neo-menu-pop button { min-height: 46px; padding: 0 10px; border: 0; border-radius: 12px; display: flex; align-items: center; gap: 12px; background: transparent; text-decoration: none; color: var(--neo-ink) !important; font-size: 15px; font-weight: 600; cursor: pointer; text-align: left; width: 100%; }
.neo-menu-pop a:hover, .neo-menu-pop button:hover { background: var(--neo-surf2); }
.neo-menu-pop .neo-menu-pop__sortie { margin-top: 4px; border-top: 1px solid var(--neo-line); border-radius: 0 0 12px 12px; color: var(--neo-danger) !important; }

.neo-entete-bureau { display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.neo-entete-bureau--recherche { justify-content: space-between; }
.neo-recherche-barre { flex: 1; max-width: 556px; height: 48px; padding: 0 20px; border-radius: 24px; display: flex; align-items: center; gap: 12px; background: var(--neo-surf); box-shadow: inset 0 0 0 1px var(--neo-line); color: var(--neo-muted); }
.neo-recherche-barre input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--neo-ink); font-size: 15px; }
.neo-recherche-barre input::placeholder { color: var(--neo-muted); }
.neo-recherche-barre:focus-within { box-shadow: var(--neo-focus); }

/* Mobile */
.neo-mobile-haut, .neo-barre-bas { display: none; }
@media (max-width: 1023px) {
	.neo-shell { display: block; background: var(--neo-bg); }
	.neo-side { display: none; }
	.neo-main { padding: 0 16px 120px; gap: 22px; }
	.neo-entete-bureau { display: none; }
	.neo-mobile-haut { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 16px 6px; position: relative; z-index: 50; }
	.neo-mobile-haut .neo-side__logo { padding: 0; font-size: 26px; }
	.neo-mobile-haut .neo-rond { width: 44px; height: 44px; }
	.neo-mobile-haut .neo-avatar { width: 44px; height: 44px; }
	.neo-barre-bas { display: flex; position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 70; padding: 8px; border-radius: 28px; background: var(--neo-surf); box-shadow: var(--neo-pop); justify-content: space-between; gap: 2px; }
	.neo-barre-bas a { flex: 1; min-width: 0; min-height: 56px; border-radius: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 11px; font-weight: 700; text-decoration: none; color: var(--neo-idle) !important; }
	.neo-barre-bas a span.neo-barre-bas__ic { width: 52px; height: 32px; border-radius: 16px; display: flex; align-items: center; justify-content: center; }
	.neo-barre-bas a[aria-current="page"] { color: var(--neo-bleu) !important; }
	[data-theme="dark"] .neo-barre-bas a[aria-current="page"] { color: #7C9CFF !important; }
	.neo-barre-bas a[aria-current="page"] span.neo-barre-bas__ic { background: var(--neo-bleu); color: #FFFFFF; }
	.neo-menu-pop { position: fixed; left: 16px; right: 16px; top: 72px; width: auto; }
}

/* ---------- Typographie ---------- */
.neo-h1 { margin: 0; font-family: var(--neo-f-titre); font-weight: 800; font-size: clamp(32px, 4vw, 44px); line-height: 1.05; letter-spacing: -.02em; color: var(--neo-ink); }
.neo-h2 { margin: 0; font-family: var(--neo-f-titre); font-weight: 800; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.15; letter-spacing: -.01em; color: var(--neo-ink); }
.neo-h3 { margin: 0; font-family: var(--neo-f-titre); font-weight: 800; font-size: 20px; line-height: 1.2; color: var(--neo-ink); }
.neo-sous { margin: 6px 0 0; font-size: 16px; color: var(--neo-muted); }
.neo-kicker { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--neo-link); }
.neo-muted { color: var(--neo-muted); }
.neo-bible { font-family: var(--neo-f-bible); }

/* ---------- Cartes ---------- */
.neo-carte { padding: 24px; border-radius: 24px; background: var(--neo-surf); box-shadow: inset 0 0 0 1px var(--neo-line); }
.neo-carte--l { padding: clamp(20px, 3vw, 40px); border-radius: 28px; }
.neo-carte--douce { background: var(--neo-soft); box-shadow: none; }
.neo-carte--grise { background: var(--neo-surf2); box-shadow: none; }

/* ---------- Boutons ---------- */
.neo-btn { min-height: 50px; padding: 0 24px; border: 0; border-radius: 26px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 700 15px var(--neo-f-ui); text-decoration: none !important; cursor: pointer; white-space: nowrap; transition: transform .15s ease-out, background .15s ease-out, opacity .15s; background: var(--neo-bleu); color: #FFFFFF !important; }
.neo-btn:hover { background: #2447C9; }
.neo-btn:active { transform: scale(.98); }
.neo-btn[disabled], .neo-btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.neo-btn--l { min-height: 52px; font-size: 16px; }
.neo-btn--s { min-height: 40px; padding: 0 16px; font-size: 13px; border-radius: 20px; }
.neo-btn--doux { background: var(--neo-soft); color: var(--neo-link) !important; }
.neo-btn--doux:hover { background: var(--neo-soft); filter: brightness(.97); }
.neo-btn--contour { background: transparent; color: var(--neo-ink) !important; box-shadow: inset 0 0 0 1.5px var(--neo-line); }
.neo-btn--contour:hover { background: var(--neo-surf2); }
.neo-btn--gris { background: var(--neo-surf2); color: var(--neo-ink) !important; }
.neo-btn--gris:hover { background: var(--neo-line); }
.neo-btn--blanc { background: #FFFFFF; color: #14183A !important; }
.neo-btn--blanc:hover { background: #F0F3FA; }
.neo-btn--teinte-clair { background: rgba(20, 24, 58, .10); color: #14183A !important; }
.neo-btn--teinte-clair:hover { background: rgba(20, 24, 58, .16); }
.neo-btn--teinte-fonce { background: rgba(255, 255, 255, .16); color: #FFFFFF !important; }
.neo-btn--teinte-fonce:hover { background: rgba(255, 255, 255, .24); }
.neo-btn--danger { background: var(--neo-ko-bg); color: var(--neo-danger) !important; }
.neo-btn--danger-plein { background: #B3311C; color: #fff !important; }
.neo-btn--danger-plein:hover { background: #8F2414; }
.neo-btn--plein { width: 100%; }
.neo-btn.is-loading { pointer-events: none; opacity: .75; }
.neo-btn.is-loading::after { content: ''; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: neo-spin .7s linear infinite; }
@keyframes neo-spin { to { transform: rotate(360deg); } }
.neo-lien { background: none; border: 0; padding: 0; cursor: pointer; font-weight: 700; color: var(--neo-link) !important; text-decoration: underline; text-underline-offset: 3px; }
.neo-lien-retour { align-self: flex-start; min-height: 36px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; text-decoration: none !important; color: var(--neo-link) !important; }

/* ---------- Pastilles ---------- */
.neo-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--neo-surf2); color: var(--neo-ink); }
.neo-chip--ok { background: var(--neo-ok-bg); color: var(--neo-ok-fg); }
.neo-chip--warn { background: var(--neo-warn-bg); color: var(--neo-warn-fg); }
.neo-chip--ko { background: var(--neo-ko-bg); color: var(--neo-ko-fg); }
.neo-chip--bleu { background: var(--neo-bleu); color: #fff; }
.neo-chip--doux { background: var(--neo-soft); color: var(--neo-link); }
.neo-point { width: 10px; height: 10px; border-radius: 5px; flex: none; display: inline-block; }
.neo-filtres { display: flex; gap: 8px; flex-wrap: wrap; }
.neo-filtre { min-height: 40px; padding: 0 16px; border: 0; border-radius: 20px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font: 700 14px var(--neo-f-ui); text-decoration: none !important; background: var(--neo-surf); color: var(--neo-ink) !important; box-shadow: inset 0 0 0 1px var(--neo-line); }
.neo-filtre[aria-pressed="true"], .neo-filtre[aria-selected="true"], .neo-filtre[aria-current="page"] { background: var(--neo-bleu); color: #FFFFFF !important; box-shadow: none; }

/* ---------- Formulaires ---------- */
.neo-champ { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.neo-champ > label, .neo-label { font-size: 13px; font-weight: 700; color: var(--neo-ink); }
.neo-input, .neo-textarea { width: 100%; min-height: 52px; padding: 0 16px; border: 0; border-radius: 16px; background: var(--neo-field); color: var(--neo-ink); box-shadow: inset 0 0 0 1.5px var(--neo-line); font-size: 15px; }
.neo-textarea { padding: 14px 16px; min-height: 120px; resize: vertical; line-height: 1.55; }
.neo-input::placeholder, .neo-textarea::placeholder { color: var(--neo-muted); opacity: .85; }
.neo-input:focus, .neo-textarea:focus { box-shadow: var(--neo-focus); }
.neo-champ.is-error .neo-input, .neo-champ.is-error .neo-textarea, .neo-champ.is-error .neo-select__btn { box-shadow: inset 0 0 0 2px var(--neo-danger); }
.neo-champ__err { font-size: 13px; font-weight: 600; color: var(--neo-danger); display: flex; gap: 6px; align-items: center; }
.neo-champ__aide { font-size: 12px; color: var(--neo-muted); }
.neo-grille-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; }
@media (max-width: 560px) { .neo-grille-2 { grid-template-columns: minmax(0, 1fr); } }
.neo-mdp { position: relative; }
.neo-mdp .neo-input { padding-right: 52px; }
.neo-mdp__voir { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 20px; background: transparent; color: var(--neo-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.neo-case { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 14px; line-height: 1.5; }
.neo-case input { appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin: 0; border-radius: 7px; background: var(--neo-field); box-shadow: inset 0 0 0 1.5px var(--neo-muted); cursor: pointer; display: grid; place-content: center; }
.neo-case input:checked { background: var(--neo-bleu); box-shadow: none; }
.neo-case input:checked::after { content: ''; width: 11px; height: 6px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: translateY(-1px) rotate(-45deg); }
.neo-case input[type="radio"] { border-radius: 50%; }
.neo-case input[type="radio"]:checked::after { width: 8px; height: 8px; border: 0; border-radius: 50%; background: #fff; transform: none; }
.neo-jauge { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.neo-jauge span { height: 5px; border-radius: 3px; background: var(--neo-line); }
.neo-jauge[data-n="1"] span:nth-child(-n+1) { background: #FF6B57; }
.neo-jauge[data-n="2"] span:nth-child(-n+2) { background: #FFB020; }
.neo-jauge[data-n="3"] span:nth-child(-n+3) { background: #22B07D; }
.neo-jauge[data-n="4"] span { background: #22B07D; }
.neo-regles { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.neo-regles li { display: flex; align-items: center; gap: 6px; color: var(--neo-muted); }
.neo-regles li.ok { color: var(--neo-ok-fg); }
.neo-piege { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* Liste déroulante stylée (jamais de <select> natif visible) */
.neo-select { position: relative; }
.neo-select__btn { width: 100%; min-height: 52px; padding: 0 14px 0 16px; border: 0; border-radius: 16px; display: flex; align-items: center; gap: 10px; cursor: pointer; text-align: left; background: var(--neo-field); color: var(--neo-ink); box-shadow: inset 0 0 0 1.5px var(--neo-line); font-size: 15px; }
.neo-select__btn[aria-expanded="true"] { box-shadow: inset 0 0 0 2px var(--neo-bleu); }
.neo-select__btn .neo-select__val { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.neo-select__btn .neo-select__val.is-vide { color: var(--neo-muted); }
.neo-select__pop { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 80; padding: 8px; border-radius: 20px; background: var(--neo-surf); box-shadow: var(--neo-pop); max-height: 320px; display: flex; flex-direction: column; }
.neo-select__cherche { flex: none; height: 44px; margin-bottom: 6px; padding: 0 12px; border-radius: 14px; display: flex; align-items: center; gap: 8px; background: var(--neo-surf2); color: var(--neo-muted); }
.neo-select__cherche input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--neo-ink); font-size: 14px; }
.neo-select__cherche small { font-size: 12px; font-weight: 700; color: var(--neo-muted); white-space: nowrap; }
.neo-select__liste { margin: 0; padding: 0; list-style: none; overflow-y: auto; }
.neo-select__liste li { min-height: 46px; padding: 0 10px; border-radius: 12px; display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 15px; }
.neo-select__liste li[aria-selected="true"] { background: var(--neo-soft); font-weight: 700; }
.neo-select__liste li.is-actif { background: var(--neo-surf2); }
.neo-select__vide { padding: 14px 10px; font-size: 13px; color: var(--neo-muted); }
.neo-drapeau { flex: none; width: 30px; height: 20px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; line-height: 1; overflow: hidden; box-shadow: inset 0 0 0 1px var(--neo-line); }

/* Interrupteur */
.neo-switch { flex: none; width: 46px; height: 28px; border: 0; border-radius: 14px; padding: 3px; display: flex; cursor: pointer; justify-content: flex-start; background: var(--neo-line); transition: background .15s ease-out; }
.neo-switch::after { content: ''; width: 22px; height: 22px; border-radius: 11px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s ease-out; }
.neo-switch[aria-checked="true"] { background: var(--neo-bleu); }
.neo-switch[aria-checked="true"]::after { transform: translateX(18px); }
.neo-switch[disabled] { opacity: .6; cursor: not-allowed; }

/* Progression */
.neo-barre { height: 8px; border-radius: 4px; background: var(--neo-soft); overflow: hidden; }
.neo-barre > span { display: block; height: 100%; border-radius: 4px; background: var(--neo-bleu); min-width: 4px; }
.neo-barre--jaune > span { background: #FFC83D; }
.neo-barre--blanc { background: rgba(255, 255, 255, .28); }

/* Onglets segmentés */
.neo-segments { display: inline-flex; padding: 4px; border-radius: 26px; background: var(--neo-surf); box-shadow: inset 0 0 0 1px var(--neo-line); gap: 4px; }
.neo-segments button, .neo-segments a { min-height: 44px; padding: 0 20px; border: 0; border-radius: 22px; cursor: pointer; font: 700 15px var(--neo-f-ui); background: transparent; color: var(--neo-ink) !important; text-decoration: none; display: inline-flex; align-items: center; }
.neo-segments [aria-selected="true"], .neo-segments [aria-current="page"] { background: var(--neo-bleu); color: #FFFFFF !important; }

/* ---------- États communs (DeskEtats) ---------- */
.neo-vide { padding: 40px 24px; border-radius: 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; background: var(--neo-surf); box-shadow: inset 0 0 0 1px var(--neo-line); }
.neo-vide__ic { width: 64px; height: 64px; border-radius: 22px; display: flex; align-items: center; justify-content: center; background: var(--neo-soft); color: var(--neo-link); }
.neo-vide b, .neo-vide__t { margin: 0; font: 800 20px var(--neo-f-titre); }
.neo-vide p { margin: 0; max-width: 420px; color: var(--neo-muted); }
.neo-squelette { border-radius: 14px; background: linear-gradient(90deg, var(--neo-surf2), var(--neo-line), var(--neo-surf2)); background-size: 200% 100%; animation: neo-sq 1.2s ease-in-out infinite; }
@keyframes neo-sq { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.neo-bandeau { padding: 14px 18px; border-radius: 18px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.neo-bandeau--info { background: var(--neo-soft); color: var(--neo-ink); }
.neo-bandeau--warn { background: var(--neo-warn-bg); color: var(--neo-warn-fg); }
.neo-bandeau--ko { background: var(--neo-ko-bg); color: var(--neo-ko-fg); }
.neo-bandeau--ok { background: var(--neo-ok-bg); color: var(--neo-ok-fg); }
.neo-bandeau b { color: inherit; }
.neo-bandeau .neo-btn { margin-left: auto; }
.neo-hors-ligne { position: fixed; left: 50%; top: 12px; transform: translateX(-50%); z-index: 200; padding: 10px 16px; border-radius: 999px; background: #14183A; color: #fff; font-size: 13px; font-weight: 700; box-shadow: var(--neo-pop); }

/* Toasts */
.neo-toasts { position: fixed; z-index: 300; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
@media (max-width: 1023px) { .neo-toasts { left: 16px; right: 16px; bottom: 100px; } }
.neo-toast { pointer-events: auto; min-width: 280px; max-width: 420px; padding: 14px 16px; border-radius: 18px; display: flex; align-items: center; gap: 12px; background: #14183A; color: #FFFFFF; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6); font-size: 14px; font-weight: 600; animation: neo-in .2s ease-out; }
[data-theme="dark"] .neo-toast { background: #EEF1FF; color: #14183A; }
.neo-toast__ic { flex: none; width: 28px; height: 28px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: #22B07D; color: #fff; }
.neo-toast--info .neo-toast__ic { background: var(--neo-bleu); }
.neo-toast--erreur .neo-toast__ic { background: #FF6B57; }
.neo-toast button { margin-left: auto; border: 0; background: transparent; color: inherit; cursor: pointer; font-weight: 700; text-decoration: underline; }

/* Fenêtres (dialog) */
.neo-modal { position: fixed; inset: 0; z-index: 250; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(11, 14, 36, .55); animation: neo-fade .15s ease-out; }
.neo-modal__boite { position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow-y: auto; padding: 28px; border-radius: 28px; background: var(--neo-surf); color: var(--neo-ink); box-shadow: var(--neo-pop); display: flex; flex-direction: column; gap: 16px; animation: neo-in .2s ease-out; }
.neo-modal__boite--l { max-width: 640px; }
.neo-modal__fermer { position: absolute; right: 18px; top: 18px; }
.neo-modal__titre { margin: 0; padding-right: 48px; font: 800 24px/1.2 var(--neo-f-titre); }
.neo-modal__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 560px) { .neo-modal { align-items: flex-end; padding: 0; } .neo-modal__boite { border-radius: 28px 28px 0 0; max-height: 92vh; } .neo-modal__actions .neo-btn { flex: 1; } }
@keyframes neo-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes neo-fade { from { opacity: 0; } to { opacity: 1; } }

/* Fondu des pages */
body.neo .neo-main > *, body.neo .neo-page-seule > * { animation: neo-fade .15s ease-out; }

/* Réduire les animations */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
body.neo-sans-animation *, body.neo-sans-animation *::before, body.neo-sans-animation *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }

/* Contenu éditorial simple (pages sans écran) */
.neo-article { max-width: 760px; }
.neo-main > .neo-article { max-width: none; }
.neo-article p, .neo-article li { line-height: 1.7; }
