/*
 * CNC — Espace client (mise en forme)
 * Ce code gère : toute la mise en page de « Mon compte » (connexion, tableau de bord, commandes, à racheter,
 * mes couleurs, mes informations) + l'encart de la page de remerciement.
 * Couleurs et polices : reprises des réglages globaux Elementor (Kit) quand ils existent, sinon valeurs de secours.
 * Pour changer une couleur partout : modifier la variable dans le bloc .cnc-ec ci-dessous.
 */
.cnc-ec {
	--ec-cream: #F7F3EE;
	--ec-white: #FFFFFF;
	--ec-ink: #1A1717;
	--ec-text: #3D3838;
	--ec-muted: #6A6262;
	--ec-violet: var(--e-global-color-primary, #6B4A8E);
	--ec-violet-d: #523A6E;
	--ec-lilac: #EDE6F4;
	--ec-lilac-2: #C9B6E4;
	--ec-pink: #E9A8C2;
	--ec-line: rgba(26, 23, 23, .1);
	--ec-ok: #2F6B4A;
	--ec-alert: #A3322B;
	--ec-r: 14px;
	--ec-r-sm: 10px;
	--ec-serif: "Instrument Serif", Georgia, serif;
	--ec-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-family: var(--ec-sans);
	color: var(--ec-text);
	font-size: 15px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}
.cnc-ec *, .cnc-ec *::before, .cnc-ec *::after { box-sizing: border-box; }
.cnc-ec [hidden] { display: none !important; }
.cnc-ec a { color: var(--ec-violet); }
.cnc-ec img { max-width: 100%; height: auto; display: block; }
.cnc-ec .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.cnc-ec-i { width: 20px; height: 20px; flex: 0 0 20px; }

.cnc-ec-wrap { max-width: 1180px; margin: 0 auto; padding: 40px clamp(16px, 3vw, 24px) 72px; }

/* ---------- Typo ---------- */
.cnc-ec-kicker { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ec-violet); }
.cnc-ec-title { margin: 0; font-family: var(--ec-serif); font-weight: 400; font-size: clamp(38px, 5.2vw, 60px); line-height: 1.02; letter-spacing: -.01em; color: var(--ec-ink); }
.cnc-ec-title em { font-style: italic; color: var(--ec-violet); }
.cnc-ec-h2 { margin: 0 0 4px; font-family: var(--ec-serif); font-weight: 400; font-size: clamp(28px, 3vw, 36px); line-height: 1.1; color: var(--ec-ink); }
.cnc-ec-h2:focus { outline: none; }
.cnc-ec-h3 { margin: 0 0 4px; font-family: var(--ec-sans); font-weight: 700; font-size: 17px; line-height: 1.3; color: var(--ec-ink); }
.cnc-ec-sub { margin: 10px 0 0; color: var(--ec-muted); font-size: 15px; }
.cnc-ec-muted { margin: 0; color: var(--ec-muted); }
.cnc-ec-small { display: block; margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: var(--ec-muted); }
.cnc-ec-small .cnc-ec-i { display: inline-block; width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px; }
.cnc-ec-link { display: inline-flex; align-items: center; gap: 2px; font-weight: 600; font-size: 14px; text-decoration: none; color: var(--ec-violet); }
.cnc-ec-link .cnc-ec-i { width: 18px; height: 18px; transition: transform .2s; }
.cnc-ec-link:hover .cnc-ec-i { transform: translateX(3px); }
.cnc-ec-out { color: var(--ec-muted); font-size: 13px; font-weight: 600; }

