/* EB Espace — composants front (réservation, connexion, espace client, forum).
   Utilise les variables sémantiques du thème (--eb-bg, --eb-surface, --eb-text, --eb-heading, --eb-muted,
   --eb-line, --eb-accent, --eb-accent-contrast…) avec valeurs de repli, et s'adapte à <html data-theme="dark">. */

.eb-app,
.eb-toasts,
.eb-dialog {
	/* Palette de marque (fixe). */
	--c-forest: var(--eb-forest, #0E2A24);
	--c-green: var(--eb-green, #014235);
	--c-sage: var(--eb-sage, #35685E);
	--c-jade: var(--eb-jade, #4A9183);
	--c-mint: var(--eb-mint, #DCEBE5);
	--c-ivory: var(--eb-ivory, #FFFDF7);
	--c-cream: var(--eb-cream, #FAF5EB);
	--c-sand: var(--eb-sand, #F4EBD7);
	--c-rose: var(--eb-rose, #E1C1BC);
	--c-terra: var(--eb-terra, #A45F53);
	--c-gold: var(--eb-gold, #C9A45C);

	/* Rôles (clair). */
	--c-bg: var(--eb-bg, var(--c-cream));
	--c-bg-alt: var(--eb-bg-alt, var(--c-sand));
	--c-surface: var(--eb-surface, var(--c-ivory));
	--c-raised: #fff;
	--c-field: #fff;
	--c-field-line: rgba(1, 66, 53, .2);
	--c-ink: var(--eb-text, var(--eb-ink, #1D2927));
	--c-heading: var(--eb-heading, var(--c-green));
	--c-muted: var(--eb-muted, #5F6E6A);
	--c-line: var(--eb-line, rgba(1, 66, 53, .12));
	--c-accent: var(--eb-accent, var(--c-green));
	--c-accent-hover: var(--c-sage);
	--c-on-accent: var(--eb-accent-contrast, var(--c-ivory));
	--c-link: var(--c-accent);
	--c-icon: var(--c-green);
	--c-soft: var(--c-mint);
	--c-soft-ink: var(--c-green);
	--c-subtle-ink: var(--c-sage);
	--c-hover: rgba(220, 235, 229, .4);
	--c-tab-hover: rgba(255, 255, 255, .6);
	--c-hero-end: var(--c-mint);
	--c-warm: var(--c-terra);
	--c-disabled: #B5BDBA;
	--c-switch-off: #CBD3D0;
	--c-star-off: #D3CCBF;
	--c-gold-ink: #7d6121;
	--c-toast: var(--c-green);
	--c-toast-ink: var(--c-ivory);
	--c-backdrop: rgba(14, 42, 36, .45);
	--b-pending-bg: #FBEFD6;
	--b-pending-ink: #8A6420;
	--b-done-bg: #E4EEF0;
	--b-done-ink: #2F5960;
	--b-off-bg: #EFEDEA;
	--b-off-ink: #7A7672;
	--b-bad-bg: #F6E3E0;
	--b-bad-ink: var(--c-terra);
	--c-error-ink: #7c3a30;
	--c-warning-ink: #7a5716;
	--btn-shadow: 0 8px 20px -10px rgba(1, 66, 53, .7);

	--r: var(--eb-radius, 18px);
	--r-sm: 12px;
	--shadow: var(--eb-shadow, 0 10px 30px -12px rgba(14, 42, 36, .25));
	--shadow-sm: 0 2px 10px -4px rgba(14, 42, 36, .18);
	--f-display: var(--eb-font-display, "Cormorant Garamond", Georgia, serif);
	--f-body: var(--eb-font-body, inherit);
	--focus: 0 0 0 3px rgba(74, 145, 131, .45);
}

/* Rôles (sombre) — le thème redéfinit les --eb-* ; les replis servent au tableau de bord plein écran. */
[data-theme="dark"] .eb-app,
[data-theme="dark"] .eb-toasts,
[data-theme="dark"] .eb-dialog {
	color-scheme: dark;
	--c-jade: #6FB3A4;
	--c-bg: var(--eb-bg, #0B1A17);
	--c-bg-alt: var(--eb-bg-alt, #10231F);
	--c-surface: var(--eb-surface, #15302A);
	--c-raised: #1A3832;
	--c-field: #0F2520;
	--c-field-line: rgba(233, 239, 234, .2);
	--c-ink: var(--eb-text, #E9EFEA);
	--c-heading: var(--eb-heading, #F3E9D2);
	--c-muted: var(--eb-muted, #9DB3AC);
	--c-line: var(--eb-line, rgba(233, 239, 234, .12));
	--c-accent: var(--eb-accent, #C9A45C);
	--c-accent-hover: #D9B977;
	--c-on-accent: var(--eb-accent-contrast, #0B1A17);
	--c-icon: var(--c-heading);
	--c-soft: rgba(111, 179, 164, .18);
	--c-soft-ink: #BFE0D5;
	--c-subtle-ink: #B7CBC4;
	--c-hover: rgba(233, 239, 234, .05);
	--c-tab-hover: rgba(233, 239, 234, .07);
	--c-hero-end: #1C3B34;
	--c-warm: #E3A193;
	--c-disabled: rgba(233, 239, 234, .26);
	--c-switch-off: rgba(233, 239, 234, .22);
	--c-star-off: rgba(233, 239, 234, .25);
	--c-gold-ink: #E5C98F;
	--c-toast: #234A41;
	--c-toast-ink: #E9EFEA;
	--c-backdrop: rgba(0, 0, 0, .6);
	--b-pending-bg: rgba(201, 164, 92, .18);
	--b-pending-ink: #E5C98F;
	--b-done-bg: rgba(120, 170, 180, .18);
	--b-done-ink: #A9CBD2;
	--b-off-bg: rgba(233, 239, 234, .08);
	--b-off-ink: #9DB3AC;
	--b-bad-bg: rgba(227, 161, 147, .16);
	--b-bad-ink: #F0B5A8;
	--c-error-ink: #F0B5A8;
	--c-warning-ink: #E5C98F;
	--btn-shadow: 0 8px 20px -12px rgba(0, 0, 0, .7);
	--shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
	--shadow-sm: 0 2px 10px -4px rgba(0, 0, 0, .5);
	--focus: 0 0 0 3px rgba(201, 164, 92, .45);
}

.eb-app {
	color: var(--c-ink);
	font-family: var(--f-body);
	line-height: 1.55;
	font-size: 1rem;
	box-sizing: border-box;
	max-width: 1180px;
	margin-inline: auto;
}
.eb-app *, .eb-app *::before, .eb-app *::after, .eb-dialog *, .eb-dialog *::before, .eb-dialog *::after { box-sizing: border-box; }
.eb-app a { color: var(--c-link); }
.eb-app :focus-visible, .eb-dialog :focus-visible { outline: none; box-shadow: var(--focus); border-radius: 8px; }
.eb-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; }
.eb-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.eb-live:empty { display: none; }
.eb-muted { color: var(--c-muted); }
.eb-small { font-size: .875rem; }
.eb-center { text-align: center; }
.eb-help { display: block; font-size: .85rem; color: var(--c-muted); margin: .35rem 0 0; }
.eb-eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; color: var(--c-jade); margin: 0 0 .2rem; font-weight: 600; }
.ebs-h2, .ebs-h3, .ebs-h4 { font-family: var(--f-display); color: var(--c-heading); font-weight: 500; line-height: 1.2; margin: 0 0 .6rem; }
.ebs-h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.ebs-h3 { font-size: 1.45rem; }
.ebs-h4 { font-size: 1.15rem; margin-top: 1.2rem; }
.ebs-lead { font-size: 1.1rem; color: var(--c-muted); }
.ebs-empty { color: var(--c-muted); padding: 1rem 0; margin: 0; font-style: italic; }
.ebs-icon { flex-shrink: 0; vertical-align: middle; }

/* Cartes & grilles */
.ebs-card { background: var(--c-surface); color: var(--c-ink); border: 1px solid var(--c-line); border-radius: var(--r); box-shadow: var(--shadow-sm); padding: clamp(1.1rem, 2.5vw, 1.75rem); margin-bottom: 1.25rem; }
.ebs-card--flush { padding: 0; overflow: hidden; }
.ebs-card--soft { background: var(--c-bg-alt); border-color: transparent; box-shadow: none; }
.ebs-card--hero { background: linear-gradient(135deg, var(--c-surface), var(--c-hero-end)); }
.eb-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.eb-card__head a { font-size: .9rem; text-decoration: none; white-space: nowrap; }
.eb-grid { display: grid; gap: 1.25rem; }
.eb-grid > .ebs-card { margin-bottom: 0; }
.eb-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); }
.eb-grid--home { grid-template-columns: 1fr; }
.eb-grid-2, .eb-grid-3, .eb-grid-4 { display: grid; gap: 0 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) {
	.eb-grid-2 { grid-template-columns: 1fr 1fr; }
	.eb-grid-3 { grid-template-columns: repeat(3, 1fr); }
	.eb-grid-4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 900px) {
	.eb-grid--home { grid-template-columns: 1.4fr 1fr; }
	.eb-grid--home > .ebs-card--hero { grid-row: span 1; }
}
.eb-stack { display: flex; flex-direction: column; gap: 1rem; }
.eb-stack > .ebs-card { margin-bottom: 0; }
.eb-stack--sm { gap: .5rem; }
.eb-row { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.eb-row--between { justify-content: space-between; }
.ebs-btn-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .5rem 0; }

/* Boutons */
.ebs-btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .7rem 1.3rem; border-radius: 999px; border: 1px solid transparent; font: inherit; font-weight: 500; font-size: .95rem; line-height: 1.2; cursor: pointer; text-decoration: none; transition: background .2s, color .2s, box-shadow .2s, transform .15s; background: var(--c-soft); color: var(--c-soft-ink); }
.eb-app a.ebs-btn { text-decoration: none; }
.ebs-btn:hover { transform: translateY(-1px); }
.ebs-btn--primary { background: var(--c-accent); color: var(--c-on-accent) !important; box-shadow: var(--btn-shadow); }
.ebs-btn--primary:hover { background: var(--c-accent-hover); }
.ebs-btn--ghost { background: transparent; border-color: var(--c-line); color: var(--c-link) !important; }
.ebs-btn--ghost:hover { background: var(--c-soft); border-color: transparent; }
.ebs-btn--danger { background: transparent; border-color: rgba(164, 95, 83, .35); color: var(--c-warm) !important; }
.ebs-btn--danger:hover { background: var(--c-terra); color: #fff !important; }
.ebs-btn--sm { padding: .45rem .9rem; font-size: .85rem; }
.ebs-btn--lg { padding: .95rem 1.6rem; font-size: 1.05rem; }
.ebs-btn--block { width: 100%; }
.ebs-btn[disabled], .ebs-btn.is-busy { opacity: .6; cursor: progress; transform: none; }
.ebs-icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--c-line); background: var(--c-surface); color: var(--c-icon); cursor: pointer; padding: 0; text-decoration: none; position: relative; }
.ebs-icon-btn:hover { background: var(--c-soft); }
.ebs-icon-btn[disabled] { opacity: .35; cursor: default; }
.ebs-icon-btn--sm { width: 32px; height: 32px; border: none; background: transparent; color: var(--c-muted); }
.ebs-icon-btn--sm:hover { color: var(--c-warm); background: rgba(164, 95, 83, .08); }
.eb-linklike { background: none; border: 0; padding: 0; color: var(--c-link); text-decoration: underline; cursor: pointer; font: inherit; text-align: left; }
.eb-back { display: inline-flex; align-items: center; gap: .3rem; background: none; border: 0; padding: .25rem 0; margin-bottom: .75rem; color: var(--c-subtle-ink); cursor: pointer; font: inherit; font-size: .92rem; text-decoration: none; }
.ebs-link { font-weight: 500; text-decoration: none; }

/* Badges */
.ebs-badge { display: inline-flex; align-items: center; gap: .25rem; padding: .18rem .6rem; border-radius: 999px; font-size: .76rem; font-weight: 600; letter-spacing: .02em; background: var(--c-bg-alt); color: var(--c-ink); white-space: nowrap; }
.ebs-badge--confirmed { background: var(--c-soft); color: var(--c-soft-ink); }
.ebs-badge--pending { background: var(--b-pending-bg); color: var(--b-pending-ink); }
.ebs-badge--completed { background: var(--b-done-bg); color: var(--b-done-ink); }
.ebs-badge--cancelled { background: var(--b-off-bg); color: var(--b-off-ink); text-decoration: line-through; }
.ebs-badge--no_show { background: var(--b-bad-bg); color: var(--b-bad-ink); }
.ebs-badge--paid { background: var(--c-soft); color: var(--c-soft-ink); }
.ebs-badge--due { background: var(--b-bad-bg); color: var(--b-bad-ink); }
.eb-pill { display: inline-block; padding: .1rem .55rem; border-radius: 999px; font-size: .72rem; background: var(--c-bg-alt); color: var(--c-muted); font-weight: 600; vertical-align: middle; }
.eb-pill--gold { background: rgba(201, 164, 92, .2); color: var(--c-gold-ink); }
.eb-pill--green { background: var(--c-accent); color: var(--c-on-accent); }
.eb-tag { display: inline-block; padding: .12rem .55rem; border-radius: 6px; background: var(--c-soft); color: var(--c-soft-ink) !important; font-size: .78rem; text-decoration: none; margin: .1rem 0; }
.eb-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--c-terra); color: #fff; font-size: .72rem; font-weight: 700; line-height: 1; }
.eb-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c-line); vertical-align: middle; }
.eb-dot--ok { background: var(--c-jade); }
.eb-avatar { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--c-bg-alt); color: var(--c-subtle-ink); font-weight: 600; font-size: .85rem; flex-shrink: 0; letter-spacing: .02em; }
.eb-avatar--pro { background: var(--c-accent); color: var(--c-on-accent); }
.eb-avatar--lg { width: 64px; height: 64px; font-size: 1.3rem; }

/* Formulaires */
.eb-form { display: block; }
.eb-field { margin-bottom: 1rem; }
.eb-field label, .eb-label, .eb-form > label:not(.eb-check):not(.eb-switch) { display: block; font-weight: 500; font-size: .92rem; margin-bottom: .35rem; color: var(--c-ink); }
.eb-app input[type=text], .eb-app input[type=email], .eb-app input[type=tel], .eb-app input[type=password], .eb-app input[type=search], .eb-app input[type=number], .eb-app input[type=date], .eb-app input[type=time], .eb-app input[type=url], .eb-app input:not([type]), .eb-app select, .eb-app textarea,
.eb-dialog input[type=text], .eb-dialog input[type=email], .eb-dialog input[type=tel], .eb-dialog input[type=search], .eb-dialog input[type=number], .eb-dialog input[type=date], .eb-dialog input[type=time], .eb-dialog input:not([type]), .eb-dialog select, .eb-dialog textarea {
	width: 100%; padding: .72rem .9rem; border: 1px solid var(--c-field-line); border-radius: var(--r-sm); background: var(--c-field); color: var(--c-ink); font: inherit; font-size: 1rem; transition: border-color .2s, box-shadow .2s; min-height: 46px;
}
.eb-app ::placeholder, .eb-dialog ::placeholder { color: var(--c-muted); opacity: .8; }
.eb-app textarea, .eb-dialog textarea { resize: vertical; min-height: 90px; }
.eb-app input:focus, .eb-app select:focus, .eb-app textarea:focus, .eb-dialog input:focus, .eb-dialog select:focus, .eb-dialog textarea:focus { outline: none; border-color: var(--c-jade); box-shadow: var(--focus); }
.eb-app [aria-invalid=true] { border-color: var(--c-warm) !important; }
.eb-app input[type=color] { width: 56px; height: 46px; padding: 4px; border: 1px solid var(--c-line); border-radius: var(--r-sm); background: var(--c-field); }
.eb-app input[readonly] { background: var(--c-bg); }
.eb-check { display: flex; gap: .6rem; align-items: flex-start; margin: .6rem 0; font-size: .92rem; cursor: pointer; }
.eb-check input { width: 20px; height: 20px; margin-top: .1rem; accent-color: var(--c-accent); flex-shrink: 0; }
.eb-switch { display: flex; align-items: center; gap: .6rem; cursor: pointer; margin: .55rem 0; font-size: .95rem; position: relative; }
.eb-switch input { position: absolute; opacity: 0; width: 44px; height: 24px; margin: 0; cursor: pointer; }
.eb-switch input + span { position: relative; width: 44px; height: 24px; border-radius: 999px; background: var(--c-switch-off); transition: background .2s; flex-shrink: 0; }
.eb-switch input + span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.eb-switch input:checked + span { background: var(--c-jade); }
.eb-switch input:checked + span::after { transform: translateX(20px); }
.eb-switch input:focus-visible + span { box-shadow: var(--focus); }
.eb-fieldset { border: 1px solid var(--c-line); border-radius: var(--r-sm); padding: .9rem 1rem .4rem; margin: 0 0 1rem; }
.eb-fieldset legend { padding: 0 .4rem; font-weight: 600; font-size: .9rem; color: var(--c-subtle-ink); }
.eb-form__error, .eb-notice { padding: .8rem 1rem; border-radius: var(--r-sm); margin: .75rem 0; font-size: .95rem; }
.eb-form__error, .eb-notice--error { background: var(--b-bad-bg); color: var(--c-error-ink); }
.eb-notice--success { background: var(--c-soft); color: var(--c-soft-ink); }
.eb-notice--warning { background: var(--b-pending-bg); color: var(--c-warning-ink); }

/* Onglets */
.eb-tabs { display: flex; gap: .35rem; overflow-x: auto; scrollbar-width: none; padding: .3rem; background: var(--c-bg-alt); border-radius: 999px; margin-bottom: 1.5rem; -webkit-overflow-scrolling: touch; }
.eb-tabs::-webkit-scrollbar { display: none; }
.eb-tab { display: inline-flex; align-items: center; gap: .45rem; padding: .6rem 1rem; border-radius: 999px; text-decoration: none; color: var(--c-subtle-ink) !important; font-size: .92rem; white-space: nowrap; transition: background .2s; }
.eb-tab:hover { background: var(--c-tab-hover); }
.eb-tab.is-active { background: var(--c-surface); color: var(--c-heading) !important; box-shadow: var(--shadow-sm); font-weight: 600; }
.eb-seg { display: inline-flex; gap: .25rem; padding: .25rem; background: var(--c-bg-alt); border-radius: 999px; margin-bottom: 1.25rem; max-width: 100%; }
.eb-seg--scroll { overflow-x: auto; scrollbar-width: none; }
.eb-seg a, .eb-seg button { padding: .5rem 1rem; border-radius: 999px; text-decoration: none; color: var(--c-subtle-ink); font: inherit; font-size: .9rem; border: 0; background: transparent; cursor: pointer; white-space: nowrap; }
.eb-seg .is-active { background: var(--c-surface); color: var(--c-heading); box-shadow: var(--shadow-sm); font-weight: 600; }
.eb-seg--small { margin-bottom: .75rem; }

/* Tableaux */
.eb-table-wrap { overflow-x: auto; }
.eb-table { width: 100%; border-collapse: collapse; font-size: .93rem; color: var(--c-ink); }
.eb-table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--c-muted); font-weight: 600; padding: .6rem .75rem; border-bottom: 1px solid var(--c-line); background: transparent; }
.eb-table td { padding: .8rem .75rem; border-bottom: 1px solid var(--c-line); vertical-align: middle; background: transparent; }
.eb-table tr:last-child td { border-bottom: 0; }
.eb-table tbody tr:hover { background: var(--c-hover); }
.eb-table__actions { text-align: right; white-space: nowrap; }
@media (max-width: 720px) {
	.eb-table thead { display: none; }
	.eb-table, .eb-table tbody, .eb-table tr, .eb-table td { display: block; width: 100%; }
	.eb-table tr { padding: .75rem 0; border-bottom: 1px solid var(--c-line); }
	.eb-table td { border: 0; padding: .25rem 0; display: flex; gap: .75rem; justify-content: space-between; text-align: right; }
	.eb-table td::before { content: attr(data-label); font-weight: 600; color: var(--c-muted); font-size: .8rem; text-align: left; }
	.eb-table td:not([data-label])::before { content: none; }
	.eb-table__actions { justify-content: flex-start !important; text-align: left; gap: .5rem; }
}

/* Toasts */
.eb-toasts { position: fixed; z-index: 100000; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; flex-direction: column; gap: .5rem; width: min(92vw, 440px); pointer-events: none; }
.eb-toast { pointer-events: auto; background: var(--c-toast); color: var(--c-toast-ink); padding: .85rem 1.1rem; border-radius: 14px; box-shadow: var(--shadow); font-size: .95rem; animation: eb-in .25s ease-out; transition: opacity .4s, transform .4s; font-family: var(--f-body); border: 1px solid var(--c-line); }
.eb-toast--error { background: var(--c-terra); color: #fff; }
.eb-toast.is-out { opacity: 0; transform: translateY(8px); }
@keyframes eb-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Fenêtres modales */
.eb-dialog { border: 0; border-radius: var(--r); padding: 0; width: min(94vw, 620px); max-height: 90vh; background: var(--c-surface); color: var(--c-ink); box-shadow: 0 30px 80px -20px rgba(14, 42, 36, .5); font-family: var(--f-body); }
.eb-dialog--wide { width: min(96vw, 760px); }
.eb-dialog::backdrop { background: rgba(14, 42, 36, .45); backdrop-filter: blur(3px); }
[data-theme="dark"] .eb-dialog::backdrop { background: rgba(0, 0, 0, .6); }
[data-theme="dark"] .eb-dialog { box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8); border: 1px solid var(--c-line); }
.eb-dialog[open] { animation: eb-in .2s ease-out; display: flex; flex-direction: column; }
.eb-dialog__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--c-line); position: sticky; top: 0; background: var(--c-surface); z-index: 1; }
.eb-dialog__head .ebs-h3 { margin: 0; }
.eb-dialog__body { padding: 1.25rem 1.4rem; overflow-y: auto; }
.eb-dialog__foot { display: flex; justify-content: flex-end; gap: .5rem; padding-top: .5rem; }
@media (max-width: 640px) {
	.eb-dialog { width: 100vw; max-width: 100vw; max-height: 92vh; margin: auto 0 0; border-radius: var(--r) var(--r) 0 0; }
}
.eb-disclosure { border-top: 1px solid var(--c-line); padding: .4rem 0; }
.eb-disclosure > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: .5rem; font-weight: 500; padding: .6rem 0; color: var(--c-heading); }
.eb-disclosure > summary::-webkit-details-marker { display: none; }
.eb-disclosure > summary::after { content: "+"; margin-left: auto; font-size: 1.2rem; color: var(--c-muted); }
.eb-disclosure[open] > summary::after { content: "–"; }
.eb-disclosure--card { border-top: 0; }
.eb-disclosure--card > summary { padding: 0; }
.eb-disclosure--card[open] > summary { margin-bottom: 1rem; }

/* ---------- Réservation ---------- */
.eb-booking { max-width: 980px; }
.eb-steps { list-style: none; display: flex; gap: .5rem; padding: 0; margin: 0 0 1.75rem; counter-reset: s; overflow-x: auto; scrollbar-width: none; }
.eb-steps__item { display: flex; align-items: center; gap: .5rem; font-size: .88rem; color: var(--c-muted); white-space: nowrap; padding-right: .75rem; }
.eb-steps__item span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--c-line); font-weight: 600; font-size: .8rem; background: var(--c-surface); color: var(--c-ink); }
.eb-steps__item.is-active { color: var(--c-heading); font-weight: 600; }
.eb-steps__item.is-active span { background: var(--c-accent); color: var(--c-on-accent); border-color: var(--c-accent); }
.eb-steps__item.is-done span { background: var(--c-soft); color: var(--c-soft-ink); border-color: transparent; }
.eb-steps__item:not(:last-child)::after { content: ""; width: 28px; height: 1px; background: var(--c-line); margin-left: .5rem; }
@media (max-width: 600px) { .eb-steps__item:not(.is-active) { font-size: 0; gap: 0; } .eb-steps__item:not(.is-active) span { font-size: .8rem; } }
.eb-step[hidden] { display: none; }
.eb-step h2:focus, .eb-step h2:focus-visible { outline: none; box-shadow: none; }
.eb-services { display: grid; gap: .9rem; }
.eb-service { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; width: 100%; text-align: left; padding: 1.2rem 1.3rem; border-radius: var(--r); border: 1.5px solid var(--c-line); background: var(--c-surface); cursor: pointer; font: inherit; color: var(--c-ink); transition: border-color .2s, box-shadow .2s, transform .15s; position: relative; overflow: hidden; }
.eb-service::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--svc, var(--c-green)); }
.eb-service:hover { border-color: var(--c-jade); box-shadow: var(--shadow); transform: translateY(-2px); }
.eb-service[aria-checked=true] { border-color: var(--c-accent); box-shadow: var(--focus); }
.eb-service__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--c-soft); color: var(--svc, var(--c-green)); }
[data-theme="dark"] .eb-service__icon { color: color-mix(in srgb, var(--svc, #4A9183) 35%, #E9EFEA); }
[data-theme="dark"] .eb-service::before { background: color-mix(in srgb, var(--svc, #4A9183) 60%, #E9EFEA); }
.eb-service__body { display: flex; flex-direction: column; gap: .2rem; }
.eb-service__name { font-family: var(--f-display); font-size: 1.35rem; font-weight: 500; color: var(--c-heading); }
.eb-service__meta { font-size: .88rem; color: var(--c-muted); display: inline-flex; align-items: center; gap: .3rem; }
.eb-service__desc { font-size: .9rem; color: var(--c-muted); }
.eb-service__price { font-weight: 600; color: var(--c-warm); white-space: nowrap; }
@media (max-width: 560px) { .eb-service { grid-template-columns: auto 1fr; } .eb-service__price { grid-column: 2; } }
.eb-booking__alt { margin-top: 1.25rem; color: var(--c-muted); font-size: .92rem; }
.eb-picker { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .eb-picker { grid-template-columns: minmax(300px, 1.1fr) 1fr; } }
.eb-cal, .eb-slots { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r); padding: 1.2rem; box-shadow: var(--shadow-sm); }
.eb-cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .8rem; }
.eb-cal__title { font-family: var(--f-display); font-size: 1.35rem; font-weight: 500; color: var(--c-heading); text-transform: capitalize; }
.eb-cal__dow, .eb-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: .3rem; text-align: center; }
.eb-cal__dow span { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); padding: .3rem 0; }
.eb-cal__day { aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; border: 0; background: transparent; font: inherit; font-size: .95rem; color: var(--c-disabled); cursor: default; min-height: 38px; }
.eb-cal__day.is-available { color: var(--c-soft-ink); background: var(--c-soft); cursor: pointer; font-weight: 600; }
.eb-cal__day.is-available:hover { background: var(--c-jade); color: #fff; }
.eb-cal__day.is-today { box-shadow: inset 0 0 0 1.5px var(--c-gold); }
.eb-cal__day.is-selected { background: var(--c-accent) !important; color: var(--c-on-accent) !important; }
.eb-cal__loading { grid-column: 1 / -1; padding: 2rem 0; color: var(--c-muted); }
.eb-cal__legend { font-size: .8rem; color: var(--c-muted); margin: .8rem 0 0; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.eb-slots__placeholder { text-align: center; color: var(--c-muted); padding: 2rem 1rem; margin: 0; }
.eb-slots__title { font-family: var(--f-display); font-size: 1.3rem; color: var(--c-heading); font-weight: 500; margin: 0 0 .5rem; }
.eb-slots__title::first-letter { text-transform: uppercase; }
.eb-slots__group { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--c-muted); margin: .9rem 0 .4rem; }
.eb-slots__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: .5rem; }
.eb-slot { padding: .7rem .4rem; border-radius: 12px; border: 1.5px solid var(--c-jade); background: var(--c-field); color: var(--c-soft-ink); font: inherit; font-weight: 600; cursor: pointer; transition: background .15s, color .15s; white-space: nowrap; }
.eb-slot:hover, .eb-slot:focus-visible { background: var(--c-accent); color: var(--c-on-accent); border-color: var(--c-accent); }
.eb-recap { margin-bottom: 1.2rem; }
.eb-recap__inner { display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 1.2rem; background: var(--c-soft); color: var(--c-ink); border-radius: var(--r-sm); }
.eb-recap__inner strong { color: var(--c-heading); }
.eb-recap__dot { width: 12px; height: 12px; border-radius: 50%; margin-top: .45rem; flex-shrink: 0; }
.eb-booking .eb-form { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r); padding: clamp(1.1rem, 3vw, 1.75rem); }
.eb-success { text-align: center; background: var(--c-surface); border-radius: var(--r); padding: clamp(1.5rem, 5vw, 3rem); border: 1px solid var(--c-line); box-shadow: var(--shadow); }
.eb-success__icon { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--c-soft); color: var(--c-soft-ink); margin-bottom: 1rem; }
.eb-success__actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin: 1.25rem 0; }

