/* VOXANEO – Espace client Bookly
   Contenu clair accordé au site, menu latéral noir. Laiton en accent, Oswald pour les titres et chiffres, Poppins pour le texte.
   Les grilles internes réagissent à la largeur réelle de l'espace (container queries), pas seulement à celle de l'écran. */

/* Bouclier anti-thème : tout ce qui est dans l'espace client repart des styles du navigateur
   (sauf les icônes SVG), puis nos règles, toutes préfixées par #vxn-ec, s'appliquent par-dessus.
   Le thème ne peut donc plus décaler, superposer ou recolorer les éléments. */
#vxn-ec :where(*:not(svg, svg *)) { all: revert; }
#vxn-ec [hidden] { display: none !important; }

#vxn-ec {
	--page: #fff;
	--ink: #000;
	--text: #18150f;
	--muted: #6f6759;
	--line: #e7dfd1;
	--surface: #f7f3ec;
	--surface-2: #eee7da;
	--brass: #d4a64a;
	--brass-hi: #e2b85e;
	--brass-ink: #86621f;
	--cream: #f2ead9;
	--ok: #2e7a4d;
	--off: #b1473a;
	--d-surface: #1b1814;
	--d-line: #322c24;
	--d-muted: #a39a8c;
	--display: 'Oswald', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
	--body: 'Poppins', 'Helvetica Neue', Arial, sans-serif;

	position: relative;
	max-width: 1180px;
	margin: 0 auto;
	padding: clamp(24px, 4vw, 48px) clamp(14px, 3vw, 24px) 64px;
	color: var(--text);
	font: 400 15px/1.6 var(--body);
	text-align: left;
	-webkit-font-smoothing: antialiased;
}

/* ---------- Remise à zéro défensive (le thème ne doit rien imposer ici) ---------- */
#vxn-ec *, #vxn-ec *::before, #vxn-ec *::after { box-sizing: border-box; }
#vxn-ec div, #vxn-ec p, #vxn-ec ul, #vxn-ec ol, #vxn-ec li, #vxn-ec dl, #vxn-ec dt, #vxn-ec dd, #vxn-ec form, #vxn-ec label {
	float: none; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; text-transform: none; letter-spacing: normal;
}
#vxn-ec ul, #vxn-ec ol { list-style: none; }
#vxn-ec li::marker { content: none; }
#vxn-ec h1, #vxn-ec h2, #vxn-ec h3 {
	margin: 0; padding: 0; border: 0; background: none; color: inherit; text-transform: none; letter-spacing: normal;
	font-family: var(--display); font-weight: 500; line-height: 1.15;
}
#vxn-ec h1::before, #vxn-ec h1::after, #vxn-ec h2::before, #vxn-ec h2::after, #vxn-ec h3::before, #vxn-ec h3::after { content: none; display: none; }
#vxn-ec img { display: block; max-width: 100%; height: auto; border: 0; }
#vxn-ec button, #vxn-ec input, #vxn-ec select, #vxn-ec textarea { font: inherit; text-transform: none; letter-spacing: normal; margin: 0; }
#vxn-ec a { color: inherit; box-shadow: none; }
#vxn-ec svg { display: block; }
#vxn-ec :focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

#vxn-ec .ec-h2 { font-size: 24px; }
#vxn-ec .ec-muted { color: var(--muted); font-size: 14px; max-width: 62ch; }
#vxn-ec .ec-hint { font-size: 12px; color: var(--muted); margin-top: -6px; }
#vxn-ec .ec-notice { padding: 12px 14px; border-left: 3px solid var(--brass); background: var(--surface); font-size: 14px; }
#vxn-ec .vxn-ec-boot, #vxn-ec .ec-fatal { padding: 80px 0; text-align: center; color: var(--muted); }
#vxn-ec .ec-fatal .ec-btn { margin-top: 16px; }