/* ---------- Boutons ---------- */
.cnc-ec-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 20px; border-radius: var(--ec-r-sm); border: 1px solid transparent; font: 600 14px/1.2 var(--ec-sans); letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s; }
.cnc-ec-btn .cnc-ec-i { width: 18px; height: 18px; flex-basis: 18px; }
.cnc-ec-btn--primary { background: var(--ec-violet); color: #fff !important; }
.cnc-ec-btn--primary:hover { background: var(--ec-violet-d); }
.cnc-ec-btn--ghost { background: transparent; color: var(--ec-ink) !important; border-color: rgba(26,23,23,.28); }
.cnc-ec-btn--ghost:hover { border-color: var(--ec-ink); background: rgba(255,255,255,.6); }
.cnc-ec-btn--light { background: var(--ec-white); color: var(--ec-ink) !important; border-color: var(--ec-line); }
.cnc-ec-btn--light:hover { border-color: rgba(26,23,23,.3); }
.cnc-ec-btn--sm { min-height: 44px; padding: 9px 14px; font-size: 13.5px; }
.cnc-ec-btn--block { width: 100%; }
.cnc-ec-btn:disabled { opacity: .6; cursor: progress; }
.cnc-ec-btn.is-done { background: var(--ec-ok); color: #fff !important; border-color: var(--ec-ok); }
.cnc-ec-btn:focus-visible, .cnc-ec a:focus-visible, .cnc-ec button:focus-visible, .cnc-ec input:focus-visible, .cnc-ec select:focus-visible { outline: 2px solid var(--ec-violet); outline-offset: 3px; }
.cnc-ec-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* ---------- Cartes ---------- */
.cnc-ec-card { background: var(--ec-white); border: 1px solid var(--ec-line); border-radius: var(--ec-r); padding: 24px; }
.cnc-ec-notice { display: flex; align-items: center; gap: 8px; margin: 0 0 20px; padding: 12px 16px; border-radius: var(--ec-r-sm); background: var(--ec-lilac); color: var(--ec-ink); font-size: 14px; }
.cnc-ec-notice--ok { background: #E6F1EA; color: var(--ec-ok); }
.cnc-ec-notice--admin { background: #FFF6DE; }
.cnc-ec-notice code { font-size: 12.5px; background: rgba(255,255,255,.7); padding: 1px 5px; border-radius: 4px; }

/* =========================================================
 * Connexion
 * ======================================================= */
.cnc-ec-login { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: start; padding-top: 56px; }
.cnc-ec-perks { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 22px; }
.cnc-ec-perks li { display: flex; gap: 14px; align-items: flex-start; }
.cnc-ec-perks .cnc-ec-i { width: 40px; height: 40px; flex: 0 0 40px; padding: 9px; border-radius: 50%; background: var(--ec-lilac); color: var(--ec-violet); }
.cnc-ec-perks strong { display: block; color: var(--ec-ink); font-size: 15.5px; }
.cnc-ec-perks span { color: var(--ec-muted); font-size: 14.5px; }
.cnc-ec-login__box { padding: 30px; box-shadow: 0 24px 60px rgba(26,23,23,.07); }
.cnc-ec-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 24px; background: var(--ec-cream); border-radius: 999px; }
.cnc-ec-seg button { min-height: 42px; border: 0; border-radius: 999px; background: transparent; font: 600 14px var(--ec-sans); color: var(--ec-muted); cursor: pointer; transition: background .2s, color .2s; }
.cnc-ec-seg button[aria-selected="true"] { background: var(--ec-white); color: var(--ec-ink); box-shadow: 0 1px 4px rgba(26,23,23,.1); }
.cnc-ec-seg__panel .cnc-ec-h2 { font-size: 28px; }
.cnc-ec-seg__panel > .cnc-ec-muted { margin-bottom: 18px; }
.cnc-ec-login__first { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--ec-line); font-size: 14px; }
.cnc-ec-login__first p { margin: 0 0 6px; color: var(--ec-muted); }
.cnc-ec-login__first strong { color: var(--ec-ink); }
.cnc-ec-wcnotices .woocommerce-error, .cnc-ec-wcnotices .woocommerce-message, .cnc-ec-wcnotices .woocommerce-info { margin: 0 0 16px !important; padding: 12px 16px !important; border-radius: var(--ec-r-sm); list-style: none; font-size: 14px; }
.cnc-ec-form.is-sent input[type="email"] { background: var(--ec-cream); }

/* ---------- Champs ---------- */
.cnc-ec-form { margin: 0; }
.cnc-ec-field { display: block; margin: 0 0 14px; }
.cnc-ec-field > span { display: block; margin-bottom: 6px; font-size: 13.5px; font-weight: 600; color: var(--ec-ink); }
.cnc-ec-field > span em { font-style: normal; font-weight: 400; color: var(--ec-muted); }
.cnc-ec-field input, .cnc-ec-field select { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid rgba(26,23,23,.2); border-radius: var(--ec-r-sm); background: var(--ec-white); font: 400 15px var(--ec-sans); color: var(--ec-ink); transition: border-color .2s, box-shadow .2s; }
.cnc-ec-field input:focus, .cnc-ec-field select:focus { border-color: var(--ec-violet); box-shadow: 0 0 0 3px rgba(107,74,142,.15); outline: none; }
.cnc-ec-field input[readonly] { background: var(--ec-cream); color: var(--ec-muted); }
.cnc-ec-field .is-invalid { border-color: var(--ec-alert); }
.cnc-ec-check { display: inline-flex; align-items: center; gap: 10px; margin: 2px 0 18px; font-size: 14px; color: var(--ec-ink); cursor: pointer; min-height: 32px; }
.cnc-ec-check input { width: 20px; height: 20px; accent-color: var(--ec-violet); }
.cnc-ec-check--block { display: flex; margin: 6px 0 12px; }
.cnc-ec-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.cnc-ec-msg { margin: 10px 0 0; font-size: 14px; min-height: 1px; }
.cnc-ec-msg:empty { margin: 0; }
.cnc-ec-msg.is-ok { color: var(--ec-ok); font-weight: 600; }
.cnc-ec-msg.is-err { color: var(--ec-alert); font-weight: 600; }
.cnc-ec-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

/* =========================================================
 * Espace connecté
 * ======================================================= */
.cnc-ec-head { margin-bottom: 34px; }
.cnc-ec-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; }

/* Navigation (ordinateur : colonne collante) */
.cnc-ec-nav { position: sticky; top: 120px; }
.cnc-ec-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.cnc-ec-nav a { position: relative; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 14px; border-radius: var(--ec-r-sm); color: var(--ec-text); text-decoration: none; font-weight: 600; font-size: 15px; transition: background .2s, color .2s; }
.cnc-ec-nav a:hover { background: rgba(255,255,255,.75); color: var(--ec-ink); }
.cnc-ec-nav a[aria-current] { background: var(--ec-white); color: var(--ec-ink); box-shadow: inset 3px 0 0 var(--ec-violet), 0 1px 3px rgba(26,23,23,.06); }
.cnc-ec-nav a[aria-current] .cnc-ec-i { color: var(--ec-violet); }
.cnc-ec-nav__s { display: none; }
.cnc-ec-nav__n { margin-left: auto; min-width: 24px; padding: 1px 7px; border-radius: 999px; background: var(--ec-lilac); color: var(--ec-violet); font-size: 12px; text-align: center; }
.cnc-ec-nav__out { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 10px 14px; min-height: 44px; border-top: 1px solid var(--ec-line); color: var(--ec-muted) !important; text-decoration: none; font-size: 14px; font-weight: 600; }
.cnc-ec-nav__out:hover { color: var(--ec-ink) !important; }

/* Panneaux */
.cnc-ec-main { min-width: 0; }
.cnc-ec.is-js .cnc-ec-panel { display: none; }
.cnc-ec.is-js .cnc-ec-panel[data-active] { display: block; animation: cncEcIn .35s ease both; }
.cnc-ec:not(.is-js) .cnc-ec-panel + .cnc-ec-panel { margin-top: 56px; }
@keyframes cncEcIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.cnc-ec-panel__head { margin-bottom: 22px; }
.cnc-ec-panel__head .cnc-ec-muted { margin-top: 6px; max-width: 60ch; }
.cnc-ec-panel > * + * { margin-top: 18px; }
.cnc-ec-panel > .cnc-ec-panel__head + * { margin-top: 0; }
#accueil .cnc-ec-panel__head { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }

/* Commande en cours */
.cnc-ec-live { background: linear-gradient(180deg, var(--ec-lilac) 0%, var(--ec-white) 78%); border-color: rgba(107,74,142,.18); }
.cnc-ec-live__top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.cnc-ec-live .cnc-ec-h3 { font-family: var(--ec-serif); font-weight: 400; font-size: 30px; line-height: 1.1; }

/* Suivi en 4 étapes */
.cnc-ec-steps { --step: 1; position: relative; display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; margin: 22px 0 6px; padding: 0; counter-reset: none; }
.cnc-ec-steps::before, .cnc-ec-steps::after { content: ""; position: absolute; top: 13px; left: 12.5%; height: 2px; border-radius: 2px; }
.cnc-ec-steps::before { right: 12.5%; background: rgba(26,23,23,.12); }
.cnc-ec-steps::after { width: calc((var(--step) - 1) * 25%); background: var(--ec-violet); transition: width .6s ease; }
.cnc-ec-steps li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.cnc-ec-steps__dot { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ec-white); border: 2px solid rgba(26,23,23,.18); color: #fff; }
.cnc-ec-steps__dot .cnc-ec-i { width: 15px; height: 15px; stroke-width: 2.4; }
.cnc-ec-steps .is-done .cnc-ec-steps__dot, .cnc-ec-steps .is-now .cnc-ec-steps__dot { background: var(--ec-violet); border-color: var(--ec-violet); }
.cnc-ec-steps .is-now .cnc-ec-steps__dot { box-shadow: 0 0 0 5px rgba(107,74,142,.16); }
.cnc-ec-steps__l { font-size: 13px; font-weight: 600; color: var(--ec-muted); }
.cnc-ec-steps .is-now .cnc-ec-steps__l, .cnc-ec-steps .is-done .cnc-ec-steps__l { color: var(--ec-ink); }
.cnc-ec-steps.is-done::after, .cnc-ec-steps.is-done .cnc-ec-steps__dot { background-color: var(--ec-ok); border-color: var(--ec-ok); }
.cnc-ec-steps.is-done .is-now .cnc-ec-steps__dot { box-shadow: 0 0 0 5px rgba(47,107,74,.15); }
.cnc-ec-steps.is-alert .is-now .cnc-ec-steps__dot { background: var(--ec-alert); border-color: var(--ec-alert); box-shadow: 0 0 0 5px rgba(163,50,43,.15); }

.cnc-ec-ship { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--ec-line); }
.cnc-ec-ship__row { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; color: var(--ec-text); }
.cnc-ec-ship__row .cnc-ec-i { color: var(--ec-violet); }
.cnc-ec-ship__note { flex-basis: 100%; margin: 0; font-size: 14px; font-weight: 600; color: var(--ec-ink); }
.cnc-ec-ship__note.is-alert { color: var(--ec-alert); }
.cnc-ec-ship .cnc-ec-btn { margin-left: auto; }