/* ---------- Connexion ---------- */
.eb-auth { max-width: 520px; }
.eb-auth__card { padding: clamp(1.5rem, 5vw, 2.5rem); box-shadow: var(--shadow); }
.eb-auth__brand { text-align: center; margin-bottom: 1.25rem; }
.eb-auth__logo { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--c-soft); color: var(--c-soft-ink); margin-bottom: .75rem; }
.eb-auth__tabs { justify-content: center; }
.eb-auth__tabs .eb-tab { flex: 1; justify-content: center; }
.eb-auth__alt { text-align: center; font-size: .9rem; color: var(--c-muted); margin: 1.25rem 0 0; }

/* ---------- Espace client ---------- */
.eb-client__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.eb-client__head .ebs-h2 { margin: 0; }
.eb-client__head-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
@media (max-width: 560px) { .eb-hide-sm { display: none; } }
.eb-appt { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: center; padding: 1rem; border-radius: var(--r-sm); background: var(--c-raised); color: var(--c-ink); border: 1px solid var(--c-line); border-left: 4px solid var(--svc, var(--c-green)); }
.eb-appt__date { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 64px; padding: .4rem 0; border-radius: 12px; background: var(--c-soft); color: var(--c-soft-ink); line-height: 1.1; text-transform: uppercase; font-size: .72rem; letter-spacing: .06em; }
.eb-appt__date strong { font-family: var(--f-display); font-size: 1.7rem; font-weight: 600; letter-spacing: 0; }
.eb-appt__main { display: flex; flex-direction: column; gap: .2rem; }
.eb-appt__main strong { color: var(--c-heading); }
.eb-appt__main span:first-letter { text-transform: uppercase; }
.eb-appt__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
@media (min-width: 760px) { .eb-appt { grid-template-columns: auto 1fr auto; } .eb-appt__actions { grid-column: auto; justify-content: flex-end; max-width: 380px; } }
.eb-quick { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; align-content: start; }
.eb-quick__item { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; padding: 1.1rem; border-radius: var(--r); background: var(--c-surface); border: 1px solid var(--c-line); text-decoration: none; color: var(--c-heading) !important; font: inherit; font-weight: 500; cursor: pointer; text-align: left; transition: transform .15s, box-shadow .2s; }
.eb-quick__item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.eb-quick__item .ebs-icon { color: var(--c-warm); }
.eb-docs { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .6rem; }
.eb-doc { display: flex; align-items: center; gap: .9rem; padding: .85rem 1rem; border-radius: var(--r-sm); background: var(--c-raised); color: var(--c-ink); border: 1px solid var(--c-line); flex-wrap: wrap; }
.eb-docs--compact .eb-doc { padding: .6rem .75rem; flex-wrap: nowrap; }
.eb-doc__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--c-bg-alt); color: var(--c-subtle-ink); flex-shrink: 0; }
.eb-doc__icon--lettre { background: var(--b-bad-bg); color: var(--c-warm); }
.eb-doc__main { display: flex; flex-direction: column; flex: 1; min-width: 160px; }
.eb-doc__actions { display: flex; gap: .4rem; }
.ebs-stars { border: 0; padding: 0; margin: 0 0 1rem; display: inline-flex; flex-direction: row-reverse; gap: .15rem; }
.ebs-stars legend { width: 100%; font-weight: 500; font-size: .92rem; margin-bottom: .3rem; float: left; }
.ebs-stars input { position: absolute; opacity: 0; }
.ebs-stars label { cursor: pointer; color: var(--c-star-off); padding: 2px; }
.ebs-stars label .ebs-icon { fill: currentColor; }
.ebs-stars input:checked ~ label, .ebs-stars label:hover, .ebs-stars label:hover ~ label { color: var(--c-gold); }
.ebs-stars input:focus-visible + label { box-shadow: var(--focus); border-radius: 6px; }