/* ---------- Boutons et liens ---------- */
#vxn-ec .ec-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 46px; padding: 0 22px; border-radius: 10px;
	border: 1px solid var(--line); background: var(--page); color: var(--text);
	font-weight: 600; font-size: 14px; line-height: 1.2; text-decoration: none; text-align: center; cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s;
}
#vxn-ec .ec-btn:hover { border-color: var(--text); }
#vxn-ec .ec-btn--gold { background: var(--brass); border-color: var(--brass); color: var(--ink); }
#vxn-ec .ec-btn--gold:hover { background: var(--brass-hi); border-color: var(--brass-hi); }
#vxn-ec .ec-btn--sm { min-height: 38px; padding: 0 14px; font-size: 13px; }
#vxn-ec .ec-btn--block { width: 100%; }
#vxn-ec .ec-btn:disabled { opacity: .45; cursor: not-allowed; }
#vxn-ec .ec-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
#vxn-ec .ec-link { display: inline; padding: 0; border: 0; background: none; color: var(--brass-ink); font-weight: 500; font-size: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 0; }
#vxn-ec .ec-link:hover { color: var(--text); }
#vxn-ec .ec-link--muted { color: var(--muted); }

#vxn-ec .ec-chip { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.5; }
#vxn-ec .ec-chip--ok { background: #e4f1e8; color: var(--ok); }
#vxn-ec .ec-chip--wait { background: #f8ecd2; color: var(--brass-ink); }
#vxn-ec .ec-chip--off { background: #f6e3df; color: var(--off); }

/* ---------- Champs ---------- */
#vxn-ec .ec-form { display: grid; gap: 16px; }
#vxn-ec .ec-field { display: grid; gap: 6px; }
#vxn-ec .ec-field > span:first-child { font-size: 13px; font-weight: 500; color: var(--muted); }
#vxn-ec .ec-field input, #vxn-ec .ec-field select, #vxn-ec .ec-field textarea {
	width: 100%; min-height: 50px; padding: 0 16px; border-radius: 10px;
	border: 1px solid var(--line); background: var(--page); color: var(--text); font-size: 16px; box-shadow: none; line-height: 1.3;
}
#vxn-ec .ec-field textarea { min-height: 150px; padding: 14px 16px; line-height: 1.5; resize: vertical; }
#vxn-ec .ec-field select {
	appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
	background: var(--page) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2386621f' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 18px;
}
#vxn-ec .ec-field input:focus, #vxn-ec .ec-field select:focus, #vxn-ec .ec-field textarea:focus { border-color: var(--brass); box-shadow: 0 0 0 3px rgba(212, 166, 74, .22); outline: none; }
#vxn-ec .ec-field input:disabled { background: var(--surface); color: var(--muted); cursor: not-allowed; }
#vxn-ec .ec-field input::placeholder, #vxn-ec .ec-field textarea::placeholder { color: #a59d90; }
#vxn-ec .ec-field input.ec-code { font: 500 30px/1 var(--display); letter-spacing: .35em; text-align: center; }
#vxn-ec .ec-form__error { color: var(--off); font-size: 14px; }
#vxn-ec .ec-pwd { position: relative; display: block; }
#vxn-ec .ec-pwd input { padding-right: 96px; }
#vxn-ec .ec-eye { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); min-height: 36px; padding: 0 12px; border: 0; border-radius: 7px; background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 500; cursor: pointer; }
#vxn-ec .ec-eye:hover { color: var(--text); }
#vxn-ec .ec-forgot { justify-self: end; margin-top: -8px; font-size: 13px; }
#vxn-ec .ec-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); cursor: pointer; }
#vxn-ec .ec-check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--brass-ink); }

/* ---------- Connexion ---------- */
#vxn-ec .ec-login-shell { container: eclogin / inline-size; }
#vxn-ec .ec-login { display: grid; grid-template-columns: 1fr 1fr; max-width: 980px; margin: 0 auto; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: var(--page); }
#vxn-ec .ec-login__brand { display: flex; flex-direction: column; justify-content: flex-end; gap: 22px; padding: 44px 40px; background: var(--ink); color: var(--cream); }
#vxn-ec .ec-login__salon { color: var(--brass); font-weight: 500; font-size: 14px; }
#vxn-ec .ec-login__big { font: 500 clamp(40px, 6vw, 60px)/1 var(--display); }
#vxn-ec .ec-login__perks { display: grid; gap: 12px; }
#vxn-ec .ec-login__perks li { display: flex; align-items: center; gap: 12px; color: var(--d-muted); font-size: 14px; }
#vxn-ec .ec-login__perks svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--brass); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
#vxn-ec .ec-login__panel { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 44px 40px; }
#vxn-ec .ec-login__title { font-size: 34px; }
#vxn-ec .ec-login__lead { color: var(--muted); }
#vxn-ec .ec-login__lead strong { color: var(--text); font-weight: 600; }
#vxn-ec .ec-login__alt { font-size: 13px; color: var(--muted); }
#vxn-ec .ec-seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 12px; background: var(--surface); }
#vxn-ec .ec-seg button { min-height: 42px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 500; cursor: pointer; transition: background-color .15s, color .15s; }
#vxn-ec .ec-seg button:hover { color: var(--text); }
#vxn-ec .ec-seg button[aria-selected="true"] { background: var(--page); color: var(--text); box-shadow: 0 1px 3px rgba(24, 21, 15, .12); }
@container eclogin (max-width: 720px) {
	#vxn-ec .ec-login { grid-template-columns: 1fr; border-radius: 18px; }
	#vxn-ec .ec-login__brand { padding: 28px 24px; gap: 14px; }
	#vxn-ec .ec-login__big { font-size: 38px; }
	#vxn-ec .ec-login__perks { display: none; }
	#vxn-ec .ec-login__panel { padding: 28px 22px 32px; }
}