/* Dernière commande */
.cnc-ec-lastorder { display: grid; grid-template-columns: 1fr auto; gap: 6px 24px; align-items: center; }
.cnc-ec-lastorder .cnc-ec-actions, .cnc-ec-lastorder > .cnc-ec-small { grid-column: 1 / -1; }
.cnc-ec-stack { display: flex; list-style: none; margin: 0; padding: 0; }
.cnc-ec-stack li { width: 62px; height: 62px; margin-left: -14px; border-radius: 50%; overflow: hidden; border: 3px solid var(--ec-white); background: var(--ec-cream); box-shadow: 0 2px 8px rgba(26,23,23,.08); }
.cnc-ec-stack li:first-child { margin-left: 0; }
.cnc-ec-stack img { width: 100%; height: 100%; object-fit: cover; }
.cnc-ec-stack__more { display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--ec-violet); background: var(--ec-lilac) !important; }

/* Blocs */
.cnc-ec-block { margin-top: 34px !important; }
.cnc-ec-block__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.cnc-ec-block > .cnc-ec-muted { margin: -6px 0 14px; }

/* Teaser nuancier */
.cnc-ec-palette-teaser { display: flex; align-items: center; gap: 18px; text-decoration: none; color: inherit !important; background: var(--ec-ink); border-color: var(--ec-ink); transition: transform .25s ease; }
.cnc-ec-palette-teaser:hover { transform: translateY(-2px); }
.cnc-ec-palette-teaser .cnc-ec-kicker { color: var(--ec-lilac-2); }
.cnc-ec-palette-teaser .cnc-ec-h3 { color: #fff; font-family: var(--ec-serif); font-weight: 400; font-size: 26px; }
.cnc-ec-palette-teaser > .cnc-ec-i { color: #fff; margin-left: 6px; }
.cnc-ec-dots { display: flex; list-style: none; margin: 0 0 0 auto; padding: 0; }
.cnc-ec-dots li { width: 46px; height: 46px; margin-left: -10px; border-radius: 50%; overflow: hidden; border: 3px solid var(--sw, #C9B6E4); background: var(--ec-white); }
.cnc-ec-dots img { width: 100%; height: 100%; object-fit: cover; }

/* Aide */
.cnc-ec-help { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 34px !important; padding: 22px 24px; border-radius: var(--ec-r); background: var(--ec-lilac); }
.cnc-ec-help__links { display: flex; flex-wrap: wrap; gap: 10px; }
.cnc-ec-help__links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px; border-radius: 999px; background: var(--ec-white); color: var(--ec-ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.cnc-ec-help__links a:hover { color: var(--ec-violet); }
.cnc-ec-help__links .cnc-ec-i { width: 18px; height: 18px; color: var(--ec-violet); }

.cnc-ec-empty { text-align: left; }
.cnc-ec-empty .cnc-ec-btn { margin-top: 14px; }

/* ---------- Commandes ---------- */
.cnc-ec-orders { display: grid; gap: 10px; }
.cnc-ec-order { background: var(--ec-white); border: 1px solid var(--ec-line); border-radius: var(--ec-r); overflow: hidden; transition: box-shadow .25s; scroll-margin-top: 110px; }
.cnc-ec-order.is-open { box-shadow: 0 16px 40px rgba(26,23,23,.07); }
.cnc-ec-order.is-off { background: rgba(255,255,255,.6); }
.cnc-ec-order__head { display: grid; grid-template-columns: minmax(0, 1.4fr) auto auto 92px 24px; align-items: center; gap: 18px; width: 100%; min-height: 76px; padding: 14px 20px; border: 0; background: transparent; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.cnc-ec-order__head:hover { background: rgba(247,243,238,.6); }
.cnc-ec-order__meta { display: grid; gap: 2px; min-width: 0; }
.cnc-ec-order__date { font-weight: 700; color: var(--ec-ink); font-size: 15.5px; }
.cnc-ec-order__num { font-size: 13px; color: var(--ec-muted); }
.cnc-ec-order__thumbs { display: flex; }
.cnc-ec-order__thumbs img { width: 40px; height: 40px; margin-left: -10px; border-radius: 50%; object-fit: cover; border: 2px solid var(--ec-white); background: var(--ec-cream); }
.cnc-ec-order__thumbs img:first-child { margin-left: 0; }
.cnc-ec-order__total { font-weight: 700; color: var(--ec-ink); text-align: right; }
.cnc-ec-order__chev .cnc-ec-i { transition: transform .25s; color: var(--ec-muted); }
.cnc-ec-order.is-open .cnc-ec-order__chev .cnc-ec-i { transform: rotate(90deg); }
.cnc-ec-order__body { padding: 4px 20px 22px; border-top: 1px solid var(--ec-line); }

.cnc-ec-pill { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; background: var(--ec-lilac); color: var(--ec-violet-d); }
.cnc-ec-pill.is-done { background: #E6F1EA; color: var(--ec-ok); }
.cnc-ec-pill.is-alert { background: #F8E3E1; color: var(--ec-alert); }
.cnc-ec-pill.is-off { background: #EEEBE8; color: var(--ec-muted); }

.cnc-ec-lines { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 2px; }
.cnc-ec-line { position: relative; display: grid; grid-template-columns: 28px 56px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--ec-line); }
.cnc-ec-line:last-child { border-bottom: 0; }
.cnc-ec-line .cnc-ec-thumb { width: 56px; height: 56px; border-radius: var(--ec-r-sm); object-fit: cover; background: var(--ec-cream); }
.cnc-ec-line__txt { display: grid; gap: 2px; min-width: 0; }
.cnc-ec-line__txt > a, .cnc-ec-line__txt > span { font-weight: 600; color: var(--ec-ink); text-decoration: none; overflow-wrap: anywhere; }
.cnc-ec-line__txt > a:hover { color: var(--ec-violet); }
.cnc-ec-line__txt small { font-size: 13px; color: var(--ec-muted); }
.cnc-ec-line.is-off .cnc-ec-thumb { opacity: .5; filter: saturate(.6); }

/* Cases à cocher (lignes + cartes) */
.cnc-ec-line__cb, .cnc-ec-pcard__cb { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cnc-ec-line__box, .cnc-ec-pcard__box { position: relative; display: block; width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid rgba(26,23,23,.3); background: var(--ec-white); cursor: pointer; transition: background .15s, border-color .15s; }
.cnc-ec-line__box::after, .cnc-ec-pcard__box::after { content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.4px 2.4px 0; transform: rotate(45deg) scale(0); transition: transform .15s; }
.cnc-ec-line__box.is-empty { border-style: dashed; opacity: .35; cursor: default; }
.cnc-ec-line__cb:checked + .cnc-ec-line__box, .cnc-ec-pcard__cb:checked + .cnc-ec-pcard__box { background: var(--ec-violet); border-color: var(--ec-violet); }
.cnc-ec-line__cb:checked + .cnc-ec-line__box::after, .cnc-ec-pcard__cb:checked + .cnc-ec-pcard__box::after { transform: rotate(45deg) scale(1); }
.cnc-ec-line__cb:focus-visible + .cnc-ec-line__box, .cnc-ec-pcard__cb:focus-visible + .cnc-ec-pcard__box { outline: 2px solid var(--ec-violet); outline-offset: 3px; }
.cnc-ec-line__box::before, .cnc-ec-pcard__box::before { content: ""; position: absolute; inset: -10px; }
.cnc-ec-more { margin-top: 14px !important; }

/* ---------- Cartes produit ---------- */
.cnc-ec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.cnc-ec-grid--mini { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cnc-ec-pcard { position: relative; display: flex; flex-direction: column; background: var(--ec-white); border: 1px solid var(--ec-line); border-radius: var(--ec-r); overflow: hidden; transition: box-shadow .25s, transform .25s; }
.cnc-ec-pcard:hover { box-shadow: 0 14px 34px rgba(26,23,23,.08); transform: translateY(-2px); }
.cnc-ec-pcard.is-off { opacity: .7; }
.cnc-ec-pcard__box { position: absolute; top: 10px; left: 10px; z-index: 2; box-shadow: 0 1px 4px rgba(26,23,23,.15); }
.cnc-ec-pcard__img { display: block; aspect-ratio: 1 / 1; background: var(--ec-cream); overflow: hidden; }
.cnc-ec-pcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cnc-ec-pcard:hover .cnc-ec-pcard__img img { transform: scale(1.04); }
.cnc-ec-pcard__txt { flex: 1; padding: 14px 14px 4px; }
.cnc-ec-pcard__name { margin: 0 0 4px; font: 600 14.5px/1.35 var(--ec-sans); color: var(--ec-ink); }
.cnc-ec-pcard__name a { color: inherit; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cnc-ec-pcard__name a:hover { color: var(--ec-violet); }
.cnc-ec-pcard__meta { margin: 0; font-size: 12.5px; color: var(--ec-muted); }
.cnc-ec-pcard__price { margin: 6px 0 0; font-weight: 700; color: var(--ec-ink); font-size: 15px; }
.cnc-ec-pcard__price del { font-weight: 400; color: var(--ec-muted); margin-right: 4px; }
.cnc-ec-pcard__price ins { text-decoration: none; }
.cnc-ec-pcard__cta { padding: 10px 14px 14px; }
.cnc-ec-pcard__cta .cnc-ec-btn { width: 100%; }
.cnc-ec-pcard__cta .cnc-ec-out { display: block; min-height: 44px; line-height: 44px; text-align: center; }

/* ---------- Mes couleurs ---------- */
.cnc-ec-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px !important; }
.cnc-ec-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--ec-line); background: var(--ec-white); font: 600 13.5px var(--ec-sans); color: var(--ec-text); cursor: pointer; }
.cnc-ec-chip i, .cnc-ec-families i { width: 14px; height: 14px; border-radius: 50%; background: var(--sw, #ccc); box-shadow: inset 0 0 0 1px rgba(26,23,23,.14); }
.cnc-ec-chip[aria-pressed="true"] { background: var(--ec-ink); border-color: var(--ec-ink); color: #fff; }
.cnc-ec-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 26px 18px; }
.cnc-ec-swatch { display: flex; flex-direction: column; align-items: center; text-align: center; }
.cnc-ec-swatch__img { position: relative; display: block; width: 128px; height: 128px; margin-bottom: 12px; border-radius: 50%; padding: 6px; background: var(--sw, #C9B6E4); transition: transform .3s ease; }
.cnc-ec-swatch__img img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--ec-white); background: var(--ec-white); }
.cnc-ec-swatch:hover .cnc-ec-swatch__img { transform: scale(1.04) rotate(-2deg); }
.cnc-ec-swatch__name { margin: 0 0 2px; font: 600 14px/1.35 var(--ec-sans); color: var(--ec-ink); }
.cnc-ec-swatch__name a { color: inherit; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cnc-ec-swatch .cnc-ec-btn, .cnc-ec-swatch .cnc-ec-out { margin-top: 10px; }
.cnc-ec-swatch.is-off .cnc-ec-swatch__img { opacity: .55; }
.cnc-ec-families { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.cnc-ec-families a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px; background: var(--ec-white); border: 1px solid var(--ec-line); color: var(--ec-ink); text-decoration: none; font-weight: 600; font-size: 14px; transition: border-color .2s; }
.cnc-ec-families a:hover { border-color: var(--ec-ink); }

/* ---------- Mes informations ---------- */
.cnc-ec-infos { display: grid; gap: 18px; }
.cnc-ec-infos fieldset { margin: 0; min-width: 0; }
.cnc-ec-infos legend { float: left; width: 100%; margin-bottom: 16px; padding: 0; }
.cnc-ec-infos legend + * { clear: both; }
.cnc-ec-ship-fields { margin-top: 10px; padding-top: 16px; border-top: 1px dashed var(--ec-line); }
.cnc-ec-savebar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.cnc-ec-savebar .cnc-ec-msg { margin: 0; }
.cnc-ec-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.cnc-ec-row > div { flex: 1 1 260px; }
.cnc-ec-row .cnc-ec-msg { flex-basis: 100%; }
.cnc-ec-switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; min-height: 44px; }
.cnc-ec-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cnc-ec-switch__ui { position: relative; width: 50px; height: 30px; border-radius: 999px; background: rgba(26,23,23,.22); transition: background .2s; }
.cnc-ec-switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.cnc-ec-switch input:checked + .cnc-ec-switch__ui { background: var(--ec-violet); }
.cnc-ec-switch input:checked + .cnc-ec-switch__ui::after { transform: translateX(20px); }
.cnc-ec-switch input:focus-visible + .cnc-ec-switch__ui { outline: 2px solid var(--ec-violet); outline-offset: 3px; }
.cnc-ec-switch__l { font-weight: 600; font-size: 14px; color: var(--ec-ink); }
.cnc-ec-logout { display: none; }

/* ---------- Barre de sélection + message ---------- */
.cnc-ec-selbar { position: fixed; z-index: 9990; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 20px; border-radius: 999px; background: var(--ec-ink); color: #fff; box-shadow: 0 18px 50px rgba(26,23,23,.3); font-weight: 600; font-size: 14px; white-space: nowrap; animation: cncEcUp .3s ease both; }
.cnc-ec-selbar > span { margin-right: 6px; }
.cnc-ec-selbar .cnc-ec-btn { min-height: 42px; border-radius: 999px; }
.cnc-ec-selbar .cnc-ec-btn--light { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.3); }
@keyframes cncEcUp { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }
.cnc-ec-toast { position: fixed; z-index: 9995; right: 24px; top: 110px; display: grid; gap: 4px; max-width: 340px; padding: 14px 18px; border-radius: var(--ec-r); background: var(--ec-white); border-left: 4px solid var(--ec-ok); box-shadow: 0 18px 50px rgba(26,23,23,.18); font-size: 14px; color: var(--ec-ink); opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .25s; }
.cnc-ec-toast.is-in { opacity: 1; transform: none; }
.cnc-ec-toast.is-err { border-left-color: var(--ec-alert); }
.cnc-ec-toast span { color: var(--ec-muted); font-size: 13px; }
.cnc-ec-toast a { font-weight: 700; color: var(--ec-violet); }
.cnc-ec-btn.is-loading { position: relative; color: transparent !important; }
.cnc-ec-btn.is-loading::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: cncEcSpin .7s linear infinite; }
.cnc-ec-btn--ghost.is-loading::after { border-color: rgba(26,23,23,.2); border-top-color: var(--ec-ink); }
@keyframes cncEcSpin { to { transform: rotate(360deg); } }

/* ---------- Pages WooCommerce conservées (mot de passe oublié, moyens de paiement…) ---------- */
.cnc-ec-back { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 18px; font-weight: 600; font-size: 14px; text-decoration: none; }
.cnc-ec-back .cnc-ec-i { transform: rotate(180deg); width: 18px; height: 18px; }
.cnc-ec-native { max-width: 760px; }
.cnc-ec-native .woocommerce-MyAccount-navigation { display: none !important; }
.cnc-ec-native .woocommerce-MyAccount-content { width: 100% !important; float: none !important; padding: 0 !important; }
.cnc-ec-native h2 { font-family: var(--ec-serif); font-weight: 400; font-size: 32px; color: var(--ec-ink); }
.cnc-ec-native input.input-text { min-height: 48px; border-radius: var(--ec-r-sm); }
.cnc-ec-native .button { min-height: 46px; padding: 11px 20px !important; border-radius: var(--ec-r-sm) !important; background: var(--ec-violet) !important; color: #fff !important; font-weight: 600 !important; text-transform: none !important; letter-spacing: .01em !important; font-family: var(--ec-sans) !important; }
.cnc-ec-native, .cnc-ec-native p, .cnc-ec-native form { text-align: left !important; }
.cnc-ec-native .woocommerce-ResetPassword, .cnc-ec-native .woocommerce-ResetPassword .form-row { max-width: none !important; width: 100% !important; float: none !important; margin-left: 0 !important; margin-right: 0 !important; padding: 0 !important; }
.cnc-ec-native .woocommerce-ResetPassword > p:first-child { color: var(--ec-muted); margin: 0 0 18px; }
.cnc-ec-native label { display: block; margin-bottom: 6px; font-size: 13.5px; font-weight: 600; color: var(--ec-ink); }
.cnc-ec-native input.input-text { width: 100% !important; padding: 11px 14px; border: 1px solid rgba(26,23,23,.2); font: 400 15px var(--ec-sans); }
.cnc-ec-native .woocommerce-ResetPassword .button { width: 100%; margin-top: 8px; }
@media (min-width: 861px) { .cnc-ec--native .cnc-ec-wrap { max-width: 560px; } }

/* ---------- Encart page de remerciement ---------- */
.cnc-ec-promo { display: grid; grid-template-columns: 1fr auto; gap: 18px 32px; align-items: center; margin: 28px 0; padding: 26px 28px; border-radius: var(--ec-r); background: var(--ec-lilac); }
.cnc-ec-promo .cnc-ec-h3 { font-family: var(--ec-serif); font-weight: 400; font-size: 28px; line-height: 1.1; }
.cnc-ec-promo .cnc-ec-muted { margin-top: 6px; max-width: 52ch; }
.cnc-ec-promo__cta { text-align: center; }
.cnc-ec-promo__cta .cnc-ec-small { justify-content: center; }

/* =========================================================
 * Tablette
 * ======================================================= */
@media (max-width: 1024px) {
	.cnc-ec-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 32px; }
	.cnc-ec-grid--mini { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cnc-ec-order__head { grid-template-columns: minmax(0, 1fr) auto 90px 24px; }
	.cnc-ec-order__thumbs { display: none; }
	.cnc-ec-login { gap: 36px; }
}

/* =========================================================
 * Mobile + tablette portrait : barre d'onglets en bas d'écran
 * ======================================================= */
@media (max-width: 860px) {
	.cnc-ec-wrap { padding: 24px 16px 120px; }
	.cnc-ec-login { grid-template-columns: 1fr; gap: 28px; padding-top: 12px; }
	.cnc-ec-login__box { order: -1; padding: 22px 18px; }
	.cnc-ec-login .cnc-ec-title { font-size: 34px; }
	.cnc-ec-perks { margin-top: 22px; gap: 16px; }
	.cnc-ec--login .cnc-ec-wrap { padding-bottom: 48px; }

	.cnc-ec-head { margin-bottom: 22px; }
	.cnc-ec-layout { display: block; }
	.cnc-ec-nav { position: fixed; z-index: 9980; left: 0; right: 0; bottom: 0; top: auto; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--ec-line); box-shadow: 0 -8px 30px rgba(26,23,23,.06); }
	.cnc-ec-nav ul { grid-template-columns: repeat(5, 1fr); gap: 2px; }
	.cnc-ec-nav a { flex-direction: column; justify-content: center; gap: 3px; min-height: 56px; padding: 6px 2px; font-size: 11.5px; text-align: center; border-radius: 12px; }
	.cnc-ec-nav a[aria-current] { box-shadow: none; background: var(--ec-lilac); color: var(--ec-violet-d); }
	.cnc-ec-nav .cnc-ec-i { width: 22px; height: 22px; }
	.cnc-ec-nav__l { display: none; }
	.cnc-ec-nav__s { display: block; line-height: 1.1; }
	.cnc-ec-nav__n { position: absolute; top: 4px; left: 50%; margin-left: 6px; min-width: 18px; padding: 0 5px; font-size: 10.5px; line-height: 16px; background: var(--ec-violet); color: #fff; }
	.cnc-ec-nav .cnc-ec-nav__out { display: none; }
	.cnc-ec-logout { display: inline-flex; margin-top: 22px !important; }
	.cnc-ec:not(.is-js) .cnc-ec-nav { position: static; }

	.cnc-ec-card { padding: 20px 18px; }
	.cnc-ec-cols { grid-template-columns: 1fr; }
	.cnc-ec-live__top { flex-direction: column; gap: 4px; }
	.cnc-ec-live .cnc-ec-h3 { font-size: 26px; }
	.cnc-ec-lastorder { grid-template-columns: 1fr; }
	.cnc-ec-stack { margin-top: 8px; }
	.cnc-ec-actions .cnc-ec-btn { flex: 1 1 200px; }
	.cnc-ec-ship .cnc-ec-btn { margin-left: 0; width: 100%; }
	.cnc-ec-palette-teaser { flex-wrap: wrap; }
	.cnc-ec-dots { margin-left: 0; order: 3; flex-basis: 100%; padding-left: 10px; }
	.cnc-ec-palette-teaser > .cnc-ec-i { position: absolute; right: 18px; }
	.cnc-ec-palette-teaser { position: relative; }

	.cnc-ec-order__head { grid-template-columns: minmax(0, 1fr) auto 20px; grid-template-areas: "meta total chev" "pill pill chev"; gap: 6px 12px; padding: 14px 16px; }
	.cnc-ec-order__meta { grid-area: meta; }
	.cnc-ec-order__total { grid-area: total; }
	.cnc-ec-order__chev { grid-area: chev; }
	.cnc-ec-order__head .cnc-ec-pill { grid-area: pill; justify-self: start; }
	.cnc-ec-order__body { padding: 4px 16px 18px; }
	.cnc-ec-steps__l { font-size: 11.5px; }
	.cnc-ec-line { grid-template-columns: 28px 48px minmax(0, 1fr); gap: 12px; }
	.cnc-ec-line .cnc-ec-thumb { width: 48px; height: 48px; }

	.cnc-ec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.cnc-ec-pcard__txt { padding: 12px 12px 2px; }
	.cnc-ec-pcard__cta { padding: 8px 12px 12px; }
	.cnc-ec-pcard__name { font-size: 13.5px; }
	.cnc-ec-swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
	.cnc-ec-swatch__img { width: 112px; height: 112px; }
	.cnc-ec-chips { flex-wrap: nowrap; overflow-x: auto; margin-right: -16px; padding-right: 16px; scrollbar-width: none; }
	.cnc-ec-chips::-webkit-scrollbar { display: none; }
	.cnc-ec-chip { flex: 0 0 auto; }

	.cnc-ec-help { flex-direction: column; align-items: stretch; padding: 20px 18px; }
	.cnc-ec-help__links a { flex: 1 1 auto; justify-content: center; }

	.cnc-ec-selbar { left: 12px; right: 12px; transform: none; bottom: calc(80px + env(safe-area-inset-bottom)); padding: 8px 8px 8px 16px; font-size: 13px; animation: none; }
	.cnc-ec-selbar > span { flex: 1; white-space: normal; line-height: 1.25; }
	.cnc-ec-selbar [data-cnc-selclear] { display: none; }
	.cnc-ec-toast { left: 12px; right: 12px; top: auto; bottom: calc(84px + env(safe-area-inset-bottom)); max-width: none; }
	.cnc-ec.has-sel .cnc-ec-toast { bottom: calc(150px + env(safe-area-inset-bottom)); }

	.cnc-ec-promo { grid-template-columns: 1fr; padding: 22px 18px; }
	.cnc-ec-promo__cta .cnc-ec-btn { width: 100%; }

	/* évite que la barre d'onglets cache le bas de page (footer, bouton « haut de page ») */
	body.cnc-ec-has-tabbar { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
	body.cnc-ec-has-tabbar .back-to-top, body.cnc-ec-has-tabbar .botiga-back-to-top, body.cnc-ec-has-tabbar .cookieadmin_re_consent { bottom: calc(86px + env(safe-area-inset-bottom)) !important; }
}

/* Tablette portrait (600–860 px) : plus de colonnes, barre d'onglets centrée */
@media (min-width: 600px) and (max-width: 860px) {
	.cnc-ec-grid, .cnc-ec-grid--mini { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
	.cnc-ec-swatches { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.cnc-ec-nav ul { max-width: 560px; margin: 0 auto; }
	.cnc-ec-cols { grid-template-columns: 1fr 1fr; }
	.cnc-ec-lastorder { grid-template-columns: 1fr auto; }
	.cnc-ec-login__box { padding: 28px; }
}

@media (max-width: 380px) {
	.cnc-ec-grid, .cnc-ec-grid--mini { gap: 8px; }
	.cnc-ec-swatch__img { width: 96px; height: 96px; }
	.cnc-ec-nav a { font-size: 10.5px; }
}

@media (prefers-reduced-motion: reduce) {
	.cnc-ec *, .cnc-ec *::before, .cnc-ec *::after { animation: none !important; transition: none !important; }
}

/* ---------- Fidélité (accueil de l'espace) ----------
 * Ce code gère : le bloc « Ma fidélité » et sa rangée de capsules (une capsule = un point).
 * Les chiffres et le palier viennent de l'extension MyRewards.
 */
.cnc-ec-loyal { display: grid; grid-template-columns: 1fr auto; gap: 14px 32px; align-items: center; background: var(--ec-lilac); border-color: transparent; }
.cnc-ec-loyal .cnc-ec-h3 { font-family: var(--ec-serif); font-weight: 400; font-size: 26px; color: var(--ec-ink); }
.cnc-ec-loyal__p { margin: 4px 0 0; color: var(--ec-text); }
.cnc-ec-loyal__track { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.cnc-ec-loyal__track li { width: 20px; height: 36px; margin: 0; border: 1.5px solid var(--ec-violet); border-radius: 10px 10px 6px 6px; background: transparent; }
.cnc-ec-loyal__track li.is-on { background: var(--ec-violet); }
.cnc-ec-loyal__code { grid-column: 1 / -1; margin: 0; padding: 12px 14px; border-radius: var(--ec-r-sm); background: var(--ec-white); color: var(--ec-text); }
.cnc-ec-loyal__code strong { color: var(--ec-violet); letter-spacing: .04em; user-select: all; }
@media (max-width: 640px) {
	.cnc-ec-loyal { grid-template-columns: 1fr; }
	.cnc-ec-loyal__track { gap: 5px; }
	.cnc-ec-loyal__track li { flex: 1 1 0; width: auto; max-width: 26px; height: 32px; }
}