/* ---------- Messagerie ---------- */
.eb-chat { display: flex; flex-direction: column; height: min(70vh, 640px); background: var(--c-surface); color: var(--c-ink); }
.eb-chat__head { display: flex; align-items: center; gap: .75rem; padding: .9rem 1.1rem; border-bottom: 1px solid var(--c-line); background: var(--c-raised); }
.eb-chat__head strong { color: var(--c-heading); }
.eb-chat__list { flex: 1; overflow-y: auto; padding: 1.2rem; display: flex; flex-direction: column; gap: .75rem; background: linear-gradient(180deg, var(--c-bg), var(--c-surface)); }
.eb-chat__empty { color: var(--c-muted); text-align: center; margin: auto; }
.eb-bubble { max-width: min(80%, 520px); align-self: flex-start; }
.eb-bubble__body { padding: .7rem 1rem; border-radius: 18px 18px 18px 6px; background: var(--c-raised); color: var(--c-ink); border: 1px solid var(--c-line); word-wrap: break-word; }
.eb-bubble__body p { margin: 0 0 .4rem; }
.eb-bubble__body p:last-child { margin: 0; }
.eb-bubble__meta { font-size: .72rem; color: var(--c-muted); margin: .25rem .5rem 0; }
.eb-bubble.is-mine { align-self: flex-end; }
.eb-bubble.is-mine .eb-bubble__body { background: var(--c-accent); color: var(--c-on-accent); border-color: var(--c-accent); border-radius: 18px 18px 6px 18px; }
.eb-bubble.is-mine .eb-bubble__body a { color: inherit; text-decoration: underline; }
.eb-bubble.is-mine .eb-bubble__meta { text-align: right; }
.eb-chat__form { display: flex; gap: .6rem; padding: .8rem; border-top: 1px solid var(--c-line); background: var(--c-raised); align-items: flex-end; }
.eb-chat__form textarea { flex: 1; min-height: 48px !important; max-height: 160px; border-radius: 22px !important; padding: .7rem 1rem !important; }
.eb-chat__send { border-radius: 999px; padding: .75rem 1.1rem; }
@media (max-width: 560px) { .eb-chat__send span { display: none; } }