/* ---------- Coque : menu latéral noir + contenu clair ---------- */
#vxn-ec .ec-app { display: grid; grid-template-columns: 256px minmax(0, 1fr); gap: clamp(28px, 4vw, 52px); align-items: start; }
#vxn-ec .ec-side {
	position: sticky; top: 32px; display: flex; flex-direction: column; gap: 26px;
	padding: 28px 16px 18px; border-radius: 20px; background: var(--ink); color: var(--cream);
}
#vxn-ec .ec-side__id { padding: 0 10px; }
#vxn-ec .ec-side__hello { font: 500 30px/1.05 var(--display); overflow-wrap: anywhere; }
#vxn-ec .ec-side__sub { margin-top: 6px; font-size: 13px; color: var(--brass); }
#vxn-ec .ec-nav { display: grid; gap: 2px; }
#vxn-ec .ec-nav__item {
	position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 0 12px;
	border: 0; border-radius: 10px; background: transparent; color: var(--d-muted);
	font-size: 14px; font-weight: 500; text-align: left; cursor: pointer; transition: background-color .15s, color .15s;
}
#vxn-ec .ec-nav__item svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
#vxn-ec .ec-nav__item:hover { color: var(--cream); background: var(--d-surface); }
#vxn-ec .ec-nav__item[aria-current="page"] { color: var(--ink); background: var(--cream); }
#vxn-ec .ec-nav__item[aria-current="page"] svg { stroke: var(--brass-ink); }
#vxn-ec .ec-nav__short { display: none; }
#vxn-ec .ec-nav__badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: auto; padding: 0 6px; border-radius: 11px; background: var(--brass); color: var(--ink); font-size: 12px; font-weight: 600; line-height: 1; }
#vxn-ec .ec-side__foot { display: grid; gap: 6px; margin-top: 18px; padding: 0 2px; }
#vxn-ec .ec-side__foot .ec-btn { padding: 0 10px; white-space: nowrap; font-size: 13px; }
#vxn-ec .ec-nav__label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#vxn-ec .ec-side__out, #vxn-ec .ec-logout { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
#vxn-ec .ec-side__out { min-height: 40px; border: 0; background: none; color: var(--d-muted); font-size: 13px; cursor: pointer; }
#vxn-ec .ec-side__out:hover { color: var(--cream); }
#vxn-ec .ec-side__out svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

#vxn-ec .ec-main { min-width: 0; container: ecmain / inline-size; }
#vxn-ec .ec-main__head { margin-bottom: 28px; }
#vxn-ec .ec-main__title { font-size: clamp(34px, 4.6vw, 50px); line-height: 1; color: var(--text); }
#vxn-ec .ec-main__title:focus { outline: none; }
#vxn-ec .ec-main__lead { margin-top: 10px; color: var(--muted); max-width: 60ch; }

/* ---------- Mes rendez-vous ---------- */
#vxn-ec .ec-ticket { display: grid; grid-template-columns: minmax(210px, .8fr) 1.6fr; border-radius: 20px; overflow: hidden; background: var(--ink); color: var(--cream); }
#vxn-ec .ec-ticket__when { position: relative; padding: 30px 32px; background: var(--brass); color: var(--ink); }
#vxn-ec .ec-ticket__when::after {
	content: ""; position: absolute; top: 0; right: -1px; bottom: 0; width: 14px;
	background: radial-gradient(circle at 100% 50%, var(--ink) 6px, transparent 6.5px) 0 0 / 14px 22px repeat-y;
}
#vxn-ec .ec-ticket__count { font-weight: 600; font-size: 15px; }
#vxn-ec .ec-ticket__time { margin: 6px 0 8px; font: 600 clamp(60px, 9cqw, 96px)/.95 var(--display); letter-spacing: -.01em; }
#vxn-ec .ec-ticket__day { font-size: 15px; }
#vxn-ec .ec-ticket__day::first-letter { text-transform: uppercase; }
#vxn-ec .ec-ticket__what { display: flex; flex-direction: column; gap: 6px; padding: 30px 32px; }
#vxn-ec .ec-ticket__service { font: 500 30px/1.12 var(--display); }
#vxn-ec .ec-ticket__meta { color: var(--d-muted); }
#vxn-ec .ec-ticket__what .ec-chip { align-self: flex-start; margin-top: 4px; }
#vxn-ec .ec-ticket__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: auto; padding-top: 20px; }
#vxn-ec .ec-ticket .ec-btn:not(.ec-btn--gold) { background: transparent; border-color: var(--d-line); color: var(--cream); }
#vxn-ec .ec-ticket .ec-btn:not(.ec-btn--gold):hover { border-color: var(--cream); }
#vxn-ec .ec-ticket .ec-link--muted { color: var(--d-muted); }
#vxn-ec .ec-ticket .ec-link--muted:hover { color: var(--cream); }

/* Ticket vide : même gabarit que le vrai ticket, en pointillés */
#vxn-ec .ec-ticket.is-empty { background: var(--surface); color: var(--text); border: 1.5px dashed var(--brass); }
#vxn-ec .ec-ticket.is-empty .ec-ticket__when { background: transparent; color: var(--brass-ink); border-right: 1.5px dashed var(--brass); }
#vxn-ec .ec-ticket.is-empty .ec-ticket__when::after { display: none; }
#vxn-ec .ec-ticket.is-empty .ec-ticket__time { color: rgba(134, 98, 31, .28); }
#vxn-ec .ec-ticket.is-empty .ec-ticket__meta { max-width: 46ch; color: var(--muted); }

#vxn-ec .ec-empty-hero { display: grid; justify-items: start; gap: 10px; padding: 36px 34px; border-radius: 20px; background: var(--surface); }
#vxn-ec .ec-empty-hero h2 { font-size: 30px; }
#vxn-ec .ec-empty-hero p { max-width: 52ch; margin-bottom: 8px; color: var(--muted); }

#vxn-ec .ec-section { margin-top: 44px; }
#vxn-ec .ec-section__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
#vxn-ec .ec-section__head h2 { font-size: 22px; }
#vxn-ec .ec-list { border-top: 1px solid var(--line); }
#vxn-ec .ec-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 16px 4px; border-bottom: 1px solid var(--line); }
#vxn-ec .ec-row.is-off .ec-row__service { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line); }
#vxn-ec .ec-row__date { display: flex; flex-direction: column; align-items: center; line-height: 1; }
#vxn-ec .ec-row__d { font: 500 30px/1 var(--display); }
#vxn-ec .ec-row__m { margin-top: 4px; font-size: 12px; color: var(--muted); white-space: nowrap; }
#vxn-ec .ec-row__service { font-weight: 500; }
#vxn-ec .ec-row__meta { font-size: 13px; color: var(--muted); }
#vxn-ec .ec-row__side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
#vxn-ec .ec-row__price { font-size: 14px; font-weight: 500; }

@container ecmain (max-width: 600px) {
	#vxn-ec .ec-ticket { grid-template-columns: 1fr; }
	#vxn-ec .ec-ticket__when::after { top: auto; left: 0; right: 0; bottom: -1px; width: auto; height: 14px; background: radial-gradient(circle at 50% 100%, var(--ink) 6px, transparent 6.5px) 0 0 / 22px 14px repeat-x; }
	#vxn-ec .ec-ticket__when, #vxn-ec .ec-ticket__what { padding: 24px; }
	#vxn-ec .ec-ticket__time { font-size: 72px; }
	#vxn-ec .ec-ticket__actions .ec-btn { flex: 1 1 auto; }
	#vxn-ec .ec-empty-hero { padding: 26px 22px; }
	#vxn-ec .ec-ticket.is-empty .ec-ticket__when { border-right: 0; border-bottom: 1.5px dashed var(--brass); }
}
@container ecmain (max-width: 520px) {
	#vxn-ec .ec-row { grid-template-columns: 52px minmax(0, 1fr); gap: 6px 14px; }
	#vxn-ec .ec-row__side { grid-column: 2; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 6px 12px; text-align: left; }
}