/* ---------- Forum ---------- */
.eb-forum { max-width: 980px; }
.eb-breadcrumb { font-size: .9rem; margin-bottom: 1rem; color: var(--c-muted); }
.eb-breadcrumb a { text-decoration: none; }
.eb-forum__intro { text-align: center; margin-bottom: 1.5rem; }
.eb-forum__cats { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 1.25rem; }
.eb-forum__cat { display: flex; flex-direction: column; gap: .2rem; padding: 1rem 1.1rem; border-radius: var(--r); background: var(--c-surface); border: 1.5px solid var(--c-line); text-decoration: none; color: var(--c-ink) !important; transition: border-color .2s; }
.eb-forum__cat strong { color: var(--c-heading); font-family: var(--f-display); font-size: 1.2rem; font-weight: 500; }
.eb-forum__cat span { font-size: .85rem; color: var(--c-muted); }
.eb-forum__cat em { font-size: .78rem; color: var(--c-jade); font-style: normal; }
.eb-forum__cat.is-active, .eb-forum__cat:hover { border-color: var(--c-jade); }
.eb-forum__new summary { list-style: none; display: inline-flex; }
.eb-forum__new summary::-webkit-details-marker { display: none; }
.eb-forum__new[open] summary { margin-bottom: 1rem; }
.eb-forum__list { list-style: none; padding: 0; margin: 0; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r); overflow: hidden; }
.eb-forum__item + .eb-forum__item { border-top: 1px solid var(--c-line); }
.eb-forum__item a { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.2rem; text-decoration: none; color: var(--c-ink); }
.eb-forum__item a:hover { background: var(--c-hover); }
.eb-forum__item-main { flex: 1; display: flex; flex-direction: column; gap: .15rem; }
.eb-forum__item-main strong { color: var(--c-heading); }
.eb-forum__item-main .eb-muted { font-size: .85rem; }
.eb-forum__replies-count { display: inline-flex; gap: .3rem; align-items: center; color: var(--c-muted); font-size: .9rem; }
.eb-forum__title { font-family: var(--f-display); color: var(--c-heading); font-weight: 500; font-size: 1.8rem; margin: 0 0 1rem; }
.eb-forum__meta { display: flex; gap: .75rem; align-items: center; margin-bottom: .75rem; font-size: .92rem; }
.eb-forum__meta strong { color: var(--c-heading); }
.eb-forum__body { color: var(--c-ink); }
.eb-forum__reply.is-pro { border-left: 4px solid var(--c-accent); background: linear-gradient(90deg, var(--c-soft), var(--c-surface)); }
.eb-forum__count { font-size: 1rem; color: var(--c-muted); font-weight: 500; margin: 1.5rem 0 .75rem; }
.eb-forum__mod { display: flex; gap: .5rem; flex-wrap: wrap; border-top: 1px dashed var(--c-line); padding-top: .75rem; margin-top: 1rem; }
.eb-forum__del { margin-top: .5rem; }
.eb-forum__login { text-align: center; }

@media (prefers-reduced-motion: reduce) {
	.eb-app *, .eb-dialog, .eb-toast { animation: none !important; transition: none !important; }
}