/* ---------- Blocs (Mes infos, Contact) ---------- */
#vxn-ec .ec-block { display: grid; gap: 16px; padding: 28px; border-radius: 20px; background: var(--surface); }
#vxn-ec .ec-block > .ec-btn { justify-self: start; }
#vxn-ec .ec-block__title { font-size: 22px; }
#vxn-ec .ec-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
#vxn-ec .ec-infos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
#vxn-ec .ec-infos > .ec-block:first-child { grid-row: span 2; }

#vxn-ec .ec-contact { display: grid; grid-template-columns: minmax(230px, 300px) minmax(0, 1fr); gap: 20px; align-items: start; }
#vxn-ec .ec-contact__side { display: grid; gap: 20px; }
#vxn-ec .ec-ways { display: grid; border-radius: 20px; overflow: hidden; background: var(--ink); }
#vxn-ec .ec-way { display: flex; align-items: center; gap: 14px; padding: 18px 20px; color: var(--cream); text-decoration: none; border-bottom: 1px solid var(--d-line); transition: background-color .15s; }
#vxn-ec .ec-way:last-child { border-bottom: 0; }
#vxn-ec .ec-way:hover { background: var(--d-surface); }
#vxn-ec .ec-way svg { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--brass); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
#vxn-ec .ec-way__label { display: block; font-weight: 500; }
#vxn-ec .ec-way__value { display: block; font-size: 13px; color: var(--d-muted); }
#vxn-ec .ec-contact__main { display: grid; gap: 20px; min-width: 0; }
#vxn-ec .ec-block.ec-chat { gap: 0; padding: 0; overflow: hidden; }
#vxn-ec .ec-chat__head { display: flex; align-items: center; gap: 14px; padding: 22px 24px 18px; }
#vxn-ec .ec-chat__head svg { width: 40px; height: 40px; flex: none; padding: 8px; border-radius: 12px; background: var(--ink); fill: none; stroke: var(--brass); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
#vxn-ec .ec-chat__head .ec-muted { margin-top: 2px; }
#vxn-ec .ec-chat__frame { display: block; width: 100%; height: 560px; border: 0; border-top: 1px solid var(--line); background: var(--page); }
#vxn-ec .ec-hours { padding: 22px 20px; border: 1px solid var(--line); border-radius: 20px; }
#vxn-ec .ec-hours p { margin-top: 8px; white-space: pre-line; color: var(--muted); font-size: 14px; }

@container ecmain (max-width: 620px) {
	#vxn-ec .ec-infos, #vxn-ec .ec-contact { grid-template-columns: 1fr; }
	#vxn-ec .ec-infos > .ec-block:first-child { grid-row: auto; }
	#vxn-ec .ec-block { padding: 22px 18px; }
}
@container ecmain (max-width: 480px) {
	#vxn-ec .ec-grid2 { grid-template-columns: 1fr; }
}

/* ---------- Simuler mes coupes ---------- */
#vxn-ec .ec-style { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 400px); gap: clamp(24px, 5cqw, 56px); align-items: start; }
#vxn-ec .ec-style__copy p { max-width: 52ch; margin: 0 0 20px; color: var(--muted); }
#vxn-ec .ec-tips { display: grid; gap: 10px; }
#vxn-ec .ec-tips li { position: relative; padding-left: 24px; font-size: 14px; }
#vxn-ec .ec-tips li::before { content: ""; position: absolute; left: 0; top: .62em; width: 12px; height: 2px; background: var(--brass); }
#vxn-ec .ec-style__form { display: grid; gap: 14px; }
#vxn-ec .ec-drop {
	position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
	aspect-ratio: 4 / 5; border-radius: 20px; border: 1.5px dashed var(--brass); background: var(--surface);
	overflow: hidden; text-align: center; cursor: pointer; transition: background-color .15s;
}
#vxn-ec .ec-drop:hover { background: var(--surface-2); }
#vxn-ec .ec-drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
#vxn-ec .ec-drop__icon svg { width: 54px; height: 54px; fill: none; stroke: var(--brass-ink); stroke-width: 1.2; }
#vxn-ec .ec-drop__label { font-weight: 600; }
#vxn-ec .ec-drop__hint { font-size: 13px; color: var(--muted); }
#vxn-ec .ec-drop.has-photo { border: 0; }
#vxn-ec .ec-drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#vxn-ec .ec-drop__change { position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(0, 0, 0, .72); color: #fff; font-size: 13px; pointer-events: none; }
#vxn-ec .ec-scan { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--brass); box-shadow: 0 0 18px 4px rgba(212, 166, 74, .6); animation: ec-scan 2.2s ease-in-out infinite alternate; pointer-events: none; z-index: 2; }
@keyframes ec-scan { from { top: 4%; } to { top: 96%; } }
#vxn-ec .ec-quota { font-size: 13px; color: var(--muted); }

#vxn-ec .ec-results { display: grid; grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); gap: clamp(22px, 4cqw, 44px); align-items: start; }
#vxn-ec .ec-profile { display: grid; gap: 16px; }
#vxn-ec .ec-profile__photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 20px; }
#vxn-ec .ec-profile__tip { padding-left: 14px; border-left: 2px solid var(--brass); font-size: 14px; }
#vxn-ec .ec-facts { display: grid; gap: 12px; }
#vxn-ec .ec-facts div { display: grid; gap: 2px; }
#vxn-ec .ec-facts dt { font-size: 12px; color: var(--muted); }
#vxn-ec .ec-facts dd { font-size: 14px; }
#vxn-ec .ec-props__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 18px; }
#vxn-ec .ec-props__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
#vxn-ec .ec-prop { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: var(--surface); }
#vxn-ec .ec-prop__visual { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1; overflow: hidden; background: var(--ink); }
#vxn-ec .ec-prop__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#vxn-ec .ec-prop__visual img.is-dim { filter: grayscale(.5) brightness(.38); }
#vxn-ec .ec-prop__try { position: relative; z-index: 1; }
#vxn-ec .ec-prop__wait { position: relative; z-index: 1; padding: 0 20px; color: var(--cream); font-size: 14px; text-align: center; }
#vxn-ec .ec-prop__wait b { font-weight: 600; color: var(--brass); }
#vxn-ec .ec-prop__err { position: absolute; left: 12px; right: 12px; bottom: 12px; color: #f2b5ab; font-size: 12px; text-align: center; }
#vxn-ec .ec-prop__save { position: absolute; right: 10px; bottom: 10px; padding: 6px 12px; border-radius: 999px; background: rgba(0, 0, 0, .75); color: #fff; font-size: 12px; text-decoration: none; }
#vxn-ec .ec-prop__body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 18px 20px 22px; }
#vxn-ec .ec-prop__body .ec-chip { align-self: flex-start; background: var(--page); }
#vxn-ec .ec-prop__name { font-size: 22px; }
#vxn-ec .ec-prop__why { color: var(--muted); font-size: 14px; }
#vxn-ec .ec-prop__care { font-size: 13px; }
#vxn-ec .ec-prop__care::first-letter { text-transform: uppercase; }
#vxn-ec .ec-prop__book { margin-top: auto; padding-top: 6px; font-size: 14px; }

@container ecmain (max-width: 780px) {
	#vxn-ec .ec-style, #vxn-ec .ec-results { grid-template-columns: 1fr; }
	#vxn-ec .ec-style__form { order: -1; max-width: 420px; }
	#vxn-ec .ec-profile { grid-template-columns: 120px minmax(0, 1fr); align-items: start; }
	#vxn-ec .ec-profile__photo { grid-row: span 3; border-radius: 14px; }
	#vxn-ec .ec-restart { grid-column: 1 / -1; }
}
@container ecmain (max-width: 560px) {
	#vxn-ec .ec-props__grid { grid-template-columns: 1fr; }
	#vxn-ec .ec-drop { aspect-ratio: 1 / 1; }
}

/* ---------- Ma fidélité ---------- */
#vxn-ec .ec-loyal { display: grid; grid-template-columns: minmax(270px, 340px) minmax(0, 1fr); gap: clamp(24px, 5cqw, 56px); align-items: start; }
#vxn-ec .ec-loyal__card-wrap { display: grid; gap: 22px; }

/* La carte de membre : l'élément signature */
#vxn-ec .ec-card {
	position: relative; display: flex; flex-direction: column; aspect-ratio: 1.586; min-height: 200px; padding: 22px 24px; border-radius: 18px; color: var(--ink);
	background: linear-gradient(135deg, #b0703f, #e0a679 45%, #8a5228);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 20px 40px -12px rgba(24, 21, 15, .45);
}
#vxn-ec .ec-card > * { flex-shrink: 0; }
#vxn-ec .ec-card--t1 { background: linear-gradient(135deg, #9b9b98, #e6e4de 45%, #7d7c78); }
#vxn-ec .ec-card--t2 { background: linear-gradient(135deg, #a5802f, #f0cd78 45%, #8c6a22); }
#vxn-ec .ec-card--t3 { background: linear-gradient(135deg, #12100d, #2d2821 50%, #000); color: var(--cream); box-shadow: inset 0 0 0 1px #6b5427, 0 20px 40px -12px rgba(0, 0, 0, .6); }
#vxn-ec .ec-card__top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 13px; }
#vxn-ec .ec-card__salon { font-weight: 500; opacity: .8; }
#vxn-ec .ec-card__tier { font: 600 20px/1 var(--display); }
#vxn-ec .ec-card--t3 .ec-card__tier { color: var(--brass); }
#vxn-ec .ec-card__points { margin-top: auto; font-size: 14px; }
#vxn-ec .ec-card__points span { display: block; font: 600 clamp(46px, 7cqw, 64px)/1 var(--display); letter-spacing: -.01em; }
#vxn-ec .ec-pole { height: 10px; margin: 12px 0 8px; border-radius: 5px; overflow: hidden; background: rgba(0, 0, 0, .22); }
#vxn-ec .ec-card--t3 .ec-pole { background: rgba(255, 255, 255, .12); }
#vxn-ec .ec-pole span {
	display: block; height: 100%; border-radius: 5px;
	background: repeating-linear-gradient(-45deg, #000 0 7px, #f2ead9 7px 14px, #b8322a 14px 21px, #f2ead9 21px 28px);
	background-size: 39.6px 100%; animation: ec-pole 1.6s linear infinite;
}
@keyframes ec-pole { to { background-position: 39.6px 0; } }
#vxn-ec .ec-card__next { font-size: 13px; }
#vxn-ec .ec-card__foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(0, 0, 0, .18); font-size: 13px; font-weight: 500; }
#vxn-ec .ec-card--t3 .ec-card__foot { border-top-color: #3a332a; }

#vxn-ec .ec-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border-radius: 16px; overflow: hidden; background: var(--line); }
#vxn-ec .ec-stats div { padding: 14px 16px; background: var(--surface); }
#vxn-ec .ec-stats dt { font-size: 12px; color: var(--muted); }
#vxn-ec .ec-stats dd { margin-top: 4px; font: 500 28px/1.1 var(--display); }
#vxn-ec .ec-rules h3 { margin-bottom: 6px; font-size: 19px; }
#vxn-ec .ec-rules p { margin-bottom: 14px; color: var(--muted); font-size: 14px; }
#vxn-ec .ec-ladder { margin-left: 6px; border-left: 2px solid var(--line); }
#vxn-ec .ec-ladder li { position: relative; display: flex; justify-content: space-between; gap: 10px; padding: 8px 0 8px 20px; color: var(--muted); font-size: 14px; }
#vxn-ec .ec-ladder li::before { content: ""; position: absolute; left: -7px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; border: 2px solid var(--line); background: var(--page); }
#vxn-ec .ec-ladder li.is-done::before { border-color: var(--brass-ink); background: var(--brass-ink); }
#vxn-ec .ec-ladder li.is-current { color: var(--text); font-weight: 600; }
#vxn-ec .ec-ladder li.is-current::before { border-color: var(--brass); background: var(--brass); box-shadow: 0 0 0 4px rgba(212, 166, 74, .25); }

#vxn-ec .ec-board .ec-muted { margin: 6px 0 16px; }
#vxn-ec .ec-board__list { border-top: 1px solid var(--line); }
#vxn-ec .ec-board__row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 10px; border-bottom: 1px solid var(--line); }
#vxn-ec .ec-board__rank { font: 500 24px/1 var(--display); color: var(--muted); text-align: center; }
#vxn-ec .ec-board__row.is-podium .ec-board__rank { color: var(--brass-ink); }
#vxn-ec .ec-board__name { display: flex; flex-direction: column; font-weight: 500; }
#vxn-ec .ec-board__name small { font-size: 12px; font-weight: 400; color: var(--muted); }
#vxn-ec .ec-board__pts { font: 500 22px/1 var(--display); text-align: right; white-space: nowrap; }
#vxn-ec .ec-board__pts small { margin-left: 4px; font: 400 12px var(--body); color: var(--muted); }
#vxn-ec .ec-board__row.is-me { border-radius: 12px; border-bottom-color: transparent; background: var(--ink); color: var(--cream); }
#vxn-ec .ec-board__row.is-me .ec-board__rank { color: var(--brass); }
#vxn-ec .ec-board__row.is-me small { color: var(--d-muted); }
#vxn-ec .ec-board__gap { height: 18px; margin-bottom: 6px; border-bottom: 1px dashed var(--line); }
#vxn-ec .ec-board .ec-notice { margin-top: 14px; }

@container ecmain (max-width: 640px) {
	#vxn-ec .ec-loyal { grid-template-columns: 1fr; }
	#vxn-ec .ec-loyal__card-wrap { max-width: 460px; }
}

/* ---------- Toast ---------- */
.vxn-ec-toast {
	position: fixed; left: 50%; bottom: 32px; z-index: 100000; transform: translate(-50%, 12px); opacity: 0;
	padding: 12px 20px; border-radius: 10px; background: #000; color: #f2ead9; font: 500 14px/1.3 'Poppins', Arial, sans-serif;
	box-shadow: 0 12px 30px rgba(0, 0, 0, .3); transition: opacity .2s, transform .2s; pointer-events: none;
}
.vxn-ec-toast.is-in { opacity: 1; transform: translate(-50%, 0); }
.vxn-ec-toast.is-error { background: #b1473a; color: #fff; }

/* ---------- Tablette : menu plus étroit ---------- */
@media (max-width: 1024px) {
	#vxn-ec .ec-app { grid-template-columns: 220px minmax(0, 1fr); gap: 28px; }
	#vxn-ec .ec-side { padding: 22px 12px 16px; }
	#vxn-ec .ec-side__hello { font-size: 26px; }
}

/* ---------- Mobile : en-tête compact + barre de navigation en bas ---------- */
@media (max-width: 782px) {
	#vxn-ec { padding: 20px 16px 120px; }
	#vxn-ec .ec-app { grid-template-columns: 1fr; gap: 0; }
	#vxn-ec .ec-side { position: static; min-height: 0; gap: 0; padding: 0; border-radius: 0; background: none; color: var(--text); }
	#vxn-ec .ec-side__id { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 0 0 14px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
	#vxn-ec .ec-side__hello { font-size: 20px; }
	#vxn-ec .ec-side__sub { margin: 0; color: var(--brass-ink); }
	#vxn-ec .ec-side__foot { display: none; }
	#vxn-ec .ec-nav {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 99990; display: flex; gap: 0;
		padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
		background: rgba(0, 0, 0, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
	}
	#vxn-ec .ec-nav__item { flex: 1; flex-direction: column; justify-content: center; gap: 3px; min-height: 54px; padding: 4px 2px; font-size: 11px; text-align: center; border-radius: 10px; }
	#vxn-ec .ec-nav__item svg { width: 22px; height: 22px; }
	#vxn-ec .ec-nav__item:hover { background: transparent; }
	#vxn-ec .ec-nav__item[aria-current="page"] { background: transparent; color: var(--brass); }
	#vxn-ec .ec-nav__item[aria-current="page"] svg { stroke: var(--brass); }
	#vxn-ec .ec-nav__label { display: none; }
	#vxn-ec .ec-nav__short { display: block; }
	#vxn-ec .ec-nav__badge { position: absolute; top: 3px; left: 50%; min-width: 18px; height: 18px; margin: 0 0 0 5px; padding: 0 5px; font-size: 10px; }
	#vxn-ec .ec-main__head { margin-bottom: 22px; }
	#vxn-ec .ec-main__title { font-size: 34px; }
	#vxn-ec .ec-main__lead { font-size: 14px; }
	.vxn-ec-toast { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
	#vxn-ec .ec-chat__frame { height: min(560px, calc(100vh - 220px)); min-height: 420px; }
	#vxn-ec .ec-chat__head { padding: 18px 18px 14px; }
}

@media (prefers-reduced-motion: reduce) {
	#vxn-ec .ec-scan, #vxn-ec .ec-pole span { animation: none; }
	#vxn-ec .ec-btn, #vxn-ec .ec-nav__item, #vxn-ec .ec-seg button, #vxn-ec .ec-way, .vxn-ec-toast { transition: none; }
}